Jump to content
Aaron Trujillo

Kamailio Notifications

Recommended Posts

Quote

root@FOO:~# service kamailio status
● kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
   Loaded: loaded (/lib/systemd/system/kamailio.service; enabled)
   Active: active (running) since Thu 2016-11-17 06:24:17 MST; 1h 43min ago
  Process: 33393 ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP (code=exited, status=0/SUCCESS)
 Main PID: 33398 (kamailio)

 

My Kamailio has gone down twice in the last two weeks and i have not been getting notifications through Pulseway.  Above is the Kamailio service in a running state and below is my configuration set up, for that service to be monitored.  

Quote

  <!--Monitored Services-->
  <MonitoredServices>
    <!--Service
      - Name: service name
      - DisplayName: friendly name used for display
      - IsDaemon: 'true' if the monitored service is a daemon and 'false' if the monitored service is a process
      - DaemonType: system management daemon type: NONE, SYSVINIT, UPSTART or SYSTEMD
      - Path: path of the monitored service (this is used when the monitored service is a process)
      - StartParameters: parameters used to start the monitored service (this is used when the monitored service is a process)
      - CanBeStopped: 'true' or 'false'-->
    <Service Name="cups" DisplayName="CUPS Service" IsDaemon="true" DaemonType="SYSVINIT" Path="" StartParameters="" CanBeStopped="true" Enabled="false" />
    <Service Name="ntpd" DisplayName="NTPD Process" IsDaemon="false" DaemonType="NONE" Path="/usr/sbin/ntpd" StartParameters="-p /var/run/ntp/ntpd.pid -g -u ntp:ntp -i /var/lib/ntp -c /etc/ntp.conf" CanBeStopped="true" Enabled="false" />
    <Service Name="ssh" DisplayName="SSH/Jenkins" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />
    <Service Name="SuSEfirewall2.service" DisplayName="SuSE Firewall Service" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="true" Enabled="false" />
    <Service Name="kamailio" DisplayName="Kamailio (OpenSER)" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />
    <Service Name="keepalived" DisplayName="keepalived" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />
    <Service Name="nodejs" DisplayName="nodejs" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />
  </MonitoredServices>

Any guidance in fixing this problem would be greatly appreciated.

Share this post


Link to post
Share on other sites

More information...

So it appears that if i stop the service manually i do get notifications, but the two times that the Kamailio service stopped/crashed in the middle of the night, i did not get any notifications.  

Share this post


Link to post
Share on other sites

UPDATE

When Kamailio is manually stopped (service kamailio stop) Pulseway will send a notification to me and the status shows:

● kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
   Loaded: loaded (/lib/systemd/system/kamailio.service; enabled)
   Active: inactive (dead) since Thu 2016-11-17 10:48:43 MST; 5s ago

But when i kill one of the child process (kill -9 15489) Pulseway does not send notification and the status shows:

● kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server
   Loaded: loaded (/lib/systemd/system/kamailio.service; enabled)
   Active: failed (Result: exit-code) since Thu 2016-11-17 10:45:01 MST; 3s ago

Apparently what is happening is one of the child processes is being killed and this sends a message to kill all the processes and this obviously stops or kamailio service from working correctly...

So why am I not getting notification when it is in a failed state?  Is there a way to fix it so that i do?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By alfred44
      hello
      does pulseway agent work on raspberry pi 4 (using debian buster arm64) ? thanks.
    • By Louwrens
      Please expand the list of programs on 3rd Party Patch management.
      Some suggestions:
      Adobe Flash
      Amazon Corretto (Since Oracle Java is not free anymore)
      Dropbox
      Gimp
      Google Gsync (GSuite)
      K-lite Codec
      LibreOffice
      OpenVPN
      Thunderbird
      WhatsApp Desktop Client
       
       
       
    • By XxLilBoPeepsxX
      I am attempting to install pulseway on my raspberry pi 3b+, and have downloaded and installed the correct file from the pulseway website, and made sure that my openssl libraries are up to date and correctly setup. I followed through with the given installation instructions and repeatedly the pulseway service is unable to be started. When executing the command sudo systemctl start pulseway, the command works and presents no errors. Upon checking the app or the list of all services, however, pulseway is not shown as a service and there is no devices connected to the app. See the attached images for the output of sudo systemctl status pulseway


    • By knis
      I installed Pulseway on Ubuntu 16.10   64 bit.   It was success.
      I want only monitor HDD and CPU usage and Power off computer.
      I want disable other features in config.xml.
      How can I disable (I see mobile app) Users, Terminal, Scripts, Enter Maintenance Mode?
      Thanks!
    • By pheald
      I am running CentOS 6 and I can track most of my /etc/init.d services just fine - except for iptables.  When the service is running, Pulseway reports that it is down.
      For example, these lines work just fine:
      <Service Name="ntpd" DisplayName="NTPD Service" IsDaemon="true" DaemonType="SYSVINIT" Path="" StartParameters="" CanBeStopped="true" Enabled="true"/> <Service Name="crond" DisplayName="Cron Daemon" IsDaemon="true" DaemonType="SYSVINIT" Path="" StartParameters="" CanBeStopped="true" Enabled="true"/> But this one does not
      <Service Name="iptables" DisplayName="iptables Service" IsDaemon="true" DaemonType="SYSVINIT" Path="" StartParameters="" CanBeStopped="true" Enabled="true"/> Does anyone have any ideas?  I'm relatively new to Pulseway so it is entirely possible that I'm just missing something obvious.
       
      Edit: I just confirmed that I can start the service successfully when I manually stop it, but it still never detects it as running.
×
×
  • Create New...