-
Notifications
You must be signed in to change notification settings - Fork 61
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 only discover process_id and process_name #15
Comments
Hi. The discover mode output should look like the one you posted - process discovery is only for finding out what processes you have defined/available in Regarding monitor mode - are you seeing any errors? Are you getting something resembling the following?
I'll add some debugging options in a moment and make a branch that should shed some light on the issue. Going to implement much-needed logging, finally. |
Correct. Since
|
Okay, there are essentially two independent errors above:
|
Sorry I was away yesterday. PM2_HOME is under a different directory. We have a different zabbix directory for zabbix_agentd.conf,I think that's complaining on the zabbix side and should not have affected on the pm2.
|
There is currently an issue open (#16) that deals with home directory / |
The version on master now uses logic compatible with |
The ENOENT /pid issue has been rectified. Please let me know if you need more information. Correct, I always change the PM2_HOME directory. Is it possible to print the command line and data to standard out for troubleshooting purpose?
|
Yes. Just launch
(This is now included in the README) |
I am running 0.3 but I don't see anything writing on standard output. Am i missing something?
|
In discover mode, to avoid merging logs and output, logs go to stderr.
Dnia 24 lipca 2017 20:56:43 CEST, Leo Chan <notifications@github.com> napisał(a):
…I am running 0.3 but I don't see anything writing on standard output.
Am i missing something?
```
└─┬ ***@***.***
```
```
sudo PM2_HOME=/etc/data/hypernova/pm2 LOG_LEVEL=trace 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"
}
]
}
```
--
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub:
#15 (comment)
-- Wysłane za pomocą K-9 Mail.
|
Seems like all went OK here; closing. |
Version: 0.2.1
When running in discover mode, only process_id and process_name are showed up. (with a status code of 0)
/home/foo └─┬ pm2-zabbix@0.2.1 ├── minimist@1.2.0 ├── pidusage@1.1.5
I have ran --monitor --debug but it has the same result, I think the data is not picking up the data between the module and node.js and unrelated to zabbix_sender.
Any suggestion?
The text was updated successfully, but these errors were encountered: