[ZBX-25322] Unable to run Remote Command as Trigger Action Operation while in a Proxy Group Created: 2024 Oct 01  Updated: 2025 Apr 24  Resolved: 2024 Nov 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: None
Fix Version/s: 7.0.6rc1, 7.2.0beta1

Type: Problem report Priority: Trivial
Reporter: Dennis Skinner Assignee: Andris Zeila
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2025-04-08-15-20-13-706.png     PNG File image-2025-04-24-16-49-29-069.png     PNG File image-2025-04-24-16-49-57-823.png     PNG File image-2025-04-24-16-50-43-641.png     PNG File zbx25322-1.png    
Team: Team A
Sprint: S24-W44/45, S24-W46/47
Story Points: 0.5

 Description   

Zabbix Server 7.0.4/Proxy 7.0.3

I have a set of hosts being monitored by a Proxy Group.  I set up a new Script as a Remote Command (SSH with sshkey).  I tested the Script as a Manual Host Action and it works fine.  Cloned the Script and set as an Action Operation and added to the Trigger Action.  The action is to restart a service if it is detected down.

As a test, I stop the service on a test system and wait for Zabbix to see it.  The service down is detected, but the Remote Command action Fails with the message "Host is monitored by proxy group, but its proxy assignment is still pending."  The proxy assignment appears unchanged from what I can tell.  If I change the Host from being monitored by the Group to being monitored directly by that same Proxy that had been selected, it works.  Change back to Group (same proxy is selected) and run the test again and Fails with the assignment pending error.  Tested with another Host in the same Proxy Group, but assigned to another Proxy, same error.

I think this is a bug.



 Comments   
Comment by Tomasz Grzechulski [ 2024 Oct 03 ]

Hello Dennis,

Thank you for reporting this issue, we have been able to reproduce it,

We are looking into that,

Thank you,

Regards,

Tomasz

Comment by Andris Zeila [ 2024 Nov 11 ]

Released ZBX-25322 in:

  • pre-7.0.6rc1 38c7e514bf6
  • pre-7.2.0alpha2 546e82d2d55
Comment by Jeroen van den Haspel [ 2025 Apr 08 ]

Hi,

Why is this closed?
Version 7.0.10 still has this issue.

Regards,
Jeroen.

 

Comment by Andris Zeila [ 2025 Apr 08 ]

Could you please describe your setup in details. In basic configuration - host monitored by a proxy group, action script executed on host - triggering and event on host seems to be executing the script.

Comment by Jeroen van den Haspel [ 2025 Apr 08 ]

It's a trigger action.

Once trigger goes of the action is initiated to execute a command on another server.
That other server is assigned to a Proxy group. When I change that to a single proxy the action succeeds.

Comment by Alexander Vladishev [ 2025 Apr 14 ]

[email protected], unfortunately, I’m unable to reproduce the issue on my side. Could you also provide the following information:

  • What is the connection type of the Zabbix proxy (active or passive)?
  • What is the connection type of the Zabbix agent where the script is supposed to be executed?
  • A screenshot of the script configuration
  • A screenshot of the operation configuration in the trigger action

Also, please make sure that your Zabbix server is updated to version 7.0.6 or later.

Comment by Jeroen van den Haspel [ 2025 Apr 24 ]

Hi,

We have Active Proxies
Agent is connected through port 10050.

Zabbix server is 7.0.11. When starting this issue it was 7.0.10

Kind regards,
Jeroen.

Generated at Tue Jun 17 07:56:23 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.