Issue with not having $ARG?$ in host check commands

Subhendu Ghosh sghosh at sghosh.org
Mon Mar 24 22:21:46 CET 2003


On 24 Mar 2003, Todd A. Green wrote:

> I've run into a circumstance where I need to be able to pass arguments
> to a host check command.
> 
> I'm doing host check commands on firewall(s).  I can ping the internal
> interface, but have to use SNMP to check the status of the external
> one.  This means that the host check command for the external interface
> has to check the status of the interface using the IP address of the
> internal interface.  Since host check commands cannot accept arguments I
> would have to write a custom host check command for each instance of
> this.  I have additional (and numerous) applications of this same logic
> relating to switch interfaces so a scalable solution is preferred.
> 
> 1. I'm wondering why $ARG?$ aren't available to host check commands.
> 2. A scalable way around the issue.
> 
> Thanks
> 
> 

I *think* $ARG?$ is available in post 1.0 but the code is not stable.

Why don't you define the check of the external interface as a service and 
check the internal interface as the host check ?

Firewall is up if the internal interface responds (machine is good)
External interface down - service alert for the firewall admins.

-- 

-sg



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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