[asterisk-users] Which tool to automatically restart Asterisk ?

Tech Support asterisk at voipbusiness.us
Mon Feb 20 08:29:04 CST 2017


Hello;

    Over time, we’ve built a huge enterprise level monitoring system for our internal and customer PBX’s. Using Nagios as the core, along with Grafana, Graphite, Carbon, Whisper, etc. so we can also create custom dynamic dashboards, we typically monitor over 1,000 different metrics for each PBX. For something like monitoring a system process like Asterisk, besides just checking to see if the process is running or not, we also check about a dozen or so related metrics like memory and cpu usage. If anything gets out of whack, the system runs the event handler to restart Asterisk. All the plugins are written in Perl, so they’re very easy to modify. What I can do if there is an interest is take the Asterisk plugin, strip out everything that wouldn’t apply to someone not using our system, and make it available to the general public. It's up to you guys. What do you think? Would people find that useful?

Regards;

John V.

 

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier
Sent: Friday, February 17, 2017 10:39 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Which tool to automatically restart Asterisk ?

 

Hello,

Years ago, I used Monit to monitor Asterisk and restart it whenever it failed.

Now, I wonder which tool I should pick for an Debian 8 (current) or CentOS 7 (future) environment.

The main reason I'm looking for this tool is to avoid as much as possible, current 5 minutes delay between Asterisk's stop and first cutomers complains.

 

1. I always install Asterisk from source but I've read in Debian Stretch /etc/defaul/asterisk file, the following:
# RUNASTSAFE: run safe_asterisk rather than asterisk (will auto-restart upon
#             crash). This is generally less tested and has some known issues
#             with properly starting and stopping Asterisk.

Where I can read about those known issues ?

(not found in [1]).

2. For systemd envs where /etc/init.d files are still used, what do you recommend ?

3. For systemd envs where /etc/init.d files are not used anymore, what do you recommend ?

4. Suggestions ?

Regards



[1] https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=asterisk;dist=unstable

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170220/1c40ac71/attachment.html>


More information about the asterisk-users mailing list