NXTI - SNMP not alerting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

NXTI - SNMP not alerting

Post by sib »

Hi

Since the upgrade to 5.5.2 and the usage of nxti I cannot manage to alert on snmp traps. Maybe I am missing something here

- When a SNMP trap arrives it shows in the SNMP Trap Interface
- The snmp is in the snmptt.log
- The "One Click System Test" succeeds

-- snippet from the snmp log

Code: Select all

Wed Sep 19 08:58:28 2018 .1.3.6.1.4.1.25597.11.1.0.7 Normal "Status Events" abngs176 - Received trap "feLogin" with variables "enterprises.25597.11.1.1.23:mc001660 enterprises.25597.11.1.1.26:admin enterprises.25597.11.1.1.27:07 E2 09 13 08 3A 1C 08  enterprises.25597.11.1.1.28:10.5.21.57 enterprises.25597.11.1.1.29:1 enterprises.25597.11.1.1.30:10.5.21.57 enterprises.25597.11.1.1.32:cli enterprises.25597.11.1.1.33:CLI enterprises.25597.11.1.1.34:16080402 enterprises.25597.11.1.1.35:07 E2 09 13 08 3A 1C 08  enterprises.25597.11.1.1.36:ldap enterprises.25597.11.1.1.37:1 enterprises.25597.11.1.1.39:admin"
I created a snmp trap service for that specific host

Code: Select all

define service {
    host_name                 abngs176
    service_description       SNMP Traps
    use                       xiwizard_snmptrap_service
    check_command             check_dummy!0!'Reset Trap Receiver'!!!!!!
    initial_state             u
    max_check_attempts        1
    check_interval            1
    retry_interval            1
    active_checks_enabled     1
    passive_checks_enabled    1
    check_period              xi_timeperiod_24x7
    event_handler_enabled     1
    notification_interval     0
    notification_period       xi_timeperiod_24x7
    contacts                  nd002854,qu001660
    icon_image                snmptrap.png
    _xiwizard                 snmp_trap
    register                  1
}
I do not see any entries in /usr/local/nagios/var/nagios.log except for the dummy check that resets the trap

Code: Select all

# grep -i abngs176 /usr/local/nagios/var/nagios.log
[1537308000] CURRENT HOST STATE: abngs176;UP;HARD;1;OK - 10.39.46.176: rta 1.627ms, lost 0%
[1537308000] CURRENT SERVICE STATE: abngs176;SNMP Traps;OK;HARD;1;OK: Reset Trap Receiver
this is what I found in the ssl_error_log

Code: Select all

[Wed Sep 19 09:14:17.473569 2018] [:error] [pid 7450] [client 10.5.21.59:50487] PHP Notice:  Undefined variable: restart in /usr/local/nagiosxi/html/includes/components/nxti/index.php on line 0, referer: https://lbnss1239/nagiosxi/includes/components/nxti/index.php
[Wed Sep 19 09:14:25.254422 2018] [:error] [pid 12114] [client 10.5.21.59:50488] PHP Notice:  Undefined variable: restart in /usr/local/nagiosxi/html/includes/components/nxti/index.php on line 0, referer: https://lbnss1239/nagiosxi/includes/components/nxti/index.php
What am I missing?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NXTI - SNMP not alerting

Post by ssax »

Please run this command and post the resulting /tmp/SNMPFILES.zip file:

Code: Select all

zip -r /tmp/SNMPFILES.zip /etc/snmp /var/log/snmptt /usr/share/snmp/mibs
Thank you
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NXTI - SNMP not alerting

Post by tgriep »

Is the Trap or traps in question new to the Nagios server?
The first time a new trap is received, it has to be configured and to to that, go to the Admin > Unconfigured Objects menu.
Do you see the traps there?

If you created a Trap definition in the NXTI menu but did not setup the Passive Service section for the trap.
The settings in that section are the configurations that pass traps to the XI GUI so make sure they are setup.
The this link are the instructions for using the NXTI interface.
https://assets.nagios.com/downloads/nag ... h-NXTI.pdf

Take a look at the document and if you have any questions, post them here.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: NXTI - SNMP not alerting

Post by sib »

ssax wrote:Please run this command and post the resulting /tmp/SNMPFILES.zip file:

Code: Select all

zip -r /tmp/SNMPFILES.zip /etc/snmp /var/log/snmptt /usr/share/snmp/mibs
Thank you
Attached
SNMPFILES.zip
tgriep wrote:Is the Trap or traps in question new to the Nagios server?
The first time a new trap is received, it has to be configured and to to that, go to the Admin > Unconfigured Objects menu.
Do you see the traps there?

If you created a Trap definition in the NXTI menu but did not setup the Passive Service section for the trap.
The settings in that section are the configurations that pass traps to the XI GUI so make sure they are setup.
The this link are the instructions for using the NXTI interface.
https://assets.nagios.com/downloads/nag ... h-NXTI.pdf

Take a look at the document and if you have any questions, post them here.
Hi. Thanks I will read through the document. Looks like it is a bit different to the old way of doing it.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NXTI - SNMP not alerting

Post by tgriep »

Yes, it is a bit different using that interface. It gives you the ability to customize the traps in the GUI, before you have to edit the config files manually, you can still do that if you like.

But, I did look at the config files and the specific OID you are receiving and like I thought, the Passive Service section is not filled in so you will have to do that.
Look at page 6 of the document.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked