Direct Nagios log messages to a different file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Direct Nagios log messages to a different file

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Direct Nagios log messages to a different file

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked