Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread Bernard Li
Hi Jason: 

Disclaimer, my knowledge of SELinux is very limited, but AFAIK one just
need to set up SELinux to permissive mode and then record the behvaiour
and come up with some rules.  But perhaps this is easily said than done
:-)

Cheers,

Bernard

> Others on this list have run into this problem in the past.  
> Has anyone
> figured out what SELinux policies are required for ganglia to 
> function?
> 
> ~Jason
> 
> 
> --
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the 
> chance to share your
> opinions on IT & business topics through brief surveys -- and 
> earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
> &CID=DEVDEV
> ___
> Ganglia-general mailing list
> Ganglia-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
> 



Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread toney samuel

Hi,

Jason thanks it worked.

I would like to thank each and every one who have replied

Thank You All

Toney




On 7/18/06, Jason A. Smith <[EMAIL PROTECTED]> wrote:


On Tue, 2006-07-18 at 08:37, toney samuel wrote:
> Hi,
>
> I am using centos 4.2 and i am getting this error in /var/log/messages
>
> Jul 18 17:58:52 xeon kernel: audit(1153225732.898:460): avc:  denied
> { read } for  pid=26941 comm="rrdtool" name="disk_total.rrd" dev=hda2
> ino=1296150 scontext=root:system_r:httpd_sys_script_t
> tcontext=root:object_r:var_lib_t tclass=file
> Jul 18 17:58:52 xeon kernel: audit(1153225732.920:461): avc:  denied
> { read } for  pid=26942 comm="rrdtool" name="load_five.rrd" dev=hda2
> ino=1296126 scontext=root:system_r:httpd_sys_script_t
> tcontext=root:object_r:var_lib_t tclass=file
>
>
> pls guide how to proceed
>
> regards

Yup, it looks like you have SELinux enabled.  Check the contents of the
/etc/sysconfig/selinux config file to see what level it is set to, i.e.
SELINUX should be set to one of: enforcing, permissive or disabled.  It
is most likely set to enforcing.

You have two options, either completely disable SELinux or set httpd
and/or rrdtool policies that allow the ganglia php scripts to access the
required rrd lib directory and anything else that it might need to.

Others on this list have run into this problem in the past.  Has anyone
figured out what SELinux policies are required for ganglia to function?

~Jason




Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread Jason A. Smith
On Tue, 2006-07-18 at 08:37, toney samuel wrote:
> Hi,
> 
> I am using centos 4.2 and i am getting this error in /var/log/messages
> 
> Jul 18 17:58:52 xeon kernel: audit(1153225732.898:460): avc:  denied 
> { read } for  pid=26941 comm="rrdtool" name="disk_total.rrd" dev=hda2
> ino=1296150 scontext=root:system_r:httpd_sys_script_t
> tcontext=root:object_r:var_lib_t tclass=file 
> Jul 18 17:58:52 xeon kernel: audit(1153225732.920:461): avc:  denied 
> { read } for  pid=26942 comm="rrdtool" name="load_five.rrd" dev=hda2
> ino=1296126 scontext=root:system_r:httpd_sys_script_t
> tcontext=root:object_r:var_lib_t tclass=file 
> 
> 
> pls guide how to proceed
> 
> regards

Yup, it looks like you have SELinux enabled.  Check the contents of the
/etc/sysconfig/selinux config file to see what level it is set to, i.e.
SELINUX should be set to one of: enforcing, permissive or disabled.  It
is most likely set to enforcing.

You have two options, either completely disable SELinux or set httpd
and/or rrdtool policies that allow the ganglia php scripts to access the
required rrd lib directory and anything else that it might need to.

Others on this list have run into this problem in the past.  Has anyone
figured out what SELinux policies are required for ganglia to function?

~Jason




Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread toney samuel

Hi,

I am using centos 4.2 and i am getting this error in /var/log/messages

Jul 18 17:58:52 xeon kernel: audit(1153225732.898:460): avc:  denied  { read
} for  pid=26941 comm="rrdtool" name="disk_total.rrd" dev=hda2 ino=1296150
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:52 xeon kernel: audit(1153225732.920:461): avc:  denied  { read
} for  pid=26942 comm="rrdtool" name="load_five.rrd" dev=hda2 ino=1296126
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:52 xeon kernel: audit(1153225732.939:462): avc:  denied  { read
} for  pid=26943 comm="rrdtool" name="load_fifteen.rrd" dev=hda2 ino=1296127
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:52 xeon kernel: audit(1153225732.959:463): avc:  denied  { read
} for  pid=26945 comm="rrdtool" name="mem_buffers.rrd" dev=hda2 ino=1296140
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:52 xeon kernel: audit(1153225732.979:464): avc:  denied  { read
} for  pid=26944 comm="rrdtool" name="load_one.rrd" dev=hda2 ino=1296130
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:52 xeon kernel: audit(1153225732.999:465): avc:  denied  { read
} for  pid=26947 comm="rrdtool" name="mem_free.rrd" dev=hda2 ino=1296138
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.020:466): avc:  denied  { read
} for  pid=26946 comm="rrdtool" name="mem_cached.rrd" dev=hda2 ino=1296141
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.021:467): avc:  denied  { read
} for  pid=26948 comm="rrdtool" name="mem_shared.rrd" dev=hda2 ino=1296139
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.045:468): avc:  denied  { read
} for  pid=26950 comm="rrdtool" name="pkts_in.rrd" dev=hda2 ino=1296146
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.057:469): avc:  denied  { read
} for  pid=26949 comm="rrdtool" name="part_max_used.rrd" dev=hda2
ino=1296129 scontext=root:system_r:httpd_sys_script_t
tcontext=root:object_r:var_lib_t tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.077:470): avc:  denied  { read
} for  pid=26951 comm="rrdtool" name="pkts_out.rrd" dev=hda2 ino=1296143
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.088:471): avc:  denied  { read
} for  pid=26952 comm="rrdtool" name="proc_run.rrd" dev=hda2 ino=1296147
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.100:472): avc:  denied  { read
} for  pid=26953 comm="rrdtool" name="proc_total.rrd" dev=hda2 ino=1296148
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:53 xeon kernel: audit(1153225733.112:473): avc:  denied  { read
} for  pid=26954 comm="rrdtool" name="swap_free.rrd" dev=hda2 ino=1296142
scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 18 17:58:57 xeon dbus: Can't send to audit system: USER_AVC pid=2545
uid=81 loginuid=-1 message=avc:  denied  { send_msg } for
scontext=root:system_r:unconfined_t tcontext=user_u:system_r:initrc_t
tclass=dbus
Jul 18 17:59:32 xeon last message repeated 7 times
Jul 18 18:00:37 xeon last message repeated 13 times
Jul 18 18:00:57 xeon last message repeated 4 times
Jul 18 18:01:01 xeon crond(pam_unix)[26976]: session opened for user root by
(uid=0)
Jul 18 18:01:01 xeon crond(pam_unix)[26976]: session closed for user root
Jul 18 18:01:02 xeon dbus: Can't send to audit system: USER_AVC pid=2545
uid=81 loginuid=-1 message=avc:  denied  { send_msg } for
scontext=root:system_r:unconfined_t tcontext=user_u:system_r:initrc_t
tclass=dbus
Jul 18 18:01:37 xeon last message repeated 7 times
Jul 18 18:02:42 xeon last message repeated 13 times


pls guide how to proceed

regards

On 7/18/06, Jason A. Smith <[EMAIL PROTECTED]> wrote:


On Tue, 2006-07-18 at 08:17, toney samuel wrote:
> Hi i reinstalled the whole setup again and while configuring rrdtool i
> had given --prefix-/usr
> now also i am not  getting the  graph but i am getting different
> error. i tried giving the folder 777 permission but still it's not
> working here is the /var/log/httpd/error_log
>
> ERROR: opening
> '/var/lib/ganglia/rrds/Summation/xeon.summation.com/load_fifteen.rrd':
> Permission denied
> ERROR: opening
> '/var/lib/ganglia/rrds/Summation/xeon.summation.com/load_five.rrd':
> Permission denied

Are you running a recent distribution of Linux with SELinux enabled?  Do
you see any errors in /

Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread Jason A. Smith
On Tue, 2006-07-18 at 08:17, toney samuel wrote:
> Hi i reinstalled the whole setup again and while configuring rrdtool i
> had given --prefix-/usr
> now also i am not  getting the  graph but i am getting different
> error. i tried giving the folder 777 permission but still it's not
> working here is the /var/log/httpd/error_log 
> 
> ERROR: opening
> '/var/lib/ganglia/rrds/Summation/xeon.summation.com/load_fifteen.rrd':
> Permission denied
> ERROR: opening
> '/var/lib/ganglia/rrds/Summation/xeon.summation.com/load_five.rrd':
> Permission denied

Are you running a recent distribution of Linux with SELinux enabled?  Do
you see any errors in /var/log/messages (or the equivalent system log)?

~Jason




Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread toney samuel

Hi i reinstalled the whole setup again and while configuring rrdtool i had
given --prefix-/usr
now also i am not  getting the  graph but i am getting different error. i
tried giving the folder 777 permission but still it's not working here is
the /var/log/httpd/error_log

ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/load_fifteen.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/load_five.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/load_one.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/mem_cached.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/mem_buffers.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/mem_shared.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/mem_free.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/part_max_used.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/pkts_in.rrd': Permission
denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/pkts_out.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/proc_run.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/proc_total.rrd':
Permission denied
ERROR: opening
'/var/lib/ganglia/rrds/Summation/xeon.summation.com/swap_free.rrd':
Permission denied
[Tue Jul 18 17:39:29 2006] [error] [client 192.168.1.216] File does not
exist: /var/www/html/favicon.ico


pls tell me how to resolve this problem

On 7/18/06, toney samuel <[EMAIL PROTECTED]> wrote:


Hi,

but I am able to create graph by using this procedure


bash$ cd /var/lib/ganglia/rrds/__SummaryInfo__/

> > bash$ rrdtool graph /tmp/foo.png --end now --start end-12s \
> >  > --width 400 DEF:myline=cpu_nice.rrd:sum:AVERAGE \
> >  > LINE1:myline#FF:"foo\n"
> > bash$ file /tmp/foo.png



and the error i am getting in /var/log/httpd/error_log while i am opening
ganglia page and select the node in the web page


On 7/18/06, Ramon Bastiaans <[EMAIL PROTECTED]> wrote:
>
> This means that rrdtool is actually not working, if you read the error
> printed by rrdtool. Also it seems it is still using /usr/bin/rrdtool
> instead of you alternate path in usr/local. Check your config again.
>
> rrdtool complains about not having permission to load it's library..
> Maybe a wild idea is to check the permissions on that file it prints??
> (the error message already suggests this!)
>
> Also the undefined function means that you do not have GD and/or the
> php-gd module installed.
>
> - Ramon.
>
> toney samuel wrote:
> > Hi Ben,
> >
> > I have tried as per your advise and rrdtool is working properly. I
> > checked the apache log also and i found this error
> >
> > [client 127.0.0.1 ] PHP Fatal error:  Call to
> > undefined function:  imagecreate() in /var/www/html/ganglia/pie.php on
>
> > line 121, referer: http://localhost/ganglia/
> > /usr/bin/rrdtool: error while loading shared libraries: librrd.so.2:
> > failed to map segment from shared object: Permission denied
> >
> > pls guide me to resolve this problem
> >
> > Regards
> >
> > On 7/17/06, *Ben Hartshorne* <[EMAIL PROTECTED]
> > > wrote:
> >
> >
> > Toney,
> >
> > Have you verified that rrdtool itself works?  It may not be a
> problem
> > with ganglia you're looking at but a problem with rrdtool itself.
> >
> > I'm not sure what might show up in the apache logs, but that may
> be a
> > good place to look as well.
> >
> > You should be able to find your rrd databases for ganglia on the
> node
> > running gmetad (which may be all the nodes).  My installation puts
> them
> > in /var/lib/ganglia/rrds, but I'm not sure if that's the default
> > location.
> >
> > Assuming they are there...
> >
> > bash$ cd /var/lib/ganglia/rrds/__SummaryInfo__/
> > bash$ rrdtool graph /tmp/foo.png --end now --start end-12s \
> >  > --width 400 DEF:myline=cpu_nice.rrd:sum:AVERAGE \
> >  > LINE1:myline#FF:"foo\n"
> > bash$ file /tmp/foo.png
> > /tmp/foo.png: GIF image data, version 87a, 480 x 155
> > bash$ xv /tmp/foo.png #or some other way of viewing it
> >
> > If foo.png is a real graph, then you have verified that rrdtool is
>
> > working correctly.  If you cannot get rrdtool to create a graph
> for you,
> > you should investigate why it is not working correctly before
> continuing
> > to troubleshoot ganglia.
> >
> > -ben
> >
> >
> > On Mon, Jul 17, 2006 at 12:13:25PM +0530, toney samuel wrote:
> >  > Hi, i have specified the path as per your instruction but still
> i
> > am not
> >  > getting and graph in the web page.
> >  >
> >  > On 7/15/06, matt massie <[EMAIL

Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread toney samuel

Hi,

but I am able to create graph by using this procedure

bash$ cd /var/lib/ganglia/rrds/__SummaryInfo__/


> bash$ rrdtool graph /tmp/foo.png --end now --start end-12s \
>  > --width 400 DEF:myline=cpu_nice.rrd:sum:AVERAGE \
>  > LINE1:myline#FF:"foo\n"
> bash$ file /tmp/foo.png




and the error i am getting in /var/log/httpd/error_log while i am opening
ganglia page and select the node in the web page

On 7/18/06, Ramon Bastiaans <[EMAIL PROTECTED]> wrote:


This means that rrdtool is actually not working, if you read the error
printed by rrdtool. Also it seems it is still using /usr/bin/rrdtool
instead of you alternate path in usr/local. Check your config again.

rrdtool complains about not having permission to load it's library..
Maybe a wild idea is to check the permissions on that file it prints??
(the error message already suggests this!)

Also the undefined function means that you do not have GD and/or the
php-gd module installed.

- Ramon.

toney samuel wrote:
> Hi Ben,
>
> I have tried as per your advise and rrdtool is working properly. I
> checked the apache log also and i found this error
>
> [client 127.0.0.1 ] PHP Fatal error:  Call to
> undefined function:  imagecreate() in /var/www/html/ganglia/pie.php on
> line 121, referer: http://localhost/ganglia/
> /usr/bin/rrdtool: error while loading shared libraries: librrd.so.2:
> failed to map segment from shared object: Permission denied
>
> pls guide me to resolve this problem
>
> Regards
>
> On 7/17/06, *Ben Hartshorne* <[EMAIL PROTECTED]
> > wrote:
>
>
> Toney,
>
> Have you verified that rrdtool itself works?  It may not be a
problem
> with ganglia you're looking at but a problem with rrdtool itself.
>
> I'm not sure what might show up in the apache logs, but that may be
a
> good place to look as well.
>
> You should be able to find your rrd databases for ganglia on the
node
> running gmetad (which may be all the nodes).  My installation puts
them
> in /var/lib/ganglia/rrds, but I'm not sure if that's the default
> location.
>
> Assuming they are there...
>
> bash$ cd /var/lib/ganglia/rrds/__SummaryInfo__/
> bash$ rrdtool graph /tmp/foo.png --end now --start end-12s \
>  > --width 400 DEF:myline=cpu_nice.rrd:sum:AVERAGE \
>  > LINE1:myline#FF:"foo\n"
> bash$ file /tmp/foo.png
> /tmp/foo.png: GIF image data, version 87a, 480 x 155
> bash$ xv /tmp/foo.png #or some other way of viewing it
>
> If foo.png is a real graph, then you have verified that rrdtool is
> working correctly.  If you cannot get rrdtool to create a graph for
you,
> you should investigate why it is not working correctly before
continuing
> to troubleshoot ganglia.
>
> -ben
>
>
> On Mon, Jul 17, 2006 at 12:13:25PM +0530, toney samuel wrote:
>  > Hi, i have specified the path as per your instruction but still i
> am not
>  > getting and graph in the web page.
>  >
>  > On 7/15/06, matt massie <[EMAIL PROTECTED] 
>  > wrote:
>  > >
>  > >toney samuel wrote:
>  > >> Hi i have installed as per the instructions on this link
>  > >>
>  > >> http://www.ibm.com/collaboration/wiki/display/WikiPtype/ganglia
>  > >>
>  >
>  > >>
>  > >> I am able to get the ganglia page and also the status of my
> node. I am
>  > >> not getting the graphics ( graphs ). i have installed rrdtool
in
>  > >> /usr/local/rrdtool- 1.2.3 i have also specified the rrdtool
> path in
>  > >> /var/www/html/ganglia/conf.php
>  > >>
>  > >> define("RRDTOOL", "/usr/local/rrdtool-1.2.3");
>  > >you are so close.  RRDTOOL is not the path to the directory but
> rather
>  > >the path to the binary.
>  > >
>  > >define("RRDTOOL", "/usr/local/rrdtool-1.2.3/bin/rrdtool");
>  > >
>  > >should work for you.
>  > >
>  > >good luck
>  > >-matt
>  > >
>  > >
>  > >
>  > >
>  > >
>  > >
>
>  >
>  >
>
-
>  > Using Tomcat but need to do more? Need to support web services,
> security?
>  > Get stuff done quickly with pre-integrated technology to make
> your job easier
>  > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>  >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>
>  > ___
>  > Ganglia-general mailing list
>  > Ganglia-general@lists.sourceforge.net
> 
>  > https://lists.sourceforge.net/lists/listinfo/ga

Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread Ramon Bastiaans
This means that rrdtool is actually not working, if you read the error 
printed by rrdtool. Also it seems it is still using /usr/bin/rrdtool 
instead of you alternate path in usr/local. Check your config again.


rrdtool complains about not having permission to load it's library..
Maybe a wild idea is to check the permissions on that file it prints?? 
(the error message already suggests this!)


Also the undefined function means that you do not have GD and/or the 
php-gd module installed.


- Ramon.

toney samuel wrote:

Hi Ben,

I have tried as per your advise and rrdtool is working properly. I 
checked the apache log also and i found this error


[client 127.0.0.1 ] PHP Fatal error:  Call to 
undefined function:  imagecreate() in /var/www/html/ganglia/pie.php on 
line 121, referer: http://localhost/ganglia/
/usr/bin/rrdtool: error while loading shared libraries: librrd.so.2: 
failed to map segment from shared object: Permission denied


pls guide me to resolve this problem

Regards

On 7/17/06, *Ben Hartshorne* <[EMAIL PROTECTED] 
> wrote:



Toney,

Have you verified that rrdtool itself works?  It may not be a problem
with ganglia you're looking at but a problem with rrdtool itself.

I'm not sure what might show up in the apache logs, but that may be a
good place to look as well.

You should be able to find your rrd databases for ganglia on the node
running gmetad (which may be all the nodes).  My installation puts them
in /var/lib/ganglia/rrds, but I'm not sure if that's the default
location.

Assuming they are there...

bash$ cd /var/lib/ganglia/rrds/__SummaryInfo__/
bash$ rrdtool graph /tmp/foo.png --end now --start end-12s \
 > --width 400 DEF:myline=cpu_nice.rrd:sum:AVERAGE \
 > LINE1:myline#FF:"foo\n"
bash$ file /tmp/foo.png
/tmp/foo.png: GIF image data, version 87a, 480 x 155
bash$ xv /tmp/foo.png #or some other way of viewing it

If foo.png is a real graph, then you have verified that rrdtool is
working correctly.  If you cannot get rrdtool to create a graph for you,
you should investigate why it is not working correctly before continuing
to troubleshoot ganglia.

-ben


On Mon, Jul 17, 2006 at 12:13:25PM +0530, toney samuel wrote:
 > Hi, i have specified the path as per your instruction but still i
am not
 > getting and graph in the web page.
 >
 > On 7/15/06, matt massie <[EMAIL PROTECTED] 
 > wrote:
 > >
 > >toney samuel wrote:
 > >> Hi i have installed as per the instructions on this link
 > >>
 > >> http://www.ibm.com/collaboration/wiki/display/WikiPtype/ ganglia
 > >>
>
 > >>
 > >> I am able to get the ganglia page and also the status of my
node. I am
 > >> not getting the graphics ( graphs ). i have installed rrdtool in
 > >> /usr/local/rrdtool- 1.2.3 i have also specified the rrdtool
path in
 > >> /var/www/html/ganglia/conf.php
 > >>
 > >> define("RRDTOOL", "/usr/local/rrdtool-1.2.3");
 > >you are so close.  RRDTOOL is not the path to the directory but
rather
 > >the path to the binary.
 > >
 > >define("RRDTOOL", "/usr/local/rrdtool-1.2.3/bin/rrdtool");
 > >
 > >should work for you.
 > >
 > >good luck
 > >-matt
 > >
 > >
 > >
 > >
 > >
 > >

 >
 >
-
 > Using Tomcat but need to do more? Need to support web services,
security?
 > Get stuff done quickly with pre-integrated technology to make
your job easier
 > Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
 >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


 > ___
 > Ganglia-general mailing list
 > Ganglia-general@lists.sourceforge.net

 > https://lists.sourceforge.net/lists/listinfo/ganglia-general


--
Ben Hartshorne
email: [EMAIL PROTECTED] 
http://ben.hartshorne.net


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEu7zxKeT3tvTdv64RAlYyAJ9sr97jcuPJ1gWvET1j4BsllSfi0ACgpRd2
+s/6C1ZVHROi5wYu5CAvBqM=
=i3qY
-END PGP SIGNATURE-






-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brie

Re: [Ganglia-general] install and configure ganglia

2006-07-18 Thread toney samuel

Hi Ben,

I have tried as per your advise and rrdtool is working properly. I checked
the apache log also and i found this error

[client 127.0.0.1] PHP Fatal error:  Call to undefined function:
imagecreate() in /var/www/html/ganglia/pie.php on line 121, referer:
http://localhost/ganglia/
/usr/bin/rrdtool: error while loading shared libraries: librrd.so.2: failed
to map segment from shared object: Permission denied

pls guide me to resolve this problem

Regards

On 7/17/06, Ben Hartshorne <[EMAIL PROTECTED]> wrote:



Toney,

Have you verified that rrdtool itself works?  It may not be a problem
with ganglia you're looking at but a problem with rrdtool itself.

I'm not sure what might show up in the apache logs, but that may be a
good place to look as well.

You should be able to find your rrd databases for ganglia on the node
running gmetad (which may be all the nodes).  My installation puts them
in /var/lib/ganglia/rrds, but I'm not sure if that's the default
location.

Assuming they are there...

bash$ cd /var/lib/ganglia/rrds/__SummaryInfo__/
bash$ rrdtool graph /tmp/foo.png --end now --start end-12s \
> --width 400 DEF:myline=cpu_nice.rrd:sum:AVERAGE \
> LINE1:myline#FF:"foo\n"
bash$ file /tmp/foo.png
/tmp/foo.png: GIF image data, version 87a, 480 x 155
bash$ xv /tmp/foo.png #or some other way of viewing it

If foo.png is a real graph, then you have verified that rrdtool is
working correctly.  If you cannot get rrdtool to create a graph for you,
you should investigate why it is not working correctly before continuing
to troubleshoot ganglia.

-ben


On Mon, Jul 17, 2006 at 12:13:25PM +0530, toney samuel wrote:
> Hi, i have specified the path as per your instruction but still i am not
> getting and graph in the web page.
>
> On 7/15/06, matt massie <[EMAIL PROTECTED]> wrote:
> >
> >toney samuel wrote:
> >> Hi i have installed as per the instructions on this link
> >>
> >> http://www.ibm.com/collaboration/wiki/display/WikiPtype/ ganglia
> >> 
> >>
> >> I am able to get the ganglia page and also the status of my node. I
am
> >> not getting the graphics ( graphs ). i have installed rrdtool in
> >> /usr/local/rrdtool-1.2.3 i have also specified the rrdtool path in
> >> /var/www/html/ganglia/conf.php
> >>
> >> define("RRDTOOL", "/usr/local/rrdtool-1.2.3");
> >you are so close.  RRDTOOL is not the path to the directory but rather
> >the path to the binary.
> >
> >define("RRDTOOL", "/usr/local/rrdtool-1.2.3/bin/rrdtool");
> >
> >should work for you.
> >
> >good luck
> >-matt
> >
> >
> >
> >
> >
> >

>
>
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

> ___
> Ganglia-general mailing list
> Ganglia-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-general


--
Ben Hartshorne
email: [EMAIL PROTECTED]
http://ben.hartshorne.net


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEu7zxKeT3tvTdv64RAlYyAJ9sr97jcuPJ1gWvET1j4BsllSfi0ACgpRd2
+s/6C1ZVHROi5wYu5CAvBqM=
=i3qY
-END PGP SIGNATURE-





Re: [Ganglia-general] install and configure ganglia

2006-07-17 Thread Ben Hartshorne

Toney,

Have you verified that rrdtool itself works?  It may not be a problem
with ganglia you're looking at but a problem with rrdtool itself.

I'm not sure what might show up in the apache logs, but that may be a
good place to look as well.  

You should be able to find your rrd databases for ganglia on the node
running gmetad (which may be all the nodes).  My installation puts them
in /var/lib/ganglia/rrds, but I'm not sure if that's the default
location.

Assuming they are there...

bash$ cd /var/lib/ganglia/rrds/__SummaryInfo__/
bash$ rrdtool graph /tmp/foo.png --end now --start end-12s \
> --width 400 DEF:myline=cpu_nice.rrd:sum:AVERAGE \
> LINE1:myline#FF:"foo\n"
bash$ file /tmp/foo.png
/tmp/foo.png: GIF image data, version 87a, 480 x 155
bash$ xv /tmp/foo.png #or some other way of viewing it

If foo.png is a real graph, then you have verified that rrdtool is
working correctly.  If you cannot get rrdtool to create a graph for you,
you should investigate why it is not working correctly before continuing
to troubleshoot ganglia.

-ben


On Mon, Jul 17, 2006 at 12:13:25PM +0530, toney samuel wrote:
> Hi, i have specified the path as per your instruction but still i am not
> getting and graph in the web page.
> 
> On 7/15/06, matt massie <[EMAIL PROTECTED]> wrote:
> >
> >toney samuel wrote:
> >> Hi i have installed as per the instructions on this link
> >>
> >> http://www.ibm.com/collaboration/wiki/display/WikiPtype/ ganglia
> >> 
> >>
> >> I am able to get the ganglia page and also the status of my node. I am
> >> not getting the graphics ( graphs ). i have installed rrdtool in
> >> /usr/local/rrdtool-1.2.3 i have also specified the rrdtool path in
> >> /var/www/html/ganglia/conf.php
> >>
> >> define("RRDTOOL", "/usr/local/rrdtool-1.2.3");
> >you are so close.  RRDTOOL is not the path to the directory but rather
> >the path to the binary.
> >
> >define("RRDTOOL", "/usr/local/rrdtool-1.2.3/bin/rrdtool");
> >
> >should work for you.
> >
> >good luck
> >-matt
> >
> >
> >
> >
> >
> >

> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

> ___
> Ganglia-general mailing list
> Ganglia-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-general


-- 
Ben Hartshorne
email: [EMAIL PROTECTED]
http://ben.hartshorne.net


signature.asc
Description: Digital signature


Re: [Ganglia-general] install and configure ganglia

2006-07-16 Thread toney samuel

Hi, i have specified the path as per your instruction but still i am not
getting and graph in the web page.

On 7/15/06, matt massie <[EMAIL PROTECTED]> wrote:


toney samuel wrote:
> Hi i have installed as per the instructions on this link
>
> http://www.ibm.com/collaboration/wiki/display/WikiPtype/ ganglia
> 
>
> I am able to get the ganglia page and also the status of my node. I am
> not getting the graphics ( graphs ). i have installed rrdtool in
> /usr/local/rrdtool-1.2.3 i have also specified the rrdtool path in
> /var/www/html/ganglia/conf.php
>
> define("RRDTOOL", "/usr/local/rrdtool-1.2.3");
you are so close.  RRDTOOL is not the path to the directory but rather
the path to the binary.

define("RRDTOOL", "/usr/local/rrdtool-1.2.3/bin/rrdtool");

should work for you.

good luck
-matt








Re: [Ganglia-general] install and configure ganglia

2006-07-15 Thread matt massie

toney samuel wrote:

Hi i have installed as per the instructions on this link
 
http://www.ibm.com/collaboration/wiki/display/WikiPtype/ ganglia 



I am able to get the ganglia page and also the status of my node. I am 
not getting the graphics ( graphs ). i have installed rrdtool in 
/usr/local/rrdtool-1.2.3 i have also specified the rrdtool path in 
/var/www/html/ganglia/conf.php


define("RRDTOOL", "/usr/local/rrdtool-1.2.3");

you are so close.  RRDTOOL is not the path to the directory but rather
the path to the binary.

define("RRDTOOL", "/usr/local/rrdtool-1.2.3/bin/rrdtool");

should work for you.

good luck
-matt








Re: [Ganglia-general] install and configure ganglia

2006-07-15 Thread toney samuel

Hi i have installed as per the instructions on this link

http://www.ibm.com/collaboration/wiki/display/WikiPtype/ganglia

I am able to get the ganglia page and also the status of my node. I am not
getting the graphics ( graphs ). i have installed rrdtool in
/usr/local/rrdtool-1.2.3 i have also specified the rrdtool path in
/var/www/html/ganglia/conf.php

define("RRDTOOL", "/usr/local/rrdtool-1.2.3");

can anybody pls tell me how to procced.

Regards

On 7/11/06, Ben Hartshorne <[EMAIL PROTECTED]> wrote:


On Tue, Jul 11, 2006 at 03:52:03PM +0530, toney samuel wrote:
> i have downloaded ganglia-3.0.3.tar.gz but i am not clear how to get it
> working, do i need to install and apache. pls tell me if i want to
download
> any other packages.

Hi Toney,

I would recommend starting here:
http://ganglia.info/docs/ganglia.html#installation

You will need to have apache installed on your head node, where you want
to view the stats through the web-based interface.

You also need to have some other packages installed, such as rrdtool.  I
believe the installation process will stall at certain parts if the
required packages are not there.  It will prompt you to install what you
need.

Good luck, and please mail back if you have more specific questions,

-ben


--
Ben Hartshorne
email: [EMAIL PROTECTED]
http://ben.hartshorne.net


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEs9YxKeT3tvTdv64RAoYJAKCIMWNRAq+bZRmT0vbC1rU8zb4pPACgnP6K
ou26LU9FKn0L5OgA7L6b/As=
=fVyk
-END PGP SIGNATURE-





Re: [Ganglia-general] install and configure ganglia

2006-07-11 Thread Ben Hartshorne
On Tue, Jul 11, 2006 at 03:52:03PM +0530, toney samuel wrote:
> i have downloaded ganglia-3.0.3.tar.gz but i am not clear how to get it
> working, do i need to install and apache. pls tell me if i want to download
> any other packages.

Hi Toney,

I would recommend starting here:
http://ganglia.info/docs/ganglia.html#installation

You will need to have apache installed on your head node, where you want
to view the stats through the web-based interface.

You also need to have some other packages installed, such as rrdtool.  I
believe the installation process will stall at certain parts if the
required packages are not there.  It will prompt you to install what you
need.  

Good luck, and please mail back if you have more specific questions,

-ben


-- 
Ben Hartshorne
email: [EMAIL PROTECTED]
http://ben.hartshorne.net


signature.asc
Description: Digital signature


[Ganglia-general] install and configure ganglia

2006-07-11 Thread toney samuel

i have downloaded ganglia-3.0.3.tar.gz but i am not clear how to get it
working, do i need to install and apache. pls tell me if i want to download
any other packages.

i want to monitor my cluster through web interface