Ad Widget

Collapse

Remote command execution problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinay_athiyil
    Junior Member
    • May 2007
    • 10

    #1

    Remote command execution problem

    Hi,
    I have a problem with remote command execution using Zabbix action.I have created a Zabbix action for a trigger to run a remote command on localhost.The command is -
    top -b -n1|mail -s "Test" [email protected]
    I don't know whether this working or not ,there is no log or no entry in Monitoring->Action.
    When i was trying to run this command using zabbix_get i get ZBX_NOTSUPPORTED.
    Please help me
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Try to put full path to 'top' and 'mail'.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • vinay_athiyil
      Junior Member
      • May 2007
      • 10

      #3
      I have changed my configuration ,but no result .Is there any problem using pipe in command?
      i did'nt get any log at Zabbix->Monitoring->Action while trigger status change like email notification so that i can't assure whether this working or not.

      Comment

      • JonB
        Member
        • Oct 2006
        • 63

        #4
        I thnk you will find that you will have to use sudo. The zabbix user cannot run top.

        Jon

        Comment

        • vinay_athiyil
          Junior Member
          • May 2007
          • 10

          #5
          Individually both command "top" and "mail" working,only problem while combining these commands using pipe

          Comment

          Working...