Page 2 of 2

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Posted: Tue Apr 07, 2020 8:40 am
by titien104
[root@1098502-tlnag01 ~]# netstat -nlp | grep 162
udp 0 0 0.0.0.0:162 0.0.0.0:* 2727/nimbus(snmptd)
[root@1098502-tlnag01 ~]# netstat -nlp | grep 161
udp 0 0 127.0.0.1:161 0.0.0.0:* 20230/snmpd
unix 2 [ ACC ] STREAM LISTENING 16146 1/systemd /run/lvm/lvmetad.socket
unix 2 [ ACC ] STREAM LISTENING 16149 1/systemd /run/lvm/lvmpolld.socket
[root@1098502-tlnag01 /]# vi /usr/lib/systemd/system/snmptrapd.service
[Unit]
Description=Simple Network Management Protocol (SNMP) Trap Daemon.
After=syslog.target network-online.target

[Service]
Type=notify
Environment=OPTIONS="-Ln"
EnvironmentFile=-/etc/sysconfig/snmptrapd
ExecStart=/usr/sbin/snmptrapd $OPTIONS -f
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Posted: Tue Apr 07, 2020 10:20 am
by lmiltchev
[root@1098502-tlnag01 ~]# netstat -nlp | grep 162
udp 0 0 0.0.0.0:162 0.0.0.0:* 2727/nimbus(snmptd)
I am not familiar with "nimbus", but it seems like it is listening on port 162. You cannot have two things listening on the same port... You will have to remove nimbus from your system, and try restarting snmptrap again.

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Posted: Tue Apr 07, 2020 12:51 pm
by titien104
I need to remove nimbus snmp service out to avoid the conflict on upd 162
/opt/Nimsoft/bin/niminit stop
/opt/Nimsoft/bin/inst_init.sh remove

Re: Installation Error-Requires: perl-Net-SNMP, php-imap etc

Posted: Tue Apr 07, 2020 2:00 pm
by lmiltchev
Let us know if you are able to start snmptrapd service after removing nimbus. Thank you!