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

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4406Themes and Skins13Add-ons761Graphics 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
Nagios Log Server 2 Admin Guide Adding a new instance to a Nagios Log Server Cluster
0.0 (0)
6.6K
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)Chad Columbus (3)Marcin Bednarski (3)Davide Lemma (3)Sam N (2)
See More
Newest Contributors
pawal (1)matthewducey (1)Linuxfabrik (1)signalgrid (1)Sanna Glue (2)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Jonas Böttcher
JB

Jonas Böttcher

@joenazz

User Stats

Member Since: March 14, 2011

Favorites0

Views

Projects0

No Projects Found
SNMP Check Disk

Performance Data

Added performance data output. Maybe you will alter the script? --- check_disk_snmp.pl_2011-06-01_091729-536735145 2011-05-30 17:00:49.195836862 +0200 +++ check_disk_snmp.pl 2011-06-01 10:33:59.627838690 +0200 @@ -40,7 +40,10 @@ my $devUsed = q{}; ## - used oid my $perc = 0; ## - device percent used my $free = 0; ## - device free space +my $used = 0; ## - device used space my $size = 0; ## - device size +my $size_warn = 0; ## - device warning size +my $size_crit = 0; ## - device critical size my %unit_t = ( ## - units table 'KB' => 1 {$devSize}) * 100); $size = sprintf("%0.2f", $resp->{$devSize} / $unit_sz); +$size_warn = sprintf("%0.2f", ($resp->{$devSize} / 100) * substr($warn,0,-1) / $unit_sz); +$size_crit = sprintf("%0.2f", ($resp->{$devSize} / 100) * substr($crit,0,-1) / $unit_sz); +$used = sprintf("%0.2f", $resp->{$devUsed} / $unit_sz); $free = sprintf("%0.2f", ($resp->{$devSize} - $resp->{$devUsed}) / $unit_sz ); @@ -334,8 +340,9 @@ if ($free >= 100) {$free = commify(int($free))} if ($size >= 100) {$size = commify(int($size))} -print "SNMP $state - ", - "$resp->{$devDesc} at ${perc}% with $free of $size $unit_desc freen"; +print "DISK $state - ", + "$resp->{$devDesc} at ${perc}% with $free of $size $unit_desc free", + " | disk_usage=$used$unit_desc;$size_warn;$size_crit;0;$sizen"; exit $ERRORS{$state};

Reviewed 15 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile