![]() |
![]() |
Subject: | Specific OID graphing for a true or false query w/ events generated if false. |
Author: | [Not Specified] |
Posted: | 2015-05-11 11:55 |
I'm looking at graphing our Linux Servers file systems for read and read-write access modes.
I can query my Linux Servers file systems by issuing the following command
snmpwalk -v2c -c public 192.168.100.10 .1.3.6.1.2.1.25.3.8.1.5.1
The result is either INTERGER 1 or 2 ( 1 means that the system is in read/write mode, and 2 means its in read only mode)
This is the ouput from the snmpwalk command
iso.3.6.1.2.1.25.3.8.1.5.1 = INTEGER: 1
I've already setup the graph, but I need to chart whether or not I got back a result of 1, or 2, and send out an event if 2 is noted.
This is my graph definition so far:
F -E --disable-rrdtool-tag --height=100 --width=500 --vertical-label= DEF:hrFSAccess-raw=rrdPath/hrFSAccess_hrFSAccess.rrd:ds0:AVERAGE DEF:hrFSAccess-raw-max=rrdPath/hrFSAccess_hrFSAccess.rrd:ds0:MAX CDEF: hrFSAccess = hrFSAccess-raw LINE1:hrFSAccess-raw#00cc00ff:hrFSAccess GPRINT:hrFSAccess-raw:LAST:cur\:%5.2lf%s GPRINT:hrFSAccess-raw:AVERAGE:avg\:%5.2lf%s GPRINT:hrFSAccess-raw-max:MAX:max\:%5.2lf%s\j
I'm running Zenoss 4.2.4
Thanks!
Subject: | There is already a component |
Author: | Jane Curry |
Posted: | 2015-05-14 10:05 |
There is already a component template for FileSystem that collects usedBlocks data. I would start by copying the FileSystem (/Server) template to /Server/Linux. That way you have a separate copy to apply to your Linux servers and you preserve the original template (in case you do something nasty ;) ).
Add a new datasource, say readWriteMode, with the OID of 1.3.6.1.2.1.25.3.8.1.5 (you don't want your final .1 - that is the instance and will be automatically added by Zenoss for each filesystem).
What you really want is an event; I guess you are not particularly interested in graphing the 1 or 2 value Next create a threshold based on your new datasource. Make it a MaxMin and threshold on a max of 1 (ie the readWrite value). Customise the threshold event as you like - warning severity and /Perf/Filesystem event class might be good choices.
Cheers,
Jane
This FileSystem component template will automatically be inherited by all devices under /Server/Linux
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
Subject: | thx |
Author: | [Not Specified] |
Posted: | 2015-05-14 13:45 |
I will give it a shot and let you know the outcome
< |
Previous Value changed from none to 1/2 |
Next Application pool monitoring |
> |