Ad Widget

Collapse

Question about empty text items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clec0917
    Junior Member
    • May 2019
    • 5

    #1

    Question about empty text items

    Hello,

    I've created a template to monitor pfsense firewall system updates. To do that I've created an item with a command which checks for an available update version. This command returns either a version number as a text string when a new version is available or an empty string when there is no update.

    I tested the item with zabbix_agentd -t and it seems to work well:

    On a up-to-date system:

    [2.4.4-RELEASE][root@XXX]/root: zabbix_agentd -t pfsense.update
    pfsense.update [t|]


    When an update is available:

    [2.4.4-RELEASE][root@XXX]/root: zabbix_agentd -t pfsense.update
    pfsense.update [t|2.4.4_2]


    The issue I have is that Zabbix does not override the item value (non-empty) with the new empty value once the system has been updated. How should I configure the item so the empty value is recorded over the non-empty value when the ugprade has been performed ? Is it possible or should I do things differently ?

    Thanks,

    Charles
  • clec0917
    Junior Member
    • May 2019
    • 5

    #2
    Never mind, after deeper analysis it seems that the issue was due to sudo on the pfsense. It seems to work now.

    Comment

    Working...