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'm trying to create a traffic statistic in cacti for the interfaces of my linux box. (Debian Sarge, testing).
I'm following the How-To on the cacti homepage, which is not that clear for someone new to snmp.
My current problem is, that snmp does not return the interfaces available on that box.
Installed by now are net snmp, libsensors3 and libsnmp5.
With
Code:
snmpwalk -c public -v 2c localhost
I get some info back.
When I follow the cacti howto, at some point when creating a graph, a list of devices should be displayed. But none is found. In debug mode, this message is shown:
Code:
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
and
Code:
snmpwalk -c public -v 2c localhost .1.3.6.1.2.1.2.2.1.1
returns
Code:
IF-MIB:ifIndex = No such Object available on this agent at this OID
Any config info I should know about, or any libs that still have to be installed?
so i have two interfaces, which further down the line would be found to be eth0 and lo. that's gonna be an issue on the snmp server, not cacti or anything further down the line. this may well have been restricted via the snmpd.conf or such like.
Originally posted by acid_kewpie well post your snmpd.conf and we;ll ahve a look
This is - apart from the syslocation info - the config file that was installed by Debian Sarge. I removed most of the comments.
Code:
# Access Control
####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):
# sec.name source community
com2sec paranoid default public
#com2sec readonly default public
#com2sec readwrite default private
####
# Second, map the security names into group names:
# sec.model sec.name
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
####
# Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
# -----------------------------------------------------------------------------
###############################################################################
# System contact information
#
syslocation My new computer
syscontact <mike@localhost>
###############################################################################
# Process checks.
#
###############################################################################
# Executables/scripts
#
###############################################################################
# disk checks
#
###############################################################################
# load average checks
#
###############################################################################
# Extensible sections.
#
###############################################################################
# Pass through control.
#
###############################################################################
# Subagent control
#
#
# master agentx
#
ok, so the public community name is mapped to a "paranoid"group, not a read-only group. i reckon if you comment out that com2sec line, and uncomment the Read-Only line below it, you'll get the sata just just, as you can see the paranois one details "system" info only, while the read-only one provides all data.
command works on the command line but not through cacti
Hi,
I am sorry if I am being too silly. But my issue is this.
I have a server X which I am trying to monitor using cacti on server Y. I have edited the snmpd.conf file on the X as shown above. But the problem still persists i.e. on cacti when I run the query in verbose mode I get the following output,
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
Now when I run the following command on X, I get the following output.
I found the answer, all my settings were right but in cacti, on the devices page, for some reason, I had not selected the snmp version which had created the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.