Ad Widget

Collapse

How to run 'script' for host that is in OK state

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arik
    Junior Member
    • Aug 2011
    • 1

    #1

    How to run 'script' for host that is in OK state

    Hello everyone,

    Is it possible to run a 'script' like a ping or traceroute (as defined in Administration->Scripts in Zabbix 1.8.5) for a host that does not have any active alarm on?

    The only way I have found, is for the hosts listed in Monitoring->Dashboard 'Last 20 issues' list, and for hosts listed in the Monitoring->Triggers list.

    I would like to be able to run my script for any hosts, even for those that don't have active alarm. Is there any way to do that?

    Thanks for any help!
  • MarkusL
    Member
    • Nov 2008
    • 41

    #2
    Hi!

    Don´t know what you exactly want to do, but:
    I think your thinking is wrong.

    Why no say your ok-status is NOT ok?

    Just generate a dummy-trigger (maybe with "not classified").
    This dummy-trigger reacts on "ok" and "not ok" and and and. On all situations. Behind this trigger write your action / script, your done.
    Problem: trigger is only fired on status-change (!).

    Again, don´t know what you want to do,...


    Maybe planned tasks or cron on the machine itself is your friend, too.



    Kind regards,

    Markus.

    Comment

    • candidinho
      Junior Member
      • Jul 2011
      • 6

      #3
      Go to Monitoring->Maps and click on your host.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        1. as noted, if the host is included in a network map, you may run those scripts always;
        2. in monitoring->triggers, filter for that host and set problem filter to "any"
        Zabbix 3.0 Network Monitoring book

        Comment

        Working...