Ad Widget

Collapse

How to reset statistics on Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rommel
    Junior Member
    • Dec 2011
    • 3

    #1

    How to reset statistics on Zabbix

    Hi,

    I would like to know how to reset (clear) statistics on Zabbix.

    Thanks.
    Last edited by rommel; 16-12-2011, 17:39.
  • bcarpio
    Member
    • Jun 2008
    • 96

    #2
    Unlink and clear

    I'm pretty sure you go to "Configuration >> Hosts >> Click On A Hostname >> Put checkmarks in each template for the host and select Unlink and Clear" that should reset the data.

    Comment

    • rommel
      Junior Member
      • Dec 2011
      • 3

      #3
      Solution to clear statistics

      Thanks for your reply, but this solution is not feasible for me.
      I have hundreds of hosts with many services. When I Unlink and clear this association and I lose all items (services) linked.
      I need exactly the CLEAN option, without Unlink the template.

      Any others sugestions?

      Comment

      • bcarpio
        Member
        • Jun 2008
        • 96

        #4
        Hmmm

        The only other option I know if is to go into each host select all the items and pick "clear history for selected" from the dropdown list.

        Comment

        • eskytthe
          Senior Member
          Zabbix Certified Specialist
          • May 2011
          • 363

          #5
          Well - you can do it per template:
          Conf -> Templates -> "actuel template" - select all items (upper left) - at the buttom select "clear history for selected"
          Else I think you have to do some direct database manipulation. Try search in the forum for specifik commands/syntax or ask at the zabbix IRC.
          BR
          Erik

          Comment

          • hryamzik
            Junior Member
            • Dec 2011
            • 16

            #6
            Clearing items from template doesn't work. At least in 1.8.9. Really a miss.

            Comment

            • fgallese
              Junior Member
              Zabbix Certified Specialist
              • Sep 2009
              • 20

              #7
              Perhaps I misunderstood your question , but if your are asking for a way to clear the history of an item, there is a button at items configuration screen that allows you to do just that.

              Comment

              • hryamzik
                Junior Member
                • Dec 2011
                • 16

                #8
                You do. Imagine you have a template with a wrong-configured item and 100 hosts based on it. Cleaning history for item from template menu doesn't clear history for linked hosts, so you'll have to clear host items history individually or run an sql queue.

                Comment

                • NetExpert
                  Junior Member
                  • Jul 2011
                  • 1

                  #9
                  You can do it with templates. Just go to the item and set both "keep history" and "heep trends" to 0. Save and then revert to original values.

                  Comment

                  • alex790
                    Junior Member
                    • Jan 2011
                    • 10

                    #10
                    It did not work for me too on 1.8. I found out there is an associated bug ZBX-2061 https://support.zabbix.com/browse/ZBX-2061 . I used one of the workarounds presented above

                    Comment

                    Working...