check_status_file nagios check marks services as not running when they are
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
charmhelpers installs /usr/local/
sudo service apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.
Drop-In: /lib/systemd/
Active: active (running) since Thu 2016-10-06 04:04:22 UTC; 17h ago
Docs: man:systemd-
Tasks: 54
Memory: 6.3M
CPU: 25.849s
CGroup: /system.
├─ 442 /usr/sbin/apache2 -k start
├─10073 /usr/sbin/apache2 -k start
└─10074 /usr/sbin/apache2 -k start
Oct 06 04:04:33 juju-82d66b-0-lxd-0 apache2[2530]: *
Oct 06 04:04:33 juju-82d66b-0-lxd-0 systemd[1]: Reloaded LSB: Apache2 web server.
Oct 06 04:20:47 juju-82d66b-0-lxd-0 systemd[1]: Reloading LSB: Apache2 web server.
Oct 06 04:20:47 juju-82d66b-0-lxd-0 apache2[8415]: * Reloading Apache httpd web server apache2
Oct 06 04:20:47 juju-82d66b-0-lxd-0 apache2[8415]: *
Oct 06 04:20:47 juju-82d66b-0-lxd-0 systemd[1]: Reloaded LSB: Apache2 web server.
Oct 06 04:20:56 juju-82d66b-0-lxd-0 systemd[1]: Reloading LSB: Apache2 web server.
Oct 06 04:20:56 juju-82d66b-0-lxd-0 apache2[10057]: * Reloading Apache httpd web server apache2
Oct 06 04:20:56 juju-82d66b-0-lxd-0 apache2[10057]: *
Oct 06 04:20:56 juju-82d66b-0-lxd-0 systemd[1]: Reloaded LSB: Apache2 web server.
This causes the nagios check to fail. Affected charms are glance, nova, keystone, horizon, neutron, and basically anything running haproxy or apache2.
The output of a juju deployed nagios is:
CRITICAL 2016-10-06 21:33:22 0d 17h 38m 57s 4/4 /etc/init.d/apache2 CRITICAL - ● apache2.service - LSB: Apache2 web server
Related branches
- charmers: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedcharmhelpers/contrib/charmsupport/nrpe.py (+1/-1)
- Stuart Bishop (community): Approve
- charmers: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedcharmhelpers/contrib/charmsupport/nrpe.py (+1/-1)
Changed in charm-helpers: | |
status: | New → Fix Committed |
Changed in charm-helpers: | |
status: | Fix Committed → Fix Released |
it is missing the -e flag: lib/nagios/ plugins/ check_exit_ status. pl -s /etc/init.d/mysql status > /var/lib/ nagios/ service- check-mysql. txt
*/5 * * * * root /usr/local/
should be: lib/nagios/ plugins/ check_exit_ status. pl -e -s /etc/init.d/mysql status > /var/lib/ nagios/ service- check-mysql. txt
*/5 * * * * root /usr/local/