Ad Widget

Collapse

Availability trigger for Active Checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dreas
    Member
    • Aug 2007
    • 89

    #31
    Hi. Thanks for the response! Both are indeed not too satisfactory I guess I could add a trigger monitoring the write ability of the database and adding a dependency. However one can argue that nodata should not be triggered when there is a problem storing the data locally (cause there IS data .. it's just not stored).

    Comment

    • Andreas Bollhalder
      Senior Member
      Zabbix Certified Specialist
      • Apr 2007
      • 144

      #32
      To get the locked state of the DB and depend on it would be a good idea. Unfortunatly, I don't have a solution for this.

      Andreas
      Zabbix statistics
      Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

      Comment

      • Andreas Bollhalder
        Senior Member
        Zabbix Certified Specialist
        • Apr 2007
        • 144

        #33
        I think the problem is the following:

        The backup starts and the DB gets locked. Then a trapper would receive from the agent that the DB is locked, but can't update the DB, because it's locked. Therefore, the trigger for DB is locked would never comes to true and your dependencies on this trigger never works.

        A possible solution could be to signal ZABBIX, before that the DB would be get locked. In a backup script, create for example a lock file. Then wait more time then the trigger of this lock file needs to get true. Make the backup and delete the lock file.

        Andreas
        Zabbix statistics
        Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

        Comment

        • dreas
          Member
          • Aug 2007
          • 89

          #34
          Hmm true. I hadn't thought of that. How could I easily manage to trigger a trigger from my dump script before I start the dump?

          Comment

          • Andreas Bollhalder
            Senior Member
            Zabbix Certified Specialist
            • Apr 2007
            • 144

            #35
            You also can setup an item for use with zabbix_sender. Use the zabbix_sender in the script to send a value which set the trigger to the needed state. I would still wait a short amount of time after using zabbix_sender to allow ZABBIX to process the value and change the trigger state.

            Andreas
            Zabbix statistics
            Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

            Comment

            • dreas
              Member
              • Aug 2007
              • 89

              #36
              It seems the trigger state is instantly change. Will try this. Thanks for the suggestion!

              Comment

              • bbrendon
                Senior Member
                • Sep 2005
                • 870

                #37
                I think we should stop using this thread. Its a cluster F*** of 4 different topics, which are not very related.
                Unofficial Zabbix Expert
                Blog, Corporate Site

                Comment

                • bashman
                  Senior Member
                  • Dec 2009
                  • 432

                  #38
                  Example of agent.ping with nodata function:

                  978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

                  Comment

                  Working...