Ad Widget

Collapse

Zabbix Agent returns empty values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • randomizedname
    Junior Member
    • Sep 2020
    • 10

    #1

    Zabbix Agent returns empty values

    Hi,

    I have a problem with empty item values returned by Zabbix Agent (from the python script)

    Key:
    Code:
    script[check_rsnapshot]
    Code:
    UserParameter=script[*], sudo /usr/bin/python3 /usr/scripts/script.py $1
    When I run this a user 'zabbix' it works just fine. It returns: 1.
    Code:
    sudo -u zabbix python3 /usr/scripts/script.py check_rsnapshot
    1
    /etc/sudoers
    Code:
    zabbix ALL=NOPASSWD: ALL
    Last edited by randomizedname; 09-09-2020, 14:05.
  • ryan_frank
    Junior Member
    • Sep 2020
    • 9

    #2
    Originally posted by randomizedname
    Hi,

    I have a problem with empty item values returned by Zabbix Agent (from the python script)

    Key:
    Code:
    script[check_rsnapshot]
    Code:
    UserParameter=script[*], sudo /usr/bin/python3 /usr/scripts/script.py $1
    When I run this a user 'zabbix' it works just fine. It returns: 1.
    Code:
    sudo -u zabbix python3 /usr/scripts/script.py check_rsnapshot
    1
    /etc/sudoers
    Code:
    zabbix ALL=NOPASSWD: ALL
    What do you get when you run zabbix_agentd -t script[check_rsnapshot]

    You can also enable DebugLevel 4 in the client config (then tail -f <zabbix_agent_log>) to see what issue the agent is having.

    Comment

    • randomizedname
      Junior Member
      • Sep 2020
      • 10

      #3
      I'm sorry, this was caused by my mistake. In the Zabbix palnel I've had wrong key: script[rsnapshot_check] instead of script[check_rsnapshot]. Sorry for taking your time.

      Comment

      Working...