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