Nagiosxi SNMP TRAP - Service State Histor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
saleemthupsee
Posts: 107
Joined: Wed Feb 15, 2017 4:22 am
Location: Paris France
Contact:

Nagiosxi SNMP TRAP - Service State Histor

Post by saleemthupsee »

Hello,

Since I have purchase the license of NagiosXI for 100 hosts, and inserted the license, the Service State History of the "SNMP trap" has stopped all logging of traps that are received. Is there a way to test why this behaviour is occuring in the graphic interface ? I have tested the files that SNMPTT uses, the SNMPTT log files are properly receiving the traps and processing it. I had a modified version of SNMPtraphandling.py that was working properly before the license insert. Is that anything to do with moving from an evaluation ? Is there a way to test proper execution of SNMTRAPHANDLING.PY to log its execution and a way to know why the Service State History has stopped recording. (OTher wise i do see the last trap errors as they arrive in Nagios XI. The rest is mosly lost, unless i go to check in the snmtt.log files.

That would be much appreciated so that i can see the errors in the Alert History Timeline Report

Cheers;
Saleem
Saleem THUPSEE
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagiosxi SNMP TRAP - Service State Histor

Post by avandemore »

the Service State History of the "SNMP trap" has stopped all logging of traps that are received.
Can you please elborate on exactly how you reached this conclusion? Have confirmed all the steps? The sending of the trap, the reception of the trap, the processing of the trap, the submission of the trap to Core, Core's processing of the trap. Please provide details on these.
Previous Nagios employee
saleemthupsee
Posts: 107
Joined: Wed Feb 15, 2017 4:22 am
Location: Paris France
Contact:

Re: Nagiosxi SNMP TRAP - Service State Histor

Post by saleemthupsee »

Hello, i did confirm all the steps once more today. I did a manual check using the snmptraphandling.py and noticed that one variable was not set properly which was causing the chain in NagiosXI to not update properly. (The global variable serverity in the script one line was mistyped ). execution of the .py script blank (i.e typing ./snmpttraphandling.py) when changed does provide programming syntax errors but no errors when global variables are not declared. Its only upon providing all parameters to the ./snmptraphandling.py that the script provides info on the command line that global variables do not exist. (which was a typo on my part).

All is now resolved regading the SNMPTRAP in NAgiosXI.

On a side note, i had to modify the original snmptraphandling.py in NagiosXI to match "OK" when using NagioslogServer to send traps to NagiosXI for NAGIOSXI to store it in the State History, otherwise NagiosXI displays only the last status and does not store it in the State History of the SNMP trap service.

All these issues are solved "Avandemore" and the thread can be closed or archived.

No need to mention that it had nothing to do with upgrading from the unlicensed to the licensed version.

Best regards,
Saleem
Saleem THUPSEE
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagiosxi SNMP TRAP - Service State Histor

Post by avandemore »

Thanks for using Nagios! If you have further issues, please open a new thread or ticket.
Previous Nagios employee
Locked