Page 1 of 1
Check Openmanage
Posted: Tue Mar 12, 2013 11:12 am
by Gavin
Hi all,
I'm trying to run the 'check_openmanage.exe' check on a Windows machine (just from the command line). It works fine, but when I try and run the SNMP checks, I get:
Code: Select all
ERROR: You need perl module Net::SNMP to run check_openmanage in SNMP mode
The error is obvious enough, but how do I install Net::SNMP on Windows? I've tried installing ActivePerl with no luck.
Any ideas?
Thanks,
Gavin
Re: Check Openmanage
Posted: Tue Mar 12, 2013 12:07 pm
by yancy
Gavin,
I believe you only need perl and it's modules installed on the Nagios server.
take a look at the following:
http://folk.uio.no/trondham/software/ch ... anage.html
specifically
For SNMP, you'll also need the perl module Net::SNMP on the Nagios server (or the server running the queries). This module is not part of perl itself, but is available in all modern Linux distributions. Installing Net::SNMP is quite easy:
This should do the trick on your Nagios machine
Code: Select all
yum --nogpgcheck install http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install perl-Net-SNMP
Thanks,
-Yancy
Re: Check Openmanage
Posted: Tue Mar 12, 2013 12:12 pm
by Gavin
Hi Yancy,
The queries aren't running from Nagios, they're running from a Windows machine.
From what you quoted, Net::SNMP will need to be installed on the server running the queries, I've just no idea how.
Thanks,
Gavin
Re: Check Openmanage
Posted: Tue Mar 12, 2013 12:18 pm
by yancy
Gavin,
I'm confused how your running the scripts and capturing the output in Nagios from a windows machine. Are you using some type of NSClient++ external script?
Thanks,
-Yancy
Re: Check Openmanage
Posted: Tue Mar 12, 2013 12:22 pm
by Gavin
I will be, if I can get it to run from the command line first!
See here:
http://folk.uio.no/trondham/software/ch ... on-windows
I've just downloaded the .exe file. I get the error as soon as I specify a host name.
Thanks,
Gavin
Re: Check Openmanage
Posted: Tue Mar 12, 2013 1:19 pm
by sreinhardt
I have not tried it, but it looks like net snmp is compiled for windows here
http://sourceforge.net/projects/net-snm ... 0binaries/
Re: Check Openmanage
Posted: Tue Mar 12, 2013 4:42 pm
by Gavin
Thanks. Unfortunately, that didn't make any difference.
I think I'll have to stick to running the uncompiled script through ActivePerl. Thanks for your help.
Thanks,
Gavin
Re: Check Openmanage
Posted: Tue Mar 12, 2013 4:49 pm
by slansing
Thank you for letting us know what your decision was, locking as resolved, if you want to come back to this let us know and we will re-open the thread, or reference it in your new thread.