Check_service format


#1

I am using

Nagios Core Version 4.2.0
NSClient++ 0.4.3.143 2015-04-29 x64

When I launch NSclient in Test mode this command works fine.

check_service "filter=name='OpenVPNService'" "empty-state=critical"

If I manually run this from nagios:

./libexec/check_nrpe -H server.domain.com -c check_service -a "filter=name='OpenVPNService'" "empty-state=critical"

I get this back:

OK: All 1 service(s) are ok.

When I use my service definition:

define service {
        use                     generic-service
        host_name               server
        service_description     OpenVPN Tunnel Status
        check_command           check_nrpe_test!server.domain.com!check_service -a "filter=name'OpenVPNService'" "empty-state=critical"
}

I only get a status of UNKNOWN in the web UI

What am I missing?

Thanks,

Shawn