poller.php don't polling my snmp device
Moderators: Developers, Moderators
poller.php don't polling my snmp device
My poller.php don't want to poll my snmp device.
My snmp devices gives status unknown, but I get under devices the following information at the top of the page :
SNMP Information
System: Linux localhost 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686
Uptime: 697892
Hostname: localhost
I have made a traffic graph, but is a very empty graph.
Who must I do so my poller.php is going to poll my snmp device?
Grtz Arjan
My snmp devices gives status unknown, but I get under devices the following information at the top of the page :
SNMP Information
System: Linux localhost 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686
Uptime: 697892
Hostname: localhost
I have made a traffic graph, but is a very empty graph.
Who must I do so my poller.php is going to poll my snmp device?
Grtz Arjan
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
snmp
Try to get the data via cli.
Use
to ask for the data you see in the heading of the host entry in cacti. e.g. for your local host.
This should work.
Now try to get other information, e.g. about the interfaces. Use or substitute localhost by the hostname/IP@ you are worried about. I suppose this will not work in your case. Perhaps you have to configure the snmpd of the host in question. Look for /etc/snmpd.conf.
Also look at the device under MAnagement -> Device -> <your device> and see the section Associated Data Queries If the status does not show any success, the snmp request fails. Online debugging is possible via (Verbose Query).
Use
Code: Select all
snmpwalk -c <community> -v<snmp version> <host> system
Code: Select all
snmpwalk -c public -v1 localhost system
This should work.
Now try to get other information, e.g. about the interfaces. Use
Code: Select all
snmpwalk -c public -v1 localhost interface
Also look at the device under MAnagement -> Device -> <your device> and see the section Associated Data Queries If the status does not show any success, the snmp request fails. Online debugging is possible via (Verbose Query).
Re: snmp
[root@localhost root]# snmpwalk -c public -v1 localhost systemlvm wrote:Code: Select all
snmpwalk -c public -v1 localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost 2.6.9-1.6_FC2 #1 Thu Nov 18 22:
03:19 EST 2004 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (825) 0:00:08.25
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/sn
mp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: localhost
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (15) 0:00:00.15
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects fo
r network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementatio
ns
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP imple
mentations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementatio
ns
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatchin
g.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for th
e SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (15) 0:00:00.15
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (15) 0:00:00.15
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (15) 0:00:00.15
lvm wrote:Code: Select all
snmpwalk -c public -v1 localhost interface
[root@localhost root]# snmpwalk -c public -v1 192.168.2.2
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (15591) 0:02:35.91
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: localhost
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (15) 0:00:00.15
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (8) 0:00:00.08
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (15) 0:00:00.15
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (15) 0:00:00.15
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (15) 0:00:00.15
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (560462) 1:33:24.62
End of MIB
Maybe some explenation. I have some graphs for the locahost(127.0.0.1) in Cacti is this a local Linux Machine. Now I wan't to monitor the bandwith of the local networkcard eth0. I have made the local networkcard as a snmp interface.
+ Running data query [1].Also look at the device under MAnagement -> Device -> <your device> and see the section Associated Data Queries If the status does not show any success, the snmp request fails. Online debugging is possible via (Verbose Query).
+ Found type = '3' [snmp query].
+ Found data query XML file at '/home/httpd/vhosts/default/htdocs/cacti/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 '/home/httpd/vhosts/default/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/default/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/httpd/vhosts/default/htdocs/cacti/resource/snmp_queries/interface.xml'
Is this enough information, i don't know how to fix my problem?
Hope anyone can help me?
Grtz Arjan
SNMP agent
Your SNMP agent is responding with no interface information.
Try running snmpconf to configure your agent.
Try running snmpconf to configure your agent.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
snmpd.conf
My local snmpd (Red Hat) has config options such as
for example:
You may even specify subnets, that are allowed to query. For more information, see
Code: Select all
rocommunity <read only community "password"> <ip of system, that is allowed to send snmp get requests>
Code: Select all
rocommunity strangepw 192.168.1.54
Code: Select all
man snmpd.conf
snmpconf -g basic_setup
Try 'snmpconf -g basic_setup'arjanv wrote:How must I do that?
My snmpd.conf is in /etc/snmp/snmpf.conf.
When I open the file, i didn't know what to do?
Anyone?
Grtz Arjan
Who is online
Users browsing this forum: No registered users and 1 guest