LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2010, 01:14 AM   #1
tutigan
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Nagios not receiving SNMP data


Hi all,

I have recently set up nagios on a ubuntu server (9.10), and set it up to monitor all the servers, switches etc, following the quickstart guide provided on the nagios website.
My problem is this:
I have setup the nagios-plugins, and tried to set it up to monitor the network switches via SNMP but receive the following error within the nagios web interface:
SNMP problem - No data received from host

I tried it from the command line, and got the exact same error.
Is there some further configuration I need to do to be able to get this data?
I've used up all my google-fu, and read over everyone else's problems on every forum I could find, but to no avail.

Any help will be greatly appreciated!
 
Old 05-18-2010, 01:29 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and Welcome to LinuxQuestions,

Just like the error states, no data received from host. Have you checked that the devices you are querying support SNMP and that it's activated? Also check which version of SNMP is supported by your devices, and if a community string and/or user/password combination is set on the devices.

Kind regards,

Eric
 
Old 05-18-2010, 01:51 AM   #3
tutigan
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
Have you checked that the devices you are querying support SNMP and that it's activated? Also check which version of SNMP is supported by your devices, and if a community string and/or user/password combination is set on the devices.
I have indeed, it is activated. I've tried changing the community string (in the switch and the switch.cfg), and changing/removing the password.
I know for a fact that it works, as it was being monitored by a nagios server previously, which was re-built without baking up the .conf, and the tech who set it up left, so no-one knows how he did it...
 
Old 05-18-2010, 02:40 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

That's bad practice of course, not having a backup file of a working configuration. Do you have any firewall blocking the SNMP ports?

Kind regards,

Eric
 
Old 05-18-2010, 04:55 AM   #5
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by tutigan View Post
I have indeed, it is activated. I've tried changing the community string (in the switch and the switch.cfg), and changing/removing the password.
I know for a fact that it works, as it was being monitored by a nagios server previously, which was re-built without baking up the .conf, and the tech who set it up left, so no-one knows how he did it...
can we start with the basics..?
from the nagios machine, can you run an snmpwalk against the device(s) you want to monitor pls...?
I say start off with

Code:
snmpwalk -Os -c <communitystring> -v 1 <ipaddress>


If this doesnt give any output then there are issues.

A quick look at the snmp configuration on the target host should tell you what.

Most likely only certain machines are allowed to query the snmp target or the community string is incorrect...or like erictra says, the snmp version might not match..
 
Old 05-19-2010, 01:26 AM   #6
tutigan
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
A big thanks to centosboy! When I tried it again from the command line, I realised I was forgetting the "c" next to 2 in the version...
Thanks for all your help guys, I truly appreciate it!
 
Old 05-19-2010, 02:26 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

That's great news indeed. Enjoy Linux.

Kind regards,

Eric
 
  


Reply

Tags
closed, nagios, server, snmp, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios + snmp aeby Linux - Server 3 08-29-2009 11:15 PM
Nagios SNMP problem - No data received from host sp149 Linux - Software 7 07-12-2009 01:19 AM
snmp/nagios nataloi Linux - Software 1 04-11-2009 11:20 PM
SNMP traps receiving noir911 Linux - Server 1 10-11-2008 06:32 AM
Using SNMP in NAGIOS Bzw Linux - Networking 3 12-06-2004 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration