Search found 2 matches

by santoshkp
Wed Aug 07, 2013 10:44 am
Forum: Open Source Nagios Projects
Topic: Missing expression after unary opearator '-'. At line:1 char
Replies: 3
Views: 5490

Re: Missing expression after unary opearator '-'. At line:1

If you are seeing this also via command line on the windows machine and not exclusively by nrpe. Then this is an issue with how the command is being executed on cmd. I can say that with some minor testing, I was able to run the check just like below: cd c:\users\admin\ echo desktop\exchangetest.ps1...
by santoshkp
Mon Aug 05, 2013 11:22 pm
Forum: Open Source Nagios Projects
Topic: Missing expression after unary opearator '-'. At line:1 char
Replies: 3
Views: 5490

Missing expression after unary opearator '-'. At line:1 char

Hi, I am facing some peculiar issue in PowerShell 2.0. I am monitoring Exchange 2010 server.I am not an expert in PS but occasionally write/edit few scripts to work with Nagios monitoring tool. Requesting help form PS experts. Your help will be appreciated. The script ExServiceAlert10.ps1 is attache...