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
Plugins4399Themes and Skins13Add-ons753Documentation283Graphics 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 Six Nagios Command Line Options Explained With Examples
0.0 (0)
77.8K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)Julien DESMAREST (6)deskwork_itunes142 (4)Chad Columbus (4)Davide Lemma (4)
See More
Newest Contributors
smolinux (1)juanfertor (1)zsoltaire (1)RavuAlHemio (1)sowoii (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Alexandre Luiz Azevedo de Oliveira
AL

Alexandre Luiz Azevedo de Oliveira

@lionbatata

User Stats

Member Since: April 18, 2011

Favorites0

Views

Projects0

No Projects Found
check_lvm

A litle correction and contrib

change the line: ## Get lv's and their df's for vg in `lvs --noheadings --nosuffix --units b --separator " " --options vg_name`; do for: for vg in `vgs --noheadings --nosuffix --units b --separator " " --options vg_name`; do For enhanced the output, change the entire block code as above: ## Get lv's and their df's for vg in `vgs --noheadings --nosuffix --units b --separator " " --options vg_name`; do for lv in `lvs --noheadings --nosuffix --units b --separator " " --options lv_name $vg`; do if [[ `mount | grep $vg | grep $lv` ]]; then dfout=`df -P --block-size=1 | grep $vg | grep $lv` outper=`echo "$dfout" | grep --only-matching "[0-9]*%"` outname="$vg/$lv" outmount=`echo "$dfout" | awk '{print $6}'` #`echo "$dfout" | awk '{ print $1 }'` outnum=`expr match "$outper" '([0-9]*)'` if [ $thresh_crit ] && [ "$outnum" -ge "$thresh_crit" ]; then critflag=1 msgs="$msgs$outname/$outper ($outmount)" elif [ $thresh_warn ] && [ "$outnum" -ge "$thresh_warn" ]; then warnflag=1 msgs="$msgs$outname/$outper ($outmount)" fi fi done done

Reviewed 15 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile