Hello,
We're expecting problems with a plugin when using gearman, the services using this plugin crashed with a timeout message. In gearman worker's log appears this message: timeout (180s) hit for servicecheck.
All the others plugins are working correctly, even very similar plugins. And this plugin works correctly if I disable the gearman broker_module to use nagios.
I attach debug from gearman
Regards
plugin timeout with gearman
plugin timeout with gearman
You do not have the required permissions to view the files attached to this post.
Re: plugin timeout with gearman
Do you have any firewall issues between the gearman worker and the oracle server? What are the similar checks, are they to the same host?
Re: plugin timeout with gearman
There are not firewall issues, and the checks are to the same hosts.
Re: plugin timeout with gearman
Your gearman worker server does not have the necessary prereqs to do perform the oracle sql query. Could you show us the check plugin script that runs from the XI server?
Re: plugin timeout with gearman
Hello,
I attach the plugin
Regards.
I attach the plugin
Regards.
You do not have the required permissions to view the files attached to this post.
Re: plugin timeout with gearman
An update about that issue:
If line "kill_sqlplus $$ 30 ${TMP_FILE} &" is commented then script with gearman works fine.
If line "kill_sqlplus $$ 30 ${TMP_FILE} &" is commented then script with gearman works fine.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: plugin timeout with gearman
It looks like this is a stateful plugin - meaning it remembers stuff from one iteration to the next. You will need to make sure this plugin is always run from the same server if you want it to output useful results.
Re: plugin timeout with gearman
It seems "&" to execute script "kill_sqplus" is not working, this script is executed in background, and original script continue executing, but when gearman is working, script stops at this point, as kill_sqlpus is executing more than timeout configured (this is the reason why is executed in background) the "main" script crashes with a timeout.
Someone has had a similar problem? There are another way to execute a script in background?
Someone has had a similar problem? There are another way to execute a script in background?
Re: plugin timeout with gearman
@morabancYou will need to make sure this plugin is always run from the same server if you want it to output useful results.
Is the mod gearman worker a local worker? You need to run the plugin from the same sever as jdalrymple pointed out.
Can you elaborate on this? Did you try modifying the script? Have you tried increasing the timeout?It seems "&" to execute script "kill_sqplus" is not working...
Be sure to check out our Knowledgebase for helpful articles and solutions!