diff options
author | levinse <levinse> | 2011-05-15 01:43:40 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-05-15 01:43:40 +0000 |
commit | b412c2545d8862278343adc1ef17cc297e11ad6d (patch) | |
tree | a74b41e8844a4ef3ff0e26d9c7204048c70b7e8b /FS | |
parent | be40a9fa3750374b32f2aa31e8807433c05d7817 (diff) |
torrus: add new access rights, add SNMP community option, RT10574
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/AccessRight.pm | 2 | ||||
-rw-r--r-- | FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/FS/FS/AccessRight.pm b/FS/FS/AccessRight.pm index c3aeb2dcd..2f6f53101 100644 --- a/FS/FS/AccessRight.pm +++ b/FS/FS/AccessRight.pm @@ -311,6 +311,8 @@ tie my %rights, 'Tie::IxHash', { rightname=>'Broadband configuration' }, { rightname=>'Broadband global configuration', global=>1 }, + + { rightname=> 'Configure network monitoring', global=>1 }, #{ rightname=>'Edit employees', global=>1, }, #{ rightname=>'Edit employee groupss', global=>1, }, diff --git a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm index 9df19755e..bd016a123 100644 --- a/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm +++ b/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm @@ -155,11 +155,14 @@ sub report { } sub add_router { - my($self, $ip) = @_; + my($self, $ip, $community) = @_; + + $community = qq!<param name="snmp-community" value="$community"/>\n ! + if length($community) > 1; my $newhost = qq( <host>\n). - qq( <param name="snmp-host" value="$ip"/>\n). + qq( <param name="snmp-host" value="$ip"/>\n).$community. qq( </host>\n); my $ddx = $self->_torrus_loadddx; |