Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_xserve

Rating
0 votes
Favoured:
0
Hits
93360
Files:
FileDescription
check_xserve.pyPython script to check built-in sensors on Apple hardware
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This python script utilizes Marcel Bresink's Hardware Monitor software to check the values of the sensors in Apple hardware such as the Apple Xserve.
Unfortunately, Apple's doesn't provide very robust SNMP support on their hardware. This script utilizes Marcel Bresink's http://www.bresink.com/osx/HardwareMonitor.html Hardware Monitor to check the value of the built-in sensors. There is a free version of Hardware Monitor, but you'll need the full version which costs ?7.00. Hardware Monitor must be installed on each host you want to check.

The script will execute a check on any of the Apple sensors. Examples of sensors include fan speeds, temperatures of all CPUs, and power supplies. You need to supply the name of the sensor, warning threshold, critical threshold, and (optionally) a temperature unit preference for temperature sensors.


usage: check_xserve.py -s -w -c -t tempunit

options:
--version show program's version number and exit
-h, --help show this help message and exit
-s SENSORNAME, --sensor=SENSORNAME

Check the value of the given sensor.

-w WARNINGVALUE, --warning=WARNINGVALUE

Generate warning state if sensor reading is above this

1.

-c CRITICALVALUE, --critical=CRITICALVALUE

Generate critical state if sensor reading is above
this value.

-u TEMPUNIT, --unit=TEMPUNIT

Set the temperature units to use. Choices are C, F, or

1. The default is C.



Typical uses (check parameters are examples only):


$ ./check_xserve.py -s "SMC FAN Left side" -w 3000 -c 5000
SENSOR OK: SMC FAN Left side: 2004 RPM|rpms=2004.0;3000.0;5000.0;0;

$ ./check_xserve.py -s "CPU Core 1" -w 50 -c 60
SENSOR WARNING: CPU Core 1: 59 C|temperature=59.0;50.0;60.0;0;

$ ./check_xserve.py -s "SMC MAIN HEAT SINK 1" -w 30 -c 40
SENSOR CRITICAL: SMC MAIN HEAT SINK 1: 48 C|temperature=48.0;30.0;40.0;0;