[Bug 367679] Re: /etc/init.d/nagios3 status returns 0 if nagios isn't running

2009-04-27 Thread Mikel Ward
Yes, sorry, Ubuntu 8.10. I tried cat /etc/debian_version, but it just said lenny or something like that. Is there a proper command to run to show that information? -- /etc/init.d/nagios3 status returns 0 if nagios isn't running https://bugs.launchpad.net/bugs/367679 You received this bug

[Bug 367679] [NEW] /etc/init.d/nagios3 status returns 0 if nagios isn't running

2009-04-26 Thread Mikel Ward
Public bug reported: The init.d script says status OK even when the Nagios daemon is not running. $ sudo /etc/init.d/nagios3 status * checking /usr/sbin/nagios3... [ OK ] $ sudo pgrep nagios (no output) It's because the script is passing 0 to the log function rather than 1. $ diff -u