Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Monitoring Backup Exec

  • Monitoring Backup Exec

    Posted by carsten-ager on January 19, 2011 at 16:28

    Hi

    We are evaulating PandoraFMS. We have downladed the virtual applience and installed it on a esxi server and it is running tests with agents on 3 servers.

    One question that has popped up is:

    – are there any agents available to monitor Symantec Backup Exec?

    What we want is – off course – information when backup jobs fail.

    Regards

    Carsten Ager

    daniels replied 14 years ago 4 Members · 4 Replies
  • 4 Replies
  • raul

    Member
    January 20, 2011 at 20:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi, if Symantec Backup Exec writes anything in a log, for example, and you know if there is a string that appears if backup fails, you can create a module easily to be added to your Pandora Agent in the Symantec Machine, for instance:

    Let’s suppose the log is C:Symantecerror.log, and if fails, the string “Backup Failed” appears in that log, you can create a module using awk like:

    module_begin
    module_name BackUp
    module_type generic_data
    module_exec awk “{x=0} /Failed/ {x=1} {print x}” C:Symantecerror.log
    module_description Failed in log.txt
    module_end

    It will shown 1 if the text “Failed” is shown in the log and 0, if not.

    If you have several “Failed” strings, you can use other commands to find the last one.

    Hope it helps

  • Sancho

    Administrator
    January 20, 2011 at 20:54
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    I use a single approach: how old is the file (in secs), by substracting its creation time from the current time, sounds complicated but it’s easy to do:

    For example:

    module_begin
    module_name LastBackup_Timestamp
    module_type generic_data
    module_exec expr `date +%s` – `ls -la –time-style=+%s /var/backup/lastbackup| awk ‘{ print $6 }’`
    module_end

    This will get a number, which will be increased in time, just define a critical threshold to define “when” its too old for you.

    It will work in Windows with some modifications.

    In windows you can use event parsing (form the eventlog), or parse an external log file, same as in Unix agents.

    Good luck !

  • carsten-ager

    Member
    January 20, 2011 at 22:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Seems like it is possible 🙂
    I’ll play with the solutions during the next days, and report back.

    Thanx

    Carsten

  • daniels

    Member
    February 10, 2011 at 21:55
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    module_begin
    module_name LastBackup_Timestamp
    module_type generic_data
    module_exec expr `date +%s` – `ls -la –time-style=+%s /var/backup/lastbackup| awk ‘{ print $6 }’`
    module_end

    I loved this module Sancho.

    Thanks 😉