Newbie: How to calculate within Nagios?

Anthony Montibello amontibello at gmail.com
Wed Aug 29 21:36:04 CEST 2007


Hi Kevin,

It should be straitfoward,
Write a wrapper script that calls the check_snmp plugin and reports the
values in the format you want.


other approches, is to see if you can change the format from the poweredge,
maybe contacting suppot you never know when undocumented functionallity is
availible.

Tony (author of nc_net)


On 8/29/07, Zembower, Kevin <kzembowe at jhuccp.org> wrote:
>
> I've just gotten my first Nagios system set up and running, so if this
> is a common question, please forgive me and point out what I overlooked.
>
> I want to use Nagios and the check_snmp plug-in to monitor the ambient
> temperature in my server room, and send alerts when the air conditioner
> fails. My Dell PowerEdge servers have an ambient temperature probe that
> reports in tenths of a degree Celsius. Here's an example:
>
> kevinz at cn2:~$ /usr/lib/nagios/plugins/check_snmp -H 10.253.192.204 -o
> .1.3.6.1.4.1.674.10892.1.700.20.1.6.1.3
> SNMP OK - 240 | iso.3.6.1.4.1.674.10892.1.700.20.1.6.1.3=240
> kevinz at cn2:~$
>
> The output indicates that the temperature is 24 degrees Celsius or
> (9/5)*24+32=75.2 degrees Fahrenheit. I'd like to use the Fahrenheit
> value in my emails, and set warning and critical values such as:
>
> kevinz at cn2:~$ /usr/lib/nagios/plugins/check_snmp -H 10.253.192.204 -o
> .1.3.6.1.4.1.674.10892.1.700.20.1.6.1.3 -w :220 -c :225
> SNMP CRITICAL - *230* | iso.3.6.1.4.1.674.10892.1.700.20.1.6.1.3=230
> kevinz at cn2:~$
>
> (These are artificially low, just for testing.)
>
> My question is, should I just hard-code the values in the email message
> ("Warning: the server room temperature exceeds 80 F.") or could I
> calculate within Nagios and say "Warning: the server room temperature is
> XX F." If I can calculate within Nagios, please point out an example in
> the documentation or other source.
>
> Thanks for your suggestion. I really appreciate all the time and effort
> devoted to Nagios.
>
> -Kevin
>
> Kevin Zembower
> Internet Services Group manager
> Center for Communication Programs
> Bloomberg School of Public Health
> Johns Hopkins University
> 111 Market Place, Suite 310
> Baltimore, Maryland  21202
> 410-659-6139
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070829/db509674/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list