Page 1 of 1
Nagios log file
Posted: Mon Aug 01, 2016 9:39 pm
by raamardhani7
Hi Team,
Is there any way where we can write the log entries of Nagios to some other file other than /var/log/messages? Please advise. thanks.
Re: Nagios log file
Posted: Mon Aug 01, 2016 10:34 pm
by Box293
They are already written to /usr/local/nagios/var/nagios.log.
The entry use_syslog=1 in nagios.cfg is what is causing them to also appear in /var/log/messages.
Go into Core Configuration Manager
Advanced > Nagios Core Main Config
Change the setting to: use_syslog=0
Click Save
Click the Admin menu tab
Under "XI System Component Status" use the gear icon for the "Monitoring Engine" to restart it.
Re: Nagios log file
Posted: Thu Aug 04, 2016 8:45 am
by raamardhani7
Box293 wrote:They are already written to /usr/local/nagios/var/nagios.log.
The entry use_syslog=1 in nagios.cfg is what is causing them to also appear in /var/log/messages.
Go into Core Configuration Manager
Advanced > Nagios Core Main Config
Change the setting to: use_syslog=0
Click Save
Click the Admin menu tab
Under "XI System Component Status" use the gear icon for the "Monitoring Engine" to restart it.
Hi Box,
thanks a lot for your help. we can close this thread now.
Re: Nagios log file
Posted: Thu Aug 04, 2016 9:10 am
by mcapra
Closing this per your request