Page 2 of 3

Re: Unexpected SNMP rResults

Posted: Mon Jun 06, 2016 3:20 pm
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

Re: Unexpected SNMP rResults

Posted: Mon Jun 06, 2016 5:31 pm
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

Re: Unexpected SNMP rResults

Posted: Tue Jun 07, 2016 6:23 am
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

Re: Unexpected SNMP rResults

Posted: Tue Jun 07, 2016 9:11 am
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.

Re: Unexpected SNMP rResults

Posted: Thu Jun 09, 2016 3:37 am
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?

Re: Unexpected SNMP rResults

Posted: Thu Jun 09, 2016 1:24 pm
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.

Re: Unexpected SNMP rResults

Posted: Fri Jun 10, 2016 3:47 pm
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

Re: Unexpected SNMP rResults

Posted: Mon Jun 13, 2016 11:51 am
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

Re: Unexpected SNMP rResults

Posted: Tue Jun 14, 2016 5:52 am
by maksibonus
That what I got.
Image

Re: Unexpected SNMP rResults

Posted: Tue Jun 14, 2016 7:34 am
by rhassing
It could be a wrong community string, or snmp is not running on the remote device