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.
Nagios log file
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios log file
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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
raamardhani7
- Posts: 459
- Joined: Tue Jun 02, 2015 12:36 am
Re: Nagios log file
Hi Box,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.
thanks a lot for your help. we can close this thread now.