greatcare / pm2-zabbix

A Node.js PM2 monitoring tool for Zabbix.
MIT License
87 stars 60 forks source link

level":50,"event":"PM2ZabbixMonitor#processListSendingError", #33

Open faissy2018 opened 5 years ago

faissy2018 commented 5 years ago

Hi i am facing error during running pm2-zabbix --monitor ,

{"name":"pm2-zabbix","hostname":"ip-172-31-43-89","pid":5808,"level":50,"event":"PM2ZabbixMonitor#processListSendingError","error":{"killed":false,"code":1,"signal":null,"cmd":"/usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -"},"msg":"Failed to send process list with stats to server: Error: Command failed: /usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -\n","time":"2018-11-05T15:12:36.599Z","v":0}

i tried sending some key zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k test_key -o 0 sent: 1; skipped: 0; total: 1

image

image

i stop pm2 process but didnt receive any tirgger .

image

dcdamien commented 5 years ago

Hello @faissy2018, would you like to show output of hostname command and also HostName key value from zabbix_agentd.conf?

solick commented 5 years ago

Hi I just ran into the same problem: hostname is different to HostName in Zabbix_agentd.conf. Obviously pm2-zabbix is using hostname instead of the key_value of Zabbix_conf. How can I force pm2-zabbix to use the right hostname?