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

The determination of the number of service restarts metrics #9

Open
weiqiang333 opened this issue Oct 11, 2019 · 2 comments
Open

The determination of the number of service restarts metrics #9

weiqiang333 opened this issue Oct 11, 2019 · 2 comments

Comments

@weiqiang333
Copy link

Currently monit_export grabs "up" and "checkStatus" two metrics
But can't get the information of pid change from it to determine the number of restarts
And, I found that to get the service pid will encounter different status pid information is null

@weiqiang333
Copy link
Author

I will try to achieve the capture of pid information.

@weiqiang333
Copy link
Author

weiqiang333 commented Oct 11, 2019

It is worth reminding that the metrics value of monit_exporter_service_check will be in many combinations:
codes to text

//For conversion of status codes to text
$event[0] = 'OK';
$event[1] = 'Checksum failed';
$event[2] = 'Resource limit matched';
$event[4] = 'Timeout';
$event[8] = 'Timestamp failed';
$event[16] = 'Size failed';
$event[32] = 'Connection failed';
$event[64] = 'Permission failed';
$event[128] = 'UID failed';
$event[256] = 'GID failed';
$event[512] = 'Does not exist';
$event[1024] = 'Invalid type';
$event[2048] = 'Data access error';
$event[4096] = 'Execution failed';
$event[8192] = 'Changed';
$event[16384] = 'ICMP failed';

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

1 participant