Web Check - Nagios XI
Posted: Mon Apr 11, 2011 4:29 pm
Hi,
I am trying to build a webcheck to log-in to an application and then sign out. Just to make sure the application is available.
I used Nagios XI configuration wizard to set up web monitoring.
I see in the configuration program check_xi_service_webinject being called. I tried to find this on the nagios server but cannot. Where can I find this program.
When Nagios run this - check_xi_service_webinject!win2k3_ps2__PS_FMS_SignIn_SignOut_config.xml through its own utility tool it gives the following error:
PS-FMS-SignIn-SignOut
Critical 4d 5h 10m 36s 5/5 04/11/2011 17:26:17 (null)
I am not sure where the log file is to check what happened here. Please let me know where I can find the log file.
Here is the XML script.
======================================================================================
<testcases repeat="1">
<testvar varname="BASE_URL-in">http://10.1.1.232:8001/psp/ps/?cmd=login</testvar>
<testvar varname="BASE_URL-ooo">http://10.1.1.232:8001/psp/ps/EMPLOYEE/ ... T</testvar>
<testvar varname="BASE_URL-out">http://10.1.1.232:8001/psp/ps/EMPLOYEE/ ... t</testvar>
<testvar varname="LOGIN1">VP1</testvar>
<testvar varname="PASSWD1">VP1</testvar>
<case
id="1"
description1="Connecting to Login Page"
method="get"
url="${BASE_URL-in}"
errormessage="Unable to load login page"
/>
<case
id="2"
description1="Authentication"
method="post"
url="${BASE_URL-in}"
postbody="name=${LOGIN1}&pass=${PASSWD1}&form_id=Submit=Sign+In"
errormessage="Login Post Problem"
/>
<case
id="3"
description1="SignOut"
method="post"
url="${BASE_URL-out}"
errormessage="Login Post Problem"
/>
</testcases>
I am trying to build a webcheck to log-in to an application and then sign out. Just to make sure the application is available.
I used Nagios XI configuration wizard to set up web monitoring.
I see in the configuration program check_xi_service_webinject being called. I tried to find this on the nagios server but cannot. Where can I find this program.
When Nagios run this - check_xi_service_webinject!win2k3_ps2__PS_FMS_SignIn_SignOut_config.xml through its own utility tool it gives the following error:
PS-FMS-SignIn-SignOut
Critical 4d 5h 10m 36s 5/5 04/11/2011 17:26:17 (null)
I am not sure where the log file is to check what happened here. Please let me know where I can find the log file.
Here is the XML script.
======================================================================================
<testcases repeat="1">
<testvar varname="BASE_URL-in">http://10.1.1.232:8001/psp/ps/?cmd=login</testvar>
<testvar varname="BASE_URL-ooo">http://10.1.1.232:8001/psp/ps/EMPLOYEE/ ... T</testvar>
<testvar varname="BASE_URL-out">http://10.1.1.232:8001/psp/ps/EMPLOYEE/ ... t</testvar>
<testvar varname="LOGIN1">VP1</testvar>
<testvar varname="PASSWD1">VP1</testvar>
<case
id="1"
description1="Connecting to Login Page"
method="get"
url="${BASE_URL-in}"
errormessage="Unable to load login page"
/>
<case
id="2"
description1="Authentication"
method="post"
url="${BASE_URL-in}"
postbody="name=${LOGIN1}&pass=${PASSWD1}&form_id=Submit=Sign+In"
errormessage="Login Post Problem"
/>
<case
id="3"
description1="SignOut"
method="post"
url="${BASE_URL-out}"
errormessage="Login Post Problem"
/>
</testcases>