N
N
nano_e_t_42016-11-21 02:05:16
Debian
nano_e_t_4, 2016-11-21 02:05:16

Why is the action not being fired?

Hello everyone
I'm configuring zabbix, I ran into such a problem: when creating a problem in a trigger, zabbix does not start the action.
logha writes run_remote_command(result:-3). What does -3 mean, to be honest, I have no idea
in the source code it is written that zabbix launches an action through the system.run function:

item.key = zbx_dsprintf(NULL, "system.run[\"%s\",\"nowait\"]", param)

Dear debian/zabbixists, please help me figure out what -3 is, otherwise I don't want to do streys and dig into them,
thanks
ps
action log:
8110:20161121:014401.486 query [txnlev:1] [insert into alerts (alertid,actionid,eventid,clock,message,stat
us,alerttype,esc_step) values (14,4,38,1479681841,'host1:/etc/zabbix/externalscripts/bla_action.sh',1,1,0)]
  8110:20161121:014401.491 In run_commands()
  8110:20161121:014401.491 In get_next_command(command_list:host1:/etc/zabbix/externalscripts/bla_action.sh)
  8110:20161121:014401.491 End get_next_command(alias:host1,is_group:0,command:/etc/zabbix/externalscripts/b
la_action.sh)
  8110:20161121:014401.491 In run_remote_command(hostname:host1,command:/etc/zabbix/externalscripts/bla_acti
on.sh)
  8110:20161121:014401.491 query [txnlev:1] [select hostid,host,useip,ip,dns,port,useipmi,ipmi_ip,ipmi_port,
ipmi_authtype,ipmi_privilege,ipmi_username,ipmi_password from hosts where status in (0) and host='host1' and
 hostid between 000000000000000 and 099999999999999]
  8110:20161121:014401.492 In get_value_agent() host:'host1' addr:'127.0.0.1' key:''
  8110:20161121:014401.493 End run_remote_command(result:-3)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konkase, 2016-11-21
@nano_e_t_4

Condition met?

Note: To enable this functionality, agent configuration file must have EnableRemoteCommands=1 option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question