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

CheckStoreBackup

Rating
0 votes
Favoured:
0
Hits
93170
Files:
FileDescription
check_storeBackupCheckStoreBackup V1.0
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!
Report status of last backup run for a given storeBackup logfile. Shell script (sh), GPL
## Description

This plugin reads the last log entry from a storeBackup logfile and derives a status from the storeBackup output.

Usage: check_storeBackup logfile

## Output:

The plugin prints either "RUNNING", "OK", "WARNING" or "ERROR" according to the log file analysis, followed by the number of errors and warnings and the "end"-timestamp (if applicable). If the logfile has been wrapped by storeBackup (the beginning is not within the analyzed logfile) the status is "WRAPPED"

Exit Codes
0 = OK (finished without errors/warnings)
1 = Warning (finished with warnings but no errors)
2 = Critical (finished with errors and maybe additional warnings)
3 = Unknown (the status cannot be derived, the backup is still running or the logfile is wrapped)

## Example

check_storebackup /backup/backup_users.log

OK - errors=0 warnings=0 - finished 2006.01.30 00:47:58
RUNNING - errors=0 warnings=3
ERROR - errors=3 warnings=0 - finished 2005.07.28 09:48:14

## Reference

http://sourceforge.net/projects/storebackup