Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
I got word back from an IBM forum that there is a problem with the rrdtool build! Ha! I will continue working that path and keep you posted. Thank you very much for your help with this! I never would have found that without your assistance. Regards,Erik On Tuesday, August 13, 2019, 09:29:01 PM PDT, Jochen Hein wrote: Erik Ochoa writes: > Interesting: > > sum_min':'Min\:%7.2lf%s' GPRINT:'sum_avg':'Avg\:%7.2lf%s' > GPRINT:'sum_max':'Max\:%7.2lf%s\l' > graph.out > > file corecore: AIX core file fulldump largedata > 32-bit, rrdtool > 32-bit? Is that right? Yes, that's the problem you see. Have a look at the rrdtool documentation and try simple graphs first. Another try might replacing rrdtool with the packages from Michael Perzl. My guess is that there is somewhere a incompatibility with a linked library... Whatever that might be. Jochen -- This space is intentionally left blank. ___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general
Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
Here is the url to the ganglia rpms, all pre-reqs are available through this site in alphabetical order: IBM AIX Toolbox for Linux Applications - Downloads alpha | | | | IBM AIX Toolbox for Linux Applications - Downloads alpha | | | Interesting: > sum_min':'Min\:%7.2lf%s' GPRINT:'sum_avg':'Avg\:%7.2lf%s' GPRINT:'sum_max':'Max\:%7.2lf%s\l' > graph.out file corecore: AIX core file fulldump largedata 32-bit, rrdtool 32-bit? Is that right? On Tuesday, August 13, 2019, 01:27:30 PM PDT, Jochen Hein wrote: Erik Ochoa writes: > As far as I know the IBM packages are perzl packages, just changed a > bit to work (or not work) with some native libraries and packages, the > idea being to reduce dependency conflicts. Michael Perzls name is all > over the place in the config files. ok - do you have an URL handy? may we'll look at the packages at work... >> /usr/bin/rrdtool --version >> RRDtool 1.7.0 Copyright by Tobias Oetiker So rrdtool runs - that's good. > Here is output from url in browser: > /usr/bin/rrdtool graph - --start '-604800s' --end now --width 1200 > --height 600 --title 'Fifteen Minute Load Average' --vertical-label ' > ' --slope-mode > DEF:'sum'='/var/lib/ganglia/rrds/mtgng/someserver.somedomain.com/load_fifteen.rrd:sum':AVERAGE > AREA:'sum'#ff:'someserver.somedomain.com last week ' > CDEF:sum_pos=sum,0,LT,0,sum,IF VDEF:sum_last=sum_pos,LAST > VDEF:sum_min=sum_pos,MINIMUM VDEF:sum_avg=sum_pos,AVERAGE > VDEF:sum_max=sum_pos,MAXIMUM GPRINT:'sum_last':'Now\:%7.2lf%s' > GPRINT:'sum_min':'Min\:%7.2lf%s' GPRINT:'sum_avg':'Avg\:%7.2lf%s' > GPRINT:'sum_max':'Max\:%7.2lf%s\l' What happens if you run that command from a shell? My guess is that we'll get an error. Redirect stdout to a file and look at the file - it should generate a graph if running ok. I ran the command successfully with rrdtool 1.7.1 an Linux. Hm. let's see what you get. Jochen -- This space is intentionally left blank. ___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general
Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
Erik Ochoa writes: > As far as I know the IBM packages are perzl packages, just changed a > bit to work (or not work) with some native libraries and packages, the > idea being to reduce dependency conflicts. Michael Perzls name is all > over the place in the config files. ok - do you have an URL handy? may we'll look at the packages at work... >> /usr/bin/rrdtool --version >> RRDtool 1.7.0 Copyright by Tobias Oetiker So rrdtool runs - that's good. > Here is output from url in browser: > /usr/bin/rrdtool graph - --start '-604800s' --end now --width 1200 > --height 600 --title 'Fifteen Minute Load Average' --vertical-label ' > ' --slope-mode > DEF:'sum'='/var/lib/ganglia/rrds/mtgng/someserver.somedomain.com/load_fifteen.rrd:sum':AVERAGE > AREA:'sum'#ff:'someserver.somedomain.com last week ' > CDEF:sum_pos=sum,0,LT,0,sum,IF VDEF:sum_last=sum_pos,LAST > VDEF:sum_min=sum_pos,MINIMUM VDEF:sum_avg=sum_pos,AVERAGE > VDEF:sum_max=sum_pos,MAXIMUM GPRINT:'sum_last':'Now\:%7.2lf%s' > GPRINT:'sum_min':'Min\:%7.2lf%s' GPRINT:'sum_avg':'Avg\:%7.2lf%s' > GPRINT:'sum_max':'Max\:%7.2lf%s\l' What happens if you run that command from a shell? My guess is that we'll get an error. Redirect stdout to a file and look at the file - it should generate a graph if running ok. I ran the command successfully with rrdtool 1.7.1 an Linux. Hm. let's see what you get. Jochen -- This space is intentionally left blank. ___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general
Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
As far as I know the IBM packages are perzl packages, just changed a bit to work (or not work) with some native libraries and packages, the idea being to reduce dependency conflicts. Michael Perzls name is all over the place in the config files. > /usr/bin/rrdtool --versionRRDtool 1.7.0 Copyright by Tobias Oetiker > Compiled Jan 24 2019 03:47:30 Usage: rrdtool [options] command command_optionsValid commands: create, update, updatev, graph, graphv, dump, restore, last, lastupdate, first, info, list, fetch, tune, resize, xport, flushcached RRDtool is distributed under the Terms of the GNU GeneralPublic License Version 2. (www.gnu.org/copyleft/gpl.html) For more information read the RRD manpages> ldd /usr/bin/rrdtool/usr/bin/rrdtool needs: /usr/lib/libc.a(shr.o) /usr/lib/libpthread.a(shr_xpg5.o) /usr/lib/libX11.a(shr4.o) /opt/freeware/lib/libintl.a(libintl.so.8) /opt/freeware/lib/librrd.a(librrd.so.8) /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0) /opt/freeware/lib/libffi.a(libffi.so.6) /opt/freeware/lib/libgthread-2.0.a(libgthread-2.0.so.0) /opt/freeware/lib/libdbi.a(libdbi.so.1) /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) /opt/freeware/lib/libxml2.a(libxml2.so.2) /opt/freeware/lib/liblzma.a(liblzma.so.5) /unix /usr/lib/libcrypt.a(shr.o) /usr/lib/libpthreads.a(shr_comm.o) /opt/freeware/lib/libiconv.a(shr4.o) /usr/lib/libIM.a(shr.o) /usr/lib/libpthreads.a(shr_xpg5.o) /opt/freeware/lib/libgcc_s.a(shr.o) /opt/freeware/lib/libpangocairo-1.0.a(libpangocairo-1.0.so.0) /opt/freeware/lib/libpng.a(libpng16.so.16) /opt/freeware/lib/libiconv.a(libiconv.so.2) /opt/freeware/lib/libz.a(libz.so.1) /opt/freeware/lib/libcairo.a(libcairo.so.2) /opt/freeware/lib/libpango-1.0.a(libpango-1.0.so.0) /usr/lib/libpthread.a(shr_comm.o) /opt/freeware/lib/libpangoft2-1.0.a(libpangoft2-1.0.so.0) /opt/freeware/lib/libfontconfig.a(libfontconfig.so.1) /opt/freeware/lib/libfreetype.a(libfreetype.so.6) /opt/freeware/lib/libpixman-1.a(libpixman-1.so.0) /usr/lib/libXext.a(shr.o) /opt/freeware/lib/libXrender.a(libXrender.so.1) /opt/freeware/lib/libpng16.a(libpng16.so.16) /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) /opt/freeware/lib/libexpat.a(libexpat.so.1) /opt/freeware/lib/libbz2.a(libbz2.so.1) /usr/lib/libgaimisc.a(shr.o) /usr/lib/libgair4.a(shr.o) /usr/lib/libC.a(shr.o) /usr/lib/libC.a(ansi_32.o) /usr/lib/libodm.a(shr.o) /usr/lib/libC.a(shrcore.o) /usr/lib/libC.a(ansicore_32.o)>for x in ` ldd /usr/bin/rrdtool|grep -v needs|awk -F\( '{print $1}'`;do ls -l $x;done lrwxrwxrwx 1 bin bin 19 May 23 07:42 /usr/lib/libc.a -> /usr/ccs/lib/libc.alrwxrwxrwx 1 bin bin 22 May 23 07:42 /usr/lib/libpthread.a -> /usr/lib/libpthreads.alrwxrwxrwx 1 bin bin 28 May 23 07:42 /usr/lib/libX11.a -> /usr/lpp/X11/lib/R7/libX11.a-rw-r--r-- 1 root system 414335 Nov 21 2018 /opt/freeware/lib/libintl.a-rwxr-xr-x 1 root system 3692012 Jan 24 2019 /opt/freeware/lib/librrd.a-rwxr-xr-x 1 root system 4193098 Aug 6 2018 /opt/freeware/lib/libgobject-2.0.a-rwxr-xr-x 1 root system 62859 Feb 27 21:27 /opt/freeware/lib/libffi.a-rwxr-xr-x 1 root system 230310 Aug 6 2018 /opt/freeware/lib/libgthread-2.0.a-rwxr-xr-x 1 root system 333866 Dec 18 2017 /opt/freeware/lib/libdbi.a-rwxr-xr-x 1 root system 15384286 Aug 6 2018 /opt/freeware/lib/libglib-2.0.a-rwxr-xr-x 1 root system 9501887 May 2 22:25 /opt/freeware/lib/libxml2.a-rwxr-xr-x 1 root system 3033686 Jan 22 2019 /opt/freeware/lib/liblzma.alrwxrwxrwx 1 root system 21 May 23 07:42 /unix -> /usr/lib/boot/unix_64-r-xr-xr-x 1 bin bin 10749 May 22 13:34 /usr/lib/libcrypt.alrwxrwxrwx 1 bin bin 26 May 23 07:42 /usr/lib/libpthreads.a -> /usr/ccs/lib/libpthreads.a-rw-r--r-- 1 root system 3145609 May 29 11:39 /opt/freeware/lib/libiconv.alrwxrwxrwx 1 bin bin 20 May 23 07:42 /usr/lib/libIM.a -> /usr/ccs/lib/libIM.alrwxrwxrwx 1 bin bin 26 May 23 07:42 /usr/lib/libpthreads.a -> /usr/ccs/lib/libpthreads.alrwxrwxrwx 1 root system 43 May 29 11:39 /opt/freeware/lib/libgcc_s.a -> gcc/powerpc-ibm-aix7.2.0.0/8.1.0/libgcc_s.a-rwxr-xr-x 1 root system 686205 Feb 18 2018 /opt/freeware/lib/libpangocairo-1.0.alrwxrwxrwx 1 root system 10 Aug 1 10:31 /opt/freeware/lib/libpng.a -> libpng16.a-rw-r--r--
Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
Hi Erik, I'm running the Ganglia packages from http://www.perzl.org/ganglia/. I'm not sure what the IBM packages are and what they contain. But first let's see what we can find out. Erik Ochoa via Ganglia-general writes: > $conf['rrdtool'] = "/usr/bin/rrdtool"; Ok, let's see if you can run rddtool in a shell session. Try: rrdtool --help; rrdtool --version and ldd /usr/bin/rrdtool > Output from cli with debug=3: > root@someserver:/root > php > http://someserver.somedomain.com/ganglia/graph.php?r=hour=xlarge=mtgng=someserver.somedomain.com===2.27=load_fifteen=+=Fifteen+Minute+Load+Average=3 Please enter the URL into your browser - running php directly is not useful IMHO. Jochen -- This space is intentionally left blank. ___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general
Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
Hi Jochen, I agree with your assessment, I think most everything is working except for the graphs. I am using rrdtool as the graph engine, here are the settings from my php.conf file: $conf['gweb_root'] = "/opt/freeware/apache2/htdocs/ganglia";$conf['gweb_confdir'] = "/var/lib/ganglia-web";$conf['gmetad_root'] = "/var/lib/ganglia";$conf['rrdtool'] = "/usr/bin/rrdtool";$conf['rrds'] = "${conf['gmetad_root']}/rrds"; > ls -l /usr/bin/rrdtoollrwxrwxrwx 1 root system 30 Aug 1 10:31 /usr/bin/rrdtool -> ../../opt/freeware/bin/rrdtool > ls -l /opt/freeware/bin/rrdtool-rwxr-xr-x 1 root system 24931 Jan 24 2019 /opt/freeware/bin/rrdtool > ls -ltr /var/lib/ganglia-webtotal 16drwxr-xr-x 2 apache apache 256 Jan 31 2019 filtersdrwxr-xr-x 4 apache apache 256 Aug 7 10:03 dwoo-rw-r--r-- 1 apache apache 84 Aug 8 09:32 default.jsondrwxr-xr-x 3 apache apache 4096 Aug 9 07:43 conf > ls -ltr /var/lib/ganglia/rrds/total 8drwxr-xr-x 2 nobody nobody 4096 Aug 1 13:32 __SummaryInfo__drwxr-xr-x 5 nobody nobody 256 Aug 1 13:34 serenitydrwxr-xr-x 5 nobody nobody 256 Aug 1 13:55 mtgng >From conf_default.php: # Leave this alone if rrdtool is installed in $conf['gmetad_root'],# otherwise, change it if it is installed elsewhere (like /usr/bin)$conf['rrdtool'] = "/usr/bin/rrdtool"; # Render graphs with rrdtool's --slope-mode option$conf['rrdtool_slope_mode'] = true; # If rrdcached is being used, this argument must specify the# socket to use.## ganglia-web only requires, and should use, the low-privilege socket# created with the -L option to rrdcached. gmetad requires, and must use,# the fully privileged socket created with the -l option to rrdcached.$conf['rrdcached_socket'] = ""; ##rrcached is installed, but I was going to leave configuration of this for later. # Location for modular-graph files.$conf['graphdir']= $conf['gweb_root'] . '/graph.d'; > ls -l /opt/freeware/apache2/htdocs/ganglia/graph.dtotal 168-rw-r--r-- 1 > apache apache 578 Jan 31 2019 apache_report.json-rw-r--r-- 1 > apache apache 186 Jan 31 2019 > apache_response_report.json-rw-r--r-- 1 apache apache 426 Jan > 31 2019 cpu_report.json-rw-r--r-- 1 apache apache 9065 Jan 31 > 2019 cpu_report.php-rw-r--r-- 1 apache apache 3310 Jan 31 2019 > cpu_used_report.php-rw-r--r-- 1 apache apache 476 Jan 31 2019 > load_all_report.json-rw-r--r-- 1 apache apache 590 Jan 31 2019 > load_report.json-rw-r--r-- 1 apache apache 680 Jan 31 2019 > mem_report.json-rw-r--r-- 1 apache apache 8324 Jan 31 2019 > mem_report.php-rw-r--r-- 1 apache apache 4973 Jan 31 2019 > metric.php-rw-r--r-- 1 apache apache 355 Jan 31 2019 > network_report.json-rw-r--r-- 1 apache apache 1616 Jan 31 2019 > nfs_v3_client_report.json-rw-r--r-- 1 apache apache 358 Jan 31 > 2019 packet_report.json-rw-r--r-- 1 apache apache 6392 Jan 31 > 2019 sample_report.php-rw-r--r-- 1 apache apache 3543 Jan 31 > 2019 varnish_report.php # Display statistical values on RRD graphs; i.e.: average, min, max$conf['graphreport_stats'] = true;$conf['graphreport_stat_items'] = array("now", "min", "avg", "max"); Output from cli with debug=3:root@someserver:/root > php http://someserver.somedomain.com/ganglia/graph.php?r=hour=xlarge=mtgng=someserver.somedomain.com===2.27=load_fifteen=+=Fifteen+Minute+Load+Average=3[1] 14025196[2] 7668108[3] 27656560[4] 9109872[5] 9699838[6] 23724514[7] 24510788[8] 19661276[9] 7471498[10] 23855546root@someserver:/root > Could not open input file: http://someserver.somedomain.com/ganglia/graph.php?r=hour [10] + Done php http://someserver.somedomain.com/ganglia/graph.php?r=hour=xlarge=mtgng=someserver.somedomain.com===2.27=load_fifteen=+=Fifteen+Minute+Load+Average=3[9] + Done php http://someserver.somedomain.com/ganglia/graph.php?r=hour=xlarge=mtgng=someserver.somedomain.com===2.27=load_fifteen=+=Fifteen+Minute+Load+Average=3[8] + Done php http://someserver.somedomain.com/ganglia/graph.php?r=hour=xlarge=mtgng=someserver.somedomain.com===2.27=load_fifteen=+=Fifteen+Minute+Load+Average=3[7] + Done php http://someserver.somedomain.com/ganglia/graph.php?r=hour=xlarge=mtgng=someserver.somedomain.com===2.27=load_fifteen=+=Fifteen+Minute+Load+Average=3[6] + Done php http://someserver.somedomain.com/ganglia/graph.php?r=hour=xlarge=mtgng=someserver.somedomain.com===2.27=load_fifteen=+=Fifteen+Minute+Load+Average=3[5] + Done php
Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
Jochen, Thank you very much for your response! I tried just using the corrected cluster_view.php, and I no longer see that php error, but still no graphs. I think my next step would be to install the full web frontend to al alternate directory? Instead of graphs I see broken image icons, when I click on them I get: The image cannot be displayed because it is broken. When I click the Inspect button, I see an empty box with all of the expected drop downs, etc. > On Aug 8, 2019, at 8:51 PM, Jochen Hein wrote: > > > Hi, > > e_ochoa--- via Ganglia-general > writes: > >> But no graphs show up. Period. If I poke around a bit I get some php errors: >> >> [08-Aug-2019 08:56:42 America/Los_Angeles] PHP Fatal error: Uncaught Error: >> [] operator not supported for strings in >> /opt/freeware/apache2/htdocs/ganglia/cluster_view.php:34 > > I guess it's something like that - newer PHP is picky: > > https://github.com/ganglia/ganglia-web/commit/13d426bcf66fb0f27d44847154ba2180884edcd6#diff-e1071aa34fd172254845e0b549521bf6 > > Jochen > > -- > This space is intentionally left blank. ___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general
Re: [Ganglia-general] Ganglia 3.7.2 on AIX 7.2
Hi, e_ochoa--- via Ganglia-general writes: > But no graphs show up. Period. If I poke around a bit I get some php errors: > > [08-Aug-2019 08:56:42 America/Los_Angeles] PHP Fatal error: Uncaught Error: > [] operator not supported for strings in > /opt/freeware/apache2/htdocs/ganglia/cluster_view.php:34 I guess it's something like that - newer PHP is picky: https://github.com/ganglia/ganglia-web/commit/13d426bcf66fb0f27d44847154ba2180884edcd6#diff-e1071aa34fd172254845e0b549521bf6 Jochen -- This space is intentionally left blank. ___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general
[Ganglia-general] Ganglia 3.7.2 on AIX 7.2
I've installed all of the ganglia packages listed on the IBM site, as well as the requisites, using YUM. I believe that gmond and gmetad are installed correctly, I see data being collected, etc. Gstat gives me good info: /opt/freeware/bin/gstat --all --single_line CLUSTER INFORMATION Name: mtgng Hosts: 2 Gexec Hosts: 0 Dead Hosts: 0 Localtime: Thu Aug 8 12:56:56 2019 CLUSTER HOSTS Hostname LOADCPU Gexec CPUs (Procs/Total) [ 1, 5, 15min] [ User, Nice, System, Idle, Wio] mtpvm1test01 8 ( 0/ 128) [ 3.05, 2.82, 2.88] [ 0.0, 0.0, 0.1, 99.9, 0.0] OFF mtpvm1nim01 4 ( 1/ 142) [ 2.14, 1.31, 1.17] [ 58.8, 0.0, 0.1, 41.1, 0.0] OFF But no graphs show up. Period. If I poke around a bit I get some php errors: [08-Aug-2019 08:56:42 America/Los_Angeles] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /opt/freeware/apache2/htdocs/ganglia/cluster_view.php:34 Stack trace: #0 /opt/freeware/apache2/htdocs/ganglia/cluster_view.php(772): get_picker_metrics(Array, Array, '/opt/freeware/a...', 'rrdtool') #1 /opt/freeware/apache2/htdocs/ganglia/index.php(51): include_once('/opt/freeware/a...') #2 {main} thrown in /opt/freeware/apache2/htdocs/ganglia/cluster_view.php on line 34 I assume this is the cause of my problem, but since I can't find decent documentation I am not really sure. HELP!! I've been banging my head against the wall for days now... ___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general