This bash-script checks that backups are not too old, that the last backup had no errors, that all shares and subshares exist in the data root directory, etc.
This plugin and the "check_backuppc" check sligtly different things, and in different was. You can use both...
Tested on:
BackupPC 3.2.1 / Ubuntu 12.04
Should work in most similar systems i think. Let me know otherwise (create a ticket!).
Installation is easy:
Just put the check-script inyour nagios server, and the other (included) script somewhere so that the check-script can find it (e.g. in the $PATH, or edit the check script for a custom location).
License
Public DomainFollow check_backuppc_shares
Other Useful Business Software
Rate This Project
Login To Rate This Project
User Reviews
-
Great script! However there is a bug in the script. Causing errstr to contain doubles: I fixed this by removing errstr variable in every run of function seterror function, because it also get set in the seterror function For example: seterror $EXIT_ON_HOST_BACKUP_ERRORS "$errstr [$host] $last_errors_sum errors in last backup (id=$last_id)" Should be seterror $EXIT_ON_HOST_BACKUP_ERRORS " [$host] $last_errors_sum errors in last backup (id=$last_id)" And this for every run of the function seterror. Do you have a github of this somewhere? Thanks