|
|
| Author |
Message |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Mon May 12, 2008 8:42 pm Post subject: |
|
|
for my peplink if I go to: Create Graphs for this Host
It shows:
Data Query [SNMP - Interface Statistics]
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/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 '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
What does this mean please? |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Tue May 13, 2008 2:41 pm Post subject: |
|
|
| cboyd213 wrote: | | It is already set to SMMP only | But the screenshot shows "Ping and SNMP". What is correct, then?
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Tue May 13, 2008 11:02 pm Post subject: |
|
|
Sorry what I should have said is that I changed it to SNMP after I sent the screenshot and before you sent me the post
PEPLINK:
Associated Graph Templates
Graph Template Name Status
1) ucd/net - Memory Usage Not Being Graphed
when I click "Create Graphs for this Host"
I see:
For Web-FTP Server 03:
Associated Graph Templates
Graph Template Name Status
1) Host MIB - Logged in Users Not Being Graphed
2) Host MIB - Processes Not Being Graphed
when I click "Create Graphs for this Host"
I see:
 |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Thu May 15, 2008 1:03 pm Post subject: |
|
|
| cboyd213 wrote: | + Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/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 '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
| In fact, this is the reason why the table of interfaces is empty in your last post. Core reason is | Quote: | + Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned | In other words: cacti did an snmpwalk on OID '.1.3.6.1.2.1.2.2.1.1' and did not receive any answer. But from | Quote: | snmpwalk -c crazycharter -v 2c 192.168.4.1 interface
IF-MIB::ifNumber.0 = INTEGER: 4
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifDescr.1 = STRING: LAN
IF-MIB::ifDescr.2 = STRING: WAN1
IF-MIB::ifDescr.3 = STRING: WAN2
IF-MIB::ifDescr.4 = STRING: WAN3
... | you found that the device is responding to a plain manual snmpwalk, showing indeed the interface index list.
So there MIGHT be a problem with the php-snmp code.
Please first verify, whether you are using php-snmp or plain net-snmp libraries. Visit the System Utilities to find all system information. If php-snmp is used, please de-install it and retry.
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Fri May 16, 2008 2:05 am Post subject: |
|
|
Looks like both:
Running
net-snmp - 1:5.3.1
net-snmp-libs - 1:5.3.1
net-snmp-utils - 1:5.3.1
php-snmp - 5.1.6
I did reinstall php-snmp but it toke cacti with it so I also had to install cacti back
Still getting the same error message
Also I tried setting up a graph for my server 03 box and getting:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Web-FTP Server 03 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/web-ftp_server_03_cpu_system_61.rrd":cpu_system:AVERAGE \
DEF:b="/var/www/cacti/rra/web-ftp_server_03_cpu_user_62.rrd":cpu_user:AVERAGE \
DEF:c="/var/www/cacti/rra/web-ftp_server_03_cpu_nice_60.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1210921073,GT,a,a,UN,0,a,IF,IF,TIME,1210921073,GT,b,b,UN,0,b,IF,IF,TIME,1210921073,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#FF0000FF:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FFFF:"User":STACK \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#00FF00FF:"Nice":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000FF:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/web-ftp_server_03_cpu_system_61.rrd': No such file or directory |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Sun May 18, 2008 8:02 am Post subject: |
|
|
If everything else fails, let's do a code change.
First, please copy lib/snmp.php to lib/snmp.php.save.
Then, please edit lib/snmp.php and find function snmp_get_method. Change all occurences of SNMP_METHOD_PHP to SNMP_METHOD_BINARY and retry.
This will force cacti using net-snmp libraries instead of php-snmp, but without deinstalling php-snmp.
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Sun May 18, 2008 9:04 am Post subject: |
|
|
Thanks for your with this but I tried it and it's still gaving me the same error:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="WEB-FTP Server 03 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/web-ftp_server_03_cpu_system_42.rrd":cpu_system:AVERAGE \
DEF:b="/var/www/cacti/rra/web-ftp_server_03_cpu_user_43.rrd":cpu_user:AVERAGE \
DEF:c="/var/www/cacti/rra/web-ftp_server_03_cpu_nice_41.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1211118857,GT,a,a,UN,0,a,IF,IF,TIME,1211118857,GT,b,b,UN,0,b,IF,IF,TIME,1211118857,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#FF0000FF:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FFFF:"User":STACK \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#00FF00FF:"Nice":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000FF:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/web-ftp_server_03_cpu_system_42.rrd': No such file or directory |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Mon May 19, 2008 8:40 am Post subject: |
|
|
Please let's stick for the moment with Verbose Query. This step comes first. So we have to resolve it prior to anything else.
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Mon May 19, 2008 3:25 pm Post subject: |
|
|
not sure what you mean
Are you talking about the error I'm getting on the peplink
Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/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 '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
I'm not having a data probelm when I add my server 03 box to cacti |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Sat May 24, 2008 3:12 pm Post subject: |
|
|
Yep. Does the behaviour change if my last recommendations are met?
Reinhard |
|
| Back to top |
|
 |
cboyd213 Cacti User
Joined: 05 Apr 2008 Posts: 54
|
Posted: Tue May 27, 2008 3:43 am Post subject: |
|
|
| Nope. Same error |
|
| Back to top |
|
 |
pdt256
Joined: 16 Oct 2008 Posts: 2
|
Posted: Thu Oct 16, 2008 2:25 pm Post subject: peplink snmp problem |
|
|
I am having the same problem. I run the Verbose Query for SNMP - Interface Statistics on my PePLink router:
| Code: |
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/src/cacti-0.8.7b/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/local/src/cacti-0.8.7b/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/src/cacti-0.8.7b/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/local/src/cacti-0.8.7b/resource/snmp_queries/interface.xml'
|
However, when I run a snmpwalk from the Linux command line everything is returned fine.
| Code: |
$ snmpwalk -v 2c -c public 192.168.1.100 .1.3.6.1.2.1.2.2.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifDescr.1 = STRING: LAN
IF-MIB::ifDescr.2 = STRING: WAN1
IF-MIB::ifDescr.3 = STRING: WAN2
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
| [/code] |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Fri Oct 17, 2008 3:47 am Post subject: |
|
|
With 087b, Cacti performs | Code: | | snmpbulkwalk -c ... -v 2c -O Qn -Cr50 ... <host> <OID> | Please try this on your target.
An assumption would be, that the target does not support snmpbulkwalk.
Using 087b, a workaround would be to use SNMP V1; cacti will use snmpwalk, then.
Or check out 087c BETA1. This version allows using SNMP V2c. In this case, when setting the maximum number of OIDs to 1 for this host, cacti will automatically switch to using snmpwalk instead of snmpbulkwalk
Reinhard |
|
| Back to top |
|
 |
pdt256
Joined: 16 Oct 2008 Posts: 2
|
Posted: Mon Oct 20, 2008 8:32 am Post subject: |
|
|
| Switching to SNMP v1 worked great. Thanks for the quick response. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Tue Oct 21, 2008 3:30 pm Post subject: |
|
|
Glad to hear this. So 087c would definitively be good for you
Reinhard |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|