Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check disk drives for s.m.a.r.t. attributes failures.
Current Version
Last Release Date
June 17, 2009
Owner
Nagios Exchange
Website
http://www.etsetb.upc.edu/
check_smart_attributes
This plug-in relies on smartctl tools. It checks the smart attributes table and It raises a critical if any pre-fail attribute is on. If any other attribute fails it returns a warning.
Plugin autodetects just mounted drives of 'hd*' type. I made some changes to autodetect hda|sda|vda drives, and they don't have to be mounted too: ]# diff check_smart_attributes check_smart_attributes.new 27c27,30 # 0.91 - jacco > # - added detection of more kinds of drives (hdx,sdx,vdx) > # - drives don't need to be mounted for autodetection (using blkid instead of mount) > # 56c59 my $BLKID = "/usr/sbin/blkid"; 61d63 use lib '/usr/lib64/nagios/plugins'; 77c80 " [--drive=/dev/hda [--drive=/dev/sdb [...]]] n"; 132c135 sub detect_all_drives { 135c138 open CMD, $BLKID."|" 139c142 if(m#^(/dev/[hvs]dw)d*:s+#) { 216c219 @DRIVE = detect_all_drives();
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!