Ad Widget

Collapse

user macros in remote commands broken in zabbix 2.0.1?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steev
    Member
    • Aug 2010
    • 38

    #1

    user macros in remote commands broken in zabbix 2.0.1?

    I have a remote command that looks like this:

    sudo killall -3 -u {$LOCALUSER} java
    sudo killall -u {$LOCALUSER} java


    however, when it actually runs I see this in the sudoers log:

    Aug 7 10:57:19 aba-syd sudo: zabbix : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/killall -3 -u {} java
    Aug 7 10:57:19 aba-syd sudo: zabbix : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/killall -u {} java


    as you can see, the agent is not replacing the macro with the appropriate value. Did the syntax change or something? The only recent change was that I upgraded to 2.0.1 from 1.8.13. The agent, however is still 1.8. I don't *think* that should be a problem... should it?
  • jmaurin
    Junior Member
    • Apr 2013
    • 20

    #2
    sabe problema here :/

    Comment

    Working...