Ad Widget

Collapse

Monitoring authenticated SSL sites

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbconn
    Junior Member
    • May 2011
    • 14

    #1

    Monitoring authenticated SSL sites

    I've been trying to figure out how Zabbix monitors https sites which use certs for authentication. From reading forum posts it seems that curl is used somehow? I'd be very grateful if someone had a brief cookbook on how to get this up and running in Zabbix?

    thanks
    Michael
  • mbconn
    Junior Member
    • May 2011
    • 14

    #2
    solved

    in case this is of any use to others, I figured this out. I use the following script (in /etc/zabbix/externalscripts)

    #! /bin/sh
    host=$1

    status=`curl --silent -k --cert /home/<wherever>/root-ca/public/<certname> https://$host/monitor.html`

    case $status in
    "up") echo "1";;
    *) echo "0";;
    esac


    i.e. if the curl command returns "up" a "1" is returned to Zabbix.

    Comment

    Working...