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

check_cpu unable to handle % #110

Closed
awiddersheim opened this issue Feb 14, 2015 · 1 comment
Closed

check_cpu unable to handle % #110

awiddersheim opened this issue Feb 14, 2015 · 1 comment
Milestone

Comments

@awiddersheim
Copy link
Contributor

Most other modules seem to handle passing the warning/critical value with the '%' symbol included without issue. Here is check_memory() for example:

check_memory show-all "filter=type = 'physical'" "warning=used > 90%"
L        cli OK: OK: physical = 1.138GB
L        cli  Performance data: 'physical'=1.13778GB;3.5996;3.5996;0;3.99956 'ph
ysical %'=28%;89;89;0;100

I believe check_drivesize() and check_pagefile() also handle this gracefully. Here is check_cpu()

check_cpu show-all time=15m time=5m time=1m "warning=load > 90%"
D  w32system Error: m:Failed to handle type: int (i){90}, (s){%}
D  w32system Error: m:Failed to handle type: int (i){90}, (s){%}
D  w32system Error: m:Failed to handle type: int (i){90}, (s){%}
D  w32system Error: m:Failed to handle type: int (i){90}, (s){%}
D  w32system Error: m:Failed to handle type: int (i){90}, (s){%}
D  w32system Error: m:Failed to handle type: int (i){90}, (s){%}
L        cli WARNING: WARNING: warning(15m: 1%, 5m: 1%, 1m: 1%)
L        cli  Performance data: 'total 15m'=1%;0;90 'total 5m'=1%;0;90 'total 1m
'=1%;0;90

I am using the following version:

NSClient++, Version: 0.4.3.130 2015-02-11, Platform: x64

@mickem
Copy link
Owner

mickem commented Feb 15, 2015

resolved in 0.4.3.131

@mickem mickem added this to the 0.4.3 milestone Feb 15, 2015
@mickem mickem closed this as completed Feb 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants