Page 1 of 1

SNMP Trap setup for Nutanix cluster

Posted: Tue Mar 31, 2020 3:21 am
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.

Re: SNMP Trap setup for Nutanix cluster

Posted: Tue Mar 31, 2020 12:25 pm
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

Re: SNMP Trap setup for Nutanix cluster

Posted: Tue Mar 31, 2020 3:54 pm
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.

Re: SNMP Trap setup for Nutanix cluster

Posted: Wed Apr 01, 2020 12:35 pm
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!