Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Anyone have some insight on this error, from the server running the nrpe client can get the correct number of tables correctly but the monitor server doesn't get it. Like it returns 0.... attached is code and screenshots please help
Thanks for the quick reply, I know its pulling correctly on the box that's my firewall but I am not sure why the nrpe module is not passing the final number to the monitoring server. As my above screenshot it shows the proper values on the local box though.
Maybe there is something wrong with the connection between the monitoring host and the server that needs to be monitored?
It uses an SSH connection, so maybe the FW is blocking it for some reason?
Have you tried using the ip address of the server instead of 'abby'?
And I assume that you installed the plugin and client correctly (see Nagios website)?
Darcy is my Nagios box and Abby is one of the hosts I am monitoring. No firewall blocks in place on the internal network i have a few other servers that work fine except this is the only one probing with a shell script.
As far as allowed hosts , im running this off xinetd which will ignore that option and allow any internal to work with this demon.
Quote:
#
# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
allowed_hosts=127.0.0.1
allowed_hosts=127.0.0.1
THank you for all your help so far i really appreciate it
Great, now replace the 127.0.0.1 with the darcy IP
Code:
allowed_hosts=nnn.nn.nnn.nn
on the abby host and and restart the nagios service on abby.
It's all very well documented.
Hey Habitual,
as stated above NRPE is running on my server under xinetd which doesn't required allowed_hosts=
Even when I put it in there it still does nothing plus this wouldn't cause a variable to return 0 on the other end it would just deny the connection from the nagios server to the nrpe deamon
maybe put some more echoes in the script, so you can see where it stops returning output or where the connection fails..
I used it a while ago, and with the use of the PDF file (see above), it worked like a charm, no issues at all :s
maybe put some more echoes in the script, so you can see where it stops returning output or where the connection fails..
I used it a while ago, and with the use of the PDF file (see above), it worked like a charm, no issues at all :s
yeah, made a couple of my own and they all worked..
Not from the first moment, but with enough debugging it all worked in the end.
But it's a while ago (like 1 year and a half ago..)
as stated above NRPE is running on my server under xinetd which doesn't required allowed_hosts=
The documentation says the value to edit is actually "only_from"...
Code:
Install the NRPE daemon as a service under xinetd.
make install-xinetd
Edit the /etc/xinetd.d/nrpe file and add the IP address of the monitoring server to the only_from directive.
only_from = 127.0.0.1 <nagios_ip_address>
Add the following entry for the NRPE daemon to the /etc/services file.
nrpe 5666/tcp # NRPE
Restart the xinetd service.
service xinetd restart
It's only 18 pages, it is almost mandatory to read it. I had the exact same issues when I setup Icinga the first time. Sorry, but it's been awhile since I had to use or configure any clients and all my "notes" are just tech recipes.
I preferred not to utilize the inetd method of installing nrpe on remote clients.
Its weird all my other probes for my other servers and non-custom shell scripts even for abby work completely fine and it shows that its getting the script just not pulling the variable over to darcy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.