mod-gearman |showing false device down
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
mod-gearman |showing false device down
Hi Team,
sometime nagiosxi showing devices down but only for the devices monitor through mod-gearman .
host output :-host check orphaned ,is the mod-gearman worker on queue hostgroup running
CPU also normal at that time in Nagiosxi.
the issue is resolved only after nagiosxi server restart(init 6).
Thanks
sometime nagiosxi showing devices down but only for the devices monitor through mod-gearman .
host output :-host check orphaned ,is the mod-gearman worker on queue hostgroup running
CPU also normal at that time in Nagiosxi.
the issue is resolved only after nagiosxi server restart(init 6).
Thanks
You do not have the required permissions to view the files attached to this post.
Re: mod-gearman |showing false device down
The message that you are receiving usually means that the Gearman worker is not returning the data for a check or that the Gearman server is not passing it on to the Nagios Process.
To trouble shoot this, you would have to enable debugging for Mod Gearman and check the log files.
Edit the /etc/mod_gearman2/module.conf file on the Gearman server (Nagios) and enable debugging by changing the following from
to
Save the file and restart the Gearman server
On the Gearman Worker, edit the
/etc/mod_gearman2/worker.conf file and change the following from
to
Save the file and restart the Gearman worker.
Check the log files in the /var/log/mod_gearman2 folder on the Gearman Worker and Gearman server for any errors when the Orphan message is displayed in XI.
To trouble shoot this, you would have to enable debugging for Mod Gearman and check the log files.
Edit the /etc/mod_gearman2/module.conf file on the Gearman server (Nagios) and enable debugging by changing the following from
Code: Select all
debug=0Code: Select all
debug=1Code: Select all
service gearmand restartOn the Gearman Worker, edit the
/etc/mod_gearman2/worker.conf file and change the following from
Code: Select all
debug=0Code: Select all
debug=1Code: Select all
service mod-gearman2-worker restartBe sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: mod-gearman |showing false device down
Hi,
we successfully done given steps in workers.but getting gearmand restart failed in nagiosxi server.
Note:when we check status of gearmand service it always show in failed state and in htop command gearmand service running as per polling interval.
Thanks
we successfully done given steps in workers.but getting gearmand restart failed in nagiosxi server.
Note:when we check status of gearmand service it always show in failed state and in htop command gearmand service running as per polling interval.
Thanks
You do not have the required permissions to view the files attached to this post.
Re: mod-gearman |showing false device down
It looks like there could be a permission problem for the file / folder where the gearmand server is trying to save the pip file.
Check the /var/run/gearmand folder to see if it exists and that the gearmand user account can create files in it.
Also, check the /var/log/gearmand/gearmand.log file for any errors and either fix them or post them here so we can view them.
You can try running this command as root to force the gearmand daemon to shutdown.
Then start it up
Then check to see if it is running.
Check the /var/run/gearmand folder to see if it exists and that the gearmand user account can create files in it.
Also, check the /var/log/gearmand/gearmand.log file for any errors and either fix them or post them here so we can view them.
You can try running this command as root to force the gearmand daemon to shutdown.
Code: Select all
killall -9 gearmandCode: Select all
service gearmand startBe sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: mod-gearman |showing false device down
Hi ,
1==> /var/run/gearmand folder not found.
2==> after pkill -9 gearmand all gearmand process stopped and also not showing in HTOP command.
3==>service gearmand start showing failed .
4==>after above steps nagios misbehaving and showing blue screen in Nagvis and gearmand process still not showing in HTOP as its showing before kill command (running as per polling time).
5==> after init 6 everything ok.
Thanks
1==> /var/run/gearmand folder not found.
2==> after pkill -9 gearmand all gearmand process stopped and also not showing in HTOP command.
3==>service gearmand start showing failed .
4==>after above steps nagios misbehaving and showing blue screen in Nagvis and gearmand process still not showing in HTOP as its showing before kill command (running as per polling time).
5==> after init 6 everything ok.
Thanks
You do not have the required permissions to view the files attached to this post.
Re: mod-gearman |showing false device down
After the reboot, I want to verify, is the gearmand.pid file in the /var/run/gearmand folder?
If not, run the following commands as root to create the folder and set the permissions.
Then restart the gearmand server and verify that the gearmand.pid file exists.
If it works, let us know and also if everything else is working as well.
If not, run the following commands as root to create the folder and set the permissions.
Code: Select all
mkdir /var/run/gearmand
chown gearmand.gearmand /var/run/gearmand
chmod 755 /var/run/gearmandIf it works, let us know and also if everything else is working as well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: mod-gearman |showing false device down
Hi ,
Please check attached command logs running
gearmand folder/dir auto removed after init 6.
Thanks
Please check attached command logs running
gearmand folder/dir auto removed after init 6.
Thanks
You do not have the required permissions to view the files attached to this post.
Re: mod-gearman |showing false device down
Edit the gearmand init script
Change of the occurrences of this
to this
Save the change when the gearmand daemon starts, it will be able to create the pid file in the /var/run folder instead.
Code: Select all
/etc/init.d/gearmandCode: Select all
/var/run/gearmand/gearmand.pidCode: Select all
/var/run/gearmand.pidBe sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: mod-gearman |showing false device down
Hi
Edit the gearmand init script done
from :- /var/run/gearmand/gearmand.pid
with :- /var/run/gearmand.pid
but still not able to start/restart gearmand service.
Thanks
Edit the gearmand init script done
from :- /var/run/gearmand/gearmand.pid
with :- /var/run/gearmand.pid
but still not able to start/restart gearmand service.
Thanks
You do not have the required permissions to view the files attached to this post.
Re: mod-gearman |showing false device down
Please do this instead:
Edit the gearmand init script:
Change of the occurrences of the gearman.pid to this:
Save the change when the gearmand daemon starts, it will be able to create the pid file in the /var/run/gearmand folder instead.
Edit the gearmand init script:
Code: Select all
/etc/init.d/gearmandCode: Select all
/var/run/gearmand/gearmand.pid