Hi,
We have integrated Mod-Gearman with Nagios XI as per the steps found here: https://support.nagios.com/kb/article.php?id=225
We've noticed an issue with /etc/init.d/gearmand script. It isn't creating the /var/run/gearmand folder and therefore the pidfile (/var/run/gearmand/gearmand.pid) cannot be created.
Has anyone else seen that before?
I was able to workaround it by amending the script to create the folder but I'm not sure if that is the proper way to do it.
I've attached the original gearmand and my amended version.
Regards,
Andy
Mod-Gearman Init Script
Mod-Gearman Init Script
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Mod-Gearman Init Script
What OS and version are you on?
When you started the gearmand service, you still saw no pid file created? correct?
Is this what you tried? If not, try these commands again in this order.
After that, what's the status of gearmand?
When you amended the script to create a folder, did Mod gearman work with a pid created?
When you started the gearmand service, you still saw no pid file created? correct?
Is this what you tried? If not, try these commands again in this order.
Code: Select all
service nagios stop
service gearmand stopCode: Select all
service gearmand start
service nagios startCode: Select all
service gearmand statusRe: Mod-Gearman Init Script
Hi,
Red Hat Enterprise Linux Server release 7.4
Correct. When I started the gearmand service using the original init script no pid file was created.
Results of running the following commands with the original init script
Nagios XI Version : 5.4.11What OS and version are you on?
Red Hat Enterprise Linux Server release 7.4
Code: Select all
When you started the gearmand service, you still saw no pid file created? correct?Results of running the following commands with the original init script
Code: Select all
service nagios stop
service gearmand stop
service gearmand statusYes, Mod Gearman shows its status as running and a pid is created:When you amended the script to create a folder, did Mod gearman work with a pid created?
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Mod-Gearman Init Script
I'll have to see if I can recreate this.
But if that worked for you then that's good!
But if that worked for you then that's good!