In my configuration, alerts are enabled.
yet somehow; every time i reboot my nagios cluster, it re-disables-notifications on a handful of services.
Oh Nagios Gods, what have I done to offend thee?? I disable these via the web interface, but low and behold every time i change config and reload nagios, bloop! back to disabled they come.
Getting angry. Please help; i wise ones of Serverfault. I'm out of ideas. >.<
Ubuntu 10.04.2 LTS
Nagios Core 3.2.0
Apache/2.2.14 (Ubuntu)
NagiosQL 3.1.1
It is probably the permissions on your state file, make sure the nagios user has write privs on it.
To find it,
grep state_retention_file /usr/local/nagios/etc/nagios.cfg
, or wherever your nagios.cfg is.I believe you might want to look at the following option in your nagios.cfg file.
# USE RETAINED PROGRAM STATE
# This setting determines whether or not Nagios will set
# program status variables based on the values saved in the
# retention file. If you want to use retained program status
# information, set this value to 1. If not, set this value
# to 0.
use_retained_program_state=1
----AND ----
# RETAIN STATE INFORMATION
# This setting determines whether or not Nagios will save state
# information for services and hosts before it shuts down. Upon
# startup Nagios will reload all saved service and host state
# information before starting to monitor. This is useful for
# maintaining long-term data on state statistics, etc, but will
# slow Nagios down a bit when it (re)starts. Since its only
# a one-time penalty, I think its well worth the additional
# startup delay.
retain_state_information=1