SNMP monitoring on Ubuntu

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gvrjameskyaw
Posts: 7
Joined: Tue Aug 17, 2021 2:38 pm

Re: SNMP monitoring on Ubuntu

Post 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
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: SNMP monitoring on Ubuntu

Post 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
Locked