Host object redefinition

Marc Powell marc at ena.com
Tue Nov 20 06:25:52 CET 2007


On Nov 19, 2007, at 9:34 PM, Daniel Bareiro wrote:

> Hi all!
>
> This is my first post in the list/newsgroup.
>
> I've several hosts behind a firewall and I'd like to monitoring they
> with Nagios. These host haven't a public IP. Then, mi idea was to
> configure the firewall to redirect the Nagios server conection at
> specific port in the firewall ---one per host without public IP behind
> the firewall--- to remote NRPE listen port from the remote host.
>
> Then, I'd like to redefine the host object to include a port variable
> for call it in a general service definition. Example:
>
> define host {
>  use linux-server-intranet
>  host_name sdptest
>  alias oracle server
>  address a.b.c.d
>  port 5000
>  parents beta
>  icon_image base/debian.gif
>  statusmap_image base/debian.gd2
> }

With nagios-3, yes, but not with nagios-2. With nagios-2, you could  
pass it as a $ARGx$ macro from each service definition or create an  
nrpe command{} definition per host.

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list