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
Plugins4387Themes and Skins11Add-ons734Documentation283Graphics 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 Network Analyzer Documentation How To Create A Nagios Network Analyzer Instance In The Amazon EC2 Cloud Environment
0.0 (0)
24K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (6)LAMY (6)Davide Lemma (4)deskwork_itunes142 (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More

Copyright © 2009-2025 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 14 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile