Ad Widget

Collapse

ARCServe SNMP trap and Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tts00
    Junior Member
    • May 2011
    • 13

    #1

    ARCServe SNMP trap and Zabbix

    Hello,

    I need a help to monitoring Arcserve jobs with Zabbix using snmp traps. I did everything using the guide located at http://www.zabbix.com/wiki/howto/mon...a_new_solution

    I send a snmp trap test with ARCServe and i try to see the traffic on Zabbix Server using tcpdump:

    tcpdump -i any -nn port 162

    17:27:43.126590 IP x.x.x.x.2199 > x.x.x.x.x: Trap(122) .1.3.6.1.4.1.46.879 10.223.0.7 enterpriseSpecific s=3 0 .1.3.6.1[|snmp]

    Nothing happens in the logs showing that traps were interpreted by the traphandle(perl script)

    tail -f /tmp/zabbix_snmptrapdebug.log

    snmptrapd.conf:
    ##############################################
    disableAuthorization yes
    donotlogtraps false
    traphandle default /sbin/scripts/traps.pl
    ##############################################

    snmp.conf
    ##############################################
    dodebugging 1
    mibfile /usr/share/snmp/mibs/ARCserve-Alarm-MIB.txt
    ##############################################

    I "googled" a lot, but nothing good about ARCServe SNMP trap and Zabbix.

    Any idea?

    Thank you
  • tts00
    Junior Member
    • May 2011
    • 13

    #2
    Another Approach

    Another approach that i´m trying...

    snmptrap.conf
    #############################
    # ArcServe SNMP Traps
    #############################
    # Tape format failures
    traphandle ARCserve-Alarm-MIB::arcServetrap9 /sbin/scripts/snmptrap.sh 9

    # Failure to read tape header
    traphandle ARCserve-Alarm-MIB::arcServetrap10 /sbin/scripts/snmptrap.sh 10

    # Failure to position tape
    traphandle ARCserve-Alarm-MIB::arcServetrap11 /sbin/scripts/snmptrap.sh 11

    # Cancelled jobs
    traphandle ARCserve-Alarm-MIB::arcServetrap12 /sbin/scripts/snmptrap.sh 12

    # Successful jobs
    traphandle ARCserve-Alarm-MIB::arcServetrap13 /sbin/scripts/snmptrap.sh 13

    # Imcomplete jobs
    traphandle ARCserve-Alarm-MIB::arcServetrap14 /sbin/scripts/snmptrap.sh 14

    # Job failures
    traphandle ARCserve-Alarm-MIB::arcServetrap15 /sbin/scripts/snmptrap.sh 15

    snmptrap.sh
    I´m testing this script runing a successful job.
    ################################################## #
    #!/bin/sh
    # 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
    11)
    output="Critical: Failed to format tape"
    state=2
    ;;

    # failed to read tape header - critical
    10)
    output="Critical: Failed to read tape header"
    state=2
    ;;

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


    # backup cancelled - warning
    12)
    output="Warning: ArcServe backup operation cancelled"
    state=1
    ;;

    # backup success - ok
    13)
    output="Ok: ArcServe backup operation successful";
    /usr/local/bin/zabbix_sender --zabbix-server localhost --port 10051 --host snmptraps --key snmptraps --value "$output";
    state=0
    ;;

    # backup incomplete - warning
    14)
    output="Warning: ArcServe backup operation incomplete"
    state=1
    ;;

    # backup failure - critical
    15)
    output="Critical: ArcServe backup operation failed"
    state=2
    ;;
    esac
    exit 0
    ################################################## #

    It didn´t work

    Comment

    • tts00
      Junior Member
      • May 2011
      • 13

      #3
      I got it.

      Topic closed

      Comment

      Working...