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

active check "pm2.processes" is not supported: Unsupported item key. #54

Open
SmollClover opened this issue Jun 3, 2022 · 3 comments
Open

Comments

@SmollClover
Copy link

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.

zabbix_agentd[575]: active check "pm2.processes" is not supported: Unsupported item key.

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:

UserParameter=pm2.processes,sudo -u root pm2-zabbix --discover
@rkaw92
Copy link
Member

rkaw92 commented Jun 6, 2022

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?

@SmollClover
Copy link
Author

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"
                }
        ]
} 

@intensite
Copy link

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]

image

The monitoring of PM2 Daemon works fine but I can get the PM2 processes info to be received by Zabbix Server.
Any ideas ?

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