Ad Widget

Collapse

How does disabling custom param's work?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edeus
    Senior Member
    • Aug 2005
    • 120

    #1

    How does disabling custom param's work?

    Hello,

    I have the following UserParam:
    areca[],/usr/local/bin/areca-info $1 $2

    There are about 10 different values that are monitored. i.e. areca[1] through areca[10] each giving different information and monitored as seperate items of course.

    As these go on and off, if they are off, zabbix does not need to continuously monitor it. The way it works is fine.

    The problem I am having is because one of the areca[] values returns no data, Zabbix goes unsupported.

    Does this sound correct or could there be another problem I am not seeing?

    As a workaround I could change the `/usr/local/bin/areca-info` script to return 0 instead of nothing but this could also be a problem returning 0 possibly could also be an emergency event (temperature or complete failure).
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Yes, this sounds correct. Make sure that your script always returns something to get rid of the problem.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • KarmaPolice
      Member
      • Oct 2005
      • 95

      #3
      As a really cheesy workaround you can set your "Refresh Unsupported Items" to be less than your monitor interval as well... this should make it go back to a supported state everytime it goes out to check.

      This option is in the Configuration > General > Other menu for 1.1b4 You'll have a lot of errors/events arise in your server log... but it shouldn't be a huge issue if you know that this is intended behavior.

      Comment

      • edeus
        Senior Member
        • Aug 2005
        • 120

        #4
        Nice hack there

        I opted to setting multiple static params. It seemed the best way forward.

        Comment

        Working...