Hi Team,
Thanks its showing ok now. I am just adding the points for how to monitor the windows certificate monitoring, At least it will useful to for single person.
Windows certificate monitoring via nagios.
1) Download the windows certificate script from below link
https://gallery.technet.microsoft.com/s ... g-0c2d6f6c2) Try to execute the script in windows server so that you will know that any errors are coming.
3) Copy the script in nsclient/scripts/ folder in windows server
4) Open the nsclient.ini and add the below lines to call the script from Nagios.
[/settings/external scripts/scripts]
PSCheckCertificate=cmd /c echo scripts\Check-Certificate.ps1; exit($lastexitcode) | powershell.exe -executionpolicy bypass -command –
5) Login to Nagios server create a command as below
define command {
command_name check_nrpe_Certificate
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -t 90 -c $ARG1$
}
6) root@XXXX:/usr/local/nagios/libexec# ./check_nrpe -H X.X.X.X -u -t 90 -c PSCheckCertificate
Certificates OK.