Ad Widget

Collapse

How To - Monitoring HP Dataprotector

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbn00b
    Member
    • May 2012
    • 40

    #1

    How To - Monitoring HP Dataprotector

    Hey,

    First post contribution, happy to be giving something back.

    Tested on:
    Dataprotector 5.5 on Windows server 2003
    Zabbix 2.04

    Thanks:
    mmarkwitzz

    Without his template upload for Complete HP hardware monitoring this wouldn't have happened, those examples and quality coding really helped out.

    What does it do:
    • Start and Finish times
    • Errors and Warnings
    • Completion status
    • Session ID
    • Total time the backup took
    • Total Size
    • DP Service monitoring
    • Available tapes left in the pool
    • Plus triggers and Graphs


    Usage:
    Download the attachments
    Open the vbs file and change the zabbix agent path

    Add the following to the zabbix_agentd.conf on the client server (change the zabbix path again)
    Code:
    #hp dataprotector
    UserParameter = hp.dpchecks[*],cscript "C:\zabbix\zabbix_dp_backups.vbs" //Nologo "$1" "$2"
    And restart the service

    Notes
    From the zabbix web interface go to templates and select the dataprotector template change the POOLNAME key to the pool you want to monitor for available tapes.
    Attached Files
    Last edited by zabbn00b; 27-03-2013, 08:49.
  • zabbn00b
    Member
    • May 2012
    • 40

    #2
    Update v0.2
    Lots of fixes, after running with this for a few days a found problems like if i formatted a tape it counts as a job and this screws the logs up.

    Now it checks if the session ID has changed and the type is Backup, after that it checks to see if its still running.

    You will need to add "Timeout=5" to your zabbix agent on the DP server (zabbix_agentd.conf).

    You'll need to import the template again, the times i had specified were way out, it will now run every hour for most checks except for services and current status. Current status will run every 15 minutes, just in case you need to load a tape.

    Cheers.
    Last edited by zabbn00b; 27-03-2013, 08:50.

    Comment

    • JoaoVitorBR
      Junior Member
      • Mar 2013
      • 1

      #3
      update

      Hello mmarkwitzz (zabbn00b) !

      I installed the "monitoring data protector" in zabbix, and noticed that he is saving the information in the files into c: \ zabbix but is not in the database storing the data protector. When access recent data is not displayed and shows no value to 0.

      My zabbix this in version 2.0.5

      Any idea that can help me?

      Comment

      • zabbn00b
        Member
        • May 2012
        • 40

        #4
        Hey JoaoVitorBR,

        I'm not sure i understand the problem.

        Also you can change the log file location in the vbs file, at the top you can specify a location? Can you see the log files being generated, open the .saved files and see whats in them.

        I've got another minor release to update as well, there was a bug in the check_running function which wasn't reporting back correctly, this is fixed now i just need to upload the changes.

        Comment

        • zabbn00b
          Member
          • May 2012
          • 40

          #5
          Hey,

          i've updated this script again. more improvements.

          Also new template to fix some macros.

          thanks.

          Comment

          • Helmutsc
            Junior Member
            • May 2013
            • 1

            #6
            Wrong file read procdure

            Hi 'zabbn00b'!

            Thanks for the great script!

            We run into a problem when omitstat returns more then one backup Job. I got Only the first row.
            I changed the read procdure:

            Do Until objFile.AtEndOfStream
            Redim Preserve arrFileLines_run(i)
            readin=objFile.Readline[/COLOR]
            if instr(readin, "=====") <> 0 Then
            'do nothing...removing the header line we don't need it
            Else
            'write to file
            arrFileLines_run(i) = readin
            i = i + 1
            End if
            Loop

            Helmut

            Comment

            • maratzzzxxx@mail.ru
              Junior Member
              • Apr 2023
              • 1

              #7
              removed temp files
              Attached Files

              Comment

              Working...