Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HP RAID cli command Winx64
#1
First of all, I want to thank the contributors of the project for such a versatile monitoring system. I would be interested in contributing some of my time to help if there is a need.


I'm setting up monitoring of HP Smart Array using hpacucli on Win 2008 x64 system, but the module does not execute (retcode 99.)
I try running the command by other means such as
module_exec cmd.exe /c hpaucli ctrl all show status
or
module_exec powershell hpaucli ctrl all show status
and even tried with a batch file. 
The module runs on some of these methods but returns a message "ERROR: cannot open console"

Is this possibly due to hpacucli expecting an interactive type command prompt? I've searched Google but could not find any insight into what is happening or a solution.

Right now I have a scheduled task running the batch file to output to a text file, then a module grabbing status info from the file.

Thanks.
 Reply
#2
(08-17-2018, 09:00 PM)gnothic_TN Wrote: First of all, I want to thank the contributors of the project for such a versatile monitoring system. I would be interested in contributing some of my time to help if there is a need.


I'm setting up monitoring of HP Smart Array using hpacucli on Win 2008 x64 system, but the module does not execute (retcode 99.)
I try running the command by other means such as
module_exec cmd.exe /c hpaucli ctrl all show status
or
module_exec powershell hpaucli ctrl all show status
and even tried with a batch file. 
The module runs on some of these methods but returns a message "ERROR: cannot open console"

Is this possibly due to hpacucli expecting an interactive type command prompt? I've searched Google but could not find any insight into what is happening or a solution.

Right now I have a scheduled task running the batch file to output to a text file, then a module grabbing status info from the file.

Thanks.

Good morning gnothic_TN,

After searching possible solutions for your problem, one thing I have noticed is that the command needs a correction: you are puting "cmd.exe /c hpaucli ctrl all show status" when it has to be "cmd.exe /c hpacucli ctrl all show status" with the c on hpacucli.
Or even the PATH where hpacucli isn´t the correct one.
Or even the credentials to call the hpacucli aren´t the correct ones while calling it from the module.

¿Does the execution work without the module, trying it directly on the cmd?

Please try this solution, but if the problem persists keep us in touch and we will try to search more solutions.

Alberto
 Reply
#3
Sorry I typed that up just as an example without directly copying and paste the exact module. I'll set another module up and paste it here. Thanks.
 Reply
#4
Here's the module config, I upgraded the utility hoping it would fix the problem.

module_begin
module_name Raid_LogDrv_1
module_type async_string
module_exec hpssacli ctrl slot=3 ld all show status | grep logicaldrive | gawk "{ print $6 }"
module_description Logical Drive 1 Status
module_group RAID_Log
module_end



The command is in the $PATH environment variable. The attachments show what should be expected in return and what Pandora Console is showing. Thanks.


Attached Files


.png   HPRaid2.PNG (Size: 6.67 KB / Downloads: 9)
.png   HPRaid1.PNG (Size: 21.72 KB / Downloads: 8)
.png   HPRaid.PNG (Size: 27.29 KB / Downloads: 7)
 Reply
#5
(08-20-2018, 06:22 PM)gnothic_TN Wrote: Here's the module config, I upgraded the utility hoping it would fix the problem.

module_begin
module_name Raid_LogDrv_1
module_type async_string
module_exec hpssacli ctrl slot=3 ld all show status | grep logicaldrive | gawk "{ print $6 }"
module_description Logical Drive 1 Status
module_group RAID_Log
module_end



The command is in the $PATH environment variable. The attachments show what should be expected in return and what Pandora Console is showing. Thanks.

Good morning gnothic_TN,

It might be a privileges problem when you run the agent module, because the software agent has not got the correct privileges.

Try to do this and wait until the agent reports afterwards.

Open a cmd.exe as administrator -> go to the PATH where you have the pandora agent saved-> execute PandoraAgent.exe process so the agent starts running as administrator.

Tell us how this change is going in order to continue looking for solutions.

Alberto
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes