Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

470
Views
¿Cómo usar CurlHttpRequest() de Zabbix en JavaScript?

Estoy aprendiendo Zabbix. Me gustaría usar CurlHttpRequest() y todas estas funciones: ingrese la descripción de la imagen aquí

No puedo encontrar la documentación (lo que está pasando dentro). Me gustaría ejecutar un script de JavaScript en mi computadora. ¿Cómo puedo hacer eso? Tengo un problema que incluso esta simple línea de código no está definida:

 var req = new CurlHttpRequest();
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Mientras configura javascript en los tipos de medios zabbix, tiene la opción de probar el 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);

puede usar Zabbix.Log para generar registros como console.log en javascript.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!