Page 1 of 2

Nagios XI Test Results

Posted: Mon Oct 14, 2013 5:59 pm
by toleolu
We reran the test of your new Nagios XI server (took the old server off line and changed ip on the new server to match) and for the most part, everything came up fine. All my servers reported accuratly, the biggest problem was with UPS's and Switches. Here's a sample of what I was getting on the UPS's see the attached .pdf.

I suspect there is something with the agent on these hosts that's not playing nice with Nagios XI. To update, the installed agents on these switches and ups's are the old nsagents.

If you have any ideas on a fix, short of reinstall the new agent on the device, please let me know.

Mahalo

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 4:06 am
by scottwilkerson
Can you post the command for these particular checks, as well as the command definition.

It appears that the plugin is missing or doesn't have proper permissions.

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 4:13 am
by lmiltchev
Can you show us the actual command that you are running from the command line and the output of it?

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 12:45 pm
by toleolu
I hope this is what you were looking for, remember I'm a noob when it comes to Nagios.

This is the command line in services:
check_apcups!u5p7s21

This is the actual service from CCM:
$USER1$/check_snmp_apcups -H $HOSTADDRESS$ -C $ARG1$

And this is how $ARG1$ is defined:
u5p7s21

As far as running it from the command line, I don't know how to do that so if you could provide me the proper syntax, I'll give it a shot.

Thanks

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 3:32 pm
by slansing
What we are looking for is what the command returns when you run it from the command line:

Code: Select all

/usr/local/nagios/libexec/check_snmp_apcups -H address.of.host -C u5p7s21
$USER1$ is a user macro defined in the resource.cfg file, it allows you to use forbidden characters or shorten up code / paths, in this case by default nagios check commands use $USER1$ to shorthand the plugins directory.

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 4:35 pm
by toleolu
No such file or directory.

check_snmp_apcups isn't in there, might have something to do with it. :D :D

Can I copy it over from the old server?

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 4:39 pm
by slansing
suuurreee that should be fine, it's just a perl script I assume? Make sure you make the plugin executable on the nagios server!

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 4:58 pm
by toleolu
[root@localhost libexec]# /usr/local/nagios/libexec/check_snmp_apcups -H 10.5.180.45 -C u5p7s21
Can't locate Net/SNMP360.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_snmp_apcups line 20.

I have no clue what this means! :D My guess is there's still something on the old server I need to copy over, or there's something about perl on the old server that doesn't play well with perl on the new one.

Would it be better just to install new agents on those UPS's???

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 5:12 pm
by slansing
Hmm, do you have other plugins in /usr/local/nagios/libexec? You should.. This is an issue with some missing perl. The following should get you up to date, though that exact issue with "SNMP360" doesn't show up on google anywhere..:

Code: Select all

yum install net-snmp-perl
It should be just down to getting the pre-req packages at this point. We are closing for the night if you run into further errors trying to run the plugin you should be able to get some good answers through a google search, at least until we show back up tomorrow!

Can you send us a copy of your plugin also? Just attach here with your next message.

Re: Nagios XI Test Results

Posted: Tue Oct 15, 2013 5:15 pm
by toleolu
Will do, not a biggy right now, have a good evening.

Are you guys very far from Wadena?? I was born there.