Nagios Logging
Posted: Wed Feb 17, 2021 3:12 pm
I am writing this post in the search of guidance in regards to the logging capabilities of Nagios (Core v4.3.4, hosted on RHEL 7.4).
My specific question is relating to a configuration within Nagios itself, as I currently have two monitoring servers:
srv-nag-01
srv-nag-02
Within each Nagios server, I have a plethora of devices which are monitored (switches, firewalls, servers, etc...).
On srv-nag-01, I can see (in the archived logs (/var/log/nagios/archives/xxx.log)) the polled data from all devices, for every poll.
On srv-nag-02, I can see (in the archived logs (/var/log/nagios/archives/xxx.log)) only the polled data from services which have had a state change from the previous poll (ie; a web server went from 'OK' status to 'Warning' status), and only upon the state change.
My question is: Which configuration file, and which parameter should be modified on srv-nag-02 so that the polled data from every poll appears in the log file(s)?
The only inconsistency between both servers in /etc/nagios/nagios.cfg is the following:
On srv-nag-01, line 303 states: log_initial_states=1
On srv-nag-02, line 303 states: log_initial_states=0
Unfortunately, I will be unable to provide the configuration files, due to organizational policy, however, any/all help on this matter would be very much appreciated!
My specific question is relating to a configuration within Nagios itself, as I currently have two monitoring servers:
srv-nag-01
srv-nag-02
Within each Nagios server, I have a plethora of devices which are monitored (switches, firewalls, servers, etc...).
On srv-nag-01, I can see (in the archived logs (/var/log/nagios/archives/xxx.log)) the polled data from all devices, for every poll.
On srv-nag-02, I can see (in the archived logs (/var/log/nagios/archives/xxx.log)) only the polled data from services which have had a state change from the previous poll (ie; a web server went from 'OK' status to 'Warning' status), and only upon the state change.
My question is: Which configuration file, and which parameter should be modified on srv-nag-02 so that the polled data from every poll appears in the log file(s)?
The only inconsistency between both servers in /etc/nagios/nagios.cfg is the following:
On srv-nag-01, line 303 states: log_initial_states=1
On srv-nag-02, line 303 states: log_initial_states=0
Unfortunately, I will be unable to provide the configuration files, due to organizational policy, however, any/all help on this matter would be very much appreciated!