Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
chech_smartmon2
Current Version
1.1
Last Release Date
2013-01-04
Compatible With
- Nagios 3.x
License
GPL
Hits
49384
Files:
File | Description |
---|---|
check_smartmon2.py | check_smartmon2.py |
README.txt | README.txt |
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)