Unexpected SNMP rResults

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Giperboloid
Posts: 21
Joined: Sat May 14, 2016 5:47 am

Re: Unexpected SNMP rResults

Post by Giperboloid »

tgriep wrote:You will need to edit the resource.cfg file and change the $USER3$ option to the community string you have setup on the remote system. Save the file and restart nagios and that should fix the issue for you.
I modified the sting in resource.cfg from $USER3$=someuser to $USER3$=my-own-SNMP-community but nothing has changed.
Then I decided to check the standard services (check_disk - Root Partition, check_load - Current Load), but I got a strange result:
Image
Image
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unexpected SNMP rResults

Post by ssax »

Please run this command from the command line and post the full output:

Code: Select all

snmpwalk -v2c -mALL -t 1 -r 4 -c COMMUNITY HOST UCD-SNMP-MIB::memory
Also, please use imgur for your image hosting as it locked up my browser.

Thank you
maksibonus
Posts: 7
Joined: Wed May 18, 2016 3:03 pm

Re: Unexpected SNMP rResults

Post by maksibonus »

There are a lot errors above, like on the screenshot.
Image
But I donwload snmp by command:
apt-get install snmp-mibs-downloader
and when I run command again I get:
Image
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unexpected SNMP rResults

Post by ssax »

You need to change COMMUNITY to your SNMP community and change HOST to the host that you are trying to monitor.

Please zip up and attach your entire /usr/share/mibs directory so that I can review it, we need to fix those errors.
maksibonus
Posts: 7
Joined: Wed May 18, 2016 3:03 pm

Re: Unexpected SNMP rResults

Post by maksibonus »

"You need to change COMMUNITY to your SNMP community and change HOST to the host that you are trying to monitor."
Сan you tell more detail?
Attachments
mibs.tar.gz
(2.4 MiB) Downloaded 411 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unexpected SNMP rResults

Post by tgriep »

Run the command below from the Nagios server but replace COMMUNITY with the SNMP community string you have setup on the remote server.
Also, replace xxx.xxx.xxx.xxx with the IP address of the remote server.

Code: Select all

snmpwalk -v2c -mALL -t 1 -r 4 -c COMMUNITY xxx.xxx.xxx.xxx UCD-SNMP-MIB::memory
Post the output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
maksibonus
Posts: 7
Joined: Wed May 18, 2016 3:03 pm

Re: Unexpected SNMP rResults

Post by maksibonus »

resource.cfg in my Nagios server.
Image
resource.cfg in my remote server
Image
result of command when I run it in Nagios server
Image
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unexpected SNMP rResults

Post by tgriep »

What the plugin does is to connect to the remote server using SNMP to retrieve the information and that isn't happening.
Lets try a simpler snmpwalk command and see if we get any response from the remote server.
Run this from the Nagios server and post the output here.

Code: Select all

snmpwalk -v2c -c COMMUNITY xxx.xxx.xxx.xxx
Be sure to check out our Knowledgebase for helpful articles and solutions!
maksibonus
Posts: 7
Joined: Wed May 18, 2016 3:03 pm

Re: Unexpected SNMP rResults

Post by maksibonus »

That what I got.
Image
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Unexpected SNMP rResults

Post by rhassing »

It could be a wrong community string, or snmp is not running on the remote device
Rob Hassing
Image
Locked