stop Nagios from using syslog

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

stop Nagios from using syslog

Post by hbouma »

I already updated my nagios.cfg to use_syslog=0, but I still see ndo2db logs in my /var/log/messages file.

Is there anything that can be done to prevent all nagios programs from logging to /var/log/messages?

I am on Nagios XI 5.6.10 on RHEL 7 VMs.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: stop Nagios from using syslog

Post by ssax »

If you're talking about these messages:

Code: Select all

May 28 15:01:05 xid ndo2db: Trimming timedevents.
May 28 15:01:05 xid ndo2db: Trimming systemcommands.
May 28 15:01:05 xid ndo2db: Trimming servicechecks.
May 28 15:01:05 xid ndo2db: Trimming hostchecks.
May 28 15:01:05 xid ndo2db: Trimming eventhandlers.
These are hardcoded in the sourcecode here:

https://github.com/NagiosEnterprises/nd ... /db.c#L616

Your only option would be to modify the source code and recompile ndo2db/ndoutils to remove them. If you decide to do that, make sure you use the same version you're currently running (latest is 2.1.3):

Code: Select all

/usr/local/nagios/bin/ndo2db -V
The good news is that NDO2DB is being rebuilt entirely for XI 5.7 (coming in the next couple months) and those aren't in the code so you shouldn't see them after you upgrade to XI 5.7 (once it is released).
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: stop Nagios from using syslog

Post by hbouma »

That was all I needed.

Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: stop Nagios from using syslog

Post by scottwilkerson »

hbouma wrote:That was all I needed.

Thanks.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked