Ad Widget

Collapse

Cannot execute PING in the Map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robbat1
    Junior Member
    • Oct 2021
    • 5

    #1

    Cannot execute PING in the Map

    Click image for larger version  Name:	zabbix_ping_error.png Views:	0 Size:	38.7 KB ID:	448804 Hello All,

    I deployed Zabbix 6.2 in Docker containers as listed below and everything is working fine so far except for PING script execution in the map which presents the error bellow.

    Cannot execute script.
    Remote commands are not enabled [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupScriptExec->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CScript->execute() → CApiService::exception() in include/classes/api/services/CScript.php:974]


    - What are the possible causes?

    ------------------------------


    ARCHITECTURE


    On the cloud
    Server 1:
    - Zabbix Server MySQL Ubuntu
    - Zabbix Web Server NGINX MySQL Ubuntu
    - Zabbix Agent

    Server 2:
    - Zabbix DB MariaDB 10.6.5 Focal (Ubuntu 20.4)
    - Zabbix Agent

    On-Premises:
    - Proxy 1 (HW1)
    - Proxy 2 (HW2)

    Notes:
    • They are interconnected using VPN.
    • At this point, the Linux Firewalls are down.
    • The Fping and Ping can be executed manually inside the proxies and Server 1.
    • The EnableRemoteCommands is already set to 1 (yes) in the Proxy and in the Agent containers.
    Last edited by robbat1; 28-07-2022, 13:22. Reason: To include important information mentioned by Hamardaban
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    If it is specified that the script is executed by an agent, then check this setting in the configuration file

    https://www.zabbix.com/documentation.../zabbix_agentd
    EnableRemoteCommands no 0 Whether remote commands from Zabbix server are allowed. This parameter is deprecated, use AllowKey=system.run[*] or DenyKey=system.run[*] instead
    It is intern

    Comment


    • robbat1
      robbat1 commented
      Editing a comment
      Thanks, Hamardaban,

      ​​​​​​​The EnableRemoteCommands is already set to 1 (yes) in the Proxy and in the Agent containers.
      99% of the device monitored are network elements like routers and switches. In this case, is there a place to configure Zabbix to use the correspondent Proxy to execute the script (ping)?
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #3
    Of course there is - in the properties of the host (representing, for example, a router), a proxy is selected through which this device will be monitored.

    Comment


    • robbat1
      robbat1 commented
      Editing a comment
      Ok. I already have the hosts distributed to the two proxies. So, I understand that the script execution will be done by default from the associated proxy.
      Do you suggest or refer to a debug procedure in this case?
      Thanks
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #4
    Since the error message is most similar to the agent's message, I think you need to increase the logging level on the agent and look at its log.
    What is the agent's version?

    NOTE: Remote commands do not work with active Zabbix agents.
    Last edited by Hamardaban; 29-07-2022, 08:12.

    Comment

    Working...