Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Sun Nov 23, 2014 7:53 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Netgear router FVX538
PostPosted: Fri Jul 24, 2009 6:14 am 
Offline

Joined: Thu Jul 23, 2009 9:05 am
Posts: 7
hi all,


I'm kind of new to the whole snmp thing. I read a lot about it and I installed cacti properly on a debian lenny.

The thing is I can't make graphs. In fact the graph is created in cacti but no data is displayed. I wonder if it is because there is no data received by the queries or is it because the configuration I made was not correct.

If someone knows OIDs for the router Netgear FVX538 or if there is a method to obtain it, it will make things easier I think.

Any help ?


EDIT :
I checked some things that poped in my mind and the result is the ".../cacti/rra" file is empty. i don't know why but it seams i have a problem.
the installation of cacti went quietly and not even a warning. I followed the installation instruction for ubuntu. (here)
So i very don't know what should i do.

Regards.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 24, 2009 12:21 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 11405
Location: USA
Find out where its breaking: http://docs.cacti.net/manual:087:4_help ... #debugging

_________________

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 31, 2009 8:34 am 
Offline

Joined: Thu Jul 23, 2009 9:05 am
Posts: 7
Hi guys,

I ran some test dicted in the page of the link from the preview post of BSOD2600 and here are the results.

Check Cacti Log File:
i have 2 cacti.log file:
/usr/share/cacti/site/log/cacti.log --> empty
/var/log/cacti/cacti.log --> poll stats
Quote:
07/29/2009 12:00:03 PM - SYSTEM STATS: Time:1.1673 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:6 RRDsProcessed:5

that was the last poll.

Check Basic Data Gathering:
For scripts, run them as cactiuser from cli to check basic functionality
Quote:
user@VMCnslSprvsn:~$ perl /usr/share/cacti/site/scripts/ping.pl 192.168.70.1
0.739user@VMCnslSprvsn:~$


For snmp, snmpget the _exact_ OID you're asking for, using same community string and snmp version as defined within cacti
Quote:
user@VMCnslSprvsn:~/Desktop$ snmpget -c public -v 2c 192.168.70.1 ifOutOctets.3
IF-MIB::ifOutOctets.3 = Counter32: 133537261



Check Cacti's Poller:
In crontab for user (the cacti's user)
Quote:
*/5 * * * * sudo /usr/share/cacti/site/poller.php

I use spine.

From the log in DEBUG mode:
Quote:
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT id, hostname, snmp_community, snmp_version, snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_port, snmp_timeout, max_oids, availability_method, ping_method, ping_port, ping_timeout, ping_retries, status, status_event_count, status_fail_date, status_rec_date, status_last_error, min_time, max_time, cur_time, avg_time, total_polls, failed_polls, availability FROM host WHERE id=2'
07/29/2009 12:55:02 PM - SPINE: Poller[0] Host[2] PING Result: Ping not performed due to setting.
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'UPDATE host SET status='1', status_event_count='85', status_fail_date='0000-00-00 00:00:00', status_rec_date='2009-07-28 15:45:05', status_last_error='Ping not performed due to setting.', min_time='0.345500', max_time='0.563500', cur_time='0.416000', avg_time='0.424590', total_polls='121', failed_polls='87', availability='28.0992' WHERE id='2''
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT snmp_port, count(snmp_port) FROM poller_item WHERE host_id=2 AND rrd_next_step < 0 GROUP BY snmp_port'
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3, local_data_id, rrd_num, snmp_port, snmp_timeout, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context FROM poller_item WHERE host_id=2 and rrd_next_step <=0 ORDER by snmp_port'
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_next_step-300 WHERE host_id=2'
07/29/2009 12:55:02 PM - SPINE: Poller[0] DEBUG: SQL:'UPDATE poller_item SET rrd_next_step=rrd_step-300 WHERE rrd_next_step < 0 and host_id=2'
07/29/2009 12:55:02 PM - SPINE: Poller[0] Host[2] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function



Check RRD File Update:
there is no update of the .rrd file of the empty graph ...


Check MySQL Update:
there is no update in mysql table poller_output for the concerned host
:s

Check RRD File Ownership:
Quote:
-rw-r--r-- 1 www-data www-data 141488 jui 29 15:10 localhost_load_1min_5.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_mem_swap_4.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_proc_7.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 29 15:10 localhost_users_6.rrd
-rw-r--r-- 1 www-data www-data 47840 jui 28 15:40 router_de_test_local_snmp_oid_14.rrd



Check RRD File Numbers:
Quote:
user@VMCnslSprvsn:~/Desktop$ sudo rrdtool fetch router_de_test_local_snmp_oid_14.rrd AVERAGE


nan at every numer ...

Quote:
sudo rrdtool info <rrd file>

ds[snmp_oid].min = 0,0000000000e+00
ds[snmp_oid].max = 1,0000000000e+02


Check RRDTool Graph Statement:
Quote:
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="router de test (local) -" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--vertical-label="0" \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/router_de_test_local_snmp_oid_14.rrd":snmp_oid:AVERAGE \
AREA:a#F5F800FF:"" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

OK


Miscellaneous:
Quote:
mysql > select count(*) from poller_output;

+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)




RPM Installation:
I have a cron here:
/etc/cron.d/cacti
and in the "user" crontab

(which one should i delete ?)

NOTE: that collecting data and graphing about localhost is ok but it makes emtpy graph on my router's data.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 12, 2009 4:30 am 
Offline

Joined: Thu Jul 23, 2009 9:05 am
Posts: 7
Hi,

I really need help on this problem. I can't find a way to monitor and graph a distant router. Just one router for now is enough trouble but the goal is to monitor at least 10-15 routers and many access points behind those routers. there are all linked to me via VPN. :s

tests for debugg are like posted above. please, if someone can help me, it'll be great !

P.S: the cacti is running on a VM debian lenny. the link between the VM and the host OS is bridge type.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 12, 2009 12:24 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 11405
Location: USA
Start simple and then progress.

Are you able to monitor things on your local Cacti box? interface traffic, memory, user count, etc? If not, problem.

What specifically are you trying to monitor on the netgear? Does it even support snmp?

_________________

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 12, 2009 4:07 pm 
Offline

Joined: Thu Jul 23, 2009 9:05 am
Posts: 7
hi again,

the web UI of cacti is displayed as being expected.

monitoring localhost is ok. the default graphs are good and it updates like it should. ".rrd" files are updated and the polling is done.

the thing is the distant router i'm trying to monitor (witch support snmp ... i can snmpwalk and have a good range of OIDs returned with their values)
the OID i try to monitor (just 1 until i success monitoring it) is returned by the snmpwalk.

you can see the results of tests advised for debugging above. i did those on the OID /.rrd file of the router i can't successfully graph.

hope it helps you to help me :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 13, 2009 1:56 am 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 11405
Location: USA
k, post and snmpwalk of the interface against the netgear device. Also, post the verbose query from the snmp interface statistics associated data query.

_________________

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


Top
 Profile  
 
 Post subject: Re: Netgear router FVX538
PostPosted: Tue Feb 07, 2012 5:57 am 
Offline

Joined: Thu Nov 26, 2009 3:01 am
Posts: 5
Does some body had a working templates for the netgear VX538?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group