Query not running

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

Query not running

Post by kfmccraw »

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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

This happening for all devices or just one?
You're about the snmpwalk the device in question FROM the cacti server?
What SNMP version?
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

Query not running

Post by kfmccraw »

yes all devices...

Yes the walk from cacti.

version 1 and 2 works.....
KFM
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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?
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

query

Post by kfmccraw »

Firewall is not blocking- snmp walk works just fine....

I believe Snmp is running b/c the local host is reporting information just fine, just when I add other devices they are not getting information.
KFM
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

Query not running

Post by kfmccraw »

How can I test to see if net-snmp is on or running.....?
KFM
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

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.
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
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

Post by kfmccraw »

I can do a walk from the tool in cacti. This is on a linux platform, do you know how I can do your commands using linux?
KFM
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

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
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
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

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
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
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

Query not running

Post by kfmccraw »

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...
KFM
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

Query not running

Post by kfmccraw »

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...
KFM
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

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
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
kfmccraw
Posts: 21
Joined: Mon Feb 27, 2006 3:49 pm

Query not running

Post by kfmccraw »

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!
KFM
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests