How to do a generic snmpd configuration on Ubuntu hosts

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
schof
Posts: 2
Joined: Wed Jul 14, 2010 12:56 pm
Location: Los Angeles, CA

How to do a generic snmpd configuration on Ubuntu hosts

Post by schof »

I'm installing snmpd on multiple linux hosts so that I can monitor them with Cacti.

I'm running Ubuntu Lucid 10.04. I've tried to set up a generic snmpd.conf file that I can use on multiple servers, but I've found that I need to specify the agentaddress with the IP address of the system.

The documentation says that it defaults to listening UDP on port 161 on all interfaces, but that does not seem to be true. To get it to listen to external interfaces, I have to add the following line to /etc/snmp/snmpd.conf:

Code: Select all

agentaddress 192.168.1.200:161
This works, but obviously, this needs to be changed for each system. Is anyone aware of a way to specify the agentaddress so that it simply listens on all interfaces? (Or just on eth0.)

I realize this isn't a purely Cacti problem, so my apologies if snmpd questions are frowned upon in this forum.


Schof
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Did you try 0.0.0.0:161?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

And are you sure it wasn't listening by default? What does a netstat say it is listening on?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests