When importing MIB files, I see that all snmptraps are defined with a default severity of Normal.
Is there a way to quickly (maybe not using the webinsterface) change the severity of a number of traps?
Change the severity of snmptraps
Change the severity of snmptraps
Rob Hassing


Re: Change the severity of snmptraps
Unfortunately no, it's a onsey-twosey kind of operation. 
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Change the severity of snmptraps
Hmm, I have 1744 traps defined, but all are of a Normal severity. But I think a lot of them should be changed to either Warning or Critical. Otherwise traps don't make sense if they are not alerting.
Rob Hassing


- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Change the severity of snmptraps
Are you using the SNMP Trap Interface to manage all of your traps? If yes then we may need to do an SQL query to bulk change them.
If you are using the standard SNMP configuration then it would be a matter of bulk editing /etc/snmp/snmptt.conf.
If you are using the standard SNMP configuration then it would be a matter of bulk editing /etc/snmp/snmptt.conf.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Change the severity of snmptraps
So the way to do it right now is to edit the config and re-import it.
Copy the current config file:
Then edit it as required.
Then run the import script so the changes are added back in:
At this point you would go into the SNMP Trap Interface > Advanced > Restore SNMPTT Configuration and it would be applied BUT that didn't work for me ... however simply de-activating a service and re-activating it did work for me.
Copy the current config file:
Code: Select all
cp /etc/snmp/snmptt.conf.nxti /tmp/snmptt.conf.nxtiThen run the import script so the changes are added back in:
Code: Select all
/usr/local/nagiosxi/scripts/nxti_import.php /tmp/snmptt.conf.nxtiAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.