This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
package Worker; | |
use strict; | |
use warnings; | |
use AnyEvent; | |
use AnyEvent::Curl; | |
use Coro; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/usr/bin/perl | |
se strict; | |
se warnings; | |
se AnyEvent; | |
se AnyEvent::Curl; | |
se HTTP::Request; | |
se Time::HiRes qw//; | |
use Coro; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
package Worker; | |
use strict; | |
use warnings; | |
use AnyEvent; | |
use AnyEvent::Curl; | |
use Coro; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudForecast::Data::Gearmanstarter; | |
use CloudForecast::Data -base; | |
use IO::Socket::INET; | |
=head1 NAME | |
CloudForecast::Data::Gearmanstarter | |
=head1 SYNOPSIS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudForecast::Data::Qmailqueue; | |
use CloudForecast::Data -base; | |
use CloudForecast::Log; | |
rrds map { [ $_, 'GAUGE' ] } qw /queue preprocess/; | |
graphs 'queue' => 'Qmail Queue'; | |
title { "Qmail Queue" }; | |
fetcher { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudForecast::Data::Postfixqueue; | |
use CloudForecast::Data -base; | |
use CloudForecast::Log; | |
rrds map { [ $_, 'GAUGE' ] } qw /incoming active deferred hold/; | |
graphs 'queue' => 'Postfix Queue'; | |
title { 'Postfix Queue' }; | |
fetcher { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudForecast::Data::Postfixqueue; | |
use CloudForecast::Data -base; | |
use CloudForecast::Log; | |
rrds map { [ $_, 'GAUGE' ] } qw /incoming active deferred hold/; | |
graphs 'queue' => 'Postfix Queue'; | |
title { 'Postfix Queue' }; | |
fetcher { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudForecast::Data::Qmailqueue; | |
use CloudForecast::Data -base; | |
use CloudForecast::Log; | |
rrds map { [ $_, 'GAUGE' ] } qw /queue preprocess/; | |
graphs 'queue' => 'Qmail Queue'; | |
title { "Qmail Queue" }; | |
fetcher { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- memcached-1.4.5.orig/memcached.c 2010-04-04 04:51:29.000000000 +0900 | |
+++ memcached-1.4.5/memcached.c 2010-08-16 16:11:21.000000000 +0900 | |
static void process_stat_settings(ADD_STAT add_stats, void *c) { | |
assert(add_stats); | |
- APPEND_STAT("maxbytes", "%u", (unsigned int)settings.maxbytes); | |
+ APPEND_STAT("maxbytes", "%llu", (unsigned long long)settings.maxbytes); | |
APPEND_STAT("maxconns", "%d", settings.maxconns); | |
APPEND_STAT("tcpport", "%d", settings.port); | |
APPEND_STAT("udpport", "%d", settings.udpport); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package CloudForecast::Data::Gearmand; | |
use CloudForecast::Data -base; | |
use IO::Socket::INET; | |
=head1 NAME | |
CloudForecast::Data::Gearmand | |
=head1 SYNOPSIS |