Page 2 of 3

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Thu Mar 03, 2016 7:37 pm
by rajasegar
bheden wrote:
Does the script take care of the user credential that the mod gearman worker is running as?
It supposed to be nagios, mine ended up being naemon.
It does now!

The ModGearmanInstall.sh script (https://assets.nagios.com/downloads/nag ... Install.sh) has been updated to reflect the proper user, and gives you a user flag to override the default if necessary.

Other than that, the instructions located at https://assets.nagios.com/downloads/nag ... ios_XI.pdf are mostly relevant. I also changed the installation type flag to --type=worker or --type=server

We'll be updating the documentation shortly to reflect those changes.

Let us know how it goes. Thanks.
Thanks for the update. What about server + worker installation on the same server? Is there a flag for that?

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Thu Mar 03, 2016 10:46 pm
by Box293
The server install/upgrade automatically installs/upgrades a worker locally.

I'm in the process of updating the documentation and putting together some more documentation to more clearly explain workers and queues.

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Thu Mar 03, 2016 10:56 pm
by rajasegar
Box293 wrote:The server install/upgrade automatically installs/upgrades a worker locally.

I'm in the process of updating the documentation and putting together some more documentation to more clearly explain workers and queues.
Thanks Troy. It will greatly help if clear upgrade instructions that maintains the existing configuration is documented.
This includes upgrade from version 1 or 2 of mod_gearman.

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Thu Mar 03, 2016 11:02 pm
by Box293
rajasegar wrote:Thanks Troy. It will greatly help if clear upgrade instructions that maintains the existing configuration is documented.
This includes upgrade from version 1 or 2 of mod_gearman.
Yes it will upgrade any version and will maintain the existing configuration (when the --upgrade flag is used). I'll make sure the documentation is clear that the existing configuration is maintained.

We'll let you know when it's done.

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Tue Mar 08, 2016 4:17 pm
by Box293
Here is the updated document which references the updated script:

https://assets.nagios.com/downloads/nag ... ios_XI.pdf

Here is a new guide I wrote on Queues and Workers:

https://support.nagios.com/kb/article.php?id=484

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Tue Mar 08, 2016 8:25 pm
by rajasegar
Looks good Troy thanks.

One question. Is it normal for all the worker_host queues to show 0 all the time.
How to confirm it is actually being executed in the target worker servers?
2016-03-09_09-20-24.jpg

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Tue Mar 08, 2016 9:40 pm
by Box293
Do you mean in the jobs waiting column?

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Tue Mar 08, 2016 9:52 pm
by rajasegar
Box293 wrote:Do you mean in the jobs waiting column?
Waiting and running. Always 0.

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Tue Mar 08, 2016 9:55 pm
by Box293
I assume that because they are all being processed almost instantly, they never seem to appear and stay at 0.

Honestly I've only ever been able to get these numbers to change by stopping all the workers temporarily, at this point there is nothing to run the jobs so the numbers should start to climb from that point.

Re: Mod Gearman Upgrade screws up nagios monitoring

Posted: Tue Mar 08, 2016 10:00 pm
by rajasegar
Box293 wrote:I assume that because they are all being processed almost instantly, they never seem to appear and stay at 0.

Honestly I've only ever been able to get these numbers to change by stopping all the workers temporarily, at this point there is nothing to run the jobs so the numbers should start to climb from that point.
Ok. Noted.
Thanks