Using arguments in the serviceextinfo file
Michael Bambic
listbox at azsupersport.com
Wed Apr 14 01:37:37 CEST 2004
OK here's a better description of what I'm trying to do:
define command{
command_name check_url_local
command_line $USER1$/urlize
'https://monitordb.server.com/MonDB/view.php?MonID=$ARG4$'
"$USER1$/check_http -t 20 -f follow -H $HOSTNAME$ -I $HOSTADDRESS$ -u
'$ARG1$' -R '$ARG2$' -a '$ARG3$'"
}
define service{
use generic_service
host_name stupid.server.com
service_description stupid_service_check
check_command
check_url_local!/monitor/Check.asp!is operational!!233
}
define serviceextinfo {
host_name stupid.server.com
service_description stupid_service_check
notes_url http://$HOSTNAME$/$ARG1$
icon_image graph.png
icon_image_alt Click to view monitor
}
So if you click on the extended info it takes you to the web page that the
monitor is checking. If you check on the link that is associated with the
monitor that takes you to an escalation procedure for that monitor.
I wouldn't mind if it worked backwards either, just as long as one link
takes you to the page it's checking and the other to the escalation
procedure.
Thx
Mike
-----Original Message-----
From: Johannes Dagemark [mailto:jd at op5.se]
Sent: Monday, April 12, 2004 11:24 PM
To: Michael Bambic
Subject: Re: [Nagios-users] Using arguments in the serviceextinfo file
We do it in hostextinfo.cfg and it works fine so it probably will in
serviceextinfo.cfg as well.
/Johannes
Michael Bambic wrote:
> I need to use $ARG.$ in my serviceextinfo to be able to open the url the
> check is checking.
>
> So http://$HOSTNAME$$ARG1$ <http://$hostname$$arg1$/> where $HOSTNAME$ =
> www.blah.com <http://www.blah.com/> and $ARG1$ = /checkthispage.asp
>
>
>
>
>
> Anybody done this?
>
>
>
> Mike
>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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