Good evening, how are you?
Please excuse any grammar and spelling mistakes, as I am using Google Translate!
Scenario:
I have a Windows operating system installed and a VM (Debian 12) on it, where Zabbix is configured and running.
In this Windows environment, I have an ESP32, and I am trying to send data from a sensor to be monitored in Zabbix, using zabbix_sender.
When I send the command from Windows and/or from the Debian VM itself, which the ESP32 returns, it inserts the data correctly, but when sent through the ESP32, the Zabbix server reports that the "missing header, message ignored" is present. What could this be?
Please excuse any grammar and spelling mistakes, as I am using Google Translate!
Scenario:
I have a Windows operating system installed and a VM (Debian 12) on it, where Zabbix is configured and running.
In this Windows environment, I have an ESP32, and I am trying to send data from a sensor to be monitored in Zabbix, using zabbix_sender.
Code:
String payload = "zabbix_sender -z " + String(zabbix_server) + " -p " + String(zabbix_port) + " -s \Servidor\ -k \sensor.temperatura\ -o \"" + String(random(100)) + "\"";
Serial.println("Enviando dados para o Zabbix...");
if (client.connect(zabbix_server, zabbix_port)) {
// Enviar dados
client.print(payload);
client.flush();
client.stop();
Serial.println("Dados enviados!");
} else {
Serial.println("Falha na conexão com o servidor Zabbix");
}
Serial.println(payload);
Comment