NSClient++ Help (#1) - checkservicestate of multi-word services (#20) - Message List

checkservicestate of multi-word services

CheckServiceState doesn't know how to check services that are more than one word. I need it to. The process name doesn't work either ... how can I refer to a service with spaces in its name? With this I get "Service: <first word of service> caused: Could not open Service"

CheckAll? doesn't work either, which is sad, because ideally that's what I want. With this I get "Service: CheckAll? caused: Could not open Service".

I'm following the syntax and examples provided in the Wiki on this site.

  • Message #28

    Ahh, I must have had an old version. After redownloading, CheckAll? works. Services with spaces still don't work, though. There probably is some secret system name I don't know how to get?

    • Message #254

      Here an Solution for your Problem: check_someservice=inject checkServiceState "Service is Cool=started

      Note there is only 1! doublequote

      • Message #257

        should work with "service reallz cool=started" as well ?or doesn#t it? (if so it is a bug)

Subscriptions