2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
Commit Graph

1757 Commits

Author SHA1 Message Date
Steve Schnepp
8e45b339de plugins/backuppc: adding backup ages 2013-05-23 17:24:17 +02:00
Steve Schnepp
d69bc45ad5 plugins/backuppc: fix multigraph 2013-05-23 17:06:44 +02:00
Steve Schnepp
74c8b337de plugins/backuppc: Initial add 2013-05-23 15:46:59 +02:00
nagyrobi
9154029b68 Multigraph munin plugin to monitor Ubiquiti AirOS devices various parameters. 2013-05-21 15:57:30 +02:00
Steve Schnepp
b2f44b48ef Merge pull request #309 from jd/master
Fix getenv usage in swift plugins
2013-05-21 05:13:54 -07:00
Steve Schnepp
6368f71a01 plugins/syslog_ng_stats: comment formating 2013-05-21 14:02:59 +02:00
Julien Danjou
1e1ca5b633 Fix getenv usage in swift plugins
os.getenv returns a string, not an integer, so using %s will fail if the
variable SWIFT_OBJECT_PORT is set.
2013-05-17 10:36:29 +02:00
Gareth Davies
9dfe0f34ca Fixed average memory graphing label error.
Fixed average memory graphing label error.
2013-05-16 19:27:13 +08:00
Gareth Davies
8ff6e0fdf2 Update unicorn_
- Fixed memory and average giving same results
- Fixed error in average graphing
2013-05-16 18:57:51 +08:00
Gareth Davies
2812f751f0 Added new non Ruby based Unicorn Plugin
The existing Unicorn plugins are written in Ruby, which didn't work well for me due to ENV variables etc.

This plugin monitors number of workers, total memory used and average memory per process for Unicorn.

ln -s /usr/share/munin/plugins/unicorn_ /etc/munin/plugins/unicorn_average
ln -s /usr/share/munin/plugins/unicorn_ /etc/munin/plugins/unicorn_memory
ln -s /usr/share/munin/plugins/unicorn_ /etc/munin/plugins/unicorn_processes

It can easily be adapated to any multi threaded server by just changing the value it searches for 'unicorn worker' in this case.
2013-05-16 18:07:01 +08:00
Ben
1eeb47035c Update lighttpd_
fix typo
2013-05-16 11:34:08 +03:00
Dimitri Savineau
271a38f0ba Fix indexcounters and globallock in 2.2 and 2.4 version 2013-05-13 16:54:57 -04:00
Roman V. Nikolaev
f68e4c9696 add comment 2013-05-12 16:33:27 +04:00
Roman V. Nikolaev
928f9d3dfe remove grep for args 2013-05-12 16:31:12 +04:00
Kenyon Ralph
3c08471566 Merge pull request #302 from claudius23/snmp_netapp
plugins/snmp/snmp__netapp_* initial checkin of my snmp__netapp_ plugins.
2013-05-10 00:54:12 -07:00
Kenyon Ralph
bf65a9e407 Merge pull request #300 from lirantal/master
Adding a new Drupal/Generic page speed monitoring script
2013-05-10 00:39:39 -07:00
Claudius
de8aa961e4 plugins/snmp/snmp__netapp_* initial checkin of my snmp__netapp_ plugins. 2013-05-09 17:04:18 +02:00
Kenyon Ralph
6de3ccf145 move postfix plugins into the mail directory 2013-05-08 14:24:31 -07:00
Roman V. Nikolaev
40ec9801f1 add syslog-ng plugin 2013-05-08 22:08:06 +04:00
Steve Schnepp
ab9c97caeb Merge pull request #298 from kabo/master
php_fpm_process update
2013-05-07 02:29:20 -07:00
Steve Schnepp
c395463186 Merge pull request #232 from bAndie91/master
add "e2" plugin
2013-05-07 02:28:42 -07:00
Steve Schnepp
7bd75f1bfb Merge pull request #299 from claudius23/zfs_usage_
plugins/zfs/zfs_usage_ add environment variables, call zfs binary only once
2013-05-07 02:25:58 -07:00
Liran Tal
a311ae1bfc adding a new monitoring script which allows to configure pages to login to and visits and time their load time 2013-05-07 11:26:08 +03:00
Claudius
947313b675 plugins/zfs/zfs_usage_ add environment variables, call zfs binary only once 2013-05-07 03:16:51 +02:00
Calle Kabo
4528900a44 Updated name and added env.pool
- The name in =head1 did not match the filename.
- The $pool-variable was used in the config-section, but was never initialized. It is now extracted from the fcgi-response
2013-05-06 13:09:06 +03:00
Kenyon Ralph
9bc507b372 Merge pull request #297 from Dave-Driesen/master
Update psad plugin to use DERIVE
2013-04-26 21:04:18 -07:00
Dave Driesen
0914022b9b Update psad plugin to use DERIVE
Now using DERIVE, with zero minimum value.
As per suggestion from Kenyon.

Thanks!
Dave Driesen
2013-04-25 16:38:51 +03:00
Kris Popendorf
92adac9dc2 need autoconf before config 2013-04-24 07:01:11 +09:00
Kris Popendorf
dc30dc5c20 include interface in title 2013-04-24 00:01:07 +09:00
Kris Popendorf
5e48842500 update documentation 2013-04-23 23:59:32 +09:00
Kris Popendorf
b9a08b369a Allows setting warnings by environment variables. 2013-04-23 23:50:58 +09:00
Kris Popendorf
d9ab69e0a1 Fixes bandwidth_ to successfully init new installs.
Previously the script would try to divide by 0 for calculating rates
on the first run, and crash before getting to store() to write initial
values thus never initing itself. This fixes that, and makes it a
little easier to debug in case of future crashes (no need for 'eval'
wrapper).
2013-04-23 11:18:40 +09:00
Kenyon Ralph
bc0bab7a0e Merge pull request #292 from presbrey/patch-1
fix cpu_by_process time parser
2013-04-19 14:28:51 -07:00
Kenyon Ralph
c2be0e2b06 Merge pull request #291 from jesseadams/master
Tweaks for system/pagefaults_by_process
2013-04-19 14:17:11 -07:00
Kenyon Ralph
0df933a549 openvpn/openvpn_multi: re-add configuration documentation 2013-04-19 14:03:51 -07:00
Kenyon Ralph
f21b14ecc9 Merge pull request #289 from HeisSpiter/master
Replacement plugin for openvpn_multi
2013-04-19 14:01:14 -07:00
Kenyon Ralph
191cb9d40e Merge pull request #288 from Dave-Driesen/master
Add port scan detection plugin (psad)
2013-04-19 13:36:03 -07:00
Kenyon Ralph
7f23c8cfc4 system/freeboxuptime: move to the system category 2013-04-19 13:33:51 -07:00
Kenyon Ralph
aa46cd0ccc move uptime plugin to the system directory 2013-04-19 13:32:35 -07:00
Kenyon Ralph
bff9c1ffc4 Merge pull request #282 from rk4an
rewrite mediawiki plugin with api access
2013-04-19 13:14:35 -07:00
Kenyon Ralph
0e52d8f3b6 Merge pull request #284 from lirantal/master
Added monitoring scripts for Drupal CMS web application
2013-04-19 13:06:03 -07:00
Jonas Friedmann
007c2825a9 Fixed indentation + configurable SDK path 2013-04-19 21:56:07 +02:00
Kenyon Ralph
54e26d409a Merge pull request #280 from patschi/patch-1
Create minecraft-users-ram_
2013-04-19 12:55:45 -07:00
Kenyon Ralph
87922ab107 Merge pull request #277 from NNScripts/master
Newznab updated categories.
2013-04-19 12:40:37 -07:00
presbrey
b63d544551 fix cpu_by_process time parser
cumulated CPU time is in [DD-]hh:mm:ss format
2013-04-11 18:31:05 -03:00
Liran Tal
e15d4f76ab fixed proper statement binding result parameters as well as set graph types to GAUGE for absolute numeric values 2013-04-11 14:05:31 +03:00
Jesse R. Adams
b94cf57b57 Adjusting vlabel and using ARGV key 0 instead of 1 for config pass 2013-04-10 17:02:11 -05:00
Pierre Schweitzer
17b5892ab3 Replacement plugin for openvpn_multi.
This plugins handles all connected OpenVPN client and displays their current trafic.
It dynamically handles clients.
It produces a global graph and then a graph per client.
It needs the OpenVPN status file.
2013-04-10 18:28:47 +02:00
Dave Driesen
b5ce1d0022 Add port scan detection plugin (psad)
psad is a cyber defense tool that monitors for incoming port scans
and can optionally blacklist/block attackers.

Both these options can be charted with this plugin.

- Port scans detected (per hour)
- Attackers blocked (per hour)
2013-04-09 13:47:50 +02:00
Steve Schnepp
463bf9ccc7 Merge pull request #281 from patschi/patch-2
Create wordpress2
2013-04-08 08:03:32 -07:00
Steve Schnepp
498c63a3a4 Merge pull request #286 from dotdoom/netstat_bsd_s-update
netstat_bsd_s: adding Linux support
2013-04-08 07:48:25 -07:00
ToM
aca139cc15 [FIX] mail/dovecot: fix typo, categorization. 2013-04-08 12:49:39 +02:00
Thomas VIAL
9ec552e04e Fixed thin_threads which reported 0 all the time 2013-04-04 10:00:04 +02:00
Artem Sheremet
302641b091 netstat_bsd_s: adding Linux support
* limited Linux support: TCP only, a few stats yet
2013-04-04 10:09:14 +03:00
Liran Tal
98e396b385 adding some drupal monitoring snippets 2013-04-03 19:54:34 +03:00
ToM
b0f3e4347d [FIX] apache_byprojects/byprojects_access: missing \n. 2013-04-02 11:25:34 +02:00
Steve Schnepp
7dcf956967 p/if1sec_: add doc that the plugin does not autostart 2013-04-01 07:43:08 +02:00
Erkan
91ad0c2142 rewrite mediawiki plugin with api access 2013-03-31 19:47:47 +03:00
Patschi
604b9249c8 Create wordpress2 2013-03-30 01:26:24 +01:00
Patschi
553ffc3734 Create minecraft-users-ram_ 2013-03-30 01:11:08 +01:00
Jonas Friedmann
bed5815230 Added several Minecraft/Bukkit plugins (depending on JSONAPI, Statistician and Ultrabans) to show the current online players, the RAM usage, the current TPS (ticks per second), hostile/neutral/passive mob kills per day, new players/visitors per day and kicks/ban/mutes/jail/unban/etc. per day - http://s.frd.mn/XJsryR for more informations 2013-03-28 16:12:15 +01:00
NN Scripts
1c69c1c65b - Updated categories
- Added "Unknown" category
- Changed subcategory names in graph (added category infront of subcategory)
  This prevents double names like "sd" and "hd"
2013-03-26 12:23:20 +01:00
Kenyon Ralph
46d1dcc987 google/snmp__gsa_docs: expand the GSA abbreviation on the first usage
For better understanding of the plugin's purpose.
2013-03-25 22:33:51 -07:00
Marcello Barnaba
899a974d81 Add SNMP plugin to monitor the GSA documents index 2013-03-25 17:14:55 +01:00
Diego Elio Pettenò
7c87917826 Merge pull request #275 from Daniel15/php-cleanup
Delete php-fcgi (as it's a copy of php-fastcgi) and move php5-fpm_status into PHP directory
2013-03-25 08:20:09 -07:00
Daniel Lo Nigro
d59e98f3f6 Delete php-fcgi as it's a copy of php-fastcgi 2013-03-25 21:54:30 +11:00
Daniel Lo Nigro
4373a305fb Move php5-fpm_status into PHP directory 2013-03-25 21:53:32 +11:00
Daniel Lo Nigro
df5325d27e Add missing line break 2013-03-24 00:06:30 +11:00
Stefano Gargiulo
f82b011c4e Update cpu_by_process
fix, plugin didn't worked in munin 2.0: config param is in ARGV[0], not ARGV[1]
2013-03-20 08:40:46 +01:00
Matt West
667c62e346 Minor bugfixes 2013-03-16 10:01:44 +00:00
Kenyon Ralph
88e207f51c time/ntp_packets: set minimums to zero to avoid spikes on counter restarts 2013-03-15 19:24:25 -07:00
Chris Jones
23a5a6f4cb Add plugin for monitoring Apple Airport devices via SNMP 2013-03-14 12:30:16 +00:00
Matt West
078e38f6a6 Merge pull request #268 from mhwest13/master
Memcached Multi Plugin Overhaul
2013-03-13 21:35:26 -07:00
tsaavik
2771a20fcb fixed duplicate value when read/write values == 0 2013-03-13 15:36:19 -07:00
Kenyon Ralph
ac8f4636bb Merge pull request #269 from Eleme/master
Update to a better rabbitmq munin plugin
2013-03-13 10:54:02 -07:00
Lx Yu
5f8bf7e788 update to newer version
based on the plugin from @ask
2013-03-13 23:52:24 +08:00
Matt West
9c93bfd2d7 overhaul of memcached_multi_ plugin 2013-03-10 20:29:16 +00:00
Kenyon Ralph
2a31f93e4a Merge pull request #267 from Harvie/patch-1
Added openvz_ support for laverage and status
2013-03-07 23:39:26 -08:00
Kenyon Ralph
b780b5e0af Merge pull request #266 from iborodikhin/master
New plugin for nginx upstreams
2013-03-07 23:34:15 -08:00
Kenyon Ralph
5fbf46aa9a newznab/nn_: use label instead of all-numeric name
This way clean_fieldname works, since an clean_fieldname reduces
all-numeric input to a single underscore.

This change has not been tested, so testing and feedback (especially
pull requests) are welcome.

Reference: https://github.com/munin-monitoring/contrib/pull/113
2013-03-07 23:27:06 -08:00
Tomas Mudrunka
a80bc90c49 Added openvz_ support for laverage and status 2013-03-07 08:51:18 +01:00
majesty
6c76569819 New plugin for nginx draws some interesting graphs about upstream(s) cache status, http response codes, requests number and time 2013-03-07 09:06:59 +06:00
Kenyon Ralph
ccaeefff42 Merge pull request #216 from jenkins101/interface_linux_multi-fix
[Plugin interfaces_linux_multi] Fixed collect loop and some typos
2013-03-03 17:24:21 -08:00
Kenyon Ralph
fe319da656 Merge pull request #263 from unluckypixie/master
Added a new plugin "postgresql_active_backends_by_database"
2013-03-03 17:16:24 -08:00
Kenyon Ralph
10de3ab0bb Merge pull request #262 from alexandru-iacob/master
Display the page load time
2013-03-03 17:14:24 -08:00
Kenyon Ralph
7840fc587c Merge pull request #258 from thomasleveil/munin_users_issue257
[plugin munin_users] issue #257
2013-03-03 16:48:50 -08:00
Kenyon Ralph
fc63981ec4 Merge pull request #259 from tomav/add_port_number
Add port number and fix process matching
2013-03-03 16:42:33 -08:00
Kenyon Ralph
f07b5fc992 Merge pull request #249 from ScOut3R/master
CEPH plugins
2013-03-03 16:28:06 -08:00
Kenyon Ralph
e5e2ae23e6 network/transmission: encode as UTF-8 2013-03-03 16:25:05 -08:00
Kenyon Ralph
85721e6446 move Transmission ratios plugin to network directory
Alongside the existing Transmission plugin.
2013-03-03 16:22:38 -08:00
Kenyon Ralph
5f0fd4e5c3 new plugin time/ntp_packets that graphs NTP packet rates 2013-03-03 16:14:34 -08:00
Kenyon Ralph
6f0db08c25 network/arris-tm502g_: update copyright and license 2013-03-03 16:13:49 -08:00
Daniel Forsberg
191ef79a80 interface_linux_multi: fixed collect loop, fixed flush_rate, fixed exclude interfaces 2013-02-27 20:26:46 +01:00
Dave Fennell
cdda2d6bf2 Merge remote-tracking branch 'upstream/master' 2013-02-22 17:12:49 +00:00
Dave Fennell
87728bb279 Added a new plugin postgresql_active_backends_by_database which shows the active backends broken down by database. 2013-02-22 16:49:55 +00:00
Dave Fennell
9765abcb96 Slight change to default connection options for postgresql_active_backends postgresql_database_ratio so they are more likely to work with a default postgres setup. 2013-02-22 16:49:21 +00:00
Alexandru Iacob
1d2ba32404 Display the page load time
The plugin will generate a graph that displays the page load time
We need to add our custom log format into Apache config.
The plugin was tested on Ubuntu Server 12.04.02 LTS - munin version
1.4.6
LogFormat "%h %l %u %t \"%r\" %>s %O %b %D \"%{Referer}i\"
\"%{User-Agent}i\"" custom
2013-02-20 16:29:21 +00:00
Thomas VIAL
f847a3a425 Fixing config / labels 2013-02-15 10:55:42 +01:00
Thomas VIAL
c39b74e17e Changed label from pid to instance port 2013-02-15 10:00:06 +01:00
Thomas VIAL
3e548c97a8 Added instance port number for better understanding 2013-02-15 09:18:13 +01:00
Thomas
0074272068 [murmur-stats] fix error: Can't open include file "Ice/SliceChecksumDict.ice"
fixes #257
2013-02-15 01:08:19 +01:00
Thomas
278927f844 [mumble_users] fix issue #257 - Can't open include file Ice/SliceChecksumDict.ice
Solution found at https://bitbucket.org/Svedrin/mumble-django/issue/94/cant-open-include-file-ice
2013-02-15 00:52:32 +01:00
Thomas
fb0c8ddb08 dos2unix 2013-02-15 00:44:07 +01:00
CWempe
7688a3f5ba deletet unnecessary output "\n"
Output looked like this:

root@htpc:/etc/munin/plugins# ./nvidia_gpu_mem
mem0.value 0\n
2013-02-12 15:30:59 +01:00
Steve Schnepp
a3dadfa699 Merge branch 'master' of github.com:munin-monitoring/contrib 2013-02-12 00:14:20 +01:00
Phil! Gold
5e6330c6c2 Document how to add an ESXi monitoring account. 2013-02-11 13:28:01 -05:00
Steve Schnepp
6509bffc85 Merge branch 'if1sec' 2013-02-10 12:01:21 +01:00
GABRI Mate
32b4df0c2d added ceph_capacity and ceph_osd 2013-02-08 12:17:02 +01:00
Matthias Hähnel
e71641b88f Update plugins/wowza/wowza-media-server
-Fix Graph wowza_app_listeners
-Compatibility to python 2.6
2013-02-05 01:12:36 -08:00
Steve Schnepp
729c61237a multicpu1sec: enable up to 99 CPUs 2013-02-04 15:21:25 +01:00
Steve Schnepp
5090a771c8 multicpu1sec: use LANG=C to avoid S_TIME_FORMAT issues 2013-02-04 15:20:50 +01:00
Steve Schnepp
e3744a09f9 multicpu1sec: add a flush to awk 2013-02-04 14:31:10 +01:00
Steve Schnepp
7beab0e420 if1sec_: explicit flushing when appending to cache 2013-02-04 11:45:05 +01:00
Steve Schnepp
2fd52dfb38 if1sec_: adding a proper label 2013-02-04 11:45:05 +01:00
Steve Schnepp
63d61bc52e if1sec: fixes 2013-02-04 11:45:03 +01:00
Steve Schnepp
208874d74d if1sec_: initial version 2013-02-04 11:43:53 +01:00
Kenyon Ralph
5b56bd2973 http/http_request_time: fix documentation 2013-02-02 22:31:45 -08:00
Kenyon Ralph
29e6559e8b Merge pull request #206 from aptivate/master
Improved HTTP plugin, new CPU and page fault plugins
2013-02-02 22:30:08 -08:00
Kenyon Ralph
3406d2304d Merge pull request #219 from freewil/bitcoind_difficulty
add difficulty to bitcoind_
2013-02-02 22:23:01 -08:00
Kenyon Ralph
2f3ae6c58a Merge pull request #242 from robertkilian/master
Add plugin for monitoring APRS traffic in Xastir
2013-02-02 22:12:17 -08:00
Kenyon Ralph
e1f060df2b Merge pull request #244 from github-ivan/master
xen-multi CPU usage graph, skip list, some cleanup
2013-02-02 22:09:29 -08:00
Michiel Holtkamp
d00cbc952c Converted traffic plugin to use iptables/ip6tables
You can now choose to use the snmp counters or if your host does
not support it (in some containers for example), you can set rules
in your firewall and count based on that.
2013-02-03 06:52:15 +01:00
Kenyon Ralph
7d0375b365 mail/qmailconn: fix author's name 2013-02-02 20:14:37 -08:00
ufoonline
67cdc919bb Update plugins/mail/qmailconn
# 2013-02-02 - Added support for Greylist and simscan Virus\Spam detect
#              Added LOGPATH env var
2013-02-02 21:27:37 +01:00
ivan
332c74d720 CPU usage graph, skip list, some cleanup
- xenskip option to skip graph types
  env.xenskip "<space separated module list>"
  Modules: cput, cpup, mem, disk, net
- CPU percentage graph added
2013-01-30 19:34:30 +01:00
Steve Schnepp
8fbe0ebe27 qos_: add ability to use custom update_rate 2013-01-28 18:15:58 +01:00
Steve Schnepp
52f40c980d Merge branch 'master' of git.munin-monitoring.org:munin-contrib 2013-01-28 13:48:05 +01:00
Steve Schnepp
0cde2ae787 Merge pull request #240 from CWempe/patch-1
svdrpsend.pl was renamed
2013-01-28 03:43:23 -08:00
Jakob Unterwurzacher
b9ffe6035e Add plugin mysql_size_ondisk - reports the on-disk size of MySQL DBs. 2013-01-27 16:16:17 +01:00
CWempe
0595306b2d svdrpsend.pl was renamed
The script "svdrpsend.pl" was renamed to "svdrpsend" in VDR Version 1.7.23.
see http://www.vdr-wiki.de/wiki/index.php/SVDRP#svdrpsend
2013-01-24 23:03:51 +01:00
Kenyon Ralph
9eb29b306d Merge pull request #218 from jimmyjones2/master
Add plugins for Apache Qpid
2013-01-24 12:24:44 -08:00
Jimmy Jones
c87caf6cd7 Add licence and more description 2013-01-24 12:20:12 -08:00
Stig Sandbeck Mathisen
81ae39dfc0 Test for values of $warning and $critical before try emitting them 2013-01-23 10:31:30 +01:00
Stig Sandbeck Mathisen
32bee48e0d Support warning and critical 2013-01-23 10:26:54 +01:00
Michiel Holtkamp
21fa1d24e3 Added a line of whitespace between =item's 2013-01-18 22:19:11 +01:00
Michiel Holtkamp
6fcde6d8f1 Added multigraph so not only volume but also ratio is graphed 2013-01-13 15:13:59 +01:00
Kenyon Ralph
f3d55ddf30 Merge pull request #234 from unluckypixie/master
New plugin for packetship media streaming server
2013-01-12 16:54:42 -08:00
Steve Schnepp
1db419b1ee db2_cnx: +x 2013-01-10 10:32:05 +01:00
Steve Schnepp
1c60f63b11 db2_cnx: adding a plugin for monitoring DB2 connections 2013-01-10 10:27:44 +01:00
louis
a38bb464b3 set executable bit for netatalk plugin 2013-01-04 18:53:51 +01:00
Dave Fennell
2912117ad4 Updated packetship plugin to support multiple pumps. 2013-01-03 17:36:27 +00:00
bAndie91
0e92a22bc1 pod added 2013-01-02 16:50:27 +01:00
Dave Fennell
9bfb1101b5 Slight fix to output format of packetship_ plugin. 2013-01-02 14:17:11 +00:00
Dave Fennell
819e2a6fe9 Added plugin for packetship media streaming server. 2013-01-02 13:58:27 +00:00
bAndie91
18648443f3 update 2012-12-31 15:46:43 +01:00
bAndie91
bffbc3d5dc monitor Ext2/3/4 fs
e2 plugin to monitor Ext2/3/4 fs mount count, last check and lifetime writes
2012-12-31 06:13:41 -08:00
Bart ten Brinke
ab27dffa6d Fixed undefined warnings 2012-12-31 09:29:37 +01:00
Diego Elio Pettenò
cd4dd57e24 asterisk: replace the remaining two Asterisk plugins.
The fourth graph (asterisk_codecs) replaces both asterisk_sipchannels
and asterisk_codecs, as the latter already included the data from the
first. If we want to get more details we could have sub-multigraphs
for a breakdown of the codecs per channel type, but right now it feels
unneeded.
2012-12-30 14:02:17 -08:00
Diego Elio Pettenò
608c1a90ef asterisk: add graph to replace asterisk_meetme and asterisk_meetmeusers. 2012-12-30 13:38:41 -08:00
Diego Elio Pettenò
1a98faf11c asterisk: refactor command/response handling.
Instead of having a dumb readreply, already drop some of the unneeded
lines of the command when sending the request, and handle errors in
place.

This simplifies the code a little, even though it requires a few more
"discard loops" in the code (to avoid garbage in Asterisk's logs).
2012-12-30 13:36:36 -08:00