Skip to content

Instantly share code, notes, and snippets.

@dne
Created February 12, 2014 08:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dne/8952025 to your computer and use it in GitHub Desktop.
Save dne/8952025 to your computer and use it in GitHub Desktop.
Smokeping PSGI app
#!/usr/bin/perl
use strict;
use warnings;
use CGI::Emulate::PSGI;
my $app = CGI::Emulate::PSGI->handler(sub {
use CGI;
use Smokeping;
CGI::initialize_globals();
my $cfg = "/etc/smokeping/config";
my $q = CGI->new;
Smokeping::cgi($cfg, $q);
});
@sorz
Copy link

sorz commented Feb 8, 2015

It works for me. Thanks.
I followed this artical but he's script seem too old to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment