greatcare / pm2-zabbix

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

Not sending CPU/Memory stats; release new version? #9

Closed c0bra closed 7 years ago

c0bra commented 7 years ago

None of the process resource usage info seems to be coming up to Zabbix.

There's a commit from Jan 26th that updates to the "new" PM2 api, but it hasn't been released as the latest version (0.1.2) is from last April (2016).

@rkaw92 could you cut a new release, please?

c0bra commented 7 years ago

Alright, not 100% sure if that was the issue but I manually installed the tarball for commit 181959e and it's working.

rkaw92 commented 7 years ago

Hi, I've just published 0.2.0 with the updated pm2 integration code. Let me know should you encounter any further trouble. If you are confident that the matter is settled, feel free to close this issue.

penguin02007 commented 7 years ago

I am using 0.2.1 and seeing the same issue, thoughts?

/home/foo └─┬ pm2-zabbix@0.2.1 ├── minimist@1.2.0 ├── pidusage@1.1.5

$ sudo PM2_HOME=/etc/data/hypernova/pm2 pm2-zabbix --discover
{
        "data": [
                {
                        "{#PROCESS_ID}": "hypernova_service-0",
                        "{#PROCESS_NAME}": "hypernova_service"
                },
                {
                        "{#PROCESS_ID}": "hypernova_service-1",
                        "{#PROCESS_NAME}": "hypernova_service"
                },
                {
                        "{#PROCESS_ID}": "hypernova_service-2",
                        "{#PROCESS_NAME}": "hypernova_service"
                }
        ]
$ sudo PM2_HOME=/etc/data/hypernova/pm2 pm2 status
┌───────────────────┬────┬─────────┬───────┬────────┬─────────┬────────┬─────┬────────────┬──────────┐
│ App name          │ id │ mode    │ pid   │ status │ restart │ uptime │ cpu │ mem        │ watching │
├───────────────────┼────┼─────────┼───────┼────────┼─────────┼────────┼─────┼────────────┼──────────┤
│ hypernova_service │ 0  │ cluster │ 17209 │ online │ 39      │ 4h     │ 0%  │ 296.7 MB   │ disabled │
│ hypernova_service │ 1  │ cluster │ 16607 │ online │ 39      │ 2h     │ 0%  │ 194.2 MB   │ disabled │
│ hypernova_service │ 2  │ cluster │ 18864 │ online │ 39      │ 3h     │ 0%  │ 264.4 MB   │ disabled │
└───────────────────┴────┴─────────┴───────┴────────┴─────────┴────────┴─────┴────────────┴──────────┘
rkaw92 commented 7 years ago

@penguin02007 Hi. The discovery result looks OK relative to the pm2 status. Is pm2-zabbix not sending anything? Is it failing with an error? Have you checked the Troubleshooting guide? If yes, please open a new issue and describe the exact symptoms you are seeing vs. the expected behavior.

penguin02007 commented 7 years ago

I didn't go that far to start sending data to zabbix as there are metrics missing. I will open a new issue for this. Thanks!