We are an IT company looking to use nagios to monitor all of our customers servers. The only problem we have come accross is how to set up so that it will monitor each server. Is there a way to monitor several servers which have the same external ip
For example
External IP = 254.176.65.34
On this IP there is a:
Terminal Server
Mail Server
SQL Server
How would i monitor all three servers?
NagiosXI monitoring multiple windows servers on the same ip
Re: NagiosXI monitoring multiple windows servers on the same
Just to clarify, this would be 3 different machines running correct? I just want to be sure as if all of these were running on one machine the answers will be greatly different than 3 separate ones.
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: NagiosXI monitoring multiple windows servers on the same
The easiest way would be to set up a port forwarding rule to NRPE for each of the servers behind the NAT.
Re: NagiosXI monitoring multiple windows servers on the same
Yes it would be for 3 different machines on the same external ip. And is there any guide on how to set up the port forwarding in nagios as i am a not the best with linux.
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: NagiosXI monitoring multiple windows servers on the same
Port forwarding is something done on your router, not in Nagios. You would want to check the documentation for your router's firmware for instructions.
Re: NagiosXI monitoring multiple windows servers on the same
I know how to configure port forwarding on the router but how do i configure nagios to use different ports for each server?
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: NagiosXI monitoring multiple windows servers on the same
To quote the check_nrpe plugin help text in part,
As you see here, just include the -p switch in your command definition followed by the external port number. So for instance, if machine Thomas is behind the NAT and you want to check it, you could set up a port forward from 56125 external to 5666 on Thomas, and have a service defined with check_nrpe -H NAT_Gateway -p 56125.[root@demo ~]# /usr/local/nagios/libexec/check_nrpe -h
NRPE Plugin for Nagios
Usage: check_nrpe -H <host> [-n] [-u] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
Options:
<host> = The address of the host running the NRPE daemon
[port] = The port on which the daemon is running (default=5666)