Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 5.0.1
-
Fix Version/s: 5.0.5rc1, 5.2.0beta2, 5.2 (plan)
-
Component/s: Agent (G)
-
Environment:ubuntu 18
-
Team:Team A
-
Sprint:Sprint 68 (Sep 2020), Sprint 69 (Oct 2020)
-
Story Points:0.5
Description
zabbix server has a frontend script that executes
sudo /sbin/reboot
agent 2 has a config :
AllowKey=system.run[sudo /sbin/reboot]
DenyKey=system.run[*]
the agent will fail to reboot
solution
AllowKey=system.run[sudo /sbin/reboot,wait]
DenyKey=system.run[*]
so the agent2 is expecting the 2nd parameter instead of using the default value
2020/06/16 12:31:10.109972 [1] registering new client
2020/06/16 12:31:10.110122 [1] cannot monitor metric "system.run[sudo /sbin/reboot,wait]": Unknown metric system.run