Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitor error #37

Open
ghost opened this issue May 10, 2019 · 2 comments
Open

monitor error #37

ghost opened this issue May 10, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented May 10, 2019

hello im having a issue with pm2-zabbix. im am new to zabbix
{"name":"pm2-zabbix","hostname":"pi","pid":26920,"level":50,"event":"PM2ZabbixMonitor#processListSendingError","error":{"killed":false,"code":2,"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":"2019-05-10T16:42:58.057Z","v":0}
{"name":"pm2-zabbix","hostname":"pi","pid":26920,"level":50,"event":"PM2ZabbixMonitor#PM2StatusSent","error":{"killed":false,"code":2,"signal":null,"cmd":"/usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -"},"msg":"Failed to send PM2 status: Error: Command failed: /usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -\n","time":"2019-05-10T16:42:58.112Z","v":0}

@liu602348184
Copy link

hello im having a issue with pm2-zabbix. im am new to zabbix
{"name":"pm2-zabbix","hostname":"pi","pid":26920,"level":50,"event":"PM2ZabbixMonitor#processListSendingError","error":{"killed":false,"code":2,"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":"2019-05-10T16:42:58.057Z","v":0}
{"name":"pm2-zabbix","hostname":"pi","pid":26920,"level":50,"event":"PM2ZabbixMonitor#PM2StatusSent","error":{"killed":false,"code":2,"signal":null,"cmd":"/usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -"},"msg":"Failed to send PM2 status: Error: Command failed: /usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -\n","time":"2019-05-10T16:42:58.112Z","v":0}

open the node_module to edit pm2-zabbix or monitor.js find this line var hostname = os.hostname(); and delete it. put var hostname = "your hostname from zabbix_agent.conf"; here. i tried, it works fine.

@solick
Copy link

solick commented Jul 25, 2019

thanks for the hint but a much better solution would be usage off the HostName value from the Zabbix configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants