-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Munin-node fails to start when 'host *' is set in munin-node.conf #1641
Comments
Debug messagesroot@u2404:/etc/munin#
root@u2404:/etc/munin# sudo systemctl start munin-node
Job for munin-node.service failed because the control process exited with error code.
See "systemctl status munin-node.service" and "journalctl -xeu munin-node.service" for details.
root@u2404:/etc/munin#
root@u2404:/etc/munin#
root@u2404:/etc/munin#
root@u2404:/etc/munin# sudo systemctl status munin-node
* munin-node.service - Munin Node
Loaded: loaded (/usr/lib/systemd/system/munin-node.service; enabled; preset: enabled)
Active: activating (start) since Tue 2024-12-31 18:31:18 KST; 475ms ago
Docs: man:munin-node(1)
http://guide.munin-monitoring.org/en/stable-2.0/reference/munin-node.html
Process: 288905 ExecStartPre=/usr/bin/install -o munin -g munin -d /run/munin (code=exited, status=0/SUCCESS)
Main PID: 288907 (munin-node)
Tasks: 1 (limit: 38284)
Memory: 6.7M (peak: 6.7M)
CPU: 115ms
CGroup: /system.slice/munin-node.service
`-288907 /usr/bin/perl -wT /usr/sbin/munin-node --foreground --config /etc/munin/munin-node.conf
Dec 31 18:31:18 u2404 systemd[1]: munin-node.service: Scheduled restart job, restart counter is at 4.
Dec 31 18:31:18 u2404 systemd[1]: Starting munin-node.service - Munin Node...
root@u2404:/etc/munin#
root@u2404:/etc/munin#
root@u2404:/etc/munin#
root@u2404:/etc/munin#
root@u2404:/etc/munin# journalctl -xeu munin-node.service
--
-- A start job for unit munin-node.service has finished with a failure.
--
-- The job identifier is 33596 and the job result is failed.
Dec 31 18:31:18 u2404 systemd[1]: munin-node.service: Scheduled restart job, restart counter is at 4.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit munin-node.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Dec 31 18:31:18 u2404 systemd[1]: Starting munin-node.service - Munin Node...
-- Subject: A start job for unit munin-node.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit munin-node.service has begun execution.
--
-- The job identifier is 33765.
Dec 31 18:31:18 u2404 systemd[1]: munin-node.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 munin-node.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Dec 31 18:31:18 u2404 systemd[1]: munin-node.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit munin-node.service has entered the 'failed' state with result 'exit-code'.
Dec 31 18:31:18 u2404 systemd[1]: Failed to start munin-node.service - Munin Node.
-- Subject: A start job for unit munin-node.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit munin-node.service has finished with a failure.
--
-- The job identifier is 33765 and the job result is failed.
Dec 31 18:31:18 u2404 systemd[1]: munin-node.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit munin-node.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Dec 31 18:31:18 u2404 systemd[1]: munin-node.service: Start request repeated too quickly.
Dec 31 18:31:18 u2404 systemd[1]: munin-node.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit munin-node.service has entered the 'failed' state with result 'exit-code'.
Dec 31 18:31:18 u2404 systemd[1]: Failed to start munin-node.service - Munin Node.
-- Subject: A start job for unit munin-node.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit munin-node.service has finished with a failure.
--
-- The job identifier is 33934 and the job result is failed.
root@u2404:/etc/munin#
root@u2404:/etc/munin#
root@u2404:/etc/munin#
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The host * in /etc/munin/munin-node.conf can cause errors in munin-node.
I downloaded munin/munin-node from ubuntu 24.04 as shown below and installed it after compiling.
Unfortunately, the “host *” statement in the munin-node.conf file is causing munin-node to fail to run properly.
https://github.com/munin-monitoring/munin/blob/master/etc/munin-node.conf.PL#L81
Munin-node uses a Perl module called Net::Server internally to handle network connections. In the Net::Server module, the host setting must explicitly specify a specific IP address or hostname. When Net::Server actually interprets the * wildcard, it repeatedly attempts to bind all available network interfaces on the system. This process can result in crashes or errors.
To Reproduce
Steps to reproduce the behavior:
DAEMON_ARGS="--config /etc/munin/munin-node.conf"
host *
Expected behavior
When running the
sudo systemctl status munin-node
command, it should be listed as “Active”.Screenshots & Logs
Desktop (please complete the following information):
The following is system environment information to ensure that you can always reproduce it.
For example: Ubuntu version, munin package version, Linux kernel version, Net::Server module version
Additional context
Welcome to any hints and comments. :)
The text was updated successfully, but these errors were encountered: