Query not running
Moderators: Developers, Moderators
Query not running
I am having trouble quering my devices. I can do an snmp walk just fine using my ro string- but when I add the devices it is not getting the information and I dont see in the logs where it is being requested from the device end.
KFM
This happening for all devices or just one?
You're about the snmpwalk the device in question FROM the cacti server?
What SNMP version?
You're about the snmpwalk the device in question FROM the cacti server?
What SNMP version?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
1) Did you enable SNMP in PHP?
2) Do you have net-snmp configured and functioning?
3) Sure a firewall is not blocking your SNMP traffic?
2) Do you have net-snmp configured and functioning?
3) Sure a firewall is not blocking your SNMP traffic?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Have you got the paths for snmp set up correctly within Cacti?
Settings - paths
walk path
c:\net-snmp\bin\snmpwalk.exe
get path
c:\net-snmp\bin\snmpget.exe
I take it you can snmp from the command line using net-snmp
snmpwalk -v2c -c public 10.10.10.10 .1.2.3.4.5.6.6.7.7.8.8.8.8.
Settings - paths
walk path
c:\net-snmp\bin\snmpwalk.exe
get path
c:\net-snmp\bin\snmpget.exe
I take it you can snmp from the command line using net-snmp
snmpwalk -v2c -c public 10.10.10.10 .1.2.3.4.5.6.6.7.7.8.8.8.8.
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Hi
There is a comprehensive Linux install guide at
http://www.cacti.net/downloads/docs/con ... How-To.pdf
The path to Net-snmp is /var/net-snmp
So i would assume the paths are /var/net-snmp/ then see where snmpwalk and snmpget are located
I assume this is a new install??
Jay
There is a comprehensive Linux install guide at
http://www.cacti.net/downloads/docs/con ... How-To.pdf
The path to Net-snmp is /var/net-snmp
So i would assume the paths are /var/net-snmp/ then see where snmpwalk and snmpget are located
I assume this is a new install??
Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Try and add a new device and use the generic snmp enabled template as your host template. Click the create tab and let me know what you see. If SNMP isn't working then you will see an snmp error in red.
Jay
Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Query not running
Yes this is a new install....
When I add a new device- it reloads the screen and says "save successful"; it does this even if I intentionaly put in the wrong community string.
In that net-snmp directory is a "snmpd.conf" and when I attempt to run - I get permission denied....as root login...
When I add a new device- it reloads the screen and says "save successful"; it does this even if I intentionaly put in the wrong community string.
In that net-snmp directory is a "snmpd.conf" and when I attempt to run - I get permission denied....as root login...
KFM
Query not running
Yes this is a new install....
When I add a new device- it reloads the screen and says "save successful"; it does this even if I intentionaly put in the wrong community string.
In that net-snmp directory is a "snmpd.conf" and when I attempt to run - I get permission denied....as root login...
When I add a new device- it reloads the screen and says "save successful"; it does this even if I intentionaly put in the wrong community string.
In that net-snmp directory is a "snmpd.conf" and when I attempt to run - I get permission denied....as root login...
KFM
When you say you get a save succesful do you get a blank web page or something like that?? Do you see the SNMP details of the device you are trying to connect too.
e.g
hostname - Cisco Router (x.x.x.x (ip address))
SNMP Information
System: Cisco Internetwork Operating System Software IOS (tm) 3700 Software (C3745-IK9S-M), Version 12.3(10b), RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Tue 21-Dec-04 12
Uptime: 2130452870
Hostname: test
Then below you should see the deivce screen with the graph templates and data querys.
If not go back to the device as it should save it and click on it and tell me what you see...you may be seeing snmp error.
Check your community strings are correct in Cacti and the device itself. Are you usiing Access lists to tie down your snmp access on the device.
e.g on a Cisco router
snmp-server community public RO 90
snmp-server host x.x.x.x public
access-list 90 permit x.x.x.x
If you can't access snmpd.conf then this is a permissions issue within net-snmp
You need to change the permissions for this directory.
use the chmod command to change this. Not sure of the full command as its been ages since i have used unix.
Jay
e.g
hostname - Cisco Router (x.x.x.x (ip address))
SNMP Information
System: Cisco Internetwork Operating System Software IOS (tm) 3700 Software (C3745-IK9S-M), Version 12.3(10b), RELEASE SOFTWARE (fc3) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2004 by cisco Systems, Inc. Compiled Tue 21-Dec-04 12
Uptime: 2130452870
Hostname: test
Then below you should see the deivce screen with the graph templates and data querys.
If not go back to the device as it should save it and click on it and tell me what you see...you may be seeing snmp error.
Check your community strings are correct in Cacti and the device itself. Are you usiing Access lists to tie down your snmp access on the device.
e.g on a Cisco router
snmp-server community public RO 90
snmp-server host x.x.x.x public
access-list 90 permit x.x.x.x
If you can't access snmpd.conf then this is a permissions issue within net-snmp
You need to change the permissions for this directory.
use the chmod command to change this. Not sure of the full command as its been ages since i have used unix.
Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Query not running
GOT IT!!!!
Thanks for all your help.
In my cacti settings- it was set to use UCD-SNMP 4x and I changed it to NET-SNMP5x and this fixed everything.....
Thanks again!
Thanks for all your help.
In my cacti settings- it was set to use UCD-SNMP 4x and I changed it to NET-SNMP5x and this fixed everything.....
Thanks again!
KFM
Who is online
Users browsing this forum: No registered users and 8 guests