]> git.sesse.net Git - nms/blobdiff - web/portkart.pl
Merge with main branch.
[nms] / web / portkart.pl
index 24a26ecb09ab1b0f30438f83873d6a8ebe7e8f14..9150cef27b573fc404a9b0daed2229286a86d956 100755 (executable)
@@ -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');