Ad Widget

Collapse

Monitoring heartbeat health/failover

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gadget
    Junior Member
    • Jan 2006
    • 14

    #1

    Monitoring heartbeat health/failover

    I've been working with zabbix for more than 2 years now... rock solid and reliable - great software!
    Now I'm about to set up an active/passive clustered loadbalancer using heartbeat (linux-ha.org v1) on Debian Linux. I wonder if anyone managed to monitor the current heartbeat state, failover, communication failures etc. with any custom zabbix_agent scripts or logfile analysis. Actually I wonder that has never been a thread in this forum. Maybe people are using heartbeat's alerting scripts - but I want it to integrate in zabbix to have one single monitoring/alerting tool.
    Really hope anybody can give me a hint...

    Thanks
    Michael
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Trigger function nodata() is extremely useful for monitoring of hearbeats. You make create a script which would periodically send a value to ZABBIX server (crontab + zabbix_sender), and the nodata() trigger would detect if there is no data coming from the script within a period of time.

    This is not an answer to you question, just a thought...
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      Is this what you're looking for? Here is an annoyingly simple script that might do what you want. You could probably do it as a system.run.
      Code:
      #/bin/bash
      
      # 0 is bad, 1 is good
      
      STAT=`/usr/bin/cl_status rscstatus`
      
      #echo $STAT
      
      if [ "$STAT" = "all" ] || [ "$STAT" = "local" ]; then
        echo 1
      else
        echo 0
      fi
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • gadget
        Junior Member
        • Jan 2006
        • 14

        #4
        Originally posted by infinity005
        Is this what you're looking for?
        Yepp! This is exactly what I've been looking for! Thanks a lot... I didn't notice there comes a cluster status command with heartbeat. Thought this has to be done manually with some logfile grep-tail-awk voodoo

        Comment

        Working...