Re: SMART
Posted: Wed Aug 14, 2013 6:28 am
I did but nothing changed ... same error
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
vbs = cscript.exe //T:60 //NoLogo scripts\\lib\\wrapper.vbs smartpfa.vbsCode: Select all
vbs = cscript.exe //T:60 //NoLogo scripts\\lib\\wrapper.vbs %SCRIPT% %ARGS%Code: Select all
check_raid=cscript.exe //T:60 //NoLogo scripts\smartpfa.vbs $ARG1$Code: Select all
./check_nrpe -H 172.25.1.101 -c check_raid -a <place your arguments here, wrapped in single quotes>root@nagios:/usr/local/nagios/libexec# ./check_nrpe -H 172.25.1.101 -c check_raid
scripts/check_smartarray.ps1 : AuthorizationManager check failed.
At line:1 char:1
+ scripts/check_smartarray.ps1; exit $LastExitCode
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Program Files\NSClient++\scripts> check_smartarray.ps1
check_smartarray.ps1 : The term 'check_smartarray.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
+ check_smartarray.ps1
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (check_smartarray.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command check_smartarray.ps1 was not found, but does exist in the current location. Windows
PowerShell does not load commands from the current location by default. If you trust this command, instead type ".\check
_smartarray.ps1". See "get-help about_Command_Precedence" for more details.
PS C:\Program Files\NSClient++\scripts> .\check_smartarray.ps1
Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. Do you want to run C:\Program Files\NSClient++\scripts\check_smartarray.ps1?
[D] Do not run [R] Run once Suspend [?] Help (default is "D"): R
& : The term 'C:\Program Files (x86)\Compaq\Hpacucli\Bin\hpacucli.exe' 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 C:\Program Files\NSClient++\scripts\check_smartarray.ps1:163 char:11
+ $exec = & $prg 'ctrl all show config'
+ ~~~~
+ CategoryInfo : ObjectNotFound: (C:\Program File...in\hpacucli.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
OK - RAID status is good
PS C:\Program Files\NSClient++\scripts>
PS C:\Program Files\NSClient++\scripts> .\smartpfa.vbs
PS C:\Program Files\NSClient++\scripts>
I dont know what arguments to put . I just execute this line. "./check_nrpe -H 172.25.1.101 -c check_raid "root@nagios:/usr/local/nagios/libexec# ./check_nrpe -H 172.25.1.101 -c check_raid
OK : No PFA/S.M.A.R.T errors detected
root@nagios:/usr/local/nagios/libexec#