Check NRPE on another port
Posted: Tue Jul 24, 2012 2:17 pm
I am testing a few webservers (off network) that are behind a load balancer. Rather than trying to get a bunch of public IP's, I would like to simply define the servers by name, and use a different port I guess which is how I test the site right now via snmp and not sure if that is the correct approach. Looking through the doc (http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf) there is no mention of how to do this (if you even can).
Basically I want to say web1, web2, web3. BUT in each host; (using their example)
define host{
use linux-box ; Inherit default values from a template
host_name remotehost ; The name we're giving to this server
alias Fedora Core 6 ; A longer name for the server
address 192.168.0.1 ; IP address of the server
port 5667; ## added this
}
Basically in the load balancer, I remap, so all servers can use one IP to test on, but the LB knows, if it sees 5667, send to server1, if it sees 5668, send to server2, etc.
Is this or any workaround possible? I have 6 webservers, 4 tomcat servers, 4 database servers and don't have all the public IP's to put each behind just for testing wich is why the LB comes in handy. At the worst case, the LB supports l7 so I could create DNS names, web1, web2, then move based on that, but the port would be much easier!
Tnx
Basically I want to say web1, web2, web3. BUT in each host; (using their example)
define host{
use linux-box ; Inherit default values from a template
host_name remotehost ; The name we're giving to this server
alias Fedora Core 6 ; A longer name for the server
address 192.168.0.1 ; IP address of the server
port 5667; ## added this
}
Basically in the load balancer, I remap, so all servers can use one IP to test on, but the LB knows, if it sees 5667, send to server1, if it sees 5668, send to server2, etc.
Is this or any workaround possible? I have 6 webservers, 4 tomcat servers, 4 database servers and don't have all the public IP's to put each behind just for testing wich is why the LB comes in handy. At the worst case, the LB supports l7 so I could create DNS names, web1, web2, then move based on that, but the port would be much easier!
Tnx