Page 1 of 1

eventman.log: file truncated

Posted: Mon Aug 27, 2018 5:27 am
by nfv_nagios
Hi Support

I recently upgraded to Nagios XI 5.4.0.

I notice when i tail /usr/local/nagiosxi/var/eventman.log, i will get this "eventman.log: file truncated" message after a while. Can you advise what is causing this and is it impacting anything?


#tail -f /usr/local/nagiosxi/var/eventman.log

.....tail: eventman.log: file truncated
No log handling enabled - turning on stderr logging
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/rfc4293.mib)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt)
.
PROCESSED 9 EVENTS
tail: eventman.log: file truncated
No log handling enabled - turning on stderr logging
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/rfc4293.mib)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt)
.
PROCESSED 4 EVENTS

Re: eventman.log: file truncated

Posted: Mon Aug 27, 2018 7:24 am
by scottwilkerson
This log gets truncated every minute by cron when the next cron starts. This is normal.

Re: eventman.log: file truncated

Posted: Mon Aug 27, 2018 8:27 pm
by nfv_nagios
Hi Support

Can you advise which cron is doing this?
I need to keep the logs for debugging purpose.

Re: eventman.log: file truncated

Posted: Tue Aug 28, 2018 7:24 am
by scottwilkerson
nfv_nagios wrote:Hi Support

Can you advise which cron is doing this?
I need to keep the logs for debugging purpose.
The eventman.log just logs debug output while XI process events such as notifications, global event handlers, and snmp traps.

These logs older than the previous minute are generally never needed so at the top of each minute a new cron that processes the events gets kicked off and the output is redirected to this file, with >

If you look at the /etc/cron.d/nagiosxi you will see the cron jobs. If you want to keep all the logs (not recommended because they will devour your disk space) you can replace the > with >> to append to the file instead of overwrite.

Re: eventman.log: file truncated

Posted: Wed Sep 19, 2018 11:02 pm
by nfv_nagios
Thanks for the support. You may close this.

Re: eventman.log: file truncated

Posted: Thu Sep 20, 2018 7:17 am
by scottwilkerson
nfv_nagios wrote:Thanks for the support. You may close this.
Great.

Locking thread