How do I set up a check for BackupExec?

Francois Meehan francois at iecholden.com
Mon Jun 16 17:11:57 CEST 2003


Spam Block wrote:
> Has anybody set this up?
> Done via SNMP I guess, but what to check?
>  
> Fribse
>  

I do it with snmp traps:

First have a look at Nagios doc:
http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html

Copied files be_ov.mib and  bkupexec.mib (from the server that runs 
BackupExec) to my Nagios server mibs directory (/usr/share/snmp/mibs/ on 
Gentoo)

Did put the following statments in snmptrapd.conf:

# BackupExec job failed
traphandle Backup-Exec-MIB::jobFailured 
/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 2

# BackupExec job cancelled
traphandle Backup-Exec-MIB::jobAborted 
/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 1

# BackupExec job success
traphandle Backup-Exec-MIB::jobSuccess 
/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 3

# BackupExec full back-up complete job success
traphandle Backup-Exec-MIB::fullBackupComplete 
/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 3

# BackupExec job completed with warnings
traphandle Backup-Exec-MIB::jobSuccessExcept 
/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 4


And modified a little, the batch file from the documentation as follows:



     # Get severity level (OK, WARNING, UNKNOWN, or CRITICAL) and plugin 
output based on trape type
     state=-1
     output="No output"
     case "$1" in

         # failed to format tape - critical
         1)
             output="Warning: Job Cancelled"
             state=1
             ;;

         # failed to position tape - critical
         2)
             output="Critical: Job Failed"
             state=2
             ;;

         # backup success - ok
         3)
             output="Ok: BackupExec backup operation successful"
             state=0
             ;;

         # backup incomplete - warning
         4)
             output="Warning: BackupExec backup operation incomplete"
             state=1
             ;;
     esac

    # Submit passive check result to monitoring host
     /usr/nagios/libexec/eventhandlers/submit_check_result $hostname 
"Backup Exec" $state "$output"

exit 0

Now you have to configure a Nagios service called  "Backup Exec", 
configure your Back-up exec to send trap to the Nagios machine.

That is "roughly" it...

Francois




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list