Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

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
  • Submit Feedback
Plugins4416Themes and Skins13Add-ons768Graphics 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
Java Applications and Servers check_cassandra_heap.pl (Advanced Nagios Plugins Collection)
0.0 (0)
32.5K
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)John Shorey (4)Chad Columbus (3)Marcin Bednarski (3)Nick Overstreet (3)
See More
Newest Contributors
Seiichi YAMAMOTO (1)codemasterydevelopers (1)sunilka (1)davidb (1)faddom (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Micha Will
MW

Micha Will

@mwill

User Stats

Member Since: July 20, 2011

Favorites0

Views

Projects0

No Projects Found
Check snapshots age and number

some small improvements and bugfixes

btw - the script is also compatible with esxi 5.x #!/bin/bash # Author Stefan Nonchev # Nagios script for checking the number of existing snapshots and how old are these. # The script should work with any ESXi 5.x # Installation notes: # On your nagios server execute: # # #sudo nagios # #ssh-keygen # copy the public certificate into /etc/ssh/keys-root/authorized_keys on each ESXi host that will be monitored debug=1 sshparameter="" print_usage() { echo "" echo "Usage: $0 [esxi_hostname] [warn] [crit] [snapage]" echo "where" echo "- [warn] and [crit] are the allowed numbers of all snapshots (summarized)" echo "- [snapage] is how old a snapshot is allowed to be (days)" exit 3 } case "$1" in --help) print_usage ;; -h) print_usage ;; esac if [ "$#" -ne "4" ]; then print_usage fi function date2stamp () { date --utc --date "$1" +%s } function dateDiff () { sec=86400 dte1=$(date2stamp $1) dte2=$(date2stamp $2) diffSec=$((dte2-dte1)) if ((diffSec $4 days ) snapshots on: $vmstr" exit 2 fi if [ $total -le $warn ] ; then echo "OK - $total snapshots found (warn=$warn)" exit 0 fi if [ $total -ge $crit ] ; then echo "CRITICAL - $total snapshots found (crit=$crit)" exit 2 fi if [ $total -ge $warn ] ; then echo "WARN - $total snapshots found (warn=$warn)" exit 1 fi

Reviewed 12 years ago

check_iftraffic4.pl

Version 4.1 needs Perl v5.12.0

Is Perl v5.12.0 really required? Perl v5.12.0 required--this is only v5.10.1, stopped at ./check_iftraffic41.pl line 85. BEGIN failed--compilation aborted at ./check_iftraffic41.pl line 85.

Reviewed 15 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile