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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
NicolasGoudot
Posts: 4
Joined: Tue Sep 12, 2023 9:07 am

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

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
swolf
Developer
Posts: 302
Joined: Tue Jun 06, 2017 9:48 am

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

Post 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
?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy
NicolasGoudot
Posts: 4
Joined: Tue Sep 12, 2023 9:07 am

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

Post 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.
NicolasGoudot
Posts: 4
Joined: Tue Sep 12, 2023 9:07 am

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

Post 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.
NicolasGoudot
Posts: 4
Joined: Tue Sep 12, 2023 9:07 am

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

Post 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
liamsmith
Posts: 1
Joined: Wed Nov 08, 2023 9:51 pm

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

Post 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.
User avatar
swolf
Developer
Posts: 302
Joined: Tue Jun 06, 2017 9:48 am

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy
willie34
Posts: 6
Joined: Wed Jul 05, 2023 8:34 pm

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

Post 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
Mikasa23
Posts: 7
Joined: Thu Jul 06, 2023 3:12 am

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

Post 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
Post Reply