Svar: Re: How do I set up a check for BackupExec?

Spam Block spam-block at fribert.dk
Wed Jun 18 08:27:25 CEST 2003


Sorry for not replying earlier. I'll have a look at it today!
I studied the docs a little, it looks complicated.
 
Kenneth


>>> Francois Meehan <francois at iecholden.com> 16-06-2003 17:11:57 >>>

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030618/8bd08dfb/attachment.html>


More information about the Users mailing list