Ad Widget

Collapse

Is it possible to enable specific trigger on specific server only, by automatically?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EvilEugene
    Junior Member
    • Mar 2012
    • 20

    #1

    Is it possible to enable specific trigger on specific server only, by automatically?

    Hello all,
    I want to monitoring swap usages, but only DB servers.
    I tried to add 'system.swap' item to mysql template, but It was already registered in another template(linux template), thus I can't add it.
    so I create trigger for swap usages in linux template, and make it disable by default.

    now, all of my servers has this trigger, but disabled.
    how can I enable it ONLY on DB servers?
    Is there any solution for this?

    thanks for help
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    Remove those item and trigger from linux template and add it to mysql template.

    Comment

    • EvilEugene
      Junior Member
      • Mar 2012
      • 20

      #3
      Thanks for response, Semiadmin.
      but the other servers also need to check swap usages.
      so I think moving it to mysql template isn't good solution...

      I'll find another way. thanks

      Comment

      Working...