Nagios log file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Nagios log file

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios log file

Post 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.
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

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios log file

Post by mcapra »

Closing this per your request
Former Nagios employee
https://www.mcapra.com/
Locked