I wrote a new way of checking Exchange Backups, simple just needed to check the in AD the “Last time backup” of the Storage Group.  I wrote the much simpler and much more precise script to monitor Exchange Servers Backup. It reports Warning if the backup is > 2 < 5 days, if its over 5 days old it reports CRITICAL.
My Old one:
It is my 3rd custom Nagios NRPE_NT Plugin, so my code is getting better.
Script to Parse Backup Exec logfile .XML (gets based on today’s date)
Calculates how much data was written to Tape and total supposed backup size.
The supposed backup size depends, in our case we backup all Disks but the C:
and so I calculated in a Dynamic way. It Could easily be change to have fixed size.
It takes the percentage comparison between Total Used Space X Total backuped Space
Example Backuped 90% of the supposed space then raise warn if only 70% raise critical!

check_backup.vbs  <-v 1> -w 80 -c 70
-v 1 -w Warning % of Backuped Space -c Critical % of Backuped Space.


Tags: , , ,

6 thoughts on “Nagios Check BackupExec

  1. I’ve just started using NRPE on windows through the windows nsclient. Similar to what you’ve done here, I’ve made a vbscript that checks something on my windows server. It returns just fine, and in my nagios window I can see exactly the output of the vbscript. What I cant figure out is what do I output from that script to cause a warning or error in nagios. It always things everything is ok.

  2. Scott, check the source code of other vbs plugins and you will easly identify it.
    Basicly you will need to return a error code 0,1 etc… and/or the words WARNING,CRITICAL,OK

  3. Hi Felipe,
    I’m very interrested in your script that checks the backup size, but somehow both scripts you are offering check the last Exchange backup date. Only the filenames are different.
    Thanks in advance,

    1. Firdo,
      I first started out developing a script that went to and checked the size of the disk then checked on the log file of the
      backupexec and calcuated how much % was backuped… turn out this idea was not good, complicated and messy, so I never really finished that script.
      so just checking the last backup date (in exchange) was much easier and more efficient.

  4. HI,
    you mix “Check Exchange Backup (BackupExec)” with “Check BackupExec Backup Size”. Both is now felipeferreira.net/?p=55. I cant find BackupExec Backup Size, just the Exchange Backup Check.
    best regards,

Leave a Reply

Your email address will not be published. Required fields are marked *