Cacti 0.8.7f, monitoring not possible

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

Moderators: Developers, Moderators

rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Cacti 0.8.7f, monitoring not possible

Post by rmuhammadali »

Dear All,
I am new to CACTI. i have configured it and run it without any issue. But the issue is i am unable to plot network/interface traffic graphs not even the given options are working.
Please help me to plot the network/interface traffic graphs.

Regards
RMA
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Moved from Scripts/Templats to General Help

Please provide some furter information:

What does it do?
What error do you get?
What polling-mechanism and version are you using?
Which OS are you running?
Which RRDTool verion?
Provide some screenshots!
Are you using PA? If yes, which version?
Which Plugins and versions do you use?
Which templates do you use for monitoring?
Post relevant lines of the cacti log!
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0

[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Post by rmuhammadali »

Dear Sirup,

I am using CentOS 5.4 with DDR Tool Version 1.3x. No plugins used. Using SNMP - Interface Statistics with both polling machenisms (cmd.php & spine). Log file is as below

05/25/2010 02:30:06 PM - SYSTEM STATS: Time:4.1311 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
05/25/2010 02:35:03 PM - SYSTEM STATS: Time:2.1208 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
05/25/2010 02:40:03 PM - SYSTEM STATS: Time:2.1263 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
05/25/2010 02:45:04 PM - SYSTEM STATS: Time:2.1256 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
05/25/2010 02:50:03 PM - SYSTEM STATS: Time:2.1299 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
05/25/2010 02:55:03 PM - SYSTEM STATS: Time:2.1279 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
05/25/2010 03:00:04 PM - SYSTEM STATS: Time:2.1286 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6


Screen Shot attached.
Attachments
cacti.JPG
cacti.JPG (82.17 KiB) Viewed 3201 times
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Nice description :lol:

Click on the wrench next to the broken image. What does it say?
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0

[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Cacti 0.8.7f

Post by rmuhammadali »

Dear Sirup,
Basically i am new to CACTI, thats y i dont know such detail about this tool. next wrench show the same status of broken link graph.

Regards
RMA
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Goto Graph Management and choose the broken graph. In the uper right corner there should be "Turn on Graph Debugging Mode".
Click on this on and post the result here.
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0

[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Cacti 0.8.7f

Post by rmuhammadali »

Dear Sirup,
here is your required information


RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='CentOS Cacti Server - Traffic' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/centos_cacti_server_traffic_in_21.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/centos_cacti_server_traffic_in_21.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" RRDTool Says:

ERROR: opening '/var/www/html/cacti/rra/centos_cacti_server_traffic_in_21.rrd': No such file or directory



Data Source Debug

/usr/bin/rrdtool create \
/var/www/html/cacti/rra/centos_cacti_server_traffic_in_21.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Attachments
cacti1.JPG
cacti1.JPG (51.65 KiB) Viewed 3170 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you click on verbose query, any data get returned?

validate with snmpwalk if the interface are working.
rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Cacti 0.8.7f

Post by rmuhammadali »

Dear BSOD2600,

Attached is the result of the verbose query after clicking SNMP - Interface Statistics debugging.


Regards
RMA
Attachments
cacti2.JPG
cacti2.JPG (69.96 KiB) Viewed 3108 times
rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Cacti 0.8.7f Interface Monitoring/Statistics

Post by rmuhammadali »

Dear All,
I captured the windows machine it will give the interface statistics without any problem. but on linux machine it creates problem. Any body help to get interface statistics on linux machine also.


Regards
RMA
Attachments
cacti3.JPG
cacti3.JPG (32.28 KiB) Viewed 3071 times
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Post by lcano »

Did you check that your linux is answering snmp queries?

Try directly, from the linux shell:

snmpwalk -c <community> -v1 127.0.0.1 .1.3.6.1.2.1.2.2.1.1

According your screenshot, it tells you "No SNMP data returnet". Focus on it
rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Cacti 0.8.7f Interface Monitoring/Statistics

Post by rmuhammadali »

Dear lcano,

I have already check and know that the query is not returing anything. my question is why it fetches the interface information of windows system and why not of linux (even it is installed on linux). second thing is how to fetch this information on linux (centos) machine.

Please help me or give some idea.

Regards
RMA
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Post by lcano »

Are you running an snmp server in the linux to answer that queries?
rmuhammadali
Posts: 15
Joined: Tue May 25, 2010 4:06 am

Cacti 0.8.7f Interface Monitoring/Statistics

Post by rmuhammadali »

i am using this (net-snmp-5.3.2.2-7.el5.i386.rpm) as a snmp responder.
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Post by lcano »

Are you sure it is running?

Try with

netstat -an | grep 161

You should get something similar to this

udp 0 0 0.0.0.0:161 0.0.0.0:*

Check the snmp server configuration. It is not a cacti issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest