Random Project

works as promised

of course i don’t have a failing disk to see a critical state but it shows in nagios
OK : No PFA/S.M.A.R.T errors detected
here how i set it up:
1. Copy smartpfa.vbs into nsclient directory into scripts folder
2. Paste the following line into nsclient.ini file in the [wrapped scripts] sectioncheck_smartpfa=smartpfa.vbs /nologo /T:60
3. Restart nscleint in cmd type: net stop nsclientpp then net start nsclientpp
4. In nagios define the command $USER1$/check_nrpe_smart -H $HOSTADDRESS$ -c check_smartpfa
5. In services define: define service{
use generic-service
host_name myworkstation
service_description nrpe smart
check_command check_nrpe_smart
}