Use service more than once for the same host

Petersen, Mark MPetersen at gs1us.org
Thu Feb 8 18:05:55 CET 2007


The only way I know to do this is with multiple services for the host.
Something like the proxy server checks below.

 

# 'check_squid' command definition

define command{

        command_name    check_squid

        command_line    /usr/lib/nagios/plugins/check_http -H
$HOSTADDRESS$ -p $ARG1$  -u $ARG2$  -e 'HTTP/1.0 200 OK'

}

 

define service{

  hostgroup_name                proxy

  service_description           SQUIDS on 8080

  check_command                 check_squids!8080!/ServerStatus

  use                           generic-unix

}

 

define service{

  hostgroup_name                proxy

  service_description           SQUIDS on 8081

  check_command                 check_squids!8081!/ServerStatus

  use                           generic-unix

}

 

define service{

  hostgroup_name                proxy

  service_description           SQUIDS on 8082

  check_command                 check_squids!8082!/ServerStatus

  use                           generic-unix

}

 

 

________________________________

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of
Mestdagh Tommy
Sent: Thursday, February 08, 2007 9:08 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Use service more than once for the same host

 

Check  -> HTPP_IP_PORT_URL  

 

Command definition:    $USER1$/check_http -w $ARG1$ -c $ARG2$ -I
$HOSTADDRESS$ -p $ARG3$ -u $ARG4$ -s $ARG5   

Usage:    check_http_anymap_mapping!ARG1!ARG2!ARG3!ARG4!ARG5   

Command line:  ?
check_http_anymap_mapping!10!20!8070!/anymap/servlet/AxisServlet!"And
now..."   

 

Hi all,  

 

I think I found a limitation on nagios, but I hope it's a limitations of
myself..

Basicly I want to run the same service 4 times (or more ion the future )
on the same server.  Offcourse every time with different  parameters.

Like  port -> $ARG3$  and uri -> $ARG4$  will be different.  I use the
groundworkopensource interface wish only allows unique services on one
server.

 

I wand to avoid that I have to copy the HTPP_IP_PORT_URL   to
HTPP_IP_PORT_URL1, and HTPP_IP_PORT_URL  2 and so one

 

Regards 

  Mestdagh Tommy

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070208/ace1f48e/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
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