Ad Widget

Collapse

Remote Commands working in Suse not in Ubuntu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dav_man
    Junior Member
    • Jul 2006
    • 7

    #1

    Remote Commands working in Suse not in Ubuntu

    I have been using Zabbix for some time now and even though some remote commands still return debug errors in Suse they do execute. Some commands do not. However, in Ubuntu, with the same exact configuration and sudoers entries, even a simple sudo:/etc/init.d/apache2 start will not work. We're looking at making a chage to Ubuntu or FreeBSD (have not tried this yet) and need to get this working.

    Behavior - If I log into the box with the Zabbix account and execute the commands they always work. If the agent executes the command they do not and return the notsupported error in the zabbix_server.log. The agent is running under the zabbix account. This is in 1.1 (i'm going to try 1.1.4 later). And I have tried using the host name (not FQDN) and IP address both.

    I know we have all experienced these things that take us to our wits end at times and I'm getting there with this one. Any help you can give me will be greatly appreciated! Then we can put a quick FAQ together.

    I see that Ubuntu is used for dev on this project so I am assuming the developers get this to work with no errors at all.

    Dave
  • dav_man
    Junior Member
    • Jul 2006
    • 7

    #2
    Ended up writing executable scripts for user zabbix and placing the SUDO commands inside those. The zabbix agent seems incapable of handling scripts that return multiple lines of output. I dump the output into a file instead and they execute every time. Looks like there's still work to do here.

    Comment

    Working...