My Cacti works good but no graph drawn with my CISCO routers

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

vera
Posts: 6
Joined: Wed May 03, 2006 2:35 am

Post by vera »

BSOD2600 wrote:Each time you change an interface up/down on the router, Cacti needs to be reindexed. Possibly look into running poller_reindex_hosts.php nightly to accomplish this.

Looking in the cacti log file after debugging cycle, are the OIDs it's trying to poll which are invalid, different than before?
I've got exactly the same error. When I do snmpget I see all the values, in the rrdfiles there are only NaN values. Linux/windows devices monitoring are working fine.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

vera wrote: When I do snmpget I see all the values, in the rrdfiles there are only NaN values.
The question is though, are the OIDs which returned data the same ones Cacti is polling? I'm betting no.
laarocho
Posts: 26
Joined: Wed Apr 05, 2006 9:54 am
Location: SJ, Puerto Rico

I have the same problem!

Post by laarocho »

How do I verify the OID cacti is polling?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: I have the same problem!

Post by BSOD2600 »

laarocho wrote:How do I verify the OID cacti is polling?
README STICKY wrote:Turn the polling level in cacti to debug (Settings | Polling level) for one cycle, wait for Cacti to run, and paste the output of the actual log file (<webroot>/cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
laarocho
Posts: 26
Joined: Wed Apr 05, 2006 9:54 am
Location: SJ, Puerto Rico

The Log File

Post by laarocho »

Thanks for the info. Here's the log file. Like others users I'm able to do snmwalk and get info on the router. I cleared the cacti log before running the next cycle in debug mode.
Attachments
troubleshooting.txt
The log file this afternoon.
(35.77 KiB) Downloaded 260 times
Madhumohan
Posts: 5
Joined: Tue May 16, 2006 5:27 am
Contact:

send me screen shot.

Post by Madhumohan »

send me one screen shot.
laarocho
Posts: 26
Joined: Wed Apr 05, 2006 9:54 am
Location: SJ, Puerto Rico

Post by laarocho »

A Screen shoot of Cacti?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

laarocho: It seems most of your hosts aren't responding to the UDP pings. Try changing it to ICMP.

CACTID: Poller[0] Host[2] PING Result: UDP: Ping timed out
CACTID: Poller[0] Host[2] SNMP Result: SNMP not performed due to setting or ping result

Ignore Madhumohan, he's just posting uselessly in all posts.
laarocho
Posts: 26
Joined: Wed Apr 05, 2006 9:54 am
Location: SJ, Puerto Rico

Post by laarocho »

Thanks for the info. I'll check it out and let you know.

BTW How can I publish my Cacti Install to world just like the one shows on the Cacti website. I already had a guest user that only views the graphs tabs and graphs for that site. But I don't want them to use UNAME or UPASS.

Again Thanks,

LA
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Make the default file for your /cacti/ website graph_view.php instead of index.php. If you left the Guest user account enabled, there is no password needed.
laarocho
Posts: 26
Joined: Wed Apr 05, 2006 9:54 am
Location: SJ, Puerto Rico

Post by laarocho »

Thanks again!!

And yes I changed the UDP ping to ICMP and now at least the graphs are showing, no data available yet.
Sims
Posts: 21
Joined: Wed Apr 05, 2006 5:20 am

Post by Sims »

Back again ....
But unfortunately with bad bad news !
Still have the same problem , my routers don't work anymore and can't know why ....
I re-index them each time I can,
I got SNMP info with snmpwalk.
But graph aren't drawn, even if the picture is present,
Can someone help me please???
Attachments
debug polling.txt
Debug
(11.27 KiB) Downloaded 217 times
Here is my configuration :
Windows XP With Cacti 8.6h patched
RRDTool 1.2 Cygwin build
Cactid 8.6g
Apache2
MySQL5
PHP 5.1.2
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Sims: Anytime cacti is returning errors or warnings in the log file you must change the logging to debugging to see really what is going on. But it seems the OID(s) cacti is trying to use are invalid. Host 49 and 50 are your two routers? What are the OIDs which its trying to unsucessfully poll? Are you able to manually poll those OIDs with snmpwalk?
Sims
Posts: 21
Joined: Wed Apr 05, 2006 5:20 am

Post by Sims »

BSOD2600 wrote:Anytime cacti is returning errors or warnings in the log file you must change the logging to debugging to see really what is going on
That's what I did...it is a debug log, but I cut it cause it was too large , I can post it entirely (see attached file) I have disable all my other devices to make it clearer....

Oids that I trying to poll is In/out bits and Errors/discard

I did snmpwalk for this :

Code: Select all

06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','18','18','.1.3.6.1.2.1.2.2.1.1.18')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','17','17','.1.3.6.1.2.1.2.2.1.1.17')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','16','16','.1.3.6.1.2.1.2.2.1.1.16')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','15','15','.1.3.6.1.2.1.2.2.1.1.15')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','14','14','.1.3.6.1.2.1.2.2.1.1.14')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','13','13','.1.3.6.1.2.1.2.2.1.1.13')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','12','12','.1.3.6.1.2.1.2.2.1.1.12')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','11','11','.1.3.6.1.2.1.2.2.1.1.11')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','10','10','.1.3.6.1.2.1.2.2.1.1.10')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','9','9','.1.3.6.1.2.1.2.2.1.1.9')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','8','8','.1.3.6.1.2.1.2.2.1.1.8')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','7','7','.1.3.6.1.2.1.2.2.1.1.7')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','6','6','.1.3.6.1.2.1.2.2.1.1.6')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','5','5','.1.3.6.1.2.1.2.2.1.1.5')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','4','4','.1.3.6.1.2.1.2.2.1.1.4')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','3','3','.1.3.6.1.2.1.2.2.1.1.3')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','2','2','.1.3.6.1.2.1.2.2.1.1.2')"  
06/09/2006 10:30:32 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into host_snmp_cache (host_id,snmp_query_id,field_name,field_value,snmp_index,oid) values ('49','1','ifIndex','1','1','.1.3.6.1.2.1.2.2.1.1.1')" 
And it return an integer from .1 to .6

Y=1 to 6

IF-MIB::ifindex.Y = INTEGER Y
Attachments
debug polling - part1.txt
Debug 1
(913.32 KiB) Downloaded 234 times
debug polling - part2.txt
Debug 2 (second part)
(645.1 KiB) Downloaded 186 times
Here is my configuration :
Windows XP With Cacti 8.6h patched
RRDTool 1.2 Cygwin build
Cactid 8.6g
Apache2
MySQL5
PHP 5.1.2
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Please read the last entry in my FAQ on how you know debugging mode is enabled. What you posted might be debugging information, but not what we're after. You want to see cacti trying to poll OIDs and updating rrd files.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests