show SNMP::Info version in About page
This commit is contained in:
@@ -83,7 +83,7 @@ App::Netdisco - An open source web-based network management tool.
|
||||
=head1 Introduction
|
||||
|
||||
Netdisco is a web-based network management tool designed for network
|
||||
administrators. Data is collected into a Postgres database using SNMP.
|
||||
administrators. Data is collected into a PostgreSQL database using SNMP.
|
||||
|
||||
Some of the things you can do with Netdisco:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user