Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_uptime.sh

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 3.x
License
Other
Hits
9668
Files:
FileDescription
check_uptime.shcheck_uptime.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Script to check the uptime of a Linux system.
--------------------------------------------------------------------------------

THIS PLUGIN IS PROVIDED "AS IS", WITHOUT ANY WARRANTY, AND WITHOUT ANY SUPPORT.

--------------------------------------------------------------------------------

This plugin check if the uptime is less than warning and critical.
Without argument, return only number of day.


Test with : CentOS 5, Nagios 3.5

--------------------------------------------------------------------------------

USAGE :
./check_uptime.sh [Warning] [Critical]

warning : number of days before warning
critical : number of days before critical

example :
./check_uptime.sh 365 730

--------------------------------------------------------------------------------

LICENCE : CC BY-SA 3.0
http://creativecommons.org/licenses/by-sa/3.0/

--------------------------------------------------------------------------------