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

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

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

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
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: snmptt was not able to run the nxti trap handling script

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
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: snmptt was not able to run the nxti trap handling script

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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
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: snmptt was not able to run the nxti trap handling script

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked