Monitoring with SNMP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Monitoring with SNMP

Post by ednaldojta »

Good morning friends,
once again I'm here asking for the help of you!
Friends, I need to monitor some machines with SNMP, how can I do this?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring with SNMP

Post by mcapra »

Are the included SNMP wizards for Nagios XI able to do what you need?
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: Monitoring with SNMP

Post by ednaldojta »

I saw these workers, however I need to know if I have to set something in /etc/snmp/snmpd.conf file.
The following image attached my snmpd.conf file
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring with SNMP

Post by tmcdonald »

snmpd is used for responding to SNMP requests, and is not needed by any of our agents in order to actually make them. If you use the SNMP Walk wizard for example, it will query the remote machine for all available SNMP information it has access to according to the community string.
Former Nagios employee
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring with SNMP

Post by tgriep »

From what you posted, it looks like a standard snmpd.conf file.
If the remote system is a Linux server, you can run the Linux SNMP wizard against that host using public as the community string and you should get some results from it.
That is if the snmp daemon is running on that host.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: Monitoring with SNMP

Post by ednaldojta »

I can perform the test starting the remote machine to Nagios, but Nagios for the remote machine informs that does not have permission snmpwalk.

What would be the problem?
The following configuration screens.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring with SNMP

Post by tgriep »

From the output in your post, it looks like either the remote server isn't running SNMP, or that the server's firewall is blocking the XI server.
Check the remote server and see if that is true.

What is the remote system?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: Monitoring with SNMP

Post by ednaldojta »

My server is not able to access my remote machine, however, when the command of my machine to be monitored for Nagios, I get response from the MIBs.

Command: snmpwalk -c public -v2c 10.10.60.51 ----- IP my Nagios ..

And yes SNMP is running on both servers, and the iptables the two are disabled.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring with SNMP

Post by tgriep »

Can you run the following command on the Nagios XI server and post the output? Replace xxx.xxx.xxx.xxx with the IP address of the remote host you want to monitor.

Code: Select all

nmap xxx.xxx.xxx.xxx -sU -p 161
Then login to the remote server, run the following and post that as well.

Code: Select all

netstat -an |grep 161
ps -ef |grep snmp
Be sure to check out our Knowledgebase for helpful articles and solutions!
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Re: Monitoring with SNMP

Post by ednaldojta »

Follows as requested.
You do not have the required permissions to view the files attached to this post.
Locked