Ad Widget

Collapse

Is it still possible to run remote commands? Zabbix 7+ agent 2 or agent 1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DoItAgainSteelyDan
    Junior Member
    • Mar 2025
    • 21

    #1

    Is it still possible to run remote commands? Zabbix 7+ agent 2 or agent 1

    Hello,
    I' m trying to enableremotecommands=1

    But no success with zabbix 7.2 / agent 2(windows 11pc)

    I don't see anywhere in the UI for triggers
    Click image for larger version

Name:	image.png
Views:	306
Size:	54.5 KB
ID:	501350

    I only see Send Message

    any help would be greatly appreciated
    Attached Files
  • Moob
    Member
    • Mar 2025
    • 31

    #2
    Hi,

    Well it depends what you want to accomplish, trigger a command on a host or send a message to someone.

    Yes you can use EnableRemoteCommand although this parameter is deprecated. Instead use AllowKey or the UserParameter parameters in your agent configuration file.
    To trigger a command on a remote host enable it in the agent configuration file like
    Code:
    ### Option: AllowKey
    AllowKey=system.run["net start *",*]
    AllowKey=system.run["net stop *",*]
    
    ### Option: DenyKey
    DenyKey=system.run[*]
    In the case above you can start/stop services from you zabbix server.

    The screenshot you posted is for sending message to user of usergroups when something happens.

    Regards

    Comment

    • DoItAgainSteelyDan
      Junior Member
      • Mar 2025
      • 21

      #3
      Thanks, i'll see if I can get it working using allowkey and denykey. I was trying to create a test script where it would delete files out of a folder if storage was above >X%

      Comment

      • jundle
        Junior Member
        • Aug 2024
        • 1

        #4
        did you end up getting this working? I'm lost on where to go to get some kind of trigger to perform a service bounce action. I get the concept that I need to adjust the agent on the endpoint server, but i assume i need to setup some kind of action on the zabbix server and i dont see where to do that. Any help on if you got it up and runing would be a big plus! Thank you

        Comment

        • joni2727
          Junior Member
          • Oct 2023
          • 1

          #5
          Buenas tardes desde Uruguay, soy bastante nuevo en zabbix, había logrado hace tiempo hace algunas cosas con Remote command pero como DoItAgainSteelyDan tengo el mismo problema ¿alguien pudo solucionarlo?

          Comment

          Working...