From b412c2545d8862278343adc1ef17cc297e11ad6d Mon Sep 17 00:00:00 2001 From: levinse Date: Sun, 15 May 2011 01:43:40 +0000 Subject: torrus: add new access rights, add SNMP community option, RT10574 --- FS/FS/AccessRight.pm | 2 ++ FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'FS') 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!\n ! + if length($community) > 1; my $newhost = qq( \n). - qq( \n). + qq( \n).$community. qq( \n); my $ddx = $self->_torrus_loadddx; -- cgit v1.2.1