[smokeping-users] [Ticket #49] smokeping-users Digest, Vol 79, Issue 6
IT Department
anghelflorin at globtel.ro
Tue Nov 12 18:32:49 CET 2013
This is a notification from the Help Desk.
On Nov 12, 2013 @ 05:32 pm, smokeping-users-request at lists.oetiker.ch wrote:
Send smokeping-users mailing list submissions to
smokeping-users at lists.oetiker.ch
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
or, via email, send a message with subject or body 'help' to
smokeping-users-request at lists.oetiker.ch
You can reach the person managing the list at
smokeping-users-owner at lists.oetiker.ch
When replying, please edit your Subject line so it is more specific
than "Re: Contents of smokeping-users digest..."
Today's Topics:
1. 12 secondes to show a page on smokeping ? (Artiflo)
2. Re: 12 secondes to show a page on smokeping ? (Steve Wray)
3. Re: 12 secondes to show a page on smokeping ? (Artiflo)
4. Problem finding the HTDocs file (Will Brocklebank)
5. Re: Problem finding the HTDocs file (Alessandro Palermo)
----------------------------------------------------------------------
Message: 1
Date: Mon, 23 Sep 2013 12:56:05 +0200
From: Artiflo <artiflo at gmail.com>
Subject: [smokeping-users] 12 secondes to show a page on smokeping ?
To: smokeping-users at lists.oetiker.ch
Message-ID:
<CAKH3hriPXKR362OTnqPP8bYMzENGrp841KQO+c1Zk+9vUbL3VA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hello,
On smokeping 2.6.8, I have 2600 devices on 90 FPING probe.
Each time I try to show a page or when I click on menu that took ~12
secondes !!!
Why is so long ?
(0.5 load on 4 XEON server)
# time /usr/local/smokeping/bin/smokeping_cgi
/usr/local/smokeping/etc/config
real 0m12.763s
user 0m11.519s
sys 0m0.710s
# cat /usr/local/smokeping/bin/smokeping_cgi
#!/usr/bin/perl
# -*-perl-*-
use strict;
use warnings;
use FindBin;
use lib qw(); # PERL5LIB
use lib "$FindBin::Bin/../thirdparty/lib/perl5";
use lib "$FindBin::Bin/../lib";
# don't bother with zombies
$SIG{CHLD} = 'IGNORE';
use CGI::Carp qw(fatalsToBrowser);
use Smokeping;
use CGI::Fast;
my $cfg = (shift @ARGV) || "$FindBin::Bin/../etc/config";
while (my $q = new CGI::Fast) {
Smokeping::cgi($cfg,$q);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130923/4c8ad3ff/attachment-0001.htm
------------------------------
Message: 2
Date: Mon, 23 Sep 2013 19:37:59 +0800
From: Steve Wray <stevedwray at gmail.com>
Subject: Re: [smokeping-users] 12 secondes to show a page on smokeping
?
To: Artiflo <artiflo at gmail.com>
Cc: smokeping-users at lists.oetiker.ch
Message-ID:
<CA+VKOdPLZimtYxN_ccEqttXxYkPRjmcccvHXK_83ThbAPNKYYw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Try using fcgi, it loads a lot faster.
ie where you have smokeping.cgi use smokeping.fcgi instead. You may need to
install some additional packages to make it work.
On 23 September 2013 18:56, Artiflo <artiflo at gmail.com> wrote:
> Hello,
>
> On smokeping 2.6.8, I have 2600 devices on 90 FPING probe.
>
> Each time I try to show a page or when I click on menu that took ~12
> secondes !!!
>
> Why is so long ?
>
> (0.5 load on 4 XEON server)
>
> # time /usr/local/smokeping/bin/smokeping_cgi
> /usr/local/smokeping/etc/config
> real 0m12.763s
> user 0m11.519s
> sys 0m0.710s
>
> # cat /usr/local/smokeping/bin/smokeping_cgi
>
> #!/usr/bin/perl
> # -*-perl-*-
>
> use strict;
> use warnings;
>
> use FindBin;
> use lib qw(); # PERL5LIB
> use lib "$FindBin::Bin/../thirdparty/lib/perl5";
> use lib "$FindBin::Bin/../lib";
>
> # don't bother with zombies
> $SIG{CHLD} = 'IGNORE';
>
> use CGI::Carp qw(fatalsToBrowser);
>
> use Smokeping;
>
> use CGI::Fast;
>
> my $cfg = (shift @ARGV) || "$FindBin::Bin/../etc/config";
>
>
> while (my $q = new CGI::Fast) {
> Smokeping::cgi($cfg,$q);
> }
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130923/2ae4c352/attachment-0001.htm
------------------------------
Message: 3
Date: Mon, 23 Sep 2013 14:09:03 +0200
From: Artiflo <artiflo at gmail.com>
Subject: Re: [smokeping-users] 12 secondes to show a page on smokeping
?
To: Steve Wray <stevedwray at gmail.com>
Cc: smokeping-users <smokeping-users at lists.oetiker.ch>
Message-ID:
<CAKH3hrg5ymK=ceLYiHTwxW=Jpc24iNmx4QSr1A7q93UoF70H6Q at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Thanks for your quick answer :)
I think I have already FCGI.
How to know to be sure if I use CGI or FCGI for smokeping ?
This is my smokeping.conf for Apache :
ScriptAlias /smokeping/smokeping.cgi
"/usr/local/smokeping/htdocs/smokeping.fcgi"
Alias /smokeping "/usr/local/smokeping/htdocs/"
<Directory "/usr/local/smokeping/htdocs/">
Options Indexes Includes FollowSymLinks ExecCGI
AllowOverride All
AddHandler php5-fastcgi .php .php5 .php4
Action php5-fastcgi smokeping.fcgi
Order allow,deny
Allow from All
</Directory>
Alias /smokeping/cache "/usr/local/smokeping/work/cache/"
<Directory "/usr/local/smokeping/work/cache/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
2013/9/23 Steve Wray <stevedwray at gmail.com>
> Try using fcgi, it loads a lot faster.
>
> ie where you have smokeping.cgi use smokeping.fcgi instead. You may need
> to install some additional packages to make it work.
>
>
>
> On 23 September 2013 18:56, Artiflo <artiflo at gmail.com> wrote:
>
>> Hello,
>>
>> On smokeping 2.6.8, I have 2600 devices on 90 FPING probe.
>>
>> Each time I try to show a page or when I click on menu that took ~12
>> secondes !!!
>>
>> Why is so long ?
>>
>> (0.5 load on 4 XEON server)
>>
>> # time /usr/local/smokeping/bin/smokeping_cgi
>> /usr/local/smokeping/etc/config
>> real 0m12.763s
>> user 0m11.519s
>> sys 0m0.710s
>>
>> # cat /usr/local/smokeping/bin/smokeping_cgi
>>
>> #!/usr/bin/perl
>> # -*-perl-*-
>>
>> use strict;
>> use warnings;
>>
>> use FindBin;
>> use lib qw(); # PERL5LIB
>> use lib "$FindBin::Bin/../thirdparty/lib/perl5";
>> use lib "$FindBin::Bin/../lib";
>>
>> # don't bother with zombies
>> $SIG{CHLD} = 'IGNORE';
>>
>> use CGI::Carp qw(fatalsToBrowser);
>>
>> use Smokeping;
>>
>> use CGI::Fast;
>>
>> my $cfg = (shift @ARGV) || "$FindBin::Bin/../etc/config";
>>
>>
>> while (my $q = new CGI::Fast) {
>> Smokeping::cgi($cfg,$q);
>> }
>>
>> _______________________________________________
>> smokeping-users mailing list
>> smokeping-users at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130923/3c9ee4cf/attachment-0001.htm
------------------------------
Message: 4
Date: Wed, 25 Sep 2013 12:22:04 +0100
From: Will Brocklebank <will at facetofacedigital.com>
Subject: [smokeping-users] Problem finding the HTDocs file
To: smokeping-users at lists.oetiker.ch
Message-ID:
<51C7142B-83EF-42C0-B248-C0A40B9E1298 at facetofacedigital.com>
Content-Type: text/plain; charset="us-ascii"
Dear all - I am an enthusiastic noob so please forgive any inexperienced foolishness ;-)
I have progressed through the installation procedure on Raspbian and all seems to be running smoothly.
However, I have hit a problem with firing up the actual web interface. Specifically I do not understand these instructions:
"There is a sample htdocs directory in your smokeping installation root. Copy its content to the place where your webserver expects its files. There are also two sample cgi scripts showing how to launch the smokeping cgi in your website. The only difference is the file extension. Adjust the paths in the script and you should be ready to go."
I installed smokeping via apt-get on my Raspberry Pi and now I cannot find any htdocs directory either in the smokeping installation root (for clarity maybe someone could tell me exactly where this is so I can double-check but it isn't in /usr/etc/smokeping) and do not know how to move forward!
Thanks for all your help!
Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130925/a7882570/attachment-0001.htm
------------------------------
Message: 5
Date: Wed, 25 Sep 2013 09:00:57 -0300
From: Alessandro Palermo <ok.aless at gmail.com>
Subject: Re: [smokeping-users] Problem finding the HTDocs file
To: Will Brocklebank <will at facetofacedigital.com>
Cc: smokeping-users <smokeping-users at lists.oetiker.ch>
Message-ID:
<CAPbg55Da-x2RnmMe-mnhYBu1xTMPWB7p1zZ2Es6D6MFeDGf5Zg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
All configuration files are in /etc/smokeping/
The html base is basepage.html
The /etc/smokeping/config.d/ contains the Target, Probes and Alert files.
Regards
On 25 September 2013 08:22, Will Brocklebank <will at facetofacedigital.com>wrote:
> Dear all - I am an enthusiastic noob so please forgive any inexperienced
> foolishness ;-)
> I have progressed through the installation procedure on Raspbian and all
> seems to be running smoothly.
>
> However, I have hit a problem with firing up the actual web interface.
> Specifically I do not understand these instructions:
>
> "There is a sample htdocs directory in your smokeping installation root.
> Copy its content to the place where your webserver expects its files. There
> are also two sample cgi scripts showing how to launch the smokeping cgi in
> your website. The only difference is the file extension. Adjust the paths
> in the script and you should be ready to go."
>
> I installed smokeping via apt-get on my Raspberry Pi and now I cannot find
> any htdocs directory either in the smokeping installation root (for clarity
> maybe someone could tell me exactly where this is so I can double-check but
> it isn't in /usr/etc/smokeping) and do not know how to move forward!
>
> Thanks for all your help!
>
> Will
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130925/afe0e885/attachment.htm
------------------------------
_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
End of smokeping-users Digest, Vol 79, Issue 6
**********************************************
------
This is an automated response. Your issue has been noted. We'll be in touch soon.
Please reply to this email or visit the URL below with any additional details.
http://florin-pc/portal/view-help-request/49
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20131112/76252539/attachment-0001.htm
More information about the smokeping-users
mailing list