-
-
Save zh99998/2326fc07179b7420aa3c to your computer and use it in GitHub Desktop.
Smokeping PSGI app
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 | |
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); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment