NagiosEnterprises / ndoutils

NDOUtils - Database Output for Nagios Core
GNU General Public License v2.0
48 stars 21 forks source link

Service commands - SUSE 11.x + FreeBSD 10.x #20

Closed box293 closed 7 years ago

box293 commented 7 years ago

I can install ndo (maint) on a SUSE 11.x server running Nagios Core 4.2.1.

The ndo2db service starts on boot (or manually) however other service commands fail:

localuser@core-034:~> sudo /sbin/service ndo2db start
Starting ndo2db                                                                                           done

localuser@core-034:~> sudo ps ax | grep ndo
 4192 ?        Ssl    0:00 /usr/bin/gnome-session --autostart=/usr/share/gdm/autostart/LoginWindow/
 4594 ?        Ss     0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
 4608 pts/0    S+     0:00 grep ndo

localuser@core-034:~> sudo /sbin/service ndo2db status
Checking for ndo2db daemon...checkproc: Can not handle pid file /usr/local/nagios/var/ndo2db.pid with pid `0'
                                                                                                          dead

localuser@core-034:~> sudo /sbin/service ndo2db stop
Shutting down ndo2db killproc: Can not handle pid file /usr/local/nagios/var/ndo2db.pid with pid `0'
                                                                                                          failed

localuser@core-034:~> sudo ps ax | grep ndo
 4192 ?        Ssl    0:00 /usr/bin/gnome-session --autostart=/usr/share/gdm/autostart/LoginWindow/
 4594 ?        Ss     0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
 4628 pts/0    S+     0:00 grep ndo

Same applies on FreeBSD 10.3

service ndo2db start
Starting ndo2db.

ps -ax | grep ndo
4369  -  Is    0:00.00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg

service ndo2db status
ndo2db is not running.

service ndo2db stop
ndo2db not running? (check /usr/local/nagios/var/ndo2db.pid).

ps -ax | grep ndo
4369  -  Is    0:00.00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
4415  0  R+    0:00.00 grep ndo
jfrickson commented 7 years ago

I strongly suspect this was related to issue https://github.com/NagiosEnterprises/ndoutils/issues/17 which was fixed in the 'maint' branch about two weeks ago. Check if it works now in 'maint' and let me know.

box293 commented 7 years ago

Confirmed this is fixed in SUSE 11.x and FreeBSD 10.x