Mod-Gearman

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Mod-Gearman

Post by acentek »

I have an issue with NagiosXI.

The server is requesting upwards of 150 CPU's.

I am running gearmand on my nagios XI server now but i've heard that i should cluster Mon-Gearman and stand up a second server.

Is that correct and how do i accomplish that cleanly?

https://support.nagios.com/kb/article/n ... i-225.html

What do i need to do in XI to take advantage of the second Gearman server?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Mod-Gearman

Post by Box293 »

This KB worker explains queues and workers:

https://support.nagios.com/kb/article/n ... s-484.html

This should answer your questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Re: Mod-Gearman

Post by acentek »

Thanks! We have a gearman worker server up and running and working with some of our Linux Servers. We would like to add python plugins to our worker so it can take some of the load for those items. Anyone have suggestions for getting the python plugins from our XI server to the Worker? I did not write our python scripts so I'm a bit in the dark.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Mod-Gearman

Post by tgriep »

To run the Python plugins on the remote worker, you would have to copy them over from the XI server. You can use the linux scp command to copy them.
Make sure you change the owner and group permission of the plugin to nagios and to make them executable. See this example.

Code: Select all

chown nagios.nagios <pluginname>
chmod nagios.nagios <pluginname>
Then, you would have to manually run each plugin to make sure that if they need extra Python modules installed.
Or, open up the plugin in s text editor and look for a section with the import statement. Example below.

Code: Select all

import sys
import optparse
import traceback
import ssl
Those are the modules the script will use to run. Most of them will be already installed.

If you run a plugin and get an error similar to the following
ImportError: No module named netsnmp
That means you have to install the netsnmp module and you would use the pip command to install it.

Code: Select all

pip install netsnmp
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked