Re: [asterisk-users] AMI manager logins - omitting from logging output?

2018-06-07 Thread Antony Stone
On Thursday 07 June 2018 at 10:44:15, Tony Mountifield wrote:

> In article <201806070119.51560>, Antony Stone wrote:
> > 
> > Is there any way to tell AMI that I don't want it to log login attempts -
> > or, to put it another way, is there any way to tell the logger module to
> > ignore AMI?
> 
> Look in /etc/asterisk/manager.conf for the option "displayconnects =
> yes/no".
> 
> It can be set globally in [general] or individually in [ServiceCheck] (for
> example).

Lovely - thank you.

I've never seen that option in any manager documentation before, and it's not 
in the default file from Debian (Stretch).

Oddly, though, changing it and then doing a "manager reload" had no effect; I 
had to restart Asterisk for the setting to work.


Cheers,


Antony.

-- 
When you find yourself arguing with an idiot,
you should first of all make sure that the other person isn't doing the same 
thing.

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] AMI manager logins - omitting from logging output?

2018-06-07 Thread Tony Mountifield
In article <201806070119.51560.antony.st...@asterisk.open.source.it>,
Antony Stone  wrote:
> Hi.
> 
> Is there any way to eliminate AMI manager logins from the logging output 
> (without just turning the log level down and thereby losing lots of other 
> stuff 
> as well)?
> 
> I'm running Asterisk 13.14.1 as a backend service to LVS/IPVS, and using the 
> AMI login as the "service alive" check to see which backend servers are 
> available to take new commands.
> 
> This results in lots of
> 
> [Jun  7 00:15:19]   == Manager 'ServiceCheck' logged on from 10.100.42.254
> [Jun  7 00:15:19]   == Manager 'ServiceCheck' logged off from 10.100.42.254
> 
> entries appearing in the console whenever I'm doing something else on the 
> machine, which is pretty distracting.
> 
> Is there any way to tell AMI that I don't want it to log login attempts - or, 
> to put it another way, is there any way to tell the logger module to ignore 
> AMI?

Look in /etc/asterisk/manager.conf for the option "displayconnects = yes/no".

It can be set globally in [general] or individually in [ServiceCheck] (for 
example).

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users