]> git.sesse.net Git - nms/blobdiff - web/portkart.pl
Add logging to mbd.
[nms] / web / portkart.pl
index 24a26ecb09ab1b0f30438f83873d6a8ebe7e8f14..259376e39522f73a024449260de09e853620ff1e 100755 (executable)
@@ -2,13 +2,14 @@
 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');
+$img = GD::Image->new('bg2.png');
 
 my $blk = $img->colorResolve(0, 0, 0);