Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby apb1963 » Mon Sep 22, 2014 11:09 pm

I don't know about anybody else, but I grew tired of always seeing constant "Manager 'sendcron' logged on from 127.0.0.1" messages in the CLI and logs.

If you'd like to turn it off, there are two ways. One is to decrease the verbose level to 1. This I would not recommend. Instead, edit /etc/asterisk/manager.conf with your favorite text editor (vi, nano, etc.) and add the following under each user that you want to silence:

displayconnects = no

And then issue a "reload" command.

This does NOT work in the [general] section of that file for some reason (bug in asterisk?)

I've tested this on asterisk 1.8 and have successfully eliminated those messages.

While you're in that file, you can probably change the bindaddr to the address of the interface you're actually using instead of binding to all addresses, but I haven't tested it yet so do so at your own risk (leave the displayconnects variable set to yes if you're going to test bindaddr just to make sure those cron users can still connect).

I hope this info is useful to someone.
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby geoff3dmg » Tue Sep 23, 2014 3:23 am

Thanks for this. BTW I tested the bind address change and it works fine. I've also tried using ACL's and that also works. This is all on a cluster so I can confirm there's no Asterisk manager API interaction between the servers.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby geoff3dmg » Tue Sep 23, 2014 9:49 am

apb1963 wrote:This does NOT work in the [general] section of that file for some reason (bug in asterisk?)


After some testing, I have found that actually this does work. However, Asterisk will only honour this being set in the [general] section after a full restart of the asterisk daemon. So in ViciDIAL terms this basically means a reboot of the telephony server.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby apb1963 » Wed Sep 24, 2014 1:49 am

All good things to know! Thanks for that!

I'm not sure what you mean by "telephony server" as the term "server" is somewhat ambiguous since both hardware and software are often called servers. I'm going to assume you mean hardware in this case.

Assuming you do, if you open a terminal window you should be able to do "amportal restart" which should restart asterisk without having to reboot the hardware. Personally I don't like to reboot the entire machine just to restart a daemon or two. I'm funny like that. I will however mention that sometimes the network can get funky and a hardware reboot is the only answer. You have to know when to hold'em and when to fold'em. Play at your own risk :)
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby geoff3dmg » Wed Sep 24, 2014 2:54 am

I'm using a cluster. So I have a database server (running MariaDB), a web server (running Apache), and several telephony servers (running Asterisk). In *nix land, the software that runs on a machine and provides services with no local user interaction are generally known as daemons.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby apb1963 » Fri Sep 26, 2014 1:20 am

So then you're rebooting the hardware (server) not the software (daemon), as I suspected. Which is why I provided the info on amportal. I trust you'll find it useful.

I would be remiss if I didn't point out the fact that daemons are restarted, not rebooted whereas hardware is rebooted not restarted - though once again different people use the terminology loosely (some would say wrongly). For example the command "service httpd restart" would stop and then start the httpd daemon and the command "reboot" at the shell prompt would shut down the entire machine, and then boot it. Semantics, but when one doesn't know for sure what is meant, it's always best to ask and find out to be certain if in fact it matters.

Not to belabor the point but, from the rsync man page on ubuntu:

Rsync refers to the local side as the "client" and the remote side as the "server". Don’t confuse
"server" with an rsync daemon -- a daemon is always a server, but a server can be either a daemon or a
remote-shell spawned process.

And from the man page for X:

X Window System servers run on computers with bitmap displays. The server distributes user input to and
accepts output requests from various client programs through a variety of different interprocess communi‐
cation channels. Although the most common case is for the client programs to be running on the same
machine as the server, clients can be run transparently from other machines (including machines with dif‐
ferent architectures and operating systems) as well.

From wikipedia:

The term server is used quite broadly in information technology. [...] in theory any computerised process that shares a resource to one or more client processes is a server. [...] while a laptop or personal computer is not typically known as a server, they can in these situations fulfill the role of one, and hence be labelled as one. It is, in this case, the machine's role that places it in the category of server.
In the hardware sense, the word server typically designates computer models intended for hosting software applications under the heavy demand of a network environment.

So, as I said the term server is somewhat ambiguous and different people have different ideas as to what exactly defines a "server". Which is why I tried to be extra helpful in that regard.

Cheers :)
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby apb1963 » Thu Jan 08, 2015 8:18 pm

When I indicated one could do an "amportal restart", I didn't realize that amportal isn't installed under "normal" conditions. As I had installed asterisk from scratch prior to installing vicidial, my setup was different. I'm now using goautodial installed from ISO and I've come to realize amportal doesn't exist in this type of installation. So, instead one can simply do "core stop now" or "core stop when convenient" from the asterisk CLI or with "asterisk -rx" from the terminal. That will stop the asterisk daemon (v1.8, maybe other versions too). Then you can restart it from the same place you would normally reload it. This avoids the need to reboot the computer in most instances.
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Turn off "Manager 'sendcron' logged on from 127.0.0.1"

Postby Keyfin » Wed Sep 28, 2016 7:13 pm

actually after pulling the file, through ftp, then editing, then uploading and overwriting the original, then simply issuing a 'core restart now' from the asterisk CLI, I was able to get rid of the messages, no need for rebooting the whole system.
ViciBox: 7.0.3 | VERSION: 2.14-585a BUILD: 170114-1356 | SVN Version: 2661 |Single Server | DGG installed
Keyfin
 
Posts: 60
Joined: Tue Feb 23, 2016 8:27 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 45 guests