PDA

View Full Version : Made a Zabbix front-end


Wido
31-03-2006, 11:53
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.

http://noc.pcextreme.nl/

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.

krusty
31-03-2006, 13:05
That looks very nice. You have invested many time for this work?

Nate Bell
31-03-2006, 18:42
Very nice work!

Nate

dminstrel
31-03-2006, 18:46
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? :D

Wido
31-03-2006, 20:43
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:
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.

jojo
23-09-2006, 09:45
very nice!

The layout is clean, simple and uncluttered. well done

steff
23-09-2006, 15:30
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 ...