SNMP Trap setup for Nutanix cluster

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ets_user
Posts: 78
Joined: Mon Mar 30, 2020 2:50 am

SNMP Trap setup for Nutanix cluster

Post by ets_user »

Hi,

We are using 5 Nutanix clusters in our environment which has around 50 hosts.

We would like to monitor and catch the SNMP traps sent by the cluster.

Steps done:
Added nutanix mib file in NTXI admin->mib.
Added the trap definition in snmptt.conf file and verified the events are added.
Added the host in config wizard->snmp trap interface.

But still we are not seeing any traps being received in Nagios XI or the snmptt log files.

Kindly clarify on the same and if provide with any documentation to be followed.

Thanks.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: SNMP Trap setup for Nutanix cluster

Post by mbellerue »

The first thing to check is to make sure that the traps are actually making it to the server. Can you run this command, and send in /tmp/output.pcap that it generates, as well as the IP address you expect the trap to be coming from?

Code: Select all

tcpdump -i 'any' -w /tmp/output.pcap udp port 162
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ets_user
Posts: 78
Joined: Mon Mar 30, 2020 2:50 am

Re: SNMP Trap setup for Nutanix cluster

Post by ets_user »

I tried to take the dump to a file and clicked on Send test trap.

I was getting some output in the file as i can see the size increasing and date of creation.

But still i cannot see the traps in SNMP Trap interface -> Received trap sections.

I would like to make sure this works before I try to send any trap from my Nutanix cluster.

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Trap setup for Nutanix cluster

Post by ssax »

What version of XI are you using? You can grab it from the bottom left hand side of the web interface.

Did you restart SNMPTT after making the changes to the snmptt.conf?

Code: Select all

service snmptt restart
Do you see them being put in the spool directory?

Code: Select all

watch -n1 ls -l /var/spool/snmptt | wc -l
Please run this command and send me the resulting /tmp/SNMPFILES.zip file:

Code: Select all

zip -r /tmp/SNMPFILES.zip /etc/snmp /usr/share/snmp/mibs
That should give us the things we need.

Do you see traps coming into any of the /var/log/snmptt logs? (Please send us what you see)

Code: Select all

tail -n30 /var/log/snmptt/*
Thank you!
Locked