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.
stop Nagios from using syslog
Re: stop Nagios from using syslog
If you're talking about these messages:
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).
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.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 -VRe: stop Nagios from using syslog
That was all I needed.
Thanks.
Thanks.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: stop Nagios from using syslog
Great!hbouma wrote:That was all I needed.
Thanks.
Locking thread