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?
Mod-Gearman
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Mod-Gearman
This KB worker explains queues and workers:
https://support.nagios.com/kb/article/n ... s-484.html
This should answer your questions.
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.
Re: Mod-Gearman
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.
Re: Mod-Gearman
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.
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.
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.
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>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 sslIf 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 netsnmpBe sure to check out our Knowledgebase for helpful articles and solutions!