multiple checks for one service -> on demand Macro problem

Matthias Eble matthias.eble at mailing.kaufland-informationssysteme.com
Tue Sep 12 18:28:19 CEST 2006



Hi all,

i've got to monitor a service with multiple checks. The process needs to 
be restarted if one of the check fails.

So I thought about using check_cluster and an event handler on the 
cluster service. But now I got to a limit of the configuration (or my 
knowledge of it).

On demand macros are needed for check_cluster2:

check_svc_cluster!label!1!1!
$SERVICESTATEID:hostname1:Server Log Fileage$, 
$SERVICESTATEID:hostname1:Server Port 10000$, 
$SERVICESTATEID:hostname1:http Webgui$


But the service runs on 20 hosts so defining a seperate service check 
for each server wouldn't be that cool.

is there a possibility to define sth like

$SERVICESTATEID:$HOSTNAME$:Server Log Fileage$   ?

I found discussions about parsing from inside to outside in the 
archives. Has there been a patch?



my workaround is to write a plugin-wrapper-script which stores the 
returncode in a textfile. Another plugin can implement the check_cluster 
functionality on the textfiles


How do you think about that?


thanks in advance.
matthias


-------------------------------------------------------------------------
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
_______________________________________________
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