Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
chech_smartmon2
1.1
2013-01-04
- Nagios 3.x
GPL
50281
File | Description |
---|---|
check_smartmon2.py | check_smartmon2.py |
README.txt | README.txt |
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 is an extension to the original work of "fuler" found at
http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_smartmon/details
based on the logic of check_smart_attributes plugin by "frankie" found at http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_smart_attributes/details
The monitor logic has been restructured. Despite the overall smart status string, we now check each value against its threshold and report CRITICAL or WARNING based on the type (pre-fail or oldage) and the when_failed field (FAILING_NOW or In_the_past).
In addition one can define arbitrary raw values and thresholds to monito, apart from temperature.
A bunch of configuration options have been added (smartctl attrs, smartctl command, temperature id)
Reviews (1)
well but the verbose option provides no usable graphical output for very shame
I've done a patch to fix DeprecationWarning: os.popen3 is deprecated :
# diff check_smartmon.py.ori check_smartmon.py
38a39
> import subprocess
136c137,138
p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
> (child_stdin, child_stdout, child_stderr) = (p.stdin, p.stdout, p.stderr)
I've done a patch to fix DeprecationWarning: os.popen3 is deprecated :
# diff check_smartmon.py.ori check_smartmon.py
38a39
> import subprocess
136c137,138
p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
> (child_stdin, child_stdout, child_stderr) = (p.stdin, p.stdout, p.stderr)