Ad Widget

Collapse

Dependency problem using templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • remi
    Junior Member
    • Sep 2006
    • 11

    #1

    Dependency problem using templates

    Hi there,

    I'm looking into Zabbix 1.1.2 at the moment. It looks very promising :-) Thanks very much for the hard work!

    I have some trouble at the moment setting up dependencies.

    This is what I did:
    I created a template called 'generic'.
    Then I added two items and also two triggers. Both are simple checks: icmpping and ssh.

    Expressions used:
    {generic:icmpping.max(120)}<1
    {generic:ssh.max(120)}<1

    SSH depends on PING. (when we cannot ping the host, no need to send ssh-is-down warnings)

    Then I created some hosts which all are linked with the 'generic' template.
    In the monitoring overviews I see all hosts being monitored both PING and SSH. This works very well.

    When a host goes completely down (I used a test host and pulled the utp-cable), I see both the PING and SSH red-blinking indicating a problem.

    I setup an action to send an email. I'm getting two warnings: both PING and SSH are down. I'd expect to reveive a notification for PING only, since SSH depends on it. Or am I mistaken?

    Probably it has something to do with templating. I created another host with no template and added the two items and triggers to the host directly. This works well. But I'd rather work with templates, since I need to monitor around 40-50 hosts..

    Any tips? Thanks in advance for your time!

    grtx,remi
    Last edited by remi; 30-09-2006, 19:46. Reason: typo
  • den_crane
    Senior Member
    • Feb 2006
    • 272

    #2
    Originally posted by remi
    Hi there,

    ...
    {generic:icmpping.max(120)}<1
    {generic:ssh.max(120)}<1
    .....
    grtx,remi
    way 1:
    trigger {generic:icmpping.max(120)}<1 Severity: Info
    trigger {generic:ssh.max(120)}<1 Severity: Disaster
    Action Condition Severity: Disaster >= Warning --> email

    But better way create one trigger:
    {generic:icmpping.max(120)}<1&{generic:ssh.max(120)}<1

    Comment

    • remi
      Junior Member
      • Sep 2006
      • 11

      #3
      Thanks a lot, this works great :-)

      It took some time to try this.. I've been busy with other projects but am now working on Zabbix again!

      Originally posted by den_crane
      But better way create one trigger:
      {generic:icmpping.max(120)}<1&{generic:ssh.max(120)}<1

      Comment

      Working...