Ad Widget

Collapse

Item value is not being returned to Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aperture-Development
    Junior Member
    • May 2019
    • 6

    #1

    Item value is not being returned to Zabbix

    Hello,

    I am currently experiencing issues with UserParameters. I have defined a few custom ones that seem to work with zabbix_agent2 -t

    On the server with the Agent:
    Code:
    root@server ~ # zabbix_agent2 -t smart.status.offline[sda]
    smart.status.offline[sda] [s|0]
    On the server with Zabbix-Server:
    Code:
    root@srv-cloud /etc/zabbix # zabbix_get -s {agentServerAddress} -k "smart.status.offline[sda]"
    
    root@srv-cloud /etc/zabbix #
    I have tried almost everything, but I don't seem to be able to get it to respond, but if I use a different Item, such as the filesystem discovery, I get a reply back with all found filesystems.

    Another issue I seem to have is that the return value of my command smartctl -a /dev/sda | grep Offline_Uncorrectable | awk '{print $10}' is being recognized as string, and not as unsigned interger, despite being 0.

    If anyone knows what I could do to fix these issues, I am thankful for any kind of help.

    With kind regards,

    Aperture-Development
  • Aperture-Development
    Junior Member
    • May 2019
    • 6

    #2
    Well now the issues seem to also appear with another server. Asking docker.ping on the server directly returns 1 and using zabbix_get from a remote machine it returns 0. This all makes no sense

    Comment

    • Aperture-Development
      Junior Member
      • May 2019
      • 6

      #3
      Okay I found ths issue, it was a issue with the permissions of the zabbix user. After adding sudo privileges for smartctl -a to the zabbix user I finally get a value on my zabbix, and also the right one. docker.ping requires the user to have docker privileges

      Comment

      Working...