Page 1 of 1

fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Tue Sep 12, 2023 9:17 am
by NicolasGoudot
Hello on fresh install of ubuntu server 22.04 lts, package updated by aptitude safe-upgrade and lauch nagios xi install
twice launch i always have this: see below; the 162 port udp is denied but i've not firewall enable and nothing is running

a but in attachement the full install.log file, do you have a idea ? it seems the product is not compatible with ubuntu 22.04 during the install red style order is send to try set running level off snmptrap service

===============
SETUP COMPLETED
===============
### NAGIOS XI TRAP INTERFACE INSTALL SCRIPT ###
Getting and running snmptrap integration

========================================
Nagios XI SNMP Trap Support Installation
========================================


Installing Prerequisites

Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
libnet-snmp-perl est déjà la version la plus récente (6.0.1-6).
perl est déjà la version la plus récente (5.34.0-3ubuntu1.2).
snmptrapd est déjà la version la plus récente (5.9.1+dfsg-1ubuntu2.6).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

Download & installing supporting files


Updating snmptt.ini


Creating snmptrapd.conf


Adding the snmptt user to the nagios and nagcmd groups


Adding firewall rules

Unit iptables.service could not be found.

Set up the snmptt daemon to start automatically on boot
as well as starting it now


Set up the snmptrapd daemon to start automatically on boot
as well as starting it now

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start runlevel arguments (3 4 5) do not match snmptrapd Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match snmptrapd Default-Stop values (0 1 6)
Job for snmptrapd.service failed because the control process exited with error code.
See "systemctl status snmptrapd.service" and "journalctl -xeu snmptrapd.service" for details.

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Tue Sep 12, 2023 1:36 pm
by swolf
Hi @NicolasGoudot, thanks for reaching out. Since the installation script referenced it, what is the output of

Code: Select all

systemctl status snmptrapd.service
and

Code: Select all

journalctl -xeu snmptrapd.service
?

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Wed Sep 13, 2023 8:17 am
by NicolasGoudot
Hello Thanks for your answers.

Since i make a new fresh install base on ubuntu 20.04lts, and the script fullinstall work succesfull on it.

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Wed Sep 13, 2023 8:28 am
by NicolasGoudot
for answers to your questions

systemctl status snmptrapd.service
○ snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/lib/systemd/system/snmptrapd.service; static)
Active: inactive (dead)


and

journalctl -xeu snmptrapd.service
~
~
~
~
~
~
~
~
~
~
~
~
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
░░ Subject: L'unité (unit) snmptrapd.service a commencé à démarrer
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ L'unité (unit) snmptrapd.service a commencé à démarrer.
sept. 12 13:07:13 srvl-nagiosxi snmptrapd[68393]: couldn't open udp:162 -- errno 13 ("Permission denied")
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: snmptrapd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit snmptrapd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: snmptrapd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit snmptrapd.service has entered the 'failed' state with result 'exit-code'.
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
░░ Subject: L'unité (unit) snmptrapd.service a échoué
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ L'unité (unit) snmptrapd.service a échoué, avec le résultat failed.

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Wed Sep 13, 2023 8:29 am
by NicolasGoudot
and of course i dont have any firewall

root@srvl-nagiosxi:~# ufw status verbose
Status: inactive
root@srvl-nagiosxi:~# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

I just think that nagios xi is very paintful, i come from Zabbix which support lastest linux distribution

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Wed Nov 08, 2023 10:01 pm
by liamsmith
Check SNMPTrap Service Status:
Run the following command to check the status of the SNMPTrap service and gather more information about the errorwordle:

systemctl status snmptrapd.service

This will provide you with detailed information about why the SNMPTrap service is failing to start.

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Fri Nov 10, 2023 10:43 am
by swolf
Nagios XI does support Ubuntu 22.04, and most customers do not have trouble installing on that distribution. We recommend using a minimal installation for best results.

The output from systemctl indicates that another service or application is already listening on port 162. I would recommend starting from a minimal 22.04 image and running the install process again, without installing any other applications on the server.

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Sun Nov 19, 2023 9:44 pm
by willie34
NicolasGoudot wrote: Wed Sep 13, 2023 8:28 am for answers to your questions

systemctl status snmptrapd.service
○ snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/lib/systemd/system/snmptrapd.service; static)
Active: inactive (dead)


and

journalctl -xeu snmptrapd.service
~
~
~
~
~
~
~
~
~
~
~
~
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
░░ Subject: L'unité (unit) snmptrapd.service a commencé à démarrer
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ L'unité (unit) snmptrapd.service a commencé à démarrer.
sept. 12 13:07:13 srvl-nagiosxi snmptrapd[68393]: couldn't open udp:162 -- errno 13 ("Permission denied")
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: snmptrapd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit snmptrapd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: snmptrapd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit snmptrapd.service has entered the 'failed' state with result 'exit-code'.
sept. 12 13:07:13 srvl-nagiosxi systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
░░ Subject: L'unité (unit) snmptrapd.service a échoué
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ L'unité (unit) snmptrapd.service a échoué, avec le résultat failed.
It's very detailed, thank you for your answer

Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service

Posted: Fri Jan 05, 2024 3:46 am
by Mikasa23
You can run the following commands to check the status and logs of the SNMP Trap service: pokedoku

Code: Select all

systemctl status snmptrapd.service
journalctl -xeu snmptrapd.service