Need help with basics

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

Moderators: Developers, Moderators

Post Reply
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Need help with basics

Post by jeepinbob »

This is my first foray into snmp and cacti. I have a server running ubuntu desktop that is a virtual server. I have a couple virtual machines running ubuntu server. I have cacti up and am getting graphs on the web server, but I am getting nothing from my file server except one disk space graph that I think may be wrong as the graphs on both servers are exactly the same for both servers.

When I go to new graphs, there are no listings under Data Query [SNMP - Interface Statisticss] or [udc/net -Get Monitored Partitions] and for both servers I get two devices listed for both and they are the same (like they are getting the info of the virtual host rather than the virtual server).

I think I am missing something in setting up snmpd on the servers that I am trying to monitor.

I also have several of the standard graphs for the file server but they are all blank, the same graphs on the web server (the one running cacti) have data.

I think I may be missing something basic, but can't figure out what it is.

Bob
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Need help with basics

Post by gandalf »

Please have a read at 1st link of my sig. There are quite some walkthroughs ...
R.
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Re: Need help with basics

Post by jeepinbob »

I have been all through that. I think what I am missing is settings on the agent. I have not used snmp before and I think I may be missing some of the basics. For one, how do I make sure that my agent is sending the right information? or maybe I should be asking how to make sure cacti is asking for the information. I am trying to get bandwidth but also none of my graphs are populated.
jeepinbob
Posts: 9
Joined: Fri Oct 05, 2012 9:19 am

Re: Need help with basics

Post by jeepinbob »

When I use this command:

snmpwalk -v 1 -c community localhost

I get this:

iso.3.6.1.2.1.1.1.0 = STRING: "Linux host 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10
iso.3.6.1.2.1.1.3.0 = Timeticks: (101738) 0:16:57.38
iso.3.6.1.2.1.1.4.0 = STRING: "Me <me@mydomain.com>"
iso.3.6.1.2.1.1.5.0 = STRING: "host"
iso.3.6.1.2.1.1.6.0 = STRING: "my place"
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.10.3.1.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.11.3.1.1
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.15.2.1.1
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.49
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.50
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.6.3.16.2.2.1
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The SNMP Management Architecture MIB."
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The management information definitions for the SNMP User-based Security Model."
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The MIB module for managing TCP implementations"
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing IP and ICMP implementations"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing UDP implementations"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "View-based Access Control Model for SNMP."
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.25.1.1.0 = Timeticks: (108110) 0:18:01.10
iso.3.6.1.2.1.25.1.2.0 = Hex-STRING: 07 DC 0A 07 0F 01 17 00 2D 05 00
iso.3.6.1.2.1.25.1.3.0 = INTEGER: 1536
iso.3.6.1.2.1.25.1.4.0 = STRING: "BOOT_IMAGE=/vmlinuz-3.0.0-12-server root=/dev/mapper/UVSMaster-root ro
"
iso.3.6.1.2.1.25.1.5.0 = Gauge32: 1
iso.3.6.1.2.1.25.1.6.0 = Gauge32: 81
iso.3.6.1.2.1.25.1.7.0 = INTEGER: 0
End of MIB


But when I click on the "You can run this data query in debug mode to get more information." under Data Query [SNMP - Interface Statistics]

I get:

+ Running data query [2].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/net-snmp_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/net-snmp_disk.xml'
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Need help with basics

Post by gandalf »

I suppose that snmpd.conf has not been set up correctly. We do have some hints for that, but e.g. net-snmp.org is a better source for informations like that
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest