X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=web%2Fnettkart.pl;h=29499fb296228c1195a56b4ff5334955dd9955bc;hb=2679e59589f8338def31c4b7b5c35a365df00d05;hp=ac88162ece03f73fa2728e94fc86fc0a164d14bb;hpb=fb488538fd6d9413d731491d0283f578a8eeb284;p=nms diff --git a/web/nettkart.pl b/web/nettkart.pl index ac88162..29499fb 100755 --- a/web/nettkart.pl +++ b/web/nettkart.pl @@ -2,10 +2,11 @@ use CGI; use GD; use DBI; +use lib '../include'; +use nms; my $cgi = CGI->new; -my $dbh = DBI->connect("dbi:Pg:dbname=snmpfetch;host=violet.tg05.gathering.org", "snmpfetch", "removed") - or die "Couldn't connect to database"; +my $dbh = nms::db_connect(); GD::Image->trueColor(1); $img = GD::Image->new('snmp-bg.png');