Can you please point out what exactly i have to check in nagios.cfg?
Here are the nagios.cfg file variable values…
This is where the current status of all monitored services and
hosts is stored. Its contents are read and processed by the CGIs.
The contents of the status file are deleted every time Nagios
AGGREGATED STATUS UPDATES
This option determines whether or not Nagios will
aggregate updates of host, service, and program status
data. Normally, status data is updated immediately when
a change occurs. This can result in high CPU loads if
you are monitoring a lot of services. If you want Nagios
to only refresh status data every few seconds, disable
Values: 1 = enable aggregate updates, 0 = disable aggregate updates
AGGREGATED STATUS UPDATE INTERVAL
Combined with the aggregate_status_updates option,
this option determines the frequency (in seconds!) that
Nagios will periodically dump program, host, and
service status data. If you are not using aggregated
status data updates, this option has no effect.
These options control how much time Nagios will allow various
types of commands to execute before killing them off. Options
are available for controlling maximum time allotted for
service checks, host checks, event handlers, notifications, the
ocsp command, and performance data commands. All values are in
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
STATE RETENTION FILE
This is the file that Nagios should use to store host and
service state information before it shuts down. The state
information in this file is also read immediately prior to
starting to monitor the network when Nagios is restarted.
This file is used only if the preserve_state_information
variable is set to 1.
RETENTION DATA UPDATE INTERVAL
This setting determines how often (in minutes) that Nagios
will automatically save retention data during normal operation.
If you set this value to 0, Nagios will not save retention
data at regular interval, but it will still save retention
data before shutting down or restarting. If you have disabled
state retention, this option has no effect.
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
USE RETAINED SCHEDULING INFO
This setting determines whether or not Nagios will retain
the scheduling info (next check time) for hosts and services
based on the values saved in the retention file. If you
If you want to use retained scheduling info, set this
value to 1. If not, set this value to 0.