mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
239 stars 94 forks source link

Check_service Performance-Data #681

Open n3k232 opened 4 years ago

n3k232 commented 4 years ago

Issue and Steps to Reproduce

Hi,

is there a way to disable the output of Performance-data for check_service only? We got a big Application to Monitor, with many Services.

And the Problem is, the output of the command is much to big for our nrpe. I tried it with perf-syntax and perf-config, but im not able do disable it for one command.

check_service "filter=name regexp '(?i)Servicename.*'" "crit=state = 'stopped'" "ok-syntax=%(status): All %(count) service
(s) are ok." perf-syntax=none
L        cli OK: OK: All 30 service(s) are ok.
: OK: All 30 service(s) are ok.
L        cli  Performance data: ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=
4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''
=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1
 ''=4;0;1 ''=4;0;1 ''=4;0;1
 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;
1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1 ''=4;0;1

Expected Behavior

Tell us what you think should happen.

Actual Behavior

Tell us what happens instead.

Details

Additional Details

NSClient++ log:

PLEASE PASTE LOG HERE