Skip to main content

Zenoss + Munin plugins



Using Zenoss with Munin plugins

I have started using Zenoss as a possible network/server monitoring alternative to using Nagios / Munin to monitor our network. I have started the Zenoss implementation but I am looking to extend what Zenoss can monitor. Munin has worked well for producing graphs of the systems, but it would be nice to integrate the functionality that Munin has into Zenoss and create a Zenpack that will monitor and graph all available Munin plugins running on a munin-client host. This would be really nice as our hosts already have the munin-node setup. I'm going to start with the Admin Guide to writing a ZenCommand and seeing if I can put together a script for Zenmodeler that will fetch the available plugins, the the info it needs about the plugin and start monitoring/graphing the service. I found a great Nagios plugin check_munin to use to fetch the data from the host as a good example of getting the data from the node. I may rewrite it in python to better integrate it into Zenoss.

...

20080616 -
I have decided to use Python for this project, writing a new agent that will use the telnetlib module to fetch the data from the munin-node. Here is a little example of Python in action getting the data from the node.

#!/usr/bin/python
import sys
import telnetlib

HOST = "localhost"
PORT = "4949"

tn = telnetlib.Telnet(HOST,PORT)
tn.write("list\n")

print tn.read_all()
tn.close()

>>> EOS

I will start there, working on getting the list and getting the data in a simple fashon.

Comments

rzarouali said…
hy , good informations on your tutorial,
did you keep working on it or not ?
i have the same issue, trying to put munin and zenoss together.
let me know if you worked on it :)

Xinity

Popular posts from this blog

Graphing Tomcat JVM Memory usage with munin

This plugin for Munin will show you the memory usage of your JVM that Tomcat is running in. This requires JDK 5+ and you must be starting your Tomcat with the jsvc command. This has been really useful in tuning the JVM memory settings for our Tomcat sites. You can click on the title to download the jstat__heap munin plugin. Place in in your /usr/share/munin/plugins directory then set a link in your /etc/munin/plugins/ directory with the name of jstat_www.domain.com_heap. You probably will have to also edit the /etc/munin/plugin-conf.d/munin-node file and add a jstat stanza for user root to execute the script.

Driving home

Driving home from work.
Charlie lookin' hot!