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!
Nagios Logging
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios Logging
HI @rexleonad94
Thanks for joining the Naigos Community Forum.
Looks like you might have state stalking enabled on the other server. This is set directly in the host or service object configurations.
State Stalking
Benjamin
Thanks for joining the Naigos Community Forum.
Looks like you might have state stalking enabled on the other server. This is set directly in the host or service object configurations.
State Stalking
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!