SNMP Trap setup script is failing
Posted: Sun May 19, 2019 6:43 pm
Hi All,
We did offline install of Nagios XI v5.6.1. After the install we see snmptt service is running and there were config files under /etc/snmp directory. After loading a mib, we see data showing up in /var/log/snmptt/snmptt.log, but we noticed the number of traps shown in snmptt.log is not matching with the traps shown under Home > Notifications window. Notifications window is having less number of traps than shown in the snmptt.log. we see below message when we restart the snmptt service.
========
Mon May 20 09:21:51 2019 SNMPTT v1.4beta2 shutdown
Mon May 20 09:21:51 2019 Total traps received=84832,Total traps translated=6059,Total traps ignored=0,Total unknown traps=78773
Mon May 20 09:21:51 2019 SNMPTT v1.4beta2 started
Mon May 20 09:21:51 2019 Loading /etc/snmp/snmptt.conf
Mon May 20 09:21:51 2019 Finished loading 69 lines from /etc/snmp/snmptt.conf
Mon May 20 09:21:51 2019 Loading /etc/snmp/snmptt.conf.nxti
Mon May 20 09:21:51 2019 Finished loading 431 lines from /etc/snmp/snmptt.conf.nxti
Mon May 20 09:21:51 2019 Could not convert user id 'snmptt' to a numeric UID
====
[zzz@asdf/etc/snmp]$ id snmptt
id: snmptt: no such user
[zzz@asdf/etc/snmp]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
=======
we understand reason for the warning is because the snmptt user is not created as above, so we tried to run NagiosXI-SNMPTrap-setup.sh(because this is script that creates snmptt user as per SNMP Trap config document) and getting below error,
==
Error: nagiosxi-nxti conflicts with snmptt-1.4-0.9.beta2.el7.noarch
==
after debubbing the script we noticed its failing at line 49 - yum install snmptt net-snmp-perl -y
Could you please advise how to fix this error? Thanks in advance for your responses.
We did offline install of Nagios XI v5.6.1. After the install we see snmptt service is running and there were config files under /etc/snmp directory. After loading a mib, we see data showing up in /var/log/snmptt/snmptt.log, but we noticed the number of traps shown in snmptt.log is not matching with the traps shown under Home > Notifications window. Notifications window is having less number of traps than shown in the snmptt.log. we see below message when we restart the snmptt service.
========
Mon May 20 09:21:51 2019 SNMPTT v1.4beta2 shutdown
Mon May 20 09:21:51 2019 Total traps received=84832,Total traps translated=6059,Total traps ignored=0,Total unknown traps=78773
Mon May 20 09:21:51 2019 SNMPTT v1.4beta2 started
Mon May 20 09:21:51 2019 Loading /etc/snmp/snmptt.conf
Mon May 20 09:21:51 2019 Finished loading 69 lines from /etc/snmp/snmptt.conf
Mon May 20 09:21:51 2019 Loading /etc/snmp/snmptt.conf.nxti
Mon May 20 09:21:51 2019 Finished loading 431 lines from /etc/snmp/snmptt.conf.nxti
Mon May 20 09:21:51 2019 Could not convert user id 'snmptt' to a numeric UID
====
[zzz@asdf/etc/snmp]$ id snmptt
id: snmptt: no such user
[zzz@asdf/etc/snmp]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
=======
we understand reason for the warning is because the snmptt user is not created as above, so we tried to run NagiosXI-SNMPTrap-setup.sh(because this is script that creates snmptt user as per SNMP Trap config document) and getting below error,
==
Error: nagiosxi-nxti conflicts with snmptt-1.4-0.9.beta2.el7.noarch
==
after debubbing the script we noticed its failing at line 49 - yum install snmptt net-snmp-perl -y
Could you please advise how to fix this error? Thanks in advance for your responses.