Page 1 of 1

snmptt was not able to run the nxti trap handling script and

Posted: Tue Mar 31, 2020 4:06 am
by ets_user
Hi,

I a getting below error in my XI interface.

snmptt was not able to run the nxti trap handling script and traps not added to database

I have added example trap and tried to send test trap but did not receive any traps.

Both my snmptt and snmptrapd process are up and running.

Thanks.

Re: snmptt was not able to run the nxti trap handling script

Posted: Tue Mar 31, 2020 1:48 pm
by tgriep
Lets make sure the owner and permissions are set on the files and folders by running the following as root.

Code: Select all

chown snmptt:nagios /etc/snmp/nagios-check-storage
chown root:nagios /etc/snmp/snmptt.conf /etc/snmp/snmptt.conf.nxti /etc/snmp /usr/local/bin/addmib
chown nagios:nagios /usr/local/nagiosxi/var/NXTI_Write_Test /etc/snmp/snmptt.ini
chown -R snmptt:snmptt /var/spool/snmptt /var/log/snmptt
chmod 0664 /etc/snmp/nagios-check-storage
chmod 664 /etc/snmp/snmptt_nxti.bak
chmod 664 /etc/snmp/snmptt.conf.nxti
chmod 666 /usr/local/nagiosxi/var/NXTI_Write_Test
chmod 664 /etc/snmp/snmptt.conf
chmod -R g+w /etc/snmp
chmod g+x /usr/local/bin/addmib
chmod -R ug+w /var/spool/snmptt /var/log/snmptt
chmod g-w /var/log/snmptt
chmod g+w /var/lib/net-snmp -R
Restart the snmptrapd and the snmptt daemons so they can access the files.

Test to see if the error message is gone now in the XI interface.

Re: snmptt was not able to run the nxti trap handling script

Posted: Tue Mar 31, 2020 3:47 pm
by ets_user
Hi,

I tried the below commands.

All commands are success except below.
[root@nagios-srvr ~]# chown snmptt:nagios /etc/snmp/nagios-check-storage
chown: cannot access â/etc/snmp/nagios-check-storageâ: No such file or directory
[root@nagios-srvr ~]# chmod 0664 /etc/snmp/nagios-check-storage
chmod: cannot access â/etc/snmp/nagios-check-storageâ: No such file or directory

Then i restarted both snmptt and snmptrapd process.

Tried to run One Click Systems Test but still the same error.
4/9 snmptt was not able to run the nxti trap handling script and traps not added to database

Thanks.

Re: snmptt was not able to run the nxti trap handling script

Posted: Tue Mar 31, 2020 4:04 pm
by tgriep
There were a few bugs running the One Click System Test in the SNMP Trap Interface in older versions of XI so it was removed from the system.
You should upgrade your server to the latest version of XI and use the updated system to configure SNMP Traps.

Re: snmptt was not able to run the nxti trap handling script

Posted: Tue Mar 31, 2020 4:19 pm
by ets_user
We have currently 5.5.6 version installed.

Does this version not supporting the SNMP traps.

In that case could you please provide me the steps to upgrade to a latest version.

Thanks.

Re: snmptt was not able to run the nxti trap handling script

Posted: Tue Mar 31, 2020 4:44 pm
by tgriep
Yes, that version supported Traps but the SNMP Trap Interface had some bugs so the upgrade should be done.
The "One Click System Test" had issues.
Follow these instructions to update the server.
https://assets.nagios.com/downloads/nag ... ctions.pdf

Re: snmptt was not able to run the nxti trap handling script

Posted: Wed Apr 01, 2020 12:18 am
by ets_user
Thank you.

We will plan for upgrading to latest version.

Do we need to take backup of configuration file and database before upgrading?

Otherwise will it be just a running upgrade.

Re: snmptt was not able to run the nxti trap handling script

Posted: Wed Apr 01, 2020 11:45 am
by tgriep
No, you should not need to do a backup as the settings will be preserved but do one anyways to have a backup in case it is needed.