Discussion:
[collectd] Can't locate Collectd/Unixsock.pm in @INC
Salimane Adjao Moustapha
2010-08-23 09:57:53 UTC
Permalink
Hi,

I am trying to get collection3 to work on CentOS 5.5. Here is the
error message I get when I go to
http://localhost/collection3/bin/index.cgi:



Software error:


Can't locate Collectd/Unixsock.pm in @INC (@INC contains: ../lib
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .)
at ../lib/Collectd/Graph/Common.pm line 8.
BEGIN failed--compilation aborted at ../lib/Collectd/Graph/Common.pm line 8.
Compilation failed in require at ../lib/Collectd/Graph/Type.pm line 34.
BEGIN failed--compilation aborted at ../lib/Collectd/Graph/Type.pm line 34.
Compilation failed in require at ../lib/Collectd/Graph/TypeLoader.pm line 31.
BEGIN failed--compilation aborted at
../lib/Collectd/Graph/TypeLoader.pm line 31.
Compilation failed in require at /var/www/collection3/bin/index.cgi line 32.
BEGIN failed--compilation aborted at /var/www/collection3/bin/index.cgi line 32.


Thanks in advance for any suggestions
--
Salimane Adjao Moustapha
Thinker, Trend Watcher, Real Solutions Builder
Software Craftsman @ Ethos Technologies <http://www.ethos.com.cn/>
Find me @ Linkedin <http://www.linkedin.com/in/salimane>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100823/b440ba11/attachment.htm
Sebastian Harl
2010-08-23 11:14:39 UTC
Permalink
Hi,
Post by Salimane Adjao Moustapha
I am trying to get collection3 to work on CentOS 5.5. Here is the
error message I get when I go to
[?]

How did you install collectd? collectd ships Collectd/Unixsock.pm in
bindings/perl/ and should install it to whatever your local Perl
installation thinks is the right place (which should be some directory
in @INC, I suppose).

Cheers,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100823/dbc6daaa/attachment.pgp
Salimane Adjao Moustapha
2010-08-23 12:06:30 UTC
Permalink
Hi,
Thanks for the reply. first i've installed it from source, i'm on centos
5.5. then i tried installing from yum , i got the same error.
Thanks
--
Salimane Adjao Moustapha
Thinker, Trend Watcher, Real Solutions Builder
Post by Sebastian Harl
Hi,
Post by Salimane Adjao Moustapha
I am trying to get collection3 to work on CentOS 5.5. Here is the
error message I get when I go to
[?]
How did you install collectd? collectd ships Collectd/Unixsock.pm in
bindings/perl/ and should install it to whatever your local Perl
installation thinks is the right place (which should be some directory
Cheers,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkxyWB8ACgkQEFEKc4UBx/xKwwCfS3RSbTX5Mb7W4tY71aCSSUUM
vXsAn1VkxQNAm81X6fN62UkwUgzyzTGA
=deWN
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100823/642e7db2/attachment-0001.htm
Sebastian Harl
2010-08-23 12:17:29 UTC
Permalink
Hi,
Post by Salimane Adjao Moustapha
Post by Sebastian Harl
Post by Salimane Adjao Moustapha
I am trying to get collection3 to work on CentOS 5.5. Here is the
error message I get when I go to
[?]
How did you install collectd? collectd ships Collectd/Unixsock.pm in
bindings/perl/ and should install it to whatever your local Perl
installation thinks is the right place (which should be some directory
Thanks for the reply. first i've installed it from source, i'm on centos
5.5. then i tried installing from yum , i got the same error.
Did you try to locate Collectd/Unixsock.pm on your system? In order for
perl to find it, it needs to be found in any of the paths listed in @INC
(see the error message). If that's not the case, a work-around would be
to copy or symlink it to collection3/lib/.

See the Perl documentation for more details about the module search
path.

HTH,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100823/245219ab/attachment.pgp
Salimane Adjao Moustapha
2010-08-25 07:27:33 UTC
Permalink
Hi,
I've now resolved all the perl modules errors. I could access now the page
but the data selector page in empty. the select boxes are empty. I have
enables some plugins and restarted collectd. Any ideas what's wrong there ?
Thanks
--
Salimane Adjao Moustapha
Thinker, Trend Watcher, Real Solutions Builder
Post by Sebastian Harl
Hi,
Post by Salimane Adjao Moustapha
On Mon, Aug 23, 2010 at 05:57:53PM +0800, Salimane Adjao Moustapha
Post by Salimane Adjao Moustapha
I am trying to get collection3 to work on CentOS 5.5. Here is the
error message I get when I go to
[?]
How did you install collectd? collectd ships Collectd/Unixsock.pm in
bindings/perl/ and should install it to whatever your local Perl
installation thinks is the right place (which should be some directory
Thanks for the reply. first i've installed it from source, i'm on centos
5.5. then i tried installing from yum , i got the same error.
Did you try to locate Collectd/Unixsock.pm on your system? In order for
(see the error message). If that's not the case, a work-around would be
to copy or symlink it to collection3/lib/.
See the Perl documentation for more details about the module search
path.
HTH,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkxyZtkACgkQEFEKc4UBx/yaDACfazKkTPxoGkPoqMganry+m4LA
KXIAn20ehAE4AkgHopyYppmVUghF26XI
=EDGi
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100825/2a807fd2/attachment.htm
Sebastian Harl
2010-08-25 07:56:36 UTC
Permalink
Hi,
Post by Salimane Adjao Moustapha
I've now resolved all the perl modules errors. I could access now the page
but the data selector page in empty. the select boxes are empty. I have
enables some plugins and restarted collectd. Any ideas what's wrong there ?
collection3 expects a config-file (by default in collection3/etc/).
Please verify that this is available and that 'DataDir' is uncommented
and pointing to the data directory of the rrdtool plugin.

HTH,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100825/22706be8/attachment.pgp
Salimane Adjao Moustapha
2010-08-31 02:39:21 UTC
Permalink
Hi,

collection3/bin/index.cgi seems to be working now but there is no data in
the graphs images.
i've installled collectd and rrd-tool through yum
i have modifies /etc/collectd.conf to enable the plugins i want.
i've set collection3 etc/collection.conf "DataDir"

Any ideas ?

Thanks


*Salimane Adjao Moustapha*
Thinker, Trend Watcher, Real Solutions Builder
*Software Craftsman @ Ethos Technologies <http://www.ethos.com.cn/>*

[image: LinkedIn] <http://www.linkedin.com/in/salimane> [image:
Google]<http://www.google.com/profiles/salimane>
[image: SlideShare] <http://www.slideshare.net/salimane/favorites> [image:
YouTube] <http://youtube.com/user/salimanevideos> [image:
Twitter]<http://twitter.com/msalimane>
[image: Facebook] <http://www.facebook.com/salimane>
Post by Sebastian Harl
Hi,
Post by Salimane Adjao Moustapha
I've now resolved all the perl modules errors. I could access now the
page
Post by Salimane Adjao Moustapha
but the data selector page in empty. the select boxes are empty. I have
enables some plugins and restarted collectd. Any ideas what's wrong there
?
collection3 expects a config-file (by default in collection3/etc/).
Please verify that this is available and that 'DataDir' is uncommented
and pointing to the data directory of the rrdtool plugin.
HTH,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkx0zLQACgkQEFEKc4UBx/wBxACgkb3Hw+1tGQrBAlEH5Nex3A6U
/usAn0L4OZWXGnFtlIfgiOJfUq2EKsdY
=8S07
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100831/68b2cf85/attachment.htm
Sebastian Harl
2010-08-31 08:42:24 UTC
Permalink
Hi there,
Post by Salimane Adjao Moustapha
collection3/bin/index.cgi seems to be working now but there is no data in
the graphs images.
Does collection3 display any graphs and those graphs are empty or are
there no graphs at all? In the former case, what exactly do you mean by
"no data in the graph images"? Is there an x- and y-axis but no other
plotted data or is it an empty (white, whatever) image?
Post by Salimane Adjao Moustapha
i've installled collectd and rrd-tool through yum
i have modifies /etc/collectd.conf to enable the plugins i want.
i've set collection3 etc/collection.conf "DataDir"
There could be a couple possible issues. It's easier to tell, once I get
the information requested above. Anyway, for now: Do you have caching
enabled in the "rrdtool" plugin (if in doubt, please provide you
collectd.conf)? Are there any error messages in your webserver's logs?

HTH,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100831/1159ec8b/attachment.pgp
Salimane Adjao Moustapha
2010-08-31 14:15:26 UTC
Permalink
Hi,

I have finally resolved it. The error was because i didn't install
collectd-rrdtool.
Thanks for the replies

Thanks


*Salimane Adjao Moustapha*
Thinker, Trend Watcher, Real Solutions Builder
*Software Craftsman @ Ethos Technologies <http://www.ethos.com.cn/>*

[image: LinkedIn] <http://www.linkedin.com/in/salimane> [image:
Google]<http://www.google.com/profiles/salimane>
[image: SlideShare] <http://www.slideshare.net/salimane/favorites> [image:
YouTube] <http://youtube.com/user/salimanevideos> [image:
Twitter]<http://twitter.com/msalimane>
[image: Facebook] <http://www.facebook.com/salimane>
Post by Sebastian Harl
Hi there,
Post by Salimane Adjao Moustapha
collection3/bin/index.cgi seems to be working now but there is no data in
the graphs images.
Does collection3 display any graphs and those graphs are empty or are
there no graphs at all? In the former case, what exactly do you mean by
"no data in the graph images"? Is there an x- and y-axis but no other
plotted data or is it an empty (white, whatever) image?
Post by Salimane Adjao Moustapha
i've installled collectd and rrd-tool through yum
i have modifies /etc/collectd.conf to enable the plugins i want.
i've set collection3 etc/collection.conf "DataDir"
There could be a couple possible issues. It's easier to tell, once I get
the information requested above. Anyway, for now: Do you have caching
enabled in the "rrdtool" plugin (if in doubt, please provide you
collectd.conf)? Are there any error messages in your webserver's logs?
HTH,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkx8wG8ACgkQEFEKc4UBx/xkSACfVFk2QI514VVARd4DG2o0UDer
nb0AoJkkuohqZ9npKS5U0mq+TtFQ/I8q
=KENo
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100831/830e4af4/attachment.htm
Loading...