Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4394Themes and Skins11Add-ons744Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs Nagios Alerts Via Twitter
0.0 (0)
73.2K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)Yoann LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Claudio Kuenzler (2)
See More
Newest Contributors
zsoltaire (1)RavuAlHemio (1)sowoii (1)Nitatemic (1)cjdepaul (1)
See More

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Jacco Logtenberg
JL

Jacco Logtenberg

@jacco

User Stats

Member Since: January 14, 2015

Favorites0

Views

Projects0

No Projects Found
check_smart_attributes

Added drive detection

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();

Reviewed 11 years ago

No Favorites Found

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile