Need help in check_http plugin!

"Anand, Aditya C." <[email protected]> Thu, 15 Feb 2018 09:12:27 +0000
Newsgroups gmane.network.nagios.plugins
Message-ID <CO1P114MB006921F49A9154A8038ABCCECEF40__42792.5941105515$1518689395$gmane$org@CO1P114MB0069.NAMP114.PROD.OUTLOOK.COM>
--_000_CO1P114MB006921F49A9154A8038ABCCECEF40CO1P114MB0069NAMP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello Team,

We are using your plugin check_http for our url monitoring via NagiosXI.

We have a situation here, we have got a new request in which if the pattern=
 "Test Failed" will appear in the content of the URL - the error should be =
generated.

We tried by using -s and -R but no luck.

By using -s"Test Failed" it is searching for the content and throwing Criti=
cal state if not found. But we want a reverse monitoring that if this patte=
rn is found then it should throw Critical error.

Please help us for the same.

Do let me know, in case you need some more info.

Thanks in Advance.

Regards,
Aditya Anand


________________________________

This message is for the designated recipient only and may contain privilege=
d, proprietary, or otherwise confidential information. If you have received=
 it in error, please notify the sender immediately and delete the original.=
 Any other use of the e-mail by you is prohibited. Where allowed by local l=
aw, electronic communications with Accenture and its affiliates, including =
e-mail and instant messaging (including content), may be scanned by our sys=
tems for the purposes of information security and assessment of internal co=
mpliance with Accenture policy.
___________________________________________________________________________=
___________

www.accenture.com

--_000_CO1P114MB006921F49A9154A8038ABCCECEF40CO1P114MB0069NAMP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello Team,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">We are using your plugin check_http for our url moni=
toring via NagiosXI.
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">We have a situation here, we have got a new request =
in which if the pattern &#8220;Test Failed&#8221; will appear in the conten=
t of the URL &#8211; the error should be generated.
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">We tried by using -s and -R but no luck. <o:p></o:p>=
</p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">By using -s&#8220;Test Failed&#8221; it is searching=
 for the content and throwing Critical state if not found. But we want a re=
verse monitoring that if this pattern is found then it should throw Critica=
l error.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Please help us for the same.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Do let me know, in case you need some more info.<o:p=
></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks in Advance.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:2.0pt;margin-right:0in;m=
argin-bottom:2.0pt;margin-left:0in;text-autospace:none">
Regards,<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:2.0pt;margin-right:0in;m=
argin-bottom:2.0pt;margin-left:0in;text-autospace:none">
Aditya Anand<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face=3D"Arial" color=3D"Gray" size=3D"1"><br>
This message is for the designated recipient only and may contain privilege=
d, proprietary, or otherwise confidential information. If you have received=
 it in error, please notify the sender immediately and delete the original.=
 Any other use of the e-mail by
 you is prohibited. Where allowed by local law, electronic communications w=
ith Accenture and its affiliates, including e-mail and instant messaging (i=
ncluding content), may be scanned by our systems for the purposes of inform=
ation security and assessment of
 internal compliance with Accenture policy. <br>
___________________________________________________________________________=
___________<br>
<br>
www.accenture.com<br>
</font>
</body>
</html>

--_000_CO1P114MB006921F49A9154A8038ABCCECEF40CO1P114MB0069NAMP_--