Andreaco wrote:
Try this:

#!/bin/bash
# uso:
# ./check_curl_https.sh nomehost porta pattern
PATT=$4
LOUTPUT=`curl --connect-timeout 5 -s -k https://$1:$2$3`
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 <[EMAIL PROTECTED]>
	To: [email protected] <[email protected]>
	Oggetto: [Nagios-users] nagios HTTPS plugin?
	Data: 05/07/06 16:53
	
	> 
  
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
    
easier
  
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
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


 
    
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Crea il tuo sito web dinamico con PHP e MySQL - VideoCorso professionale
direttamente nel tuo computer. Trucchi e segreti
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5142&d=20060705



  
that's a good, idea. I think the check_http -S plug-in is enough unless you want to do something special...

-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 easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to