Page 2 of 3

Re: Error while configuring Linux snmp wizard

Posted: Wed Mar 01, 2017 11:07 am
by dwhitfield
What's the output of sudo find / -name snmpd.conf?

For clarity, did you use https://assets.nagios.com/downloads/nag ... g_SNMP.pdf for setting this up?

Re: Error while configuring Linux snmp wizard

Posted: Thu Mar 02, 2017 3:39 am
by Frédéric GRANAT
Hi,
For clarity, did you use https://assets.nagios.com/downloads/nag ... g_SNMP.pdf for setting this up?
=> No, I thought snmp was installed on the remote machine

I found snmpd.conf (attached).

Re: Error while configuring Linux snmp wizard

Posted: Thu Mar 02, 2017 12:03 pm
by dwhitfield
It looks like you did not perform the step of editing the snmpd.conf listed on page 2 of https://assets.nagios.com/downloads/nag ... g_SNMP.pdf

Based on the fact that you are not using the documentation, you may also need to run sudo apt-get install libsnmp-dev

Re: Error while configuring Linux snmp wizard

Posted: Fri Mar 03, 2017 9:11 am
by Frédéric GRANAT
I performed the steps of page 2 and sudo apt-get install libsnmp-dev :

Code: Select all

[root@nagiosxi libexec]# ./check_snmp_storage.pl -H 172.16.1.19 -C Str0ngC0mmunity -m "^/$" -w 2 -c 4
ERROR: Description/Type table : No response from remote host '172.16.1.19'.

Re: Error while configuring Linux snmp wizard

Posted: Fri Mar 03, 2017 12:05 pm
by dwhitfield
What's the output of the following?

From Ubuntu

Code: Select all

ps -A | grep snmp
From Nagios

Code: Select all

telnet 172.16.1.19 161
Also, you changed community strings in your examples. Was that intentional?

Re: Error while configuring Linux snmp wizard

Posted: Tue Mar 07, 2017 11:26 am
by Frédéric GRANAT
Hi,

Code: Select all

libriciel@iparapheurtestcd04:~$ ps -A | grep snmp
24306 ?        00:01:48 snmpd

Code: Select all

[root@nagiosxi ~]# telnet 172.16.1.19 161
-bash: telnet: command not found
Also, you changed community strings in your examples. Was that intentional?
=> Please tell me which example

Re: Error while configuring Linux snmp wizard

Posted: Tue Mar 07, 2017 11:42 am
by dwhitfield
./check_snmp_storage.pl -H 172.16.1.19 -C Str0ngC0mmunity -m "^/$" -w 2 -c 4 vs. snmpwalk -v 1 -c public 172.16.1.19

Looks like you need to run yum install telnet and then telnet 172.16.1.19 161

Re: Error while configuring Linux snmp wizard

Posted: Thu Mar 09, 2017 10:08 am
by Frédéric GRANAT
Str0ngC0mmunity is the community described in the document you told me to apply (Nagios XI – Monitoring Linux Using SNMP)
I applied the changes described in that document (p.2 and 3).

Do you think it's a wrong value ?

./check_snmp_storage.pl -H 172.16.1.19 -C Str0ngC0mmunity -m "^/$" -w 2 -c 4 is the command given in the same document to test snmp (p.6)

Code: Select all

[root@nagiosxi ~]# telnet 172.16.1.19 161
Trying 172.16.1.19...
telnet: connect to address 172.16.1.19: Connection refused

Re: Error while configuring Linux snmp wizard

Posted: Thu Mar 09, 2017 11:03 am
by tmcdonald
Str0ngC0mmunity is just an example we use in our documentation. You will need to be sure to change this to the community string your device is configured to use.

Re: Error while configuring Linux snmp wizard

Posted: Thu Mar 09, 2017 11:26 am
by Frédéric GRANAT
You will need to be sure to change this to the community string your device is configured to use.
=> I don't know what's the community my device is configured to use, where can I find it ?