Browse Source

'prosody/prosody_stanzas/prosody_stanzas' hinzufügen

master
Martin Sebald 7 years ago
parent
commit
feb0fb2cc4
  1. 57
      prosody/prosody_stanzas/prosody_stanzas

57
prosody/prosody_stanzas/prosody_stanzas

@ -0,0 +1,57 @@
#!/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 /'
Loading…
Cancel
Save