NAGIOS XI SNMP TRAP PROBLEM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zzbouabsa
Posts: 7
Joined: Wed Apr 22, 2015 8:33 am

NAGIOS XI SNMP TRAP PROBLEM

Post by zzbouabsa »

Helo,
SNMP TRAP Alernts are not working in NAGIOSXI, i installed NSTI tool, it is working fine.
I dont know how to debug this problem .Help pleez.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NAGIOS XI SNMP TRAP PROBLEM

Post by ssax »

Did you install NSTI on the same server as XI?
zzbouabsa
Posts: 7
Joined: Wed Apr 22, 2015 8:33 am

Re: NAGIOS XI SNMP TRAP PROBLEM

Post by zzbouabsa »

ssax wrote:Did you install NSTI on the same server as XI?
Yes in the same server
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NAGIOS XI SNMP TRAP PROBLEM

Post by ssax »

Please post the relevant trap from your /etc/snmp/snmptt.conf file.
zzbouabsa
Posts: 7
Joined: Wed Apr 22, 2015 8:33 am

Re: NAGIOS XI SNMP TRAP PROBLEM

Post by zzbouabsa »

Hello i think i found the source of the problem in have to configure snmptt.conf file like this

Code: Select all

EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Critical
FORMAT Link down on interface $1.  Admin state: $2.  Operational state: $3
#EXEC qpage -f TRAP notifygroup1 "Link down on interface $1.  Admin state: $2.  Operational state: $3"
EXEC /usr/local/nagios/libexec/submit_check_result/submit_check_result  $r 
SDESC
A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state).  This other state is indicated by the included value
of ifOperStatus.
EDESC
the is no file named submit_check_result so i download one from sourceforg

i still not receaving notification in webinterface

snmptt is orking but the problem know is nagiosxi
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NAGIOS XI SNMP TRAP PROBLEM

Post by ssax »

Did you follow this guide for setting up SNMP traps on Nagios XI?

http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

You would need to use the addmib command to process the MIB files for snmptt so that it replaces the exec line with the one used to put it into XI.

Here is an example of one that has been processed so you can see the differences.

Code: Select all

EVENT leoLogWarning .1.3.6.1.4.1.18102.0.3 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
SDESC

This trap is sent when a warning is logged
Variables:
  1: leoUUID
  2: leoMessage
EDESC
What process did you use to add those to snmptt?
Locked