Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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...
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
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..
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.