NSC exclude services with spaces


Hi ,

There a few older topic’s with the same problem. But the solution is not in the old topic’s

I have windows servers with services with space in the name and I want to exclude this Services in the nsc.ini Like exclude=name with spaces

I have tried with a single quote and a double quote, but no succes Like exclude='name with spaces’ Like exclude=“name with spaces”

The Space are in the Service name and in the display name of the Services.

Can anyone help me ?

Many Thanks



You simply eneter the name escaping in what manner works on the system your monitoring from (I tend to favrour ’ on linux):

L        cli CRITICAL: CRITICAL: Apple Mobile Device Service=stopped (auto)

check_service "exclude=Apple Mobile Device Service"
L        cli OK: OK: All 255 service(s) are ok.