Ad Widget

Collapse

Zabbix-Agent UserParameter Return Value Issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shaunbates
    Junior Member
    • Dec 2013
    • 3

    #1

    Zabbix-Agent UserParameter Return Value Issues

    Hi All -

    I'm having problems with return values from UserParameters setup in a particular fashion: I have several scripts that output various single-line data from the host, that when run as non-root users output undesired results.

    --When enforcing sudo within the zabbix_agent(d).conf files in the UserParameter entry, the UserParameters become unsupported with empty return strings.
    --When attempting to force the zabbix-agent to start under user root (By setting AllowRoot = 1 in agent conf files), the agent still starts under the zabbix user
    --Upon eliminating the script entirely and hard-coding the commands into the UserParameter definition in .conf files, the result is simply 0, even though when the commands are run from the cli they output the correct result.


    Does anybody have any experience with this or potential fixes? All three issues are attempted workarounds for the same problem Thanks!

    Shaun
Working...