On 4/25/07 3:33 PM, joe4 wrote:
> I have zenoss setup and successfully imported my MIB file.
> It shows on the Main View, MIBS link.
> It has OID Mappings alarm1    1.3.6.1.4.1.20916.1.3.2.1       scalar
> and
> Name Traps humidityAlarm1     1.3.6.1.4.1.20916.0.7   notification
> I can add the device to zenoss without any problem.
> I am now confused about how to add a monitor, alert, and event for
> the device. It is a environmental monitor and I want to graph temps,
> alert via e-mail if it reach 85 degrees and if the alert is not
> cleared run some ssh commands.

Joe, this is exactly what I did with one of our environmental monitors.
 I'll outline the process:

*) Go to the PerfConf tab of the device and make a local copy of the RRD
template (button just below the "Custom" tab)
*) Type a name for the data source, on my device I named it after the
OID (ambientTemp) in the text field under "DataSources" and click Add
*) Click on the source, set type to SNMP, enabled to True, and type the
OID (without leading period) in the field; in your case,
1.3.6.1.4.1.20916.1.3.2.1.0

Note I added a trailing zero to the OID; most devices will need this.
You can check, if you already know the temperature of the room, with
'snmpwalk -v1 -c <community> <env. monitor host/IP>
.1.3.6.1.4.1.20916.1.3.2.1.0' - if you get the temperature as a result,
you're good, otherwise take the trailing zero off and try again.
Whatever gives you the number is what you want in this field.

*) Click save, then type a name for the data point (I used ambientTemp
here too) in the text box below that section and hit add.
*) Now click on the data point, set the type, line type, and any other
things you'd like for graphing purposes.  Details in the admin manual.
Hit save when done.
*) Now back to PerfConf, type something interesting in the textbox under
Thresholds (I have two, hightemp and extremetemp).  Hit add.
*) Click your new threshold, select your data source, type in the value
- in your case, you said 85, so if the monitor reports in Fahrenheit
type in 85 (otherwise, 30 Celsius would be 86F).  Select an event class,
severity, and optionally escalate count (how many times this sample must
be above the max before triggering the event), set enabled to True and save.

Now, when the temperature is above that number, it will generate an
event.  Setup an alerting rule as you would for any other events (this
one's pretty clear in the manual I seem to recall).  For our monitor, I
have the two thresholds, both will generate pages if the server room
gets too hot but the "extremetemp" one will send SNMP commands to some
of the less critical machines' UPSes to gracefully shut them down.

-- 
Steve Huston - W2SRH - Unix Sysadmin, Dept. of Astrophysical Sciences
  Princeton University  |    ICBM Address: 40.346525   -74.651285
    126 Peyton Hall     |"On my ship, the Rocinante, wheeling through
  Princeton, NJ   08544 | the galaxies; headed for the heart of Cygnus,
    (609) 258-7375      | headlong into mystery."  -Rush, 'Cygnus X-1'
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to