New to this forum, but I've been using Nagios for some time.
Question about configuring NRPE to monitor remote IP's through a NRPE Remote Server.
Is there a way to specify the remote IP that I'd like to monitor on the Nagios Server?
Currently, the Nagios server has a .cfg file Service Definition that looks like:
define service {
use generic-service
host_name <hostname>
service_description <hostname_Prod_Ping>
check_command check_nrpe!check_ping_<hostname>
The <hostname> is the actual hostname that I'm monitoring it's "production" IP.
The check_ping_<hostname> is the entry in the nrpe.cfg on the NRPE Remote Host.
The check_ping_<hostname> on the NRPE Remote Server contains the hardcoded IP that I'd like to check and it looks like:
command[check_ping_<hostname>]=/usr/local/nagios/libexec/check_ping -H <IP> -w 3000.0,80% -c 5000.0,100% -p 5
check_ping_<hostname> where <hostname> is the actual server name
<IP> is the actual IP that I am checking on
What I'm trying to determine is whether I'll need to enter every <hostname> and <IP> on the NRPE Remote Host, or if I can
pass those variables from the Nagios Server? I have a few hundred hosts, so I'm trying to make it a little more efficient!
From the Nagios Server itself, I can monitor what we call the Management IP's which can be ping'd from the network the Nagios
Server is on, however the Production IP's are on a private network not visible to the Server, but visible to the NRPE Remote Host.
Thank you.
Steve