Ad Widget

Collapse

Warning when item becomes unsupported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dreas
    Member
    • Aug 2007
    • 89

    #1

    Warning when item becomes unsupported

    When an item becomes unsupported then generally something is going wrong with the server and I want to receive notification. Preferably unsupported items show up with a different color in my overview. However it would already be a big help if I can somehow create a Zabbix trigger monitoring Zabbix if any items became unsupported! I don't understand why by default Zabbix is not warning about these items since people can disable items that should not be used.
  • dreas
    Member
    • Aug 2007
    • 89

    #2
    I managed to create a trigger to tell me when Zabbix has unsupported items using:

    UserParameter=zabbix.unsupported,mysql -uroot -pPASSWORD -e "use zabbix; select * from items where status=3;" | wc -l

    It returns the amount of unsupported items (0 means none). But this seems like an ugly "fix" for my issue.

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      Cool Idea!
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • dreas
        Member
        • Aug 2007
        • 89

        #4
        Another trick is to force the output of Userparameters to be integers (or output 99999). Just add at the end:

        | sed 's/ //g' | grep -o [0-9]* -m 1 || echo 99999

        Comment

        Working...