If your Nagios status website shows the following error:
C:NagiosMonitoringNagiosMonitoring_AD_ReplicationCheck.ps1 : The term 'C:\NagiosMonitoring\NagiosMonitoring_AD_ReplicationCheck.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ CategoryInfo : ObjectNotFound: (C:\NagiosMonito...cationCheck.ps1:String) , CommandNotFoundException
+ FullyQualifiedErrorId :CommandNotFoundException
It could be, that the file and/or folder name where the *.ps1 files (which the NSCP Client/NSClient should trigger) are stored in didn´t exist or isn´t correct. So do the following:
– Make sure the files & folder exists
– Make sure the path & files name(s) is/are correct as written in the NSCP Client/NSClient config (nsclient.ini, see here for an example)