Check Openmanage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Check Openmanage

Post 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
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Check Openmanage

Post 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
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Re: Check Openmanage

Post 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
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Check Openmanage

Post 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
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Re: Check Openmanage

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Check Openmanage

Post 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/
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Re: Check Openmanage

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check Openmanage

Post 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.
Locked