Ad Widget

Collapse

curl set connection time out got ZBX_NOTSUPPORTED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomoardi
    Junior Member
    • Aug 2020
    • 4

    #1

    curl set connection time out got ZBX_NOTSUPPORTED

    Hi,
    Is there any workaround that zabbix item can accept timed out from curl command?

    I've tried both execute shell script call curl using zabbix_agent User Parameter and remote command give same result "ZBX_NOTSUPPORTED: Timeout while executing a shell script."
    For successful command did not give any issue. But when i test connection timeout, error will always occurs.

    Pls help
  • isaqueprofeta
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2020
    • 154

    #2
    What's your Zabbix version? Cuz you can try switching the cURL for HTTPAgent since 4.0: https://www.zabbix.com/documentation...itemtypes/http

    Comment

    • tomoardi
      Junior Member
      • Aug 2020
      • 4

      #3
      i'm using 4.4.9. I'm ok with error from curl when it come to time out, but i need it to get pass to zabbix.
      Yes, i've also test with http agent but no luck as your answer in https://www.zabbix.com/forum/zabbix-...login-api-test, which is about mutiform-data.
      Attached Files
      Last edited by tomoardi; 30-08-2020, 04:02.

      Comment

      • isaqueprofeta
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Aug 2020
        • 154

        #4
        Originally posted by tomoardi
        i'm using 4.4.9. I'm ok with error from curl when it come to time out, but i need it to get pass to zabbix.
        Ah, now I see the problem... This timeout isn't from cURL man... it's from Zabbix-server... your script took more time than Timeout server configuration (Default is 3 seconds) to respond:

        https://www.zabbix.com/documentation.../zabbix_server
        Timeout no 1-30 3 Specifies how long we wait for agent, SNMP device or external check (in seconds).
        You can set a higher time (to a max of 30 seconds) but I don't recommend it.

        Originally posted by tomoardi
        Yes, i've also test with http agent but no luck as your answer in https://www.zabbix.com/forum/zabbix-...login-api-test, which is about mutiform-data.
        Man, did you read the example that I send you in the first answer from the official docs? It shows a whole login and logout process, with form data.

        Comment

        • tomoardi
          Junior Member
          • Aug 2020
          • 4

          #5
          https://www.zabbix.com/documentation.../zabbix_server
          Timeout no 1-30 3 Specifies how long we wait for agent, SNMP device or external check (in seconds).
          You can set a higher time (to a max of 30 seconds) but I don't recommend it.
          thank bro, its work now. I set 5 second timeout in zabbix agent config file. thanks.

          Man, did you read the example that I send you in the first answer from the official docs? It shows a whole login and logout process, with form data.
          Yes, I did. maybe my setup is wrong.

          btw, thanks. I'll stick to remote command for now.

          ---solved---

          Comment

          Working...