Open SmollClover opened 2 years ago
This sounds like the item is not added on the Zabbix server, so there's nowhere to write the value to. I don't have a Zabbix instance handy to reproduce the issue at the moment, so I could be wrong.
In any case, check whether sudo -u root pm2-zabbix --discover
actually works - does it produce a sensible output?
Like described in the Installation guide, I've imported the Template and added it to the Host.
Also, here is the exact output I receive when running that command.
(node:931477) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:931477) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:931477) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
{
"data": [
{
"{#PROCESS_ID}": "Hiko-0",
"{#PROCESS_NAME}": "Hiko"
},
{
"{#PROCESS_ID}": "SCP-1",
"{#PROCESS_NAME}": "SCP"
},
{
"{#PROCESS_ID}": "Cache-2",
"{#PROCESS_NAME}": "Cache"
},
{
"{#PROCESS_ID}": "Yagi-3",
"{#PROCESS_NAME}": "Yagi"
},
{
"{#PROCESS_ID}": "FiveM-5",
"{#PROCESS_NAME}": "FiveM"
},
{
"{#PROCESS_ID}": "MG-6",
"{#PROCESS_NAME}": "MG"
}
]
}⏎
Any news on this issue? I am facing the same. I have imported the Template App PM2, however something doesn't seem to work with the keys:
I.E:
pm2.processes[{#PROCESS_ID},cpu] pm2.processes[{#PROCESS_ID},status]
The monitoring of PM2 Daemon works fine but I can get the PM2 processes info to be received by Zabbix Server. Any ideas ?
Hi there!
I've tried using this Package, but my zabbix-agent doesn't seem to like the configuration file for whatever reason. I can't seem to figure out why and the Error it is giving me isn't helping at all.
Meanwhile pm2-zabbix is saying that it Failed to send any Information to my Zabbix Server, but I presume that is because of the zabbix-agent not understanding the config since other than the PM2 stuff, it's working fine.
My Config File contains this: