Page 1 of 1
Direct Nagios log messages to a different file
Posted: Wed Mar 06, 2019 3:02 pm
by vmesquita
Would it be possible to direct Nagios log messages to a different files instead of /var/log/messages? Nagios can be quite "verbose" sometimes and that makes it hard to find non-nagios related problems in a server, for instance.
Re: Direct Nagios log messages to a different file
Posted: Wed Mar 06, 2019 3:36 pm
by cdienger
The default nagios log is /usr/local/nagios/var/nagios.log and optionally(defaulted to on) you can send the same info to syslog(/var/log/messages). Disabling this done by editing nagios.cfg(Configure > Core Config Manager > CCM Admin > Core Configs) and changing "use_syslog=1" to "use_syslog=0" and then applying the changes.