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

22 Commits

Author SHA1 Message Date
Lars Kruse
9dcf5885e9 [asterisk] fix inconsistent fieldname for voicemail messages (Closes: #700)
lelutin proposed the change of the fieldname "messages" in the config
section to "total" (as used in the "fetch" output)

see https://github.com/munin-monitoring/contrib/issues/700
2016-11-06 13:56:45 +01:00
Lars Kruse
04def756bc [asterisk] cleanup linebreak handling and single/plurals (Closes: #698)
lelutin proposed some changes:
* the total is 0 if there is only one channel active (due to "channel"
  vs. "channels")
* linebreaks "\r\n" are expected

See https://github.com/munin-monitoring/contrib/issues/698
2016-11-06 13:52:41 +01:00
Lars Kruse
66d48afbbb [asterisk] fix codecs accounting (Closes: #699)
The following issues are fixed by lelutin:
* line ending matching does not match for lines that only use \n as
  line ending
* iteration is broken because the index for setting values in the
  codecs accounting array is never reset to 0 before new loops.
* iax channels don't use a codec hex value, but rather their names
  (sip still uses the hex values as far as I can see)

see https://github.com/munin-monitoring/contrib/issues/699
2016-11-06 12:37:28 +01:00
Holger Levsen
137cbf74b6 asterisk_inuse: fix plugin to use asterisk command from PATH and fix a whitespace issue 2013-06-23 16:14:18 +02: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
Diego Elio Pettenò
b77eef4a62 asterisk: handle more gracefully errors on the asterisk_channels path. 2012-12-30 13:07:24 -08:00
Diego Elio Pettenò
9f56a03d05 asterisk: add asterisk_voicemail replacement code as well.
This is a bit trickier, since the voicemail might not be enabled
anywhere. Unfortunately it's not easy to set this up during
autoconfig, as voicemails can be added on the fly.
2012-12-30 13:04:25 -08:00
Diego Elio Pettenò
f5064c9398 asterisk: add support for showing the per-type breakdown of channels.
This makes it possible for a single graph to replace the two
apache_channels and apache_channeltypes plugins.
2012-12-30 12:44:29 -08:00
Diego Elio Pettenò
fce7502342 asterisk: first part of the new Asterisk plugin.
This plugin is targeting to enter main distribution in 2.1 to remove
the multiple Asterisk plugins present in 2.0.

It features full autoconfiguration support, multigraph capabilities,
and less error-prone code.

For the moment, it only implements a replacement for asterisk_channels.
2012-12-30 12:22:52 -08:00
Dave Fennell
1a3ca61248 Updated asterisk_channels plugin to connect to running asterisk (probably what was intended) instead of starting new process. 2012-12-19 10:09:50 +00:00
Diego Elio Pettenò
0a1524f27f More housecleaning.
Collapse some categories; remove duplicates; move plugins in where
they belong, remove files that are not really plugins at all.
2012-08-06 21:55:44 -07:00
varnav
fd2a8b3bb1 Added comment about running as root 2012-06-29 17:05:49 +02:00
Steve Schnepp
a318064d3d actually test if it can be run 2012-06-29 16:23:15 +02:00
Steve Schnepp
4df1c1a40c plugins are executable 2012-06-29 16:23:15 +02:00
Steve Schnepp
9cb3120954 fix sh warnings 2012-06-29 16:23:15 +02:00
Steve Schnepp
98f1362ba8 Port to /bin/sh 2012-06-29 12:10:28 +03:00
Eugene Varnavsky
ae9f97ea9e asterisk_channels plugin first added
This plugin monitors number of active asterisk channels
2012-06-28 23:26:07 +04:00
Kenyon Ralph
e005bb0ccb remove plugins existing in main munin repository 2012-04-24 02:06:02 -07:00
Kenyon Ralph
c33bbb90e5 organize asterisk plugins
untar asterisk-fax and move asterisk-multigraph-munin-plugin
2012-04-24 01:55:09 -07:00
Steve Schnepp
08346aac58 - have some dirs 2012-02-13 18:24:46 +01:00