Closed kafos closed 4 months ago
could you update the check_nsc_web plugin and see if it helps. Also the latest check_nsc_web has a -vv
switch to be more verbose and print the http communication.
(i am talking about https://github.com/ConSol-Monitoring/check_nsc_web)
Or you could use the builtin check_nsc_web from the snclient itself which uses the same version.
%> ./check_snlient run check_nsc_web -vv ...
I'm currently using the newest versions of check_nsc_web (0.6.3) The output of -vv is:
>>>>>>REQUEST:
GET /query/check_service?service=SERVICENAME&warn=state%21%3Dstarted HTTP/1.1
Host: 10.8.0.117:8443
User-Agent: Go-http-client/1.1
Password: PASSWORD
Accept-Encoding: gzip
>>>>>>
<<<<<<RESPONSE:
HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 07 Mar 2024 20:15:34 GMT
Content-Length: 0
<<<<<<
UNKNOWN - json error: unexpected end of JSON input
i found the issue, should be fine with the next build.
I created a service-check with a command is like this: check_nsc_web -k -p "password" -u https://10.8.0.100:8443 check_service service=SERVICNAME 'warn=state!=started' If the service is enabled, everything is ok.
If I stop and disable the Service, I get:
Not sure but it worked before version 0.19