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 nagios3.old nagios3 --- nagios3.old 2009-04-27 11:04:18.000000000 +1000 +++ nagios3 2009-04-27 11:04:25.000000000 +1000 @@ -180,7 +180,7 @@ log_action_end_msg 1 "$DAEMON failed" exit 1 else - log_action_end_msg 0 "not running" + log_action_end_msg 1 "not running" exit 3 fi fi Now it does what I think it should: $ sudo /etc/init.d/nagios3 status * checking /usr/sbin/nagios3... [fail] (spaces between ... and [] were omitted for brevity) $ dpkg -l nagios3 ii nagios3 3.0.2-1ubuntu1.1 A host/service/network monitoring and management system Ubuntu 8.04 with latest updates. ** Affects: nagios3 (Ubuntu) Importance: Undecided Status: New -- /etc/init.d/nagios3 status returns 0 if nagios isn't running https://bugs.launchpad.net/bugs/367679 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nagios3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs