NRPE Checks of local Nagios server?
NRPE Checks of local Nagios server?
Can I use the same nrpe checks that I run against remote hosts, against my local nagios server, too? Need to watch the same things on my server that I do on my remote hosts. Or, as nrpe is mean for remote monitoring, do I need to create a suite of local checks, not using nrpe, just for the server? Thanks.
- jmichaelson
- Posts: 338
- Joined: Wed Aug 23, 2023 1:02 pm
Re: NRPE Checks of local Nagios server?
We do install NRPE along with Nagois XI. I don't see a reason at all why it wouldn't work. Give it a try and let us know!
Please let us know if you have any other questions or concerns.
-Jason
-Jason
Re: NRPE Checks of local Nagios server?
Yeah, thought so too. I am already running nrpe locally, but getting failures on local checks. But on thousands of other remote hosts, same checks, it works fine. That's why I wondered if perhaps my problem is that nrpe can't be used locally. It's sort of a sanity check question. So, there's something else going on with nrpe on my server, apparently. Not seeing errors for nrpe in /var/log/messages. I'll keep looking, since it should work just fine.
Jul 12 16:15:37 nagios check_nrpe: Remote 128.61.254.53 does not support version 3/4 packets
Jul 12 16:15:37 nagios check_nrpe: Remote 128.61.254.53 does not support version 3/4 packets
And that IP address is my server's.
Correction -- just had some interesting errors pop in messages:Jul 12 16:15:37 nagios check_nrpe: Remote 128.61.254.53 does not support version 3/4 packets
Jul 12 16:15:37 nagios check_nrpe: Remote 128.61.254.53 does not support version 3/4 packets
And that IP address is my server's.

You do not have the required permissions to view the files attached to this post.
Re: NRPE Checks of local Nagios server?
You need to define the undefined check_disk_var command and add -2 (I think) to the check_nrpe command to start.
Re: NRPE Checks of local Nagios server?
Hi, can you clarify what you mean define check_disk_var? It is working for many other nodes, so it must, I think, be defined already. It's just not working on the one nagios server host. Thanks.
Re: NRPE Checks of local Nagios server?
Depending on how the NRPE agent gets installed on other servers, you might have a different configuration on your local XI server. I would check /usr/local/nagios/etc/nrpe.cfg on both servers - look for lines near the bottom of the config file like the following:
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -r -w .15,.10,.05 -c .30,.25,.20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
Developer @ Nagios 2017-05-15 thru 2024-08-06