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
Clustering and High-Availability check_spark_worker.pl (Advanced Nagios Plugins Collection)
0.0 (0)
21K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)Julien DESMAREST (6)Chad Columbus (4)Davide Lemma (4)deskwork_itunes142 (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 > Steelpan
S

Steelpan

@stephan

User Stats

Member Since: April 27, 2010

Favorites0

Views

Projects0

No Projects Found
check_iptables

Added IPv6 support

Thanks for the check. I like to be able to check both IPv6 and IPv4, so that is what the edit below does: (Paths used in this script are adapted for Debian/ Ubuntu based systems.) #!/bin/bash case $# in 1) case $1 in -4) IPT='/sbin/iptables' ;; -6) IPT='/sbin/ip6tables' ;; *) ;; esac GREP='/bin/grep' AWK='/usr/bin/awk' EXPR='/usr/bin/expr' WC='/usr/bin/wc' STAT=0 OUTPUT='' CHAINS=`$IPT -nvL | $GREP 'Chain' | $AWK '{ print $2 }'` for CHAIN in $CHAINS ; do if [ "$CHAIN" != 'FORWARD' ] && [ "$CHAIN" != 'OUTPUT' ] && [ `$EXPR substr $CHAIN 1 4` != "LOG_" ] ; then CNT=`expr $($IPT -S $CHAIN | $WC -l) '-' 1` if [ $CNT -eq 0 ] ; then OUTPUT="${OUTPUT}ERROR $CHAIN $CNT rules!" STAT=2 else OUTPUT="${OUTPUT}OK $CHAIN $CNT rules" fi fi done echo $OUTPUT exit $STAT ;; *) echo "Usage: $0 [-4][-6]" exit 1 ;; esac

Reviewed 14 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile