-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monitoring remote host with nrpe #5
Comments
Yes. You need to install: nagios-nrpe-server & nagios-plugins on every host/client -- you want to monitor using shinken. For example, it will be 'my-remote-host.com' from the example above. It is available for install via standard package managers, like apt, yum, etc. Sample deb package link: https://packages.debian.org/squeeze/nagios-nrpe-server Once installed, start nagios-nrpe-server service. It will listen on TCP port 5666. The configuration file for NRPE is: /etc/nagios/nrpe.cfg. All NRPE commands are written here. It is the "-c For adding your own commands, you can modify /etc/nagios/nrpe_local.cfg (there is a include statement for this file in the main nrpe.cfg file). This will keep your main configuration clean and help you track changes better. |
This is NRPE based monitoring, just like Nagios does (by installing an agent on all clients). Agentless monitoring is also possible using ssh. If you want to explore all these, visit: Please note: https://www.monitoring-plugins.org/ is a fork of nagios NRPE plugins. It contains latest versions of plugins. However, easy to install linux packages are not available. You need to compile from source code. |
First, thanks for your answer and your advices, I have not mentioned that I had already installed nagios-nrpe-server & nagios-plugins on client, sorry. it seems that my mistake was that I named the command I update my nrpe command like this :
now my server send command to my remote host (note I have to disable ssl with On me remote host
I saw on some forums that was a known problem, I have to look at it more closely. I'm just wondering if this error is not caused by the Thanks |
Is the IP of shinken server whitelisted at nagios-nrpe-server configuration: nrpe.cfg or nrpe_local.cfg?
I don't think this is required. I never used this. |
Oops, didn't saw that you mentioned 'Host address is in allowed_hosts'. Try dropping 'module_type nrpe_poller' from command definition. It is used to enable booster-nrpe. You can try adding it later, once it works. Example configuration:
|
I have it seemed normal to me because there is no This is why I have tried to configured the Thanks for help |
Humm... Added check_nrpe plugin in the docker image: |
Did a full test and found the issue. Possible reasons:
On the server side, your shinken configuration can be something like this:
Client side (myhost.example.com) changes:
Let me know, if this solved the issue. Happy monitoring :) |
It's perfect now, after pulling the docker image, my command with 4 args worked correctly, but not the others. after removing args parameters, all works fine. I will define commands args on the remote host. Now, It remains for me to learn more about Shinken / Nagios monitoring. Thank you very much for your time. |
Hi,
I don't understand how I can monitor some remote host with nrpe. I have tried many things, but nothing seems to work for me. Note that I'm a beginner on Shinken or Nagios, sorry if the question is basic.
I created a file containing my remote host config in custom_configs/miscellaneous/my-remote-host.cfg :
But I don't know how I can define my services to be able to work with nrpe.
I tried something like this (with many variants)
But I have a
not found
error. check_nrpe is missing, and after search, it seems to be normal, I should use booster-nrpe instead.Ok, so, I tried somethings like this :
Source
But I have the same error. (Maybe I don't write these lines at the right location ?)
Am I missing something ?
Thanks.
The text was updated successfully, but these errors were encountered: