Ad Widget

Collapse

2 Futures wanted

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Corsar
    Junior Member
    • Aug 2005
    • 24

    #1

    2 Futures wanted

    Hi ppl!

    Best regards to developer. New feture in 1.1_beta2 is very wanted.
    "Repeats".


    Now want next 2 futures:
    - running external scripts on the agent machine ... Example: restarting broken processes.
    - unlimited count repeats notification. At present time i am set up 9999 (in the BackOffice) or 999999 in the SQL
    I think what problem must be resolved (if some trigger on) and unlimited repeat notification the best way for this problem.

    P.S. May be create in18n forum? My english language is simple bad, but russian language so fine ...
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,
    Originally posted by Corsar
    - running external scripts on the agent machine ... Example: restarting broken processes.
    This capability already exists, however, there is not yet a mechanism to activate them based on a trigger without using the script media type. To make this work, you would create a scripted media type that would then use the agent communication mechanism to activate the custom script. For example, on the agent, you would create;
    Code:
    UserParam=customscript[ntpd],/opt/zabbix/scripts/startservice
    Then, you would create the startservice script to start whatever service you passed argument 1, in this case it would be ntpd. Next you would create the script media type to contact the agent and check the status of 'customscript[ntpd]'

    Now, the downside to this right now is that there is not yet a mechanism to pass the trigger, item, or key to the media script.


    unlimited count repeats notification. At present time i am set up 9999 (in the BackOffice) or 999999 in the SQL
    From what I recall, reading the source code, setting 'number of repeats' to zero means to do unlimited repeats.
    Unofficial Zabbix Developer

    Comment

    • Corsar
      Junior Member
      • Aug 2005
      • 24

      #3
      Hm ...

      If i am set up 0 in "repeats count" - frontend say me for "no repeats".

      May be sample bug in frontend logic?
      Or my logic ...
      1,5 Hour yesterday i setting in the frontend:
      repeats = YES
      repeats count = 0

      And frontend always say me for "no repeats".
      After 1,5 hour this situation i started MySQL frontend and see SQL structure.
      Hm, I not see column (like trigger) repeats in table actions , only maxrepeats.
      Set up some value in maxrepeats and frontend say me:
      Repeats - ON, Repeat count = ....

      Comment

      • marc
        Senior Member
        • Oct 2004
        • 146

        #4
        Originally posted by Corsar
        Hi ppl!
        Now want next 2 futures:
        - running external scripts on the agent machine ... Example: restarting broken processes.
        i like the idea of a new "UserActionParameter" wich can be choosen insteed of send message or additional. at the moment i have some perl scripts checking values from zabbix db and starting services if service is down. but the functionality would be a great improvement

        Originally posted by Corsar
        P.S. May be create in18n forum? My english language is simple bad, but russian language so fine ...

        i believe if we all start discussing in our native language we woudn`t have much fun with zabbix
        Last edited by marc; 15-10-2005, 14:01.

        Comment

        Working...