Ad Widget

Collapse

1.1Alpha7 - Triggers and Linkage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jyoung
    Junior Member
    • Mar 2005
    • 13

    #1

    1.1Alpha7 - Triggers and Linkage

    I found a possible bug in alpha7.

    I have a template that I am using to update all of my servers with basic checks. I have created an NTP check(any plans for a builtin NTP check by any chance?) called, "cust_check_ntp." After testing I noted that there were a few false negatives being alerted so I had to expand the trigger to more thorough expression checking both the last value and the previous value.

    Original epxression:
    ({Zonar.Servers:cust_check_ntp[10.30.0.33].last(0)}=0)

    New expression:
    ({Zonar.Servers:cust_check_ntp[10.30.0.33].last(0)}=0)&({Zonar.Servers:cust_check_ntp[10.30.0.33].prev(0)}=0)

    When this gets passed to the other hosts through linkage it is showing up as:
    ({Hostname.Here:cust_check_ntp[10.30.0.33].last(0)}=0)&({Zonar.Servers:cust_check_ntp[10.30.0.33].prev(0)}=0)

    Note the unupdated portion at the end.

    Could this possibly be that alpha7 is not evaluating the expression past the ampersand? Thanks,

    Jesse
  • klavs
    Junior Member
    • Apr 2005
    • 18

    #2
    > I have created an NTP check(any plans for a builtin NTP check by any chance?)

    If you post the code for the ntp_check we (the users) could collect the 3rd party checks, for anyone to dl and use, and then perhaps Alexei will take some of them and include.

    If you post it here, or email (see my address here: http://vsen.dk) it to me (with a node in the code to who created it , I'll gladly host it at contrib.virkpaanettet.dk (there's a download section).

    Comment

    • jyoung
      Junior Member
      • Mar 2005
      • 13

      #3
      Well, to say I created my *own* NTP check was wrong.

      Nagios is currently doing checks and alerts on my servers. I initially got Zabbix to keep track of loads, etc. and figured there was no reason to use to programs when Zabbix is able to handle it all.

      Since there's no NTP check(and a few others I use with Nagios) I'm simply using the Nagios scripts/binaries for these actions. I call the script/binary from a bash script and parse the data with awk to single out the data.

      I'd think a perl script could be written rather easily to handle this task, but I'm not really sure. It was something I was planning on looking into after I had everything running.

      I'd agree that a site with a section for user parameters would be great. Once things settle down with getting my servers using Zabbix I'll be placing my scripts(just a few and mostly using Nagios checks) in the cookbook section.

      Comment

      Working...