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.
HP RAID cli command Winx64
gnothic_TN · 18 ago 2018, 1:00 · 5 mensajes · 75 visitas
- Inicio del debate
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
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.
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.
[
](//pandorafms.com/community/media/forum/10353/26086=2397-HPRaid2.PNG)
[
](//pandorafms.com/community/media/forum/10353/26086=2396-HPRaid1.PNG)
[
](//pandorafms.com/community/media/forum/10353/26086=2395-HPRaid.PNG)
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
Entra en tu cuenta para publicar.
