Nagios XI Test Results

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Nagios XI Test Results

Post 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
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Test Results

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Test Results

Post by lmiltchev »

Can you show us the actual command that you are running from the command line and the output of it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Nagios XI Test Results

Post 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
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI Test Results

Post 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.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Nagios XI Test Results

Post 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?
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI Test Results

Post 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!
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Nagios XI Test Results

Post 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???
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI Test Results

Post 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.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Nagios XI Test Results

Post by toleolu »

Will do, not a biggy right now, have a good evening.

Are you guys very far from Wadena?? I was born there.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Locked