Nagios Mod Gearman start and stop

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
StevenBeauchemin
Posts: 15
Joined: Fri Jun 30, 2023 12:39 pm

Nagios Mod Gearman start and stop

Post 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
StevenBeauchemin
Posts: 15
Joined: Fri Jun 30, 2023 12:39 pm

Re: Nagios Mod Gearman start and stop

Post by StevenBeauchemin »

Is this a Red Hat 9 thing?
jsimon
Posts: 339
Joined: Wed Aug 23, 2023 11:27 am

Re: Nagios Mod Gearman start and stop

Post 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.
StevenBeauchemin
Posts: 15
Joined: Fri Jun 30, 2023 12:39 pm

Re: Nagios Mod Gearman start and stop

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