[Nagiosplug-help] webinject plugin

Tom Spindola ts12162 at tj.sc.gov.br
Thu Jul 14 07:36:16 CEST 2005


I am monitoring several servers with  webinject plugin.
Is there any way to pass a variable to webinject to change the servername or
URL for a get or post?
Ie: I have this test file:

<testcases repeat="1">
<case id="1"
description1="Step 1"
method="get"
url="http://host1.BlahBlahBlah.com/
verifypositive="sensitive data."
logrequest="yes"
/>

The variable I would like to set is to have nagios pass the
servername/hostname to webinject so if I was monitoring host1 or host
400.blahblahblah.com I could do so with only one standard test file like:

<testcases repeat="1">
<case id="1"
description1="Step 1"
method="get"
url="http://HOSTNAME.BlahBlahBlah.com/
verifypositive="sensitive data."
logrequest="yes"
/>

 where HOSTNAME is a variable that i should pass for webinject.


Thanks in advance,
Tom S.





More information about the Help mailing list