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
Nagios Mod Gearman start and stop
-
StevenBeauchemin
- Posts: 15
- Joined: Fri Jun 30, 2023 12:39 pm
Re: Nagios Mod Gearman start and stop
Is this a Red Hat 9 thing?
Re: Nagios Mod Gearman start and stop
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.
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.
-
StevenBeauchemin
- Posts: 15
- Joined: Fri Jun 30, 2023 12:39 pm
Re: Nagios Mod Gearman start and stop
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
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