Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

469
Vistas
How to use Zabbix's CurlHttpRequest() in JavaScript?

I am learning Zabbix. I would like to use CurlHttpRequest() and all these functions: enter image description here

I can't find the documentation (what's going on inside). I would like to run a JavaScript script on my computer. How can I do that? I have a problem that even this simple line of code is undefined:

var req = new CurlHttpRequest();
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

While you are configuring javascript in zabbix media types, you have an option to test the script.

var response,
    json_payload,
    params = JSON.parse(value),
    wurl = params.URL,
    msg = params.Message,
    request = new CurlHttpRequest();
    
    json_payload = '{"attachments": [{"text": "' + msg + '"}] }';

    Zabbix.Log(4, '[ cURL-log ] Sending request: ');

    request.AddHeader('Content-Type: application/json');
    response = request.Post(wurl, json_payload);

    Zabbix.Log(4, '[ cURL-log ] Received response with status code ' + request.Status() + '\n' + response);

you cab use Zabbix.Log to generate logs like console.log in javascript.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda