Ad Widget

Collapse

Keep datas of items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • julien.c
    Junior Member
    • Oct 2011
    • 3

    #1

    Keep datas of items

    Hi

    We have some windows servers and the guy before me created a lot of items and triggers manually for monitoring of partitions. And of course there is a lot of errors in these.

    I'd like to template that. I created a template for partitions, but when I will add the template to an host, I will have to delete old items. But I'd like to keep history of old items, for graphs. So my idea is to make sure all old items use uppercase letter, like fs.fs.size[E:,pfree], and items in template use lowercase letter.

    But this will be crap because we'll have two graphs for each partition. Is there a better way to do that ? Like add old datas to the new items or something like that ?

    Thank you
  • julien.c
    Junior Member
    • Oct 2011
    • 3

    #2
    Anyone ?

    I think there is only two ways.

    Easiest way but not very clean after because there will be doubles :
    • Change old items keys to something like old.<my key> Items will turn as not supported but I'll disabled them
    • Rename them as Old.<name>
    • Also rename graphs
    • Remove triggers
    • Add new items with template


    The hardest way is the same BUT, after adding items with templates :
    • Check id of old and new items
    • Go in DB and run a request to copy all datas in the old item table into the new item table
    • Remove old items, triggers and graphs

    With this, after operation the plateforms should be clean. But is it possible ?

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      Julien - It seems to me that when I have had non-templated items assigned to a few servers, and later decided I wanted them to be in a template, I simply created a template, copied them from a host into that template. Then, I assign that template to those hosts, the item(s) went from being non-templated to templated, and there would be no loss of history data.

      So, you may want to try that on a small scale basis and see if it will do what you want. In fact, do it by creating some items that it won't matter if you do lose data, just in case.

      After that, for clean up, you could use the Item filter and filter on "Non-templated" items and basically do mass deletes if there are leftover items you no longer wanted to have.
      Last edited by tchjts1; 28-07-2014, 23:31.

      Comment

      Working...