Score:0

Nagios SNMPTT trap Logs issues

us flag

I had a quick question regarding the nagios snmptt trap logs. The traps arent coming through in the snmptt.log with proper date..its stuck on May 17th..

it has logs for all days till May 17.. It is still processing TODAY's snmptt trap logs as 17th may .

the time (16:33:39) keeps on changing , but date (Mon May 17) remains the same.

example:

tail -f snmptt.log

Mon May 17 16:33:39 2021 .1.3.6.1.4.1.2011.2.15.2.4.3.3.0.1 Normal "Status Events" m2000 - 34177514 1 2021-05-17 16:30:53 Stoco Lake Site 2 - Centre Hastings - 10.201.92.19 2 8200 NE=925 9502 25888 4 2 2 2 Link No.=70011, Description=eNodeB:MCC_302 MNC_131 eNodeBId_26041, Peer IP Address=172.27.79.11, Service Type=X2-AP SCTP Link Fault 0 1 0 0 RAT_INFO=L, AFFECTED_RAT=L, DID=NULL, Cumulative Duration(s)=90, eNodeBId=25691 Mon May 17 16:33:39 2021 .1.3.6.1.4.1.2011.2.15.2.4.3.3.0.1 Normal "Status Events" m2000 - 34177513 1 2021-05-17 16:30:54 Stoco Lake Site 6 - Flinton Road - 10.201.92.14 2 8200 NE=1855 2213 25888 4 2 2 2 Link No.=70015, Description=eNodeB:MCC_302 MNC_131 eNodeBId_26041, Peer IP Address=172.27.79.11, Service Type=X2-AP SCTP Link Fault 0 1 0 0 RAT_INFO=L, AFFECTED_RAT=L, DID=NULL, Cumulative Duration(s)=90, eNodeBId=24061

The server's date and time is correct. I didnt see any issue there.

I checked snmptt.ini and /etc/sysconfig/snmptt.conf and snmptrapd files there, nothing changed there.

I checked the check_submit_result. Its processing

cmdline="[$datetime] PROCESS_SERVICE_CHECK_RESULT;$HOSTNAME;$ALARM$CELLID;$STATE;$4" TO /usr/local/nagios/var/rw/nagios.cmd

and usr/local/nagios/var/rw/nagios.cmd is pipe file. not a regular file.

where datetime=date +%s is current epoch time, I ran this to a temp file, it comes through with current date and time.

scratching my head trying to figure this out..

Any help is appreciated.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.