]> git.sesse.net Git - nms/blobdiff - web/stempmap-ptn.pl
Add logging to mbd.
[nms] / web / stempmap-ptn.pl
index 3522b514142590078ca8495dc5246b2f95da46c5..a1fc55af3b441d89b4a7502d52d66d2c7aa624a4 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/perl
+use lib '../include';
+use nms;
 #
 #
 
@@ -11,8 +13,7 @@ use warnings;
 my $img = GD::Image->new('stemp-bg5.png');
 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();
 
 my $black = $img->colorAllocate(0,0,0);
 my $white = $img->colorAllocate(255,255,255);