Nagios Exchange
  • Home
  • Directory
  • 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
Plugins4387Themes and Skins11Add-ons732Documentation283Graphics 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
Get Monitoring Series Nagios XI – Get Monitoring Tutorial – How to Manage Plugins
0.0 (0)
5.4K
RSS Feed
Newest Listings Updated Listings
Top Contributors
LAMY (7)Julien DESMAREST (6)deskwork_itunes142 (4)Davide Lemma (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More
Home > Benjamin
B

Benjamin

@knasucre22

User Stats

Favorites0

Views

Projects0

No Projects Found
Ironport plugin with perfdata

Get Rates and Counter

Hi, Good plugin !! I added the feature to get log_used gauge and also "rates" from status file. The parameter should be rates_xxx where xxx is the rate you want to get. I don't care about warning and critical, I need rates only for my graphs. This is the result of the diff between your and my version. 109a110,112 > # delete EOL in XML key > sed ':a;N;$!ba;s/"n/"/g' ${STATUSFILE} > ${STATUSFILE}.tmp && mv ${STATUSFILE}.tmp ${STATUSFILE} > 297,298c300,332 IPORTPAR=`grep log_used $STATUSFILE | cut -d" -f 4` > if [ $IPORTPAR -ge $PAR_WARN ]; then > if [ $IPORTPAR -ge $PAR_CRIT ]; then > exitstatus=${STATE_CRITICAL} > echo "LOG DISK SPACE CRITICAL: $IPORTPAR%" "| RESULT=$IPORTPAR%;$PAR_WARN;$PAR_CRIT;" > else > exitstatus=${STATE_WARNING} > echo "LOG DISK SPACE WARNING: $IPORTPAR%" "| RESULT=$IPORTPAR%;$PAR_WARN;$PAR_CRIT;" > fi > else > exitstatus=${STATE_OK} > echo "LOG DISK SPACE OK: $IPORTPAR%" "| RESULT=$IPORTPAR%;$PAR_WARN;$PAR_CRIT;" > fi > ;; > rates_*) > SEARCH=`echo -n $ARGS | cut -c 7-` > IPORTPAR1=`grep $SEARCH $STATUSFILE | grep rate | cut -d" -f 4` > IPORTPAR5=`grep $SEARCH $STATUSFILE | grep rate | cut -d" -f 6` > IPORTPAR15=`grep $SEARCH $STATUSFILE | grep rate | cut -d" -f 8` > if [ "$IPORTPAR1" == "" ]; then > exitstatus=${STATE_UNKNOWN} > echo "Rate $SEARCH UNKNOWN : unable to get data from Ironport, check variable name" > else > # Return is always OK for rates !! > exitstatus=${STATE_OK} > echo "Rate $SEARCH returns:" > echo "Last_1_Min = "$IPORTPAR1 > echo "Last_5_Min = "$IPORTPAR5 > echo "Last_15_Min = "$IPORTPAR15 > echo "| Last_1_min=$IPORTPAR1; Last_5_Min=$IPORTPAR5; Last_15_Min=$IPORTPAR15" > fi > ;;

Reviewed 12 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks