Page 1 of 1
Nagios Mod Gearman start and stop
Posted: Thu Sep 04, 2025 3:02 pm
by StevenBeauchemin
Can someone please modify the nagiosxi/scripts/manage_services.sh
to include stopping and starting nagios-mod-gearman-worker.service
I failed to get it working.
Thanks
Steve B
Re: Nagios Mod Gearman start and stop
Posted: Fri Sep 05, 2025 10:05 am
by StevenBeauchemin
Is this a Red Hat 9 thing?
Re: Nagios Mod Gearman start and stop
Posted: Fri Sep 05, 2025 11:25 am
by jsimon
Hi Steven,
In order to provide better troubleshooting for this issue, it would be helpful to know what your goals are and what errors you're encountering.
Re: Nagios Mod Gearman start and stop
Posted: Mon Sep 08, 2025 9:29 am
by StevenBeauchemin
My goal is to allow the script nagiosxi/scripts/manage_services.sh to also stop the nagios-gearman-worker.
It stops and starts most of the necessary services but does not include the gearman worker service.
If I want to stop all Nagios processes I cannot.
I try to minimize my edits to Nagios code - So I kept is simple and tried adding to the line:
second=("httpd" "mysqld" "nagios" ... "gearmand" "nagios-mod-gearman-worker")
But it fails to stop or start that one service properly.
This is the result:
sudo /usr/local/nagiosxi/scripts/manage_services.sh start nagios-mod-gearman-worker
/usr/local/nagiosxi/scripts/manage_services.sh: line 61: nagios-mod-gearman-worker: invalid variable name
Failed to mangle name: Invalid argument
Failed to expand names: Invalid argument
For my Nagios Admins to stop and start Nagios XI properly, that script needs to support these services:
httpd mysqld mariadb nagios npcd snmptt crond
snmptrapd gearmand rrdcached nagios-mod-gearman-worker firewalld
Thank you
Steve B