Page 2 of 2

Re: SNMP monitoring on Ubuntu

Posted: Fri Sep 03, 2021 12:28 pm
by gvrjameskyaw
Still getting Error

[root@vm-is-snmp02 libexec]# ./check_snmp_storage_wizard.pl -H 10.80.72.115 -C public --v2c -m ^/$ -w 80 -c 95 -f
Unknown storage : ^/$ : ERROR
[root@vm-is-snmp02 libexec]# ./check_snmp_storage_wizard.pl -H 10.80.72.115 -C public --v2c -m ^/var -w 80 -c 95 -f
Unknown storage : ^/var : ERROR

Re: SNMP monitoring on Ubuntu

Posted: Fri Sep 03, 2021 4:05 pm
by gsmith
Hi

From a shell on the Nagios server please run:

Code: Select all

snmpwalk -v 2c -c public 10.80.72.115 1.3.6.1.2.1.25.2.3.1
That should result in more than 50 lines of output. If it doesn't, or if it gave you errors,
then do the following on the machine you want to monitor (10.80.72.115) :

Code: Select all

mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
vi /etc/snmp/snmpd.conf
add the following two lines:
rocommunity public localhost
rocommunity public <ipaddress of nagios server>

save the file and exit vi
restart the snmpd service

Now go back to the shell on the Nagios server please run:

Code: Select all

snmpwalk -v 2c -c public 10.80.72.115 1.3.6.1.2.1.25.2.3.1
Let me know how it works out.

Thank you