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.
fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
-
- Posts: 4
- Joined: Tue Sep 12, 2023 9:07 am
fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
You do not have the required permissions to view the files attached to this post.
Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
Hi @NicolasGoudot, thanks for reaching out. Since the installation script referenced it, what is the output of and ?
Code: Select all
systemctl status snmptrapd.service
Code: Select all
journalctl -xeu snmptrapd.service
Developer @ Nagios 2017-05-15 thru 2024-08-06
-
- Posts: 4
- Joined: Tue Sep 12, 2023 9:07 am
Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
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.
Since i make a new fresh install base on ubuntu 20.04lts, and the script fullinstall work succesfull on it.
-
- Posts: 4
- Joined: Tue Sep 12, 2023 9:07 am
Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
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.
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.
-
- Posts: 4
- Joined: Tue Sep 12, 2023 9:07 am
Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
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
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
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.
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
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.
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.
Developer @ Nagios 2017-05-15 thru 2024-08-06
Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
It's very detailed, thank you for your answerNicolasGoudot 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.
Re: fresh install nagios xi on ubuntu 22.04 fullinstall failed on snmptrad service
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