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

pm2-zabbix --monitor error #28

Open
muslihmuslih opened this issue Jul 24, 2018 · 8 comments
Open

pm2-zabbix --monitor error #28

muslihmuslih opened this issue Jul 24, 2018 · 8 comments

Comments

@muslihmuslih
Copy link

i have error while run pm2-zabbix --monitor

{"name":"pm2-zabbix","hostname":"wowza","pid":32726,"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-07-24T03:35:19.382Z","v":0}

@rkaw92
Copy link
Member

rkaw92 commented Jul 26, 2018

Exit code 1 essentially means that zabbix_sender could not send the data. This is explained in the manpage of zabbix_sender. Not much pm2-zabbix can do in this situation - it is necessary to verify the configuration in /etc/zabbix/zabbix_agentd.conf, and try sending some keys manually to the server to check connectivity.

@muslihmuslih
Copy link
Author

What should I do? what configuration should I add in /etc/zabbix/zabbix_agentd.conf?

thank you

@muslihmuslih
Copy link
Author

I have 1 server running pm2, and 1 server for the zabbix server.
I installed zabbix_sender, zabbix_agent, pm2-zabbix on the server running pm2. Is that correct?

@rkaw92
Copy link
Member

rkaw92 commented Jul 30, 2018

It's set up correctly w.r.t. process placement. You should check the agent config file on the server running pm2 - look at Server and ServerActive, as they need to point to your Zabbix server's address. You can also check connectivity with normal network tools such as ping, netcat etc.

@muslihmuslih
Copy link
Author

pm2-zabbix --discover
{
"data": [
{
"{#PROCESS_ID}": "server-0",
"{#PROCESS_NAME}": "server"
},
{
"{#PROCESS_ID}": "index-1",
"{#PROCESS_NAME}": "index"
}
]
}

@muslihmuslih
Copy link
Author

pm2-zabbix --monitor
{"name":"pm2-zabbix","hostname":"encoder","pid":17849,"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":"2018-07-31T02:25:54.376Z","v":0}

@muslihmuslih
Copy link
Author

My zabbix.agentd.cnf

zabbix_agentd.zip

@roshank8s
Copy link

pm2-zabbix --monitor {"name":"pm2-zabbix","hostname":"encoder","pid":17849,"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":"2018-07-31T02:25:54.376Z","v":0}

Just add
Include=/etc/zabbix/zabbix_agentd.d/*.conf
In - /etc/zabbix/zabbix_agentd.conf

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

3 participants