<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andreaco wrote:
<blockquote cite="mid5e508ea30fb84f7bcad4513dda5a6e03@85.18.90.170"
type="cite">
<pre wrap="">Try this:
#!/bin/bash
# uso:
# ./check_curl_https.sh nomehost porta pattern
PATT=$4
LOUTPUT=`curl --connect-timeout 5 -s -k <a class="moz-txt-link-freetext" href="https://$1:$2$3">https://$1:$2$3</a>`
ILCODICE=$?
if [ "$ILCODICE" -eq "0" ]
then
if echo $LOUTPUT | grep -q $PATT
then
echo "Connessione riuscita e pattern \"$PATT\" trovato"
exit $ILCODICE
else
echo "Connessione riuscita, ma pattern \"$PATT\" non
trovato"
exit 1
fi
else
echo "KO - "$LOUTPUT
exit 2
fi
################## andrea
--------- Original Message --------
Da: Hari Sekhon <a class="moz-txt-link-rfc2396E" href="mailto:harisekhon@gmail.com"><harisekhon@gmail.com></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a> <a class="moz-txt-link-rfc2396E" href="mailto:nagios-users@lists.sourceforge.net"><nagios-users@lists.sourceforge.net></a>
Oggetto: [Nagios-users] nagios HTTPS plugin?
Data: 05/07/06 16:53
>
</pre>
<blockquote type="cite">
<pre wrap="">
I haven't been able to find a check_https plug-in for nagios and I've
had a google which seems to indicate that there might be one, I just
haven't found it, could anybody give me any pointers?
I've running nagios on gentoo and have checked the use flags but there
isn't a use flag for it...
-h
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
</pre>
</blockquote>
<pre wrap=""><!---->easier
</pre>
<blockquote type="cite">
<pre wrap="">Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when
</pre>
</blockquote>
<pre wrap=""><!---->reporting any issue.
</pre>
<blockquote type="cite">
<pre wrap="">::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<pre wrap=""><!----> --
Email.it, the professional e-mail, gratis per te: <a class="moz-txt-link-freetext" href="http://www.email.it/f">http://www.email.it/f</a>
Sponsor:
Crea il tuo sito web dinamico con PHP e MySQL - VideoCorso professionale
direttamente nel tuo computer. Trucchi e segreti
Clicca qui: <a class="moz-txt-link-freetext" href="http://adv.email.it/cgi-bin/foclick.cgi?mid=5142&d=20060705">http://adv.email.it/cgi-bin/foclick.cgi?mid=5142&d=20060705</a>
</pre>
</blockquote>
that's a good, idea. I think the check_http -S plug-in is enough unless
you want to do something special...<br>
<br>
-h<br>
</body>
</html>