Munin plugins and configurations/settings we use on our servers.
https://www.hot-chilli.net/munin/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.6 KiB
57 lines
1.6 KiB
#!/bin/bash
|
|
# Magic markers
|
|
#%# family=auto
|
|
#%# capabilities=autoconf suggest
|
|
if [ "$1" == "autoconf" ]; then
|
|
echo yes
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$1" == "config" ]; then
|
|
echo graph_title "Prosody Stanzas"
|
|
echo graph_vlabel stanzas per second
|
|
echo graph_category Prosody
|
|
echo graph_args --base 1000 -l 0
|
|
echo graph_scale no
|
|
echo graph_info Prosody stanza origins
|
|
|
|
echo c2s_message.label c2s messages
|
|
echo s2sin_message.label s2s messages
|
|
echo component_message.label component messages
|
|
|
|
echo c2s_presence.label c2s presence
|
|
echo s2sin_presence.label s2s presence
|
|
echo component_presence.label component presence
|
|
|
|
echo c2s_iq.label c2s iq
|
|
echo s2sin_iq.label s2s iq
|
|
echo component_iq.label component iq
|
|
|
|
echo c2s_message.type DERIVE
|
|
echo s2sin_message.type DERIVE
|
|
echo component_message.type DERIVE
|
|
|
|
echo c2s_presence.type DERIVE
|
|
echo s2sin_presence.type DERIVE
|
|
echo component_presence.type DERIVE
|
|
|
|
echo c2s_iq.type DERIVE
|
|
echo s2sin_iq.type DERIVE
|
|
echo component_iq.type DERIVE
|
|
|
|
echo c2s_message.min 0
|
|
echo s2sin_message.min 0
|
|
echo component_message.min 0
|
|
|
|
echo c2s_presence.min 0
|
|
echo s2sin_presence.min 0
|
|
echo component_presence.min 0
|
|
|
|
echo c2s_iq.min 0
|
|
echo s2sin_iq.min 0
|
|
echo component_iq.min 0
|
|
|
|
exit 0
|
|
fi
|
|
|
|
echo stanzas | nc -q1 localhost 5582 | sed '1,12d;/\(s2sout\|unauthed\)/d;s/\x0//g;s/^..//;s/\./_/;s/ /.value /'
|
|
|