Ad Widget

Collapse

Made a Zabbix front-end

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wido
    Junior Member
    • Mar 2006
    • 23

    #1

    Made a Zabbix front-end

    Hi,

    I am using Zabbix for our company and i must say, works great.

    To give our customers a overview of our network status i build a front-end for our NOC.

    Vindt er een storing plaats waarbij meerdere accounts tijdelijk niet beschikbaar zijn, dan lees je dat hier. Versio hanteert een onderhoudsvenster van 00.00 tot 07.00 uur. Tijdens het onderhoudsvenster kunnen we onaangekondigd regulier onderhoud plegen. Je account blijft doorgaans online, maar soms kan het voorkomen dat deze tijdens het onderhoud tijdelijk niet beschikbaar is.


    Runs with a cronjob and fetches all the data every 5 minutes from the Zabbix database and dumps it in a XML file.

    I thought it was nice to share this with you guys, so you can see what you can build with Zabbix.

    I also made a little cronjob that checks if Zabbix is running every minute, if not, it restarts Zabbix.
    Last edited by Wido; 31-03-2006, 10:55.
  • krusty
    Senior Member
    • Oct 2005
    • 222

    #2
    That looks very nice. You have invested many time for this work?

    Comment

    • Nate Bell
      Senior Member
      • Feb 2005
      • 141

      #3
      Very nice work!

      Nate

      Comment

      • dminstrel
        Member
        • Apr 2005
        • 72

        #4
        That's just amazing! I especially love the speed gauge for the network.

        Any way you might be convinced to share the source with the community?

        Comment

        • Wido
          Junior Member
          • Mar 2006
          • 23

          #5
          Well, the source aint that bright. It is a lot of hard-coding for all the items.

          As the attachment you'll find my file.

          I have it running every 5 minuts with a cronjob and it saves an XML-file like: http://noc.pcextreme.nl/cache/zabbix.xml

          With some DomXML and SimpleXML i make a overview for my customers.

          My triggers look like this:

          {Template:http.sum(300)}=0

          When a trigger reports 0 for 300 seconds, then a host is down and i want action to be taken.

          That's why i do this:
          Code:
          SELECT sum(value) AS value FROM history WHERE itemid = ".$row['itemid']." AND clock > ".(time() - 300)
          time() - 300 corresponds with my trigger-time.

          Took me about a day to build this.

          I think most work should be done in the switch(), that's where i find out wether a host is down or up.

          The bandwith meters are not done with Zabbix as backend, this runs through our poll-program (RTG).

          Excuse me, all comments are in dutch, that's because i am dutch.
          Attached Files
          Last edited by Wido; 31-03-2006, 19:45.

          Comment

          • jojo
            Member
            • Jul 2006
            • 57

            #6
            very nice!

            The layout is clean, simple and uncluttered. well done

            Comment

            • steff
              Junior Member
              • Jul 2006
              • 19

              #7
              Originally posted by Wido
              I also made a little cronjob that checks if Zabbix is running every minute, if not, it restarts Zabbix.
              Monit works great to do this job
              ... and it's very easy and simple to set it up!
              Take a look ...

              Comment

              Working...