Page 1 of 2

Dell OpenManage - PowerEdge

Posted: Thu Mar 01, 2012 4:16 pm
by lgitten
I installed Dell OpenManage Wizard in Nagios XI local server. The plugin check_dell_openmanage.pl is there.
I use ssh proxy to check monitoring host statistics, but for Dell Open Manage the command that's used is
>./check_dell_openmanage.pl -H $HOSTNAME -C pe_m610
The result is "Unknown" status with Error: Alarm signal (Nagios-time-out).
Dell Open Manage Server Administrator is installed on the monitoring Linux host and is open for connection.

How do I troubleshoot this?

Re: Dell OpenManage - PowerEdge

Posted: Thu Mar 01, 2012 5:42 pm
by scottwilkerson
To be clear, do you want to run this via ssh proxy, or just from the nagios server?

Meaning, can you just run it from the Nagios XI command prompt?

Code: Select all

cd /usr/local/nagios/libexec
./check_dell_openmanage.pl -H <YOUR_DELL_SERVER_IP> -C pe_m610

Re: Dell OpenManage - PowerEdge

Posted: Fri Mar 02, 2012 8:33 am
by lgitten
I want to run it on a remote host which is Dell M610 blade running Linux OS (not on my Nagios XI local server).
Can I run Dell Open Manage using check_by_ssh command?
When I run this from command line, I get the following error:

./check_dell_openmanage.pl -H <Host Server IP> -C pe_m600
Must define system type!
Usage: ./check_dell_openmanage.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd) [-P <port>] -T test|dellom|dellom_storage|blade|global|chassis|blade_1855|blade_1955|pe_800|pe_840|pe_1800|pe_1900|pe_2600|pe_2800|pe_2850|pe_2900|pe_6800|pe_m600|pe_m710|pe_r210|pe_r200|pe_r300|pe_r510|pe_r610|pe_r710|pe_t300|pe_t310|pe_t410|pe_t610|pe_t710|model_servicetag|os|custom [-t <timeout>] [-V] [-u <unknown_default>]
When I run this command, I get the following error after few sec of wait time:
./check_dell_openmanage.pl -H <Host Server IP> -T pe_m600 -C pe_m600 -v
Alarm at 5
The Net::SNMP library is available on your server

SNMP responses...
ERROR: Alarm signal (Nagios time-out)

Re: Dell OpenManage - PowerEdge

Posted: Fri Mar 02, 2012 11:45 am
by scottwilkerson
lgitten wrote:Can I run Dell Open Manage using check_by_ssh command?
Yes, but you would need to install the plugin on the machine that is going to be running it.

Then you can test it from XI with something like

Code: Select all

./check_by_ssh -H <HOST_RUNNING_COMMAND> -C '/check_dell_openmanage.pl -H <DELL_IP> -T pe_m600 -C <DELL_SERVER_SNMP_COMMUNITY>'

Re: Dell OpenManage - PowerEdge

Posted: Mon Mar 05, 2012 11:42 am
by lgitten
scottwilkerson wrote:
lgitten wrote:Can I run Dell Open Manage using check_by_ssh command?
Yes, but you would need to install the plugin on the machine that is going to be running it.


Is it enough to just copy check_dell_openmanage.pl file to /usr/local/nagios/libexec/ onto remote monitoring Linux host or do I need to do more than that?

Re: Dell OpenManage - PowerEdge

Posted: Mon Mar 05, 2012 1:33 pm
by scottwilkerson
lgitten wrote: Is it enough to just copy check_dell_openmanage.pl file to /usr/local/nagios/libexec/ onto remote monitoring Linux host or do I need to do more than that?
Maybe. I'm not positive if check_dell_openmanage.pl has any dependencies that need to be installed.. For sure once you copy it over you will need to make it executable

Code: Select all

chmod +x /usr/local/nagios/libexec/check_dell_openmanage.pl
Then you can try to run it on the local machine with the appropriate args and see what it returns.

Re: Dell OpenManage - PowerEdge

Posted: Mon Mar 05, 2012 4:58 pm
by lgitten
Then you can test it from XI with something like

Code: Select all

./check_by_ssh -H <HOST_RUNNING_COMMAND> -C '/check_dell_openmanage.pl -H <DELL_IP> -T pe_m600 -C <DELL_SERVER_SNMP_COMMUNITY>'
What is <HOST_RUNNING_COMMAND>? Option -H is to specify host by name or IP address.
When I run this command from command line I get the following error:

./check_by_ssh -H <remote host IP> -C '/check_dell_openmanage.pl -H <remote host IP> -T pe_m600 -C public"
WARNING: - check_by_ssh -H <remote host IP> -C '/check_dell_openmanage.pl -H <remote host IP> -T pe_m600 -C public" returned status 1

What am I doing wrong?

Re: Dell OpenManage - PowerEdge

Posted: Mon Mar 05, 2012 5:40 pm
by scottwilkerson
lgitten wrote:
Then you can test it from XI with something like

Code: Select all

./check_by_ssh -H <HOST_RUNNING_COMMAND> -C '/check_dell_openmanage.pl -H <DELL_IP> -T pe_m600 -C <DELL_SERVER_SNMP_COMMUNITY>'
What is <HOST_RUNNING_COMMAND>? Option -H is to specify host by name or IP address.
When I run this command from command line I get the following error:

./check_by_ssh -H <remote host IP> -C '/check_dell_openmanage.pl -H <remote host IP> -T pe_m600 -C public"
WARNING: - check_by_ssh -H <remote host IP> -C '/check_dell_openmanage.pl -H <remote host IP> -T pe_m600 -C public" returned status 1

What am I doing wrong?
Ok, you said you were going to install check_dell_openmanage.pl on a different machine (not your Nagios Server), so <HOST_RUNNING_COMMAND> is that machine. <DELL_IP> is the IP of the DELL server you are getting the information from.

However I do see a mistake in my example, it should be

Code: Select all

./check_by_ssh -H <HOST_RUNNING_COMMAND> -C '/usr/local/nagios/libexec/check_dell_openmanage.pl -H <DELL_IP> -T pe_m600 -C <DELL_SERVER_SNMP_COMMUNITY>'

Re: Dell OpenManage - PowerEdge

Posted: Wed Mar 07, 2012 2:58 pm
by lgitten
scottwilkerson wrote:
lgitten wrote: Is it enough to just copy check_dell_openmanage.pl file to /usr/local/nagios/libexec/ onto remote monitoring Linux host or do I need to do more than that?
Maybe. I'm not positive if check_dell_openmanage.pl has any dependencies that need to be installed.. For sure once you copy it over you will need to make it executable

Code: Select all

chmod +x /usr/local/nagios/libexec/check_dell_openmanage.pl
Then you can try to run it on the local machine with the appropriate args and see what it returns.
It looks like check_dell_openmanage.pl plugin has some dependencies. It's not enough to just copy check_dell_openmanage.pl plugin into /usr/local/nagios/libexec/check_dell_openmanage.pl on the remote host that I want to monitor. I did make it executable and owned by nagios user.
I can execute /usr/local/nagios/libexec/check_dell_openmanage.pl -H <remote Host IP> -T blade -C public
from my Nagios XI server and get desirable output. But it does not work passing it using ssh:
>/usr/local/nagios/libexec/check_by_ssh -H <remote host IP> -C '/usr/local/nagios/libexec/check_dell_openmanage.pl -H <Host IP> -T blade -C public'
I get "returned status 1"
Executing /usr/local/nagios/libexec/check_dell_openmanage.pl -H <Host IP> -T blade -C public on the host itself does not return any output nor an error.
Please advice!

Re: Dell OpenManage - PowerEdge

Posted: Wed Mar 07, 2012 3:48 pm
by scottwilkerson
That is strange that executing it directly on the host gives no output and no errors at all.

Just to verify, the host that is running the command, can reach the dell server right?
eg.

Code: Select all

ping <Dell IP>
returns a result