1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-01 05:43:44 +00:00
Commit graph

26 commits

Author SHA1 Message Date
Lars Kruse
9500394695 Unify more author names with special characters
Additionally an ambiguous line in the "author" section of a plugin was
removed in order to avoid confusion for the Munin Plugin Gallery parser.
2020-10-19 21:25:19 +02:00
Gabriel Filion
0e0de01136 asterisk: the confbridge graph is in the wrong category
This was a copy/paste error that slipped by unnoticed :\
2019-08-11 18:41:57 +02:00
Lars Kruse
550ba544a6
Merge pull request #1007 from lelutin/replace_meetme_with_confbridge
* replace meetme with confbridge
* unify whitespace
2019-08-11 04:47:59 +02:00
Gabriel Filion
e14659d02c asterisk: use eq instead of == for comparing a variable to a string
sumpfralle suggested this change on github, since the comparisons are
meant to be string comparisons.
2019-08-10 21:58:24 -04:00
Gabriel Filion
b8eba4d75c asterisk: rename options for enabling/disabling graphs
With this "enable_" prefix, it will be clearer to users that those
options are boolean flags.
2019-08-10 21:58:24 -04:00
Gabriel Filion
5fff12db96 asterisk: change tabs for spaces for indentation
the plugin currently has inconsistencies with how lines are indented:
some lines only use tab characters while all other lines use spaces.
Let's make the coding style more uniform by using spaces everywhere.
2019-08-10 21:58:24 -04:00
Gabriel Filion
f7ebe6833d asterisk: turn output into debug-only lines
I apparently forgot to clear out two lines of debugging output from the
script before submitting a pull request.

Those lines of output are super useful for debugging whenever things are
not working as expected (e.g. asterisk has changed its output). So it'll
be more productive to keep them around but only output them if
MUNIN_DEBUG is set.
2019-08-10 21:38:36 +02:00
Gabriel Filion
7492865044 asterisk: Add configuration options to disable conference graphs
Since the MeetMe application is not available anymore on Debian, it
makes no sense to keep the graph around. We do however want to keep code
around for parsing stats from MeetMe. So we'll add two "binary" flags
that'll let users which of these two graphs they want.

The default values will favor getting information from ConfBridge which
is the suggested replacement for MeetMe.

An added bonus of this is that some users might decide to disable both
graphs if they use neither applications, which was impossible before.
2019-08-10 14:16:34 -04:00
Gabriel Filion
46b5f4bd13 asterisk: add graph for confbridge
The MeetMe Asterisk application has been deprecated since Asterisk 1.8.
Debian has also stopped distributing the module with version 11.5.1.
Users now need to migrate to using the ConfBridge application.

Since the application still exists, and some ppl in other Linux distros
probably still use it, we'll keep the code for parsing meetme info for
some time.
2019-08-10 14:16:33 -04:00
Lars Kruse
0ca0e78b9d
Merge pull request #1005 from lelutin/fix_asterisk_ami_parsing
Fix asterisk ami parsing
2019-08-10 14:17:36 +02:00
Gabriel Filion
38a921912b asterisk: another typo in config prevents graphs from showing up
This typo causes the following error during munin-update:

asterisk_codecs.graphs_title Asterisk channels per codec' : Parse error in /var/lib/munin/datafile for asterisk_codecs.graphs_title:

This error completely prevents munin-update from creating graphs for the
asterisk plugin.
2019-08-10 02:34:27 -04:00
Gabriel Filion
700b30e124 asterisk: fix typoes in multi-graph configuration 2019-08-09 17:00:50 -04:00
Gabriel Filion
d66fef2dc6 asterisk: command replies are now embedded in server responses
Asterisk now replies to "Action: command" with the response embedded,
e.g. with "Response: Success" instead of "Response: Follows".

We need to adjust how we parse the server response otherwise we can't
grab any data at all from the AMI.

Closes: #887
2019-08-09 16:59:09 -04:00
Lars Kruse
ab3d97fca9 Plugin asterisk: fix typos for "unknown" dataset
The "draw" configuration as well as the "value" were ignored.
2018-08-22 19:44:48 +02:00
Lars Kruse
17f784270a Whitespace cleanup
* remove trailing whitespace
* remove empty lines at the end of files
2018-08-02 02:33:25 +02:00
dipohl
c4b2d9a8e3 Category Tree: reduce number of categories 2017-02-22 04:48:52 +01:00
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
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