Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_temp.pl Popular
1.3
2011-05-18
- Nagios 2.x
- Nagios 3.x
GPL
107953
File | Description |
---|---|
check_temp.pl | Version 1.3 Fix degree taking up 2 digits on some OSs |
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 plugin can be used with NRPE or on a local machine.
It has been tested with sensor output in several forms:
#{1,3}
#{1,3}.#
#{1,3}.##
It will also match $sensor[newline]$temp where $sensor is the value of the -s argument.
## NRPE example ##
/etc/nagios/nrpe.cfg
command[check_temp]=/usr/lib/nagios/plugins/check_temp.pl -c 85 -w 75 -s 'CPU ., Core .'
/etc/sensors.conf
chip "coretemp-isa-0000"
label temp1 "CPU 0, Core 0"
chip "coretemp-isa-0001"
label temp1 "CPU 0, Core 1"
chip "coretemp-isa-0002"
label temp1 "CPU 0, Core 2"
chip "coretemp-isa-0003"
label temp1 "CPU 0, Core 3"
chip "coretemp-isa-0004"
label temp1 "CPU 1, Core 0"
chip "coretemp-isa-0005"
label temp1 "CPU 1, Core 1"
chip "coretemp-isa-0006"
label temp1 "CPU 1, Core 2"
chip "coretemp-isa-0007"
label temp1 "CPU 1, Core 3"
## Local config example ##
/etc/nagios/objects/commands.cfg
define command {
command_name check_temp
command_line $USER1$/check_temp.pl -w $ARG1$ -c $ARG2$ -s $ARG3$
}
/etc/nagios/objects/localhost.cfg
define service{
use local-service
host_name localhost
service_description CPU Temp
check_command check_temp!75!85!"CPU ., Core ."
}
It has been tested with sensor output in several forms:
#{1,3}
#{1,3}.#
#{1,3}.##
It will also match $sensor[newline]$temp where $sensor is the value of the -s argument.
## NRPE example ##
/etc/nagios/nrpe.cfg
command[check_temp]=/usr/lib/nagios/plugins/check_temp.pl -c 85 -w 75 -s 'CPU ., Core .'
/etc/sensors.conf
chip "coretemp-isa-0000"
label temp1 "CPU 0, Core 0"
chip "coretemp-isa-0001"
label temp1 "CPU 0, Core 1"
chip "coretemp-isa-0002"
label temp1 "CPU 0, Core 2"
chip "coretemp-isa-0003"
label temp1 "CPU 0, Core 3"
chip "coretemp-isa-0004"
label temp1 "CPU 1, Core 0"
chip "coretemp-isa-0005"
label temp1 "CPU 1, Core 1"
chip "coretemp-isa-0006"
label temp1 "CPU 1, Core 2"
chip "coretemp-isa-0007"
label temp1 "CPU 1, Core 3"
## Local config example ##
/etc/nagios/objects/commands.cfg
define command {
command_name check_temp
command_line $USER1$/check_temp.pl -w $ARG1$ -c $ARG2$ -s $ARG3$
}
/etc/nagios/objects/localhost.cfg
define service{
use local-service
host_name localhost
service_description CPU Temp
check_command check_temp!75!85!"CPU ., Core ."
}
Reviews (1)
bysnord, May 21, 2012
Works great using coretemp module on IBM xSeries servers. It would be perfect if it would support performance data output for graphing temperature trends. Maybe in a future update. Thanks.
Owner's reply
I will look into that. I have never done trend data before, so it would be something new to learn.