Page 2 of 2

Re: HP 3PAR storage monitoring

Posted: Wed Dec 21, 2016 4:02 am
by uertti1
https://exchange.nagios.org/components/ ... 0&cf_id=24
Here is exactly this plugim which I'm trying to use.
I'm copying it into text file with .sh extension

I have another question. Inform OS v2.3.1 which is highlighted in description is the only one which can be monitored or I can use it, for example with for storage with v3.1.2?

Re: HP 3PAR storage monitoring

Posted: Wed Dec 21, 2016 4:13 pm
by avandemore
You may have used vi to create the file, but if you copy/pasted from a windows editor into vi then you also copy/pasted Windows line endings into a UNIX script.

Also to be clear by vi I assume you mean vim. There is a large difference for many things.

Please run the dos2unix referenced earlier or use vim itself to correct the errors:

Code: Select all

:set ff=unix
Save and exit the file. Try running it again.