Answer format error:'lines' is null

The Paremètres de co... file should be it. Windows has the option to hide extensions from known files, I’d recommend disabling this to immediately see nsclient.ini and variants.

The configuration bits look sane, there are no thresholds applied. Now extract the full command line executed from Icinga too.

  • Setup the API and create a user as described here.
  • Fire a GET query on the service object to gather the JSON data, especially last_check_result.command is interesting there.
curl -k -s -u root:<passwordfromtheapiuser> 'https://localhost:5665/v1/objects/services/PC_Thomas!Espace-disque'

Cheers,
Michael

1 Like

Hi, thanks for all your answers, i guess i found something that could be my problem, on the web interface of nsclient for the check_sncp command, i got :


0 crash(es), 2 error(s), last error: Certificate not found: C:\Program Files\NSClient++/security/certificate.pem (generating a default certificate), uptime 00:05:32.326745
i guess i need to create a certificate, if it’s that i ask you how ?
thanks

OK guys hank everyone who helped me i found a solution i don’t really know what i did but i did it.
i downloaded nsclien 0.4.4.23 and get this in my services.conf :
image
and now i got this :
image
i guess it was a synthax error or something.
goodbye