mail | 1 Jun 2012 20:29

Re: slaves and web servers

So no one has any tips to getting smokeping to get run as a different 
user on centos? Its extremely simple on Ubuntu systems, but centos 
doesnt have the same options or init script. I need to get smokeping to 
run as a different user than root in order to get this slave setup to 
work.

Thanks,
Mark

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Jason Yates | 1 Jun 2012 20:32
Favicon

Smokeping

Hi,

 

I’ve tried installing Smokeping 2.6.8 on Centos 5.6 Final, everything looks to be going ok, all of the relevant Perl modules are installed however when hitting smokeping.fcgi in a browser I get a 500 internal error & apache logs show the following:

 

[Fri Jun 01 18:13:02 2012] [warn] FastCGI: (dynamic) server "/var/www/html/smokeping.fcgi" restarted (pid 9608)

[Fri Jun  1 18:13:02 2012] smokeping_cgi: Can't locate loadable object for module FCGI in <at> INC ( <at> INC contains: /opt/smokeping/bin/../lib /opt/smokeping/bin/../thirdparty/lib/perl5 /usr/lib/perl5/5.8.8 /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi .) at /usr/lib/perl5/5.8.8/CGI/Fast.pm line 25

[Fri Jun  1 18:13:02 2012] smokeping_cgi: Compilation failed in require at /usr/lib/perl5/5.8.8/CGI/Fast.pm line 25.

[Fri Jun  1 18:13:02 2012] smokeping_cgi: BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/CGI/Fast.pm line 25.

[Fri Jun  1 18:13:02 2012] smokeping_cgi: Compilation failed in require at /opt/smokeping/bin/smokeping_cgi line 19.

[Fri Jun  1 18:13:02 2012] smokeping_cgi: BEGIN failed--compilation aborted at /opt/smokeping/bin/smokeping_cgi line 19.

 

I’ve tried re-installing CGI::Fast however I still get the errors. Any help would be appreciated.

 

Thanks

Jason

 


________________________________________________________________________
In order to protect our email recipients, Betfair Group use SkyScan from
MessageLabs to scan all Incoming and Outgoing mail for viruses.

________________________________________________________________________
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
G.W. Haywood | 1 Jun 2012 20:37
Picon
Favicon

Re: slaves and web servers

Hi there,

On Fri, 1 Jun 2012, mail <at> lists.macscr.com wrote:

> So no one has any tips to getting smokeping to get run as a different
> user on centos? Its extremely simple on Ubuntu systems, but centos
> doesnt have the same options or init script. I need to get smokeping to
> run as a different user than root in order to get this slave setup to
> work.

man su

Eric Searcy | 1 Jun 2012 20:44
Picon

Re: Smokeping

On 6/1/12 11:32 AM, Jason Yates wrote:
> Hi,
>
> I’ve tried installing Smokeping 2.6.8 on Centos 5.6 Final, everything
> looks to be going ok, all of the relevant Perl modules are installed
> however when hitting smokeping.fcgi in a browser I get a 500 internal
> error & apache logs show the following:

[...]
>
> I’ve tried re-installing CGI::Fast however I still get the errors. Any
> help would be appreciated.

What about FCGI?  CGI::Fast is provided by base el5 "perl" package,
installing separately shouldn't be necessary (or helpful).  Your error
says FCGI, which is a different package (you can see below that I'm
getting it from EPEL).

http://wiki.centos.org/AdditionalResources/Repositories

# yum whatprovides 'perl(FCGI)' 'perl(CGI::Fast)'
[...]
fcgi-perl-2.4.0-12.el5.x86_64 : Perl bindings for fcgi
Repo        : epel
Matched from:
Other       : perl(FCGI)

4:perl-5.8.8-38.el5.x86_64 : The Perl programming language
Repo        : base
Matched from:
Other       : perl(CGI::Fast)

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

G.W. Haywood | 1 Jun 2012 20:47
Picon
Favicon

Re: Smokeping

Hi there,

On Fri, 1 Jun 2012, Jason Yates wrote:

> I've tried installing Smokeping 2.6.8 on Centos 5.6 Final,
> everything looks to be going ok, all of the relevant Perl modules
> are installed ...

Are you sure about that?

> [Fri Jun 01 18:13:02 2012] [warn] FastCGI: (dynamic) server "/var/www/html/smokeping.fcgi"
restarted (pid 9608)
> [Fri Jun  1 18:13:02 2012] smokeping_cgi: Can't locate loadable object for module FCGI in  <at> INC ( <at> INC
contains: /opt/smokeping/bin/../lib /opt/smokeping/bin/../thirdparty/lib/perl5
/usr/lib/perl5/5.8.8 /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi .) at /usr/lib/perl5/5.8.8/CGI/Fast.pm line 25

Where's FCGI.pm on your system?  Here's one of mine:

tornado:~$ >>> locate FCGI
/usr/lib/perl5/FCGI.pm
/usr/lib/perl5/auto/FCGI
/usr/lib/perl5/auto/FCGI/FCGI.bs
/usr/lib/perl5/auto/FCGI/FCGI.so
/usr/share/doc/libfcgi0ldbl/FCGI_Accept.3.gz
/usr/share/doc/libfcgi0ldbl/FCGI_Finish.3
/usr/share/doc/libfcgi0ldbl/FCGI_SetExitStatus.3
/usr/share/doc/libfcgi0ldbl/FCGI_StartFilterData.3
/usr/share/man/man3/FCGI.3pm.gz

Jason Yates | 1 Jun 2012 21:01
Favicon

Re: Smokeping

Hi Ged,

locate FCGI
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/FCGI.pm
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/FCGI
/usr/share/man/man3/FCGI.3pm

It's located in one of the include path's being checked. I've just re-ran the configure script for sanity's sake.

checking checking for perl module 'RRDs'... Ok
checking checking for perl module 'FCGI'... Ok
checking checking for perl module 'CGI'... Ok
checking checking for perl module 'CGI::Fast'... Ok
checking checking for perl module 'Config::Grammar'... Ok
checking checking for perl module 'Digest::HMAC_MD5'... Ok
checking checking for perl module 'LWP'... Ok

Thanks

-----Original Message-----
From: G.W. Haywood [mailto:ged <at> jubileegroup.co.uk] 
Sent: 01 June 2012 19:47
To: Jason Yates
Cc: smokeping-users <at> lists.oetiker.ch
Subject: Re: [smokeping-users] Smokeping

Hi there,

On Fri, 1 Jun 2012, Jason Yates wrote:

> I've tried installing Smokeping 2.6.8 on Centos 5.6 Final, everything 
> looks to be going ok, all of the relevant Perl modules are installed 
> ...

Are you sure about that?

> [Fri Jun 01 18:13:02 2012] [warn] FastCGI: (dynamic) server 
> "/var/www/html/smokeping.fcgi" restarted (pid 9608) [Fri Jun  1 
> 18:13:02 2012] smokeping_cgi: Can't locate loadable object for module 
> FCGI in  <at> INC ( <at> INC contains: /opt/smokeping/bin/../lib 
> /opt/smokeping/bin/../thirdparty/lib/perl5 /usr/lib/perl5/5.8.8 
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi 
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl 
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi .) at 
> /usr/lib/perl5/5.8.8/CGI/Fast.pm line 25

Where's FCGI.pm on your system?  Here's one of mine:

tornado:~$ >>> locate FCGI
/usr/lib/perl5/FCGI.pm
/usr/lib/perl5/auto/FCGI
/usr/lib/perl5/auto/FCGI/FCGI.bs
/usr/lib/perl5/auto/FCGI/FCGI.so
/usr/share/doc/libfcgi0ldbl/FCGI_Accept.3.gz
/usr/share/doc/libfcgi0ldbl/FCGI_Finish.3
/usr/share/doc/libfcgi0ldbl/FCGI_SetExitStatus.3
/usr/share/doc/libfcgi0ldbl/FCGI_StartFilterData.3
/usr/share/man/man3/FCGI.3pm.gz

Eric Searcy | 1 Jun 2012 21:35
Picon

Re: Smokeping

On 6/1/12 12:01 PM, Jason Yates wrote:
> Hi Ged,
> 
> locate FCGI
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/FCGI.pm
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/FCGI
> /usr/share/man/man3/FCGI.3pm
> 
> It's located in one of the include path's being checked. I've just re-ran the configure script for
sanity's sake.

You're missing the shared library component of the FCGI module it looks
like.

Eric

> checking checking for perl module 'RRDs'... Ok
> checking checking for perl module 'FCGI'... Ok
> checking checking for perl module 'CGI'... Ok
> checking checking for perl module 'CGI::Fast'... Ok
> checking checking for perl module 'Config::Grammar'... Ok
> checking checking for perl module 'Digest::HMAC_MD5'... Ok
> checking checking for perl module 'LWP'... Ok
> 
> Thanks
> 
> 
> -----Original Message-----
> From: G.W. Haywood [mailto:ged <at> jubileegroup.co.uk] 
> Sent: 01 June 2012 19:47
> To: Jason Yates
> Cc: smokeping-users <at> lists.oetiker.ch
> Subject: Re: [smokeping-users] Smokeping
> 
> Hi there,
> 
> On Fri, 1 Jun 2012, Jason Yates wrote:
> 
>> I've tried installing Smokeping 2.6.8 on Centos 5.6 Final, everything 
>> looks to be going ok, all of the relevant Perl modules are installed 
>> ...
> 
> Are you sure about that?
> 
>> [Fri Jun 01 18:13:02 2012] [warn] FastCGI: (dynamic) server 
>> "/var/www/html/smokeping.fcgi" restarted (pid 9608) [Fri Jun  1 
>> 18:13:02 2012] smokeping_cgi: Can't locate loadable object for module 
>> FCGI in  <at> INC ( <at> INC contains: /opt/smokeping/bin/../lib 
>> /opt/smokeping/bin/../thirdparty/lib/perl5 /usr/lib/perl5/5.8.8 
>> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi 
>> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
>> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi 
>> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl 
>> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi .) at 
>> /usr/lib/perl5/5.8.8/CGI/Fast.pm line 25
> 
> Where's FCGI.pm on your system?  Here's one of mine:
> 
> tornado:~$ >>> locate FCGI
> /usr/lib/perl5/FCGI.pm
> /usr/lib/perl5/auto/FCGI
> /usr/lib/perl5/auto/FCGI/FCGI.bs
> /usr/lib/perl5/auto/FCGI/FCGI.so
> /usr/share/doc/libfcgi0ldbl/FCGI_Accept.3.gz
> /usr/share/doc/libfcgi0ldbl/FCGI_Finish.3
> /usr/share/doc/libfcgi0ldbl/FCGI_SetExitStatus.3
> /usr/share/doc/libfcgi0ldbl/FCGI_StartFilterData.3
> /usr/share/man/man3/FCGI.3pm.gz
> 
> --
> 
> 73,
> Ged.
> 
> ________________________________________________________________________
> In order to protect our email recipients, Betfair Group use SkyScan from 
> MessageLabs to scan all Incoming and Outgoing mail for viruses.
> 
> ________________________________________________________________________
> 
> _______________________________________________
> smokeping-users mailing list
> smokeping-users <at> lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Jason Yates | 1 Jun 2012 23:12
Favicon

Re: Smokeping

Hey Eric,

Thanks for the reply. How would I go about installing the missing shared library? I can't find any fcgi
packages in yum or cpan that I don't already have installed.

Thanks

----
Regards,
Jason Yates

On 1 Jun 2012, at 20:35, "Eric Searcy" <emsearcy <at> gmail.com> wrote:

> On 6/1/12 12:01 PM, Jason Yates wrote:
>> Hi Ged,
>> 
>> locate FCGI
>> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/FCGI.pm
>> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/FCGI
>> /usr/share/man/man3/FCGI.3pm
>> 
>> It's located in one of the include path's being checked. I've just re-ran the configure script for
sanity's sake.
> 
> You're missing the shared library component of the FCGI module it looks
> like.
> 
> Eric
> 
>> checking checking for perl module 'RRDs'... Ok
>> checking checking for perl module 'FCGI'... Ok
>> checking checking for perl module 'CGI'... Ok
>> checking checking for perl module 'CGI::Fast'... Ok
>> checking checking for perl module 'Config::Grammar'... Ok
>> checking checking for perl module 'Digest::HMAC_MD5'... Ok
>> checking checking for perl module 'LWP'... Ok
>> 
>> Thanks
>> 
>> 
>> -----Original Message-----
>> From: G.W. Haywood [mailto:ged <at> jubileegroup.co.uk] 
>> Sent: 01 June 2012 19:47
>> To: Jason Yates
>> Cc: smokeping-users <at> lists.oetiker.ch
>> Subject: Re: [smokeping-users] Smokeping
>> 
>> Hi there,
>> 
>> On Fri, 1 Jun 2012, Jason Yates wrote:
>> 
>>> I've tried installing Smokeping 2.6.8 on Centos 5.6 Final, everything 
>>> looks to be going ok, all of the relevant Perl modules are installed 
>>> ...
>> 
>> Are you sure about that?
>> 
>>> [Fri Jun 01 18:13:02 2012] [warn] FastCGI: (dynamic) server 
>>> "/var/www/html/smokeping.fcgi" restarted (pid 9608) [Fri Jun  1 
>>> 18:13:02 2012] smokeping_cgi: Can't locate loadable object for module 
>>> FCGI in  <at> INC ( <at> INC contains: /opt/smokeping/bin/../lib 
>>> /opt/smokeping/bin/../thirdparty/lib/perl5 /usr/lib/perl5/5.8.8 
>>> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi 
>>> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
>>> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi 
>>> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl 
>>> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi .) at 
>>> /usr/lib/perl5/5.8.8/CGI/Fast.pm line 25
>> 
>> Where's FCGI.pm on your system?  Here's one of mine:
>> 
>> tornado:~$ >>> locate FCGI
>> /usr/lib/perl5/FCGI.pm
>> /usr/lib/perl5/auto/FCGI
>> /usr/lib/perl5/auto/FCGI/FCGI.bs
>> /usr/lib/perl5/auto/FCGI/FCGI.so
>> /usr/share/doc/libfcgi0ldbl/FCGI_Accept.3.gz
>> /usr/share/doc/libfcgi0ldbl/FCGI_Finish.3
>> /usr/share/doc/libfcgi0ldbl/FCGI_SetExitStatus.3
>> /usr/share/doc/libfcgi0ldbl/FCGI_StartFilterData.3
>> /usr/share/man/man3/FCGI.3pm.gz
>> 
>> --
>> 
>> 73,
>> Ged.
>> 
>> ________________________________________________________________________
>> In order to protect our email recipients, Betfair Group use SkyScan from 
>> MessageLabs to scan all Incoming and Outgoing mail for viruses.
>> 
>> ________________________________________________________________________
>> 
>> _______________________________________________
>> smokeping-users mailing list
>> smokeping-users <at> lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
> 

________________________________________________________________________
In order to protect our email recipients, Betfair Group use SkyScan from 
MessageLabs to scan all Incoming and Outgoing mail for viruses.

________________________________________________________________________

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Eric Searcy | 1 Jun 2012 23:32
Picon

Re: Smokeping

Jason,

I sent an earlier message to the list on this thread about yum packages but didn't CC you, but perhaps you're
not on the list.

https://lists.oetiker.ch/pipermail/smokeping-users/2012-June/004728.html

As mentioned, I installed "fcgi-perl" package from EPEL, which pulls in "fcgi" package as a dependency
(even though FCGI.so doesn't seem to be linked against libfcgi...).  (Top result in google for "perl
loadable object" suggests your error is about the .so and I noticed it wasn't in your "locate" results, so
I'd look into FCGI.so before libfcgi.so.)

# rpm -ql fcgi-perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/FCGI.pm
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/FCGI
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/FCGI/FCGI.so
/usr/share/doc/fcgi-perl-2.4.0
/usr/share/doc/fcgi-perl-2.4.0/ChangeLog
/usr/share/doc/fcgi-perl-2.4.0/README
/usr/share/doc/fcgi-perl-2.4.0/echo.fpl
/usr/share/doc/fcgi-perl-2.4.0/remote.fpl
/usr/share/doc/fcgi-perl-2.4.0/threaded.fpl
/usr/share/man/man3/FCGI.3pm.gz
# rpm -ql fcgi
/usr/bin/cgi-fcgi
/usr/lib64/libfcgi++.so.0
/usr/lib64/libfcgi++.so.0.0.0
/usr/lib64/libfcgi.so.0
/usr/lib64/libfcgi.so.0.0.0
/usr/share/doc/fcgi-2.4.0
/usr/share/doc/fcgi-2.4.0/LICENSE.TERMS
/usr/share/doc/fcgi-2.4.0/README
/usr/share/man/man1/cgi-fcgi.1.gz
# ldd /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/FCGI/FCGI.so
        linux-vdso.so.1 =>  (0x00007fff775fd000)
        libc.so.6 => /lib64/libc.so.6 (0x00002ad125d0f000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003eae600000)

Eric

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

mail | 2 Jun 2012 23:29

display name of master?

Where can i change the display name of the master in the graphs? I was 
able to do it for all of my slaves, but the master still just shows the 
hostname. Any suggestions are welcome. Thanks!

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


Gmane