I am a newbie with little Linunx
Managed to install Nagios XI and then Mod gearman with one additional worker server.
Do you need to install the plugins on the worker server in order to perform the checks?
When I turn off the worker service on the XI server the checks are failing on my other worker server.
I am getting --> Return code of 127 is out of bounds - make sure the plugin you are trying to run actually exists <worker server name>
If you have to install the plugins - how do you install them as i have no linux experience.
Is there a .sh program that i can use or instructions some where?
Thanks
Tony
Mod Gearman worker + XI + Do you need to install plugins
-
kyang
Re: Mod Gearman worker + XI + Do you need to install plugins
Hi @Tony,
Yes, the plugins need to be installed on the worker server.
To install plugins on the worker server, follow the kb article for downloading Nagios plugins from source.
https://support.nagios.com/kb/article.php?id=569
Make sure to select the correct Linux OS you are using when performing the download.
1. First download the required packages that are specific to your OS.
2. Download other prerequisites that pertain to plugins you may need.
3. Download from source
4. Compile + Install
The location of these plugins will be in
Just in case for a better understanding, here is another kb article on Gearman queues and workers.
https://support.nagios.com/kb/article.php?id=484
Let us know if you have any issues
Yes, the plugins need to be installed on the worker server.
To install plugins on the worker server, follow the kb article for downloading Nagios plugins from source.
https://support.nagios.com/kb/article.php?id=569
Make sure to select the correct Linux OS you are using when performing the download.
1. First download the required packages that are specific to your OS.
2. Download other prerequisites that pertain to plugins you may need.
3. Download from source
4. Compile + Install
The location of these plugins will be in
Code: Select all
/usr/local/nagios/libexec/https://support.nagios.com/kb/article.php?id=484
Let us know if you have any issues
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Mod Gearman worker + XI + Do you need to install plugins
Thanks @kyang!
If you have additional issues, please PM me your Profile. You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
If you have additional issues, please PM me your Profile. You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Re: Mod Gearman worker + XI + Do you need to install plugins
Thanks for the quick reply - just another question
Do I also need to install NRPE on the mod gearman worker
Do I also need to install NRPE on the mod gearman worker
-
kyang
Re: Mod Gearman worker + XI + Do you need to install plugins
Hi @tony,
Yes, you would need NRPE installed on the gearman worker, if you are planning to use NRPE.
Quoted from https://assets.nagios.com/downloads/nag ... ios_XI.pdf
Yes, you would need NRPE installed on the gearman worker, if you are planning to use NRPE.
Quoted from https://assets.nagios.com/downloads/nag ... ios_XI.pdf
Hope this helps!Another thing you will need to keep in mind is that if you use NRPE checks on certain hosts, their nrpe.cfg must have all of your worker server's IP addresses listed as allowed connections.
This means if you are using the xinetd version you need to edit the “only_from” section, or if you are using the standard version you must edit the “allowed_hosts” section.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Mod Gearman worker + XI + Do you need to install plugins
Thanks again for the quick reply.
We will be using the nsclient to perform check_nrpe checks on windows servers - and i understand that I will need to edit the nsclient ini file and include the IP address of the mod gearman worker server in the “allowed_hosts” section.
I have followed the instructions - Installing Nagios Plugins From Source - https://support.nagios.com/kb/article.php?id=569.
This has given me some check commands in the directory - /usr/local/nagios/libexec/ on the mod gearman worker server.
But not the same number that is in the same directory on the Nagios XI server - some are missing.
The most important one missing being the - check_nrpe plugin - so all my service checks are failing.
So i am assuming that check_nrpe is not part of the nagios plugins - https://github.com/nagios-plugins/nagio ... 2.1.tar.gz.
And that I will need to download and install the check_nrpe plugin separately onto the mod gearman worker server.
So using these instructions - NRPE - How To Install NRPE v3 From Source - https://support.nagios.com/kb/article.php?id=515#CentOS
What bits of NRPE need to be installed onto the mod-gearman worker server?
- Do i install the NRPE agent/NRPE daemon and the check_nrpe plugin.
- Or just the check_nrpe plugin
"If you only wanted to install the check_nrpe plugin, refer to the section at the bottom of this KB article as there a lot of steps that can be skipped. Installing only the plugin is usually done on your Nagios server and workers."
The last section states - In some circumstances you may want to only install the check_nrpe plugin, usually required on your Nagios server.
So on the mod gearman worker server i would only install the check_nrpe plugin only - so that the check_nrpe would work ???
Or if i wish to monitor the mod gearman worker server as well with Nagios XI - i would do a full install of the NRPE agent/NRPE daemon and the check_nrpe plugin.
I think I may have answered my own question.
We will be using the nsclient to perform check_nrpe checks on windows servers - and i understand that I will need to edit the nsclient ini file and include the IP address of the mod gearman worker server in the “allowed_hosts” section.
I have followed the instructions - Installing Nagios Plugins From Source - https://support.nagios.com/kb/article.php?id=569.
This has given me some check commands in the directory - /usr/local/nagios/libexec/ on the mod gearman worker server.
But not the same number that is in the same directory on the Nagios XI server - some are missing.
The most important one missing being the - check_nrpe plugin - so all my service checks are failing.
So i am assuming that check_nrpe is not part of the nagios plugins - https://github.com/nagios-plugins/nagio ... 2.1.tar.gz.
And that I will need to download and install the check_nrpe plugin separately onto the mod gearman worker server.
So using these instructions - NRPE - How To Install NRPE v3 From Source - https://support.nagios.com/kb/article.php?id=515#CentOS
What bits of NRPE need to be installed onto the mod-gearman worker server?
- Do i install the NRPE agent/NRPE daemon and the check_nrpe plugin.
- Or just the check_nrpe plugin
"If you only wanted to install the check_nrpe plugin, refer to the section at the bottom of this KB article as there a lot of steps that can be skipped. Installing only the plugin is usually done on your Nagios server and workers."
The last section states - In some circumstances you may want to only install the check_nrpe plugin, usually required on your Nagios server.
So on the mod gearman worker server i would only install the check_nrpe plugin only - so that the check_nrpe would work ???
Or if i wish to monitor the mod gearman worker server as well with Nagios XI - i would do a full install of the NRPE agent/NRPE daemon and the check_nrpe plugin.
I think I may have answered my own question.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Mod Gearman worker + XI + Do you need to install plugins
yuptony wrote:I think I may have answered my own question.
You may only NEED the plugin but you likely want the agent too to monitor the worker