Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Stuck at Cacti Installation Guide
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
cboyd213
Cacti User


Joined: 05 Apr 2008
Posts: 51

PostPosted: Mon May 12, 2008 8:42 pm    Post subject: Reply with quote

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: 11371
Location: Muenster, Germany

PostPosted: Tue May 13, 2008 2:41 pm    Post subject: Reply with quote

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: 51

PostPosted: Tue May 13, 2008 11:02 pm    Post subject: Reply with quote

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: 11371
Location: Muenster, Germany

PostPosted: Thu May 15, 2008 1:03 pm    Post subject: Reply with quote

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: 51

PostPosted: Fri May 16, 2008 2:05 am    Post subject: Reply with quote

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: 11371
Location: Muenster, Germany

PostPosted: Sun May 18, 2008 8:02 am    Post subject: Reply with quote

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: 51

PostPosted: Sun May 18, 2008 9:04 am    Post subject: Reply with quote

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: 11371
Location: Muenster, Germany

PostPosted: Mon May 19, 2008 8:40 am    Post subject: Reply with quote

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: 51

PostPosted: Mon May 19, 2008 3:25 pm    Post subject: Reply with quote

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: 11371
Location: Muenster, Germany

PostPosted: Sat May 24, 2008 3:12 pm    Post subject: Reply with quote

Yep. Does the behaviour change if my last recommendations are met?
Reinhard
Back to top
cboyd213
Cacti User


Joined: 05 Apr 2008
Posts: 51

PostPosted: Tue May 27, 2008 3:43 am    Post subject: Reply with quote

Nope. Same error
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group