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
Plugins4395Themes and Skins11Add-ons745Documentation283Graphics 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 Installing Nagios Network Analyzer with VMware Workstation Player
0.0 (0)
6.1K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (6)Julien DESMAREST (6)deskwork_itunes142 (4)Davide Lemma (4)Andrea Bolongaro (2)
See More
Newest Contributors
juanfertor (1)zsoltaire (1)RavuAlHemio (1)sowoii (1)Nitatemic (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Steven
S

Steven

@72mm

User Stats

Member Since: April 24, 2013

Favorites0

Views

Projects0

No Projects Found
check_domain_jwhois.sh

Updated to support a few other TLD's

Adding a few lines to better parse the expiration date.. it's a bit crude, but it's works ###### #! /bin/bash if [ $# -ne 1 ] then echo "Usage: $0 [domain name]" exit 1 fi getDate=`jwhois $1 | grep Expir` FIRST_WORD=`echo $getDate | cut -d " " -f1` case $FIRST_WORD in Registrar) expireDate=`echo $getDate | cut -d " " -f5`;; Registry) expireDate=`echo $getDate | cut -d " " -f4 | cut -d "T" -f1`;; Domain) expireDate_1=`echo $getDate | tr -s | cut -d ":" -f2-22 | sed -e 's/S*(:)S*//g' -e 's/ GMT //g'` expireDate=`date -d "$expireDate_1" +%Y-%m-%d`;; esac currentDate=`date +%s` expireDate=`date +%s --date="$expireDate"` ### Difference between expiration and right now timeDiffSec=`expr $expireDate - $currentDate` ### Convert to days (86400 seconds in a day) timeDiffDays=`expr $timeDiffSec / 86400` if [ $timeDiffDays -lt 15 ] then echo "CRITICAL: $timeDiffDays Left Until Domain Expiration" exit 2 fi if [ $timeDiffDays -lt 31 ] then echo "WARNING: $timeDiffDays Left Until Domain Expiration" exit 1 fi if [ $timeDiffDays -gt 30 ] then echo "OK: $timeDiffDays Left Until Domain Expiration" exit 0 fi

Reviewed 12 years ago

BigIP Pool and Virtual Server checks

BIG-IP v11

Needs just some minor updating to get it to work with BIG-IP v11. Partitions must be included in order to work. Not the cleanest way, but if you only use the default "common" partition, changes below: Original: $oidPoolName =~ s/(.)/sprintf('.%u', ord($1))/eg; $oidPoolName = length($PoolName) . $oidPoolName; Updated so it still supports older versions: if ($software eq '4.5' || $software eq '9' || $software || '10') { $oidPoolName =~ s/(.)/sprintf('.%u', ord($1))/eg; $oidPoolName = length($PoolName) . $oidPoolName; } if ($software eq '11') { $oidPoolName = "/Common/" . $PoolName; my $v11PoolName = $oidPoolName; $oidPoolName =~ s/(.)/sprintf('.%u', ord($1))/eg; $oidPoolName = length($v11PoolName) . $oidPoolName; print "v11 " . $oidPoolName . "n"; }

Reviewed 13 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile