bug in SNMP

24 views
Skip to first unread message

Mykhaylo Dobrovolskyy

unread,
Dec 25, 2012, 5:36:33 PM12/25/12
to scalr-...@googlegroups.com
Hi Guys,

I'm trying to recover stats after upgrade from 3.5 to 4.0

Issue what I have found right now is that you added $lastDigit value to the $farm_raddb_dir which is not working inside poller script(no additional folder for that created) and also by some reason CONFIG:$RRD_DB_DIR is undeclared as per php while it's (inside web interface path is correct)

Also images is not working even $lastDigit was commented out (from case) inside web interface.

Mykhaylo Dobrovolskyy

unread,
Dec 25, 2012, 5:39:25 PM12/25/12
to scalr-...@googlegroups.com
Just comment for line "Also images is not working even $lastDigit was commented out (from case) inside web interface"

That's means that rrd use one path to store db files and web interface trying to read it via old one.

Вівторок, 25 грудня 2012 р. 23:36:33 UTC+1 користувач Mykhaylo Dobrovolskyy написав:

Mykhaylo Dobrovolskyy

unread,
Dec 25, 2012, 5:50:41 PM12/25/12
to scalr-...@googlegroups.com
Ok, Resolution for me was to remove $lastDigit and also to add CONFIG:$RRD_DB_DIR into SNMP Poller to get it working.

As far as I see an issue:

Even if in SNMP Poller you will be able to determine lastDigit(what it can't as I can see) of farmId -> you have nothing to add(switch in server/statistics.php file) those xN1xN2 params. (in that case you will never able to get image for stats)

Also because you leave var_dump inside server output for stats:

                #$farm_rrddb_dir = CONFIG::$STATISTICS_RRD_DB_DIR."/{$folder}/{$farminfo['id']}";
                $farm_rrddb_dir = CONFIG::$STATISTICS_RRD_DB_DIR."/{$farminfo['id']}";

                if ($watchername == 'ServersNum')
                        $rrddbpath = "{$farm_rrddb_dir}/{$role_name}/SERVERS/db.rrd";
                else^M
                        $rrddbpath = "{$farm_rrddb_dir}/{$role_name}/{$watchername}/db.rrd";

                        #var_dump($rrddbpath);

it will never showed up to people as server can't process JSON answer from server

Srinivasan Subramanian

unread,
Jan 2, 2013, 3:09:55 AM1/2/13
to scalr-...@googlegroups.com
The below info was great as I also had to perform the steps below to avoid the error.  

After making the changes I still have one more error:  It now displays " Statistics not available yet " always.
Any ideas on how this can be resolved?

Regards
Srini

 
--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/tH-1sQjV5JkJ.
To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.

Srinivasan Subramanian

unread,
Jan 2, 2013, 4:15:41 AM1/2/13
to scalr-...@googlegroups.com
OK.  Finally got it working.  For some reason all the CONFIG:: values in statistics.php were not being found and the uRL was also incorrect.  Fixing all the required values gets the graphs now in full glory :)

Srini
Reply all
Reply to author
Forward
0 new messages