show SNMP::Info version in About page

This commit is contained in:
Oliver Gorwits
2013-09-23 13:17:01 +01:00
parent e78b7e0d6c
commit 3db062dcab
4 changed files with 21 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ only the daemon config contains any community strings.
=item *
Use separate Postgres users for web frontend and daemon, such that the web
Use separate PostgreSQL users for web frontend and daemon, such that the web
frontend user cannot SELECT from the C<community> DB table.
=back

View File

@@ -56,6 +56,9 @@ get '/about' => require_login sub {
my $dbi_ver = $DBI::VERSION;
my $dbdpg_ver = $DBD::Pg::VERSION;
eval 'require SNMP::Info';
my $snmpinfo_ver = ($@ ? 'n/a' : $SNMP::Info::VERSION);
var( nav => 'about' );
template 'about',
@@ -75,6 +78,8 @@ get '/about' => require_login sub {
db_version => $db_version,
dbi_ver => $dbi_ver,
dbdpg_ver => $dbdpg_ver,
snmpinfo_ver => $snmpinfo_ver,
schema_ver => $schema_version,
};
};