I use the zenplugin to monitor my MySQL servers.  I created a template under 
Device/Server/Cmd (since my remote servers are monitored via SSH) and bound 
that template to the device running the MySQL server.

The zenplugin mysql is added to the template as the only Data Source.  I set 
use SSH to True so it runs on the device itself, not the zenoss host (since you 
can't guarantee your MySQL is exposed to the network, but SSH almost certainly 
is).
You can add your choice of the fields returned by the zenplugin as Data Points 
for the Data Source.
Any graphs you define for the template will show up in the Perf tab for the 
device.  I'd actually prefer that the template was bound to the mysql process, 
but I haven't worked out how to set that up yet, or if it is even possible.

I've also lightly modified my zenplugin.py so it doesn't require passing of the 
hostname (which is always localhost in my setup), the username or password.  I 
found that tedious to setup in Zenoss and don't like advertising 
username/passwords in the process list.  Instead I have defined the 
authentication details in the .my.cnf for the user which runs zenplugins on the 
MySQL device.

------------------------
Kent Gibson




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=11322#11322

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to