Aug 31, 2011 10:06 AM
Process monitoring without SNMP
-
Like (0)
Zenoss 3.1.0 (Core)
I have written a custom AIX SSH zenpack that gathers basic CPU, memory statistics. That works great.
I recently added an SSH based custom modeler plugin (based on the supplied Linux one) that successfully populates the GUI "Components"->"OS Processes" section after a device remodel. This works great too.
Problem:
How do I get process status information (i.e. process state, cpu, mem. usage) à la zenprocess.py but via SSH instead of SNMP? These AIX hosts do not expose the needed process information via SNMP so I have to use SSH (I don't want to reconfigure SNMP on them - it's out of the question). I found this post from Jane Curry from 2009 that seems to describe this same predicament but there is no solution provided:
this is a cross-post of same:
Has anyone tackled writing an SSH based version of zenprocess or is this capability already available in Core and I'm just not seeing it?
Thanks!
Chock
After I posted I found Jane Curry's good paper on process monitoring docs/DOC-3537
I also found a Matt Ray post from January 2009 promising ssh based process monitoring in "Blue Crab (2.4)", a version that has come and gone. I guess it's not possible to do ssh based process monitoring (yet).
I ended up hacking a custom template with a command (ssh) based datasource. It runs a script on the target device that outputs Nagios data of the form;
OK|cmdfoo=1 cmdbar=0 cmdbaz=1
(there are actually 32 process....)
1 means running, 0 means not running
I set datapoints for each process and a threshold that includes all datapoints with minumum of 1
Created an event transform to extract the process name from the eventKey and put it in the summary and it works well for this one server but wouldn't be easy to implement and maintain across multiple servers.
Chock
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||