<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Sorry for not replying earlier. I'll have a look at it today!</DIV>
<DIV>I studied the docs a little, it looks complicated.</DIV>
<DIV> </DIV>
<DIV>Kenneth</DIV>
<DIV><BR><BR>>>> Francois Meehan <francois@iecholden.com>
16-06-2003 17:11:57 >>><BR></DIV>
<DIV>Spam Block wrote:<BR>> Has anybody set this up?<BR>> Done via SNMP I
guess, but what to check?<BR>> <BR>> Fribse<BR>> <BR><BR>I
do it with snmp traps:<BR><BR>First have a look at Nagios doc:<BR><A
href="http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html">http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html</A><BR><BR>Copied
files be_ov.mib and bkupexec.mib (from the server that runs
<BR>BackupExec) to my Nagios server mibs directory (/usr/share/snmp/mibs/ on
<BR>Gentoo)<BR><BR>Did put the following statments in snmptrapd.conf:<BR><BR>#
BackupExec job failed<BR>traphandle Backup-Exec-MIB::jobFailured
<BR>/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 2<BR><BR># BackupExec job
cancelled<BR>traphandle Backup-Exec-MIB::jobAborted
<BR>/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 1<BR><BR># BackupExec job
success<BR>traphandle Backup-Exec-MIB::jobSuccess
<BR>/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 3<BR><BR># BackupExec full
back-up complete job success<BR>traphandle Backup-Exec-MIB::fullBackupComplete
<BR>/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 3<BR><BR># BackupExec job
completed with warnings<BR>traphandle Backup-Exec-MIB::jobSuccessExcept
<BR>/usr/nagios/libexec/eventhandlers/bkexec_trap.sh 4<BR><BR><BR>And modified a
little, the batch file from the documentation as
follows:<BR><BR><BR><BR> # Get severity level (OK,
WARNING, UNKNOWN, or CRITICAL) and plugin <BR>output based on trape
type<BR> state=-1<BR> output="No
output"<BR> case "$1"
in<BR><BR> # failed to format
tape - critical<BR>
1)<BR>
output="Warning: Job
Cancelled"<BR>
state=1<BR>
;;<BR><BR> # failed to position
tape - critical<BR>
2)<BR>
output="Critical: Job
Failed"<BR>
state=2<BR>
;;<BR><BR> # backup success -
ok<BR>
3)<BR>
output="Ok: BackupExec backup operation
successful"<BR>
state=0<BR>
;;<BR><BR> # backup incomplete -
warning<BR>
4)<BR>
output="Warning: BackupExec backup operation
incomplete"<BR>
state=1<BR>
;;<BR> esac<BR><BR> # Submit passive
check result to monitoring host<BR>
/usr/nagios/libexec/eventhandlers/submit_check_result $hostname <BR>"Backup
Exec" $state "$output"<BR><BR>exit 0<BR><BR>Now you have to configure a Nagios
service called "Backup Exec", <BR>configure your Back-up exec to send trap
to the Nagios machine.<BR><BR>That is "roughly"
it...<BR><BR>Francois<BR><BR><BR></DIV></BODY></HTML>