Page 1 of 1
stop Nagios from using syslog
Posted: Thu May 28, 2020 8:39 am
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.
Re: stop Nagios from using syslog
Posted: Thu May 28, 2020 3:29 pm
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):
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).
Re: stop Nagios from using syslog
Posted: Thu May 28, 2020 3:33 pm
by hbouma
That was all I needed.
Thanks.
Re: stop Nagios from using syslog
Posted: Fri May 29, 2020 8:48 am
by scottwilkerson
hbouma wrote:That was all I needed.
Thanks.
Great!
Locking thread