NRPE Nagios Plesk Backup Monitor

Summary: This is a plugin (backup_plesk_checker) that monitors backup status in Plesk panel – Success/Warning/Error/Date checker.

Full Description: This is a basic plugin (backup_plesk_checker) that monitors backup activities in Plesk panel. This plugin have 5 main options:

  1. Success status – backup ok
  2. Warning status – backup have warnings
  3. Error status – backup have errors
  4. Backup unsuccessful – date not equal to backup date
  5. Not all domains are backuped – How many domains have been backuped if the number is not equal it will give warning
  6. and will be more 🙂

Compatibility with plesk panel versions:
1) 17.8 – NO
2) 17.5 – NO
3) 17.0 – OK
4) 12.5 – OK
5) 12.0 – OK
6) 11.0 – OK

Last Update: 23.08.2017 v0.2

Some examples:

Success status

Warning status

 

Error/Date backup status

 

About NRPE with Nagios:

NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines. This allows you to monitor remote machine metrics (disk usage, CPU load, etc.). NRPE can also communicate with some of the Windows agent addons, so you can execute scripts and check metrics on remote Windows machines as well.


Installation instructions:

Edit file /etc/sudoers and add the following;

Edit file /etc/nagios/nrpe.cfg and add the following;

Copy backup_plesk_checker.sh to /usr/lib64/nagios/plugins/ and give this script 777 or just execute 🙂

And the Final step is to define service/define command to specific servers in Nagios server.


# Change log
23.08.2017 – 0.2
1) EDIT: Removed bash debug (#set -x).
2) ADDED: NEW check!!! How many domains have been backuped – if the number is not equeal it will give warning.
3) EDIT: Comments in the code + some cleaning… .

20.08.2017 – 0.1a
1) First release.


This Plugin is under development – stay updated via plugin github main page  or via newsletter – just sign up ! 🙂

If you have questions you may send me a massage : kamtec1 (att) gmail.com or sergey (att) securityinet.com .

 

nrpe-nagios-plesk-backup-monitor 23.08.2017 v0.2

https://github.com/kamtec1/nrpe-nagios-plesk-backup-monitor

Written by Sergey Babkevych SecurityInet https://www.securityinet.com

nrpe-nagios-plesk-backup-monitor is licensed under the GNU General Public License v3.0