Ad Widget

Collapse

Reset Trigger at Time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doofkopf
    Junior Member
    • Nov 2008
    • 2

    #1

    Reset Trigger at Time

    Hello at all,

    i have tride to set a trigger at time, that means the trigger goes on/off at 00:00 O Clock ore something. Is it possible to do that?

    I need this vor LogMonitoring Arcserve Backup Logs, my trigger goes off ( Green) at Backup Operation OK.
    If Arcserve Craches or the Backup Operation faild i want to let the Trigger on. The Problem is when Arcserve Craches there is no event to Trigger on, so i will set the trigger alway On and only at a possitiv event Off till 00:00 O´Clock

    Can someone Help me?
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    How do you run arcserve ? Is it a cron task ?
    Can you wrap it in a shell script ?
    Does it have a pidfile , etc .. ?

    If you can run your own wrapper script around, you could do something like:

    #!/bin/bash
    /path/to/arcserve --args...
    RET=$?
    zabbix_server ... --host=my_host --key arcserve_status=$RET

    Then you would check what value zabbix gets (and mix it with some .time() condition).

    Of course, you need to check what kind of return value you get when arcserve crashes.

    Anyway, if you could describe more precisely how the software works, people will probably be able to help you find a solution.

    Comment

    • doofkopf
      Junior Member
      • Nov 2008
      • 2

      #3
      Hello,

      i Trigger the Software with the Windows LOG Monitor.
      The trigger works alrady with two Eventlog Events one to turn the trigger On and another to turn the trigger off:

      ((({TRIGGER.VALUE}#2)|({Template_Eventlog:eventlog[System].nodata(30)}#1))&((({Template_Eventlog:eventlog[System].logsource(Application Popup)}=1)&({Template_Eventlog:eventlog[System].str(Vorgang Sichern konnte nicht)}=1))|(({TRIGGER.VALUE}=1)&(({Template_Event log:eventlog[System].logsource(Application Popup)}#1)|({Template_Eventlog:eventlog[System].str(Vorgang Sichern erfolgreich)}#1)))))


      The Problem is, that there is no Eventlog Event wenn Arcserve Crashes, i need to Trigger any other event ore something to set the Trigger back to ON (RED),
      and only wenn the eventlog Event form Arcserve comes, it turnes the Trigger OFF (Green)

      Comment

      • Calimero
        Senior Member
        • Nov 2006
        • 481

        #4
        Maybe you could use the .count() function that works over a period of time.

        If .time(0) > (expected end of backup) & log_item.count(3600, 'Backup complete') = 0 then ... trigger

        Comment

        Working...