Cacti Migration - Juniper M20 Help!

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

Moderators: Developers, Moderators

Post Reply
UnixIsTehBest
Posts: 4
Joined: Tue Jan 30, 2007 4:29 pm

Cacti Migration - Juniper M20 Help!

Post by UnixIsTehBest »

Hello all:

I recently migrated Cacti from one server to another. In the process, it was a version change from 0.8.6g on Suse 9.3 to 0.8.6j on Redhat Enterprise 4. I was able to successfully import the rra directory and the MySQL DB for it.

My other switches are graphing data without a problem, except for my M20 router.

I verified the settings were correct, and on my M20 I made sure that the new IP has access to the correct SNMP community.

I verified that with a successful snmpwalk to the M20 from the new server. Now, all the templates show up correctly, but under "Devices" it says my M20 is down, and everything else is up.

From "Devices", when I click on my M20 config, it actually shows me that it is able to talk SNMP to it:

Juniper (xxx.xxx.xxx.xxx)
SNMP Information
System: M20
Uptime: 116259 (0 days, 0 hours, 19 minutes)
Hostname: m20-re0
Location: Blahblah
Contact: blah@noway.com

At the top of the device config page. Anyone know if there is a special trick I need to do to get this to work? It works fine on my old cacti box and the configs are identical.

I even restarted SNMP on my M20 and still nothing, but I don't see that being the issue since I can successfully do an snmpwalk/snmpget from the new redhat cacti box.

Any insight would be greatly appreciated!

Thanks,
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may want to try php -q rebuild_poller_cache.php
Reinhard
UnixIsTehBest
Posts: 4
Joined: Tue Jan 30, 2007 4:29 pm

Post by UnixIsTehBest »

Gave it a shot:

Code: Select all

]# php -q rebuild_poller_cache.php
WARNING: Do not interrupt this script.  Rebuilding the Poller Cache can take quite some time
.....................................................................................................................................................................................................................................................
Still the same thing. It still shows my device being down. It is really, really odd. My main switch is still graphing perfectly, just my main router is not. The other odd part is now it is not showing the graphs, and when I goto Device-->Juniper, then "Create Graphs for this host", all of the entries are greyed out.

However, if I click on Verbose under the Data Query Debug Information, everything looks good:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Found item [ifIndex='8'] index: 8 [from value]
+ Found item [ifIndex='9'] index: 9 [from value]
+ Found item [ifIndex='10'] index: 10 [from value]
+ Found item [ifIndex='11'] index: 11 [from value]
+ Found item [ifIndex='12'] index: 12 [from value]
+ Found item [ifIndex='13'] index: 13 [from value]
+ Found item [ifIndex='14'] index: 14 [from value]
+ Found item [ifIndex='16'] index: 16 [from value]
+ Found item [ifIndex='21'] index: 21 [from value]
+ Found item [ifIndex='22'] index: 22 [from value]
+ Found item [ifIndex='23'] index: 23 [from value]
+ Found item [ifIndex='24'] index: 24 [from value]
+ Found item [ifIndex='25'] index: 25 [from value]
+ Found item [ifIndex='26'] index: 26 [from value]
+ Found item [ifIndex='27'] index: 27 [from value]
+ Found item [ifIndex='28'] index: 28 [from value]
+ Found item [ifIndex='29'] index: 29 [from value]
+ Found item [ifIndex='30'] index: 30 [from value]
+ Found item [ifIndex='31'] index: 31 [from value]
+ Found item [ifIndex='32'] index: 32 [from value]
+ Found item [ifIndex='33'] index: 33 [from value]
+ Found item [ifIndex='34'] index: 34 [from value]
+ Found item [ifIndex='35'] index: 35 [from value]
+ Found item [ifIndex='36'] index: 36 [from value]
+ Found item [ifIndex='37'] index: 37 [from value]
+ Found item [ifIndex='38'] index: 38 [from value]
+ Found item [ifIndex='39'] index: 39 [from value]
+ Found item [ifIndex='40'] index: 40 [from value]
+ Found item [ifIndex='48'] index: 48 [from value]
+ Found item [ifIndex='49'] index: 49 [from value]
+ Found item [ifIndex='50'] index: 50 [from value]
+ Found item [ifIndex='51'] index: 51 [from value]
+ Found item [ifIndex='55'] index: 55 [from value]
+ Found item [ifIndex='60'] index: 60 [from value]
+ Found item [ifIndex='61'] index: 61 [from value]
+ Found item [ifIndex='62'] index: 62 [from value]
+ Found item [ifIndex='66'] index: 66 [from value]
+ Found item [ifIndex='67'] index: 67 [from value]
+ Found item [ifIndex='68'] index: 68 [from value]
+ Found item [ifIndex='69'] index: 69 [from value]
+ Found item [ifIndex='70'] index: 70 [from value]
+ Found item [ifIndex='71'] index: 71 [from value]
+ Found item [ifIndex='72'] index: 72 [from value]
+ Found item [ifIndex='73'] index: 73 [from value]
+ Found item [ifIndex='74'] index: 74 [from value]
+ Found item [ifIndex='76'] index: 76 [from value]
etc, etc...

So, I still have no idea what I am doing wrong. As I stated before, my log shows no errors:

Code: Select all

# tail /var/log/cacti.log
01/31/2007 04:24:54 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/31/2007 04:24:54 PM - SYSTEM STATS: Time:293.1101 Method:cmd.php Processes:1 Threads:N/A Hosts:8 HostsPerProcess:8 DataSources:222 RRDsProcessed:37
01/31/2007 04:29:54 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/31/2007 04:29:54 PM - SYSTEM STATS: Time:293.1728 Method:cmd.php Processes:1 Threads:N/A Hosts:8 HostsPerProcess:8 DataSources:222 RRDsProcessed:37
Insight is truly, truly appreciated! Thanks. :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Wow, that's it. You have two pollers running simultaneously. See second link of my signature for more help
Reinhard
UnixIsTehBest
Posts: 4
Joined: Tue Jan 30, 2007 4:29 pm

Post by UnixIsTehBest »

I already went over that document many, many times. How did you come to the conclusion I am running 2 pollers simultaneously?

I am still super stumped. I am sure it is probably super basic. I just do not understand why it can get the SNMP info, but it is showing the device being down and therefore not running the RRD's. :cry:
UnixIsTehBest
Posts: 4
Joined: Tue Jan 30, 2007 4:29 pm

Post by UnixIsTehBest »

Argh, issue resolved.

I had patched ping.php, but somehow I copied over the original ping.php and when I re-applied the patch, it worked. Doh!

Sorry to take up your time Gandalf, but thanks for your help. :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, I must apologize for my fault from above. I didn't read the times of the log entries "exactly". So I thought they were dupes. Glad you've found it
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests