Ad Widget

Collapse

Action: Remote Command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • st4nis1av
    Junior Member
    • Dec 2006
    • 8

    #1

    Action: Remote Command

    Hi!
    first sorry for my poor english (.

    I wanna send messages to ICQ uin, depended on trigger status changing.

    I installed agentd software on my server,
    DisableActive=0
    UserParameter=system.run,/bin/echo

    and created action:

    stat_routes: echo "msg 434657388 {TRIGGER.NAME}: {STATUS} " > /root/.micq/scripting

    it this possible?:

    1. usage like {TRIGGER.NAME etc. on Cmd string..
    2. can zabbix access on /root ? mb stupid question

    my problem is that action did not executing - no errors,
    no messages about it on Monitoring -> Actions ..

    what i do wrong ?

    Thanks!
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Currently ZABBIX server does not process macros defined in the commands. They are ignored.

    You should not have UserParameter system.ru in zabbix_agentd.conf!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • st4nis1av
      Junior Member
      • Dec 2006
      • 8

      #3
      is that right ?
      stat_routes: echo "msg 434657388 TEST MESSAGE" > /home/zabbix/scripting

      Comment

      • st4nis1av
        Junior Member
        • Dec 2006
        • 8

        #4
        i still can't get action work... but this action has status enabled...

        can anyone post working remote command example ?

        Thanks!

        Comment

        • sidpal
          Junior Member
          • Oct 2006
          • 13

          #5
          Remote Command Example

          I dont have a resolution for your problem but here is an example of a working Remote command. I hope it helps.

          system.run[nmap localhost|grep open|md5sum|awk '{print $1}']

          Comment

          Working...