NagiosXI monitoring multiple windows servers on the same ip

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dan912
Posts: 3
Joined: Fri Feb 25, 2011 4:06 am

NagiosXI monitoring multiple windows servers on the same ip

Post by dan912 »

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?
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: NagiosXI monitoring multiple windows servers on the same

Post by rdedon »

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.
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
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

Post by tonyyarusso »

The easiest way would be to set up a port forwarding rule to NRPE for each of the servers behind the NAT.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
dan912
Posts: 3
Joined: Fri Feb 25, 2011 4:06 am

Re: NagiosXI monitoring multiple windows servers on the same

Post by dan912 »

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

Post by tonyyarusso »

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.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
dan912
Posts: 3
Joined: Fri Feb 25, 2011 4:06 am

Re: NagiosXI monitoring multiple windows servers on the same

Post by dan912 »

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

Post by tonyyarusso »

To quote the check_nrpe plugin help text in part,
[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)
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.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked