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

Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now

Plugins4379Themes and Skins11Addons732Documentation283Graphics 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
Utilities Capture command output
RSS Feed
Newest Listings Updated Listings
Top Contributors
Julien DESMAREST (4)Davide Lemma (4)deskwork_itunes142 (4)Joerg Hoerter (3)TcoUpLoad (1)
See More
Newest Contributors
Community Member (51)Davide Lemma (4)Alarig Le Lay (1)Penn Rabb (1)Sean Falzon (1)
See More
Home > Mohammad Ali Alfarra
MA

Mohammad Ali Alfarra

@mhd-ali

User Stats

Favorites0

Views

Projects0

No Projects Found
check_xen

More changes

- use $DATA instead of do the command again in every status - add Shutoff status "because when the virtual host if off it'll appear nothing" DATA=`xm list $NAME | tail -1` R=`echo "$DATA" | cut -c 64` B=`echo "$DATA" | cut -c 65` P=`echo "$DATA" | cut -c 66` S=`echo "$DATA" | cut -c 67` C=`echo "$DATA" | cut -c 68` D=`echo "$DATA" | cut -c 69` if [ -z $R ] || [ -z $B ] || [ -z $B ] || [ -z $P ] || [ -z $C ] || [ -z $D ]; then echo "Critical - Virtual System is Shutoff" exit 2 fi if [ $R = "r" ] || [ $B = "b" ]; then echo "OK - Virtual System is Up" exit 0 fi if [ $P = "p" ]; then echo "Warning - Virtual System is Paused" exit 1 fi if [ $S = "s" ] || [ $C = "c" ] || [ $D = "d" ]; then echo "Critical - Virtual System is Down" exit 2 fi

Reviewed 12 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks