jarus / munin-prosody Goto Github PK
View Code? Open in Web Editor NEWA munin plugin to show the load of the prosody xmpp server
A munin plugin to show the load of the prosody xmpp server
Hello,
On a fresh install munin-node v2.0.49 & Prosody 0.11.2 :
2020/11/19-15:55:03 [25606] Error output from prosody_s2s:
2020/11/19-15:55:03 [25606] Traceback (most recent call last):
2020/11/19-15:55:03 [25606] File "/etc/munin/plugins/prosody_s2s", line 234, in <module>
2020/11/19-15:55:03 [25606] main()
2020/11/19-15:55:03 [25606] File "/etc/munin/plugins/prosody_s2s", line 129, in main
2020/11/19-15:55:03 [25606] telnet = telnetlib.Telnet(host, port)
2020/11/19-15:55:03 [25606] File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
2020/11/19-15:55:03 [25606] self.open(host, port, timeout)
2020/11/19-15:55:03 [25606] File "/usr/lib/python2.7/telnetlib.py", line 227, in open
2020/11/19-15:55:03 [25606] self.sock = socket.create_connection((host, port), timeout)
2020/11/19-15:55:03 [25606] File "/usr/lib/python2.7/socket.py", line 575, in create_connection
2020/11/19-15:55:03 [25606] raise err
2020/11/19-15:55:03 [25606] socket.error: [Errno 111] Connection refused
2020/11/19-15:55:03 [25606] Service 'prosody_s2s' exited with status 1/0.
2020/11/19-15:55:03 [25606] Error output from prosody_presence:
2020/11/19-15:55:03 [25606] Traceback (most recent call last):
2020/11/19-15:55:03 [25606] File "/etc/munin/plugins/prosody_presence", line 234, in <module>
2020/11/19-15:55:03 [25606] main()
2020/11/19-15:55:03 [25606] File "/etc/munin/plugins/prosody_presence", line 152, in main
2020/11/19-15:55:03 [25606] telnet = telnetlib.Telnet(host, port)
2020/11/19-15:55:03 [25606] File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
2020/11/19-15:55:03 [25606] self.open(host, port, timeout)
2020/11/19-15:55:03 [25606] File "/usr/lib/python2.7/telnetlib.py", line 227, in open
2020/11/19-15:55:03 [25606] self.sock = socket.create_connection((host, port), timeout)
2020/11/19-15:55:03 [25606] File "/usr/lib/python2.7/socket.py", line 575, in create_connection
2020/11/19-15:55:03 [25606] raise err
2020/11/19-15:55:03 [25606] socket.error: [Errno 111] Connection refused
2020/11/19-15:55:03 [25606] Service 'prosody_presence' exited with status 1/0.
2020/11/19-15:55:07 [25606] Error output from prosody_c2s:
2020/11/19-15:55:07 [25606] Traceback (most recent call last):
2020/11/19-15:55:07 [25606] File "/etc/munin/plugins/prosody_c2s", line 234, in <module>
2020/11/19-15:55:07 [25606] main()
2020/11/19-15:55:07 [25606] File "/etc/munin/plugins/prosody_c2s", line 96, in main
2020/11/19-15:55:07 [25606] telnet = telnetlib.Telnet(host, port)
2020/11/19-15:55:07 [25606] File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
2020/11/19-15:55:07 [25606] self.open(host, port, timeout)
2020/11/19-15:55:07 [25606] File "/usr/lib/python2.7/telnetlib.py", line 227, in open
2020/11/19-15:55:07 [25606] self.sock = socket.create_connection((host, port), timeout)
2020/11/19-15:55:07 [25606] File "/usr/lib/python2.7/socket.py", line 575, in create_connection
2020/11/19-15:55:07 [25606] raise err
2020/11/19-15:55:07 [25606] socket.error: [Errno 111] Connection refused
2020/11/19-15:55:07 [25606] Service 'prosody_c2s' exited with status 1/0.
2020/11/19-15:55:09 [25606] Error output from prosody_mem:
2020/11/19-15:55:09 [25606] Traceback (most recent call last):
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_mem", line 234, in <module>
2020/11/19-15:55:09 [25606] main()
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_mem", line 65, in main
2020/11/19-15:55:09 [25606] telnet = telnetlib.Telnet(host, port)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
2020/11/19-15:55:09 [25606] self.open(host, port, timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 227, in open
2020/11/19-15:55:09 [25606] self.sock = socket.create_connection((host, port), timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/socket.py", line 575, in create_connection
2020/11/19-15:55:09 [25606] raise err
2020/11/19-15:55:09 [25606] socket.error: [Errno 111] Connection refused
2020/11/19-15:55:09 [25606] Service 'prosody_mem' exited with status 1/0.
2020/11/19-15:55:09 [25606] Error output from prosody_uptime:
2020/11/19-15:55:09 [25606] Traceback (most recent call last):
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_uptime", line 234, in <module>
2020/11/19-15:55:09 [25606] main()
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_uptime", line 180, in main
2020/11/19-15:55:09 [25606] telnet = telnetlib.Telnet(host, port)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
2020/11/19-15:55:09 [25606] self.open(host, port, timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 227, in open
2020/11/19-15:55:09 [25606] self.sock = socket.create_connection((host, port), timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/socket.py", line 575, in create_connection
2020/11/19-15:55:09 [25606] raise err
2020/11/19-15:55:09 [25606] socket.error: [Errno 111] Connection refused
2020/11/19-15:55:09 [25606] Service 'prosody_uptime' exited with status 1/0.
2020/11/19-15:55:09 [25606] Error output from prosody_users:
2020/11/19-15:55:09 [25606] Traceback (most recent call last):
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_users", line 234, in <module>
2020/11/19-15:55:09 [25606] main()
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_users", line 196, in main
2020/11/19-15:55:09 [25606] telnet = telnetlib.Telnet(host, port)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
2020/11/19-15:55:09 [25606] self.open(host, port, timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 227, in open
2020/11/19-15:55:09 [25606] self.sock = socket.create_connection((host, port), timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/socket.py", line 575, in create_connection
2020/11/19-15:55:09 [25606] raise err
2020/11/19-15:55:09 [25606] socket.error: [Errno 111] Connection refused
2020/11/19-15:55:09 [25606] Service 'prosody_users' exited with status 1/0.
2020/11/19-15:55:09 [25606] Error output from prosody_users:
2020/11/19-15:55:09 [25606] Traceback (most recent call last):
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_users", line 234, in <module>
2020/11/19-15:55:09 [25606] main()
2020/11/19-15:55:09 [25606] File "/etc/munin/plugins/prosody_users", line 196, in main
2020/11/19-15:55:09 [25606] telnet = telnetlib.Telnet(host, port)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 211, in __init__
2020/11/19-15:55:09 [25606] self.open(host, port, timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/telnetlib.py", line 227, in open
2020/11/19-15:55:09 [25606] self.sock = socket.create_connection((host, port), timeout)
2020/11/19-15:55:09 [25606] File "/usr/lib/python2.7/socket.py", line 575, in create_connection
2020/11/19-15:55:09 [25606] raise err
2020/11/19-15:55:09 [25606] socket.error: [Errno 111] Connection refused
2020/11/19-15:55:09 [25606] Service 'prosody_users' exited with status 1/0.
On a sufficiently large server, that will happen, skewing your stats. A patch can be found here:
https://op-co.de/tmp/0001-telnet-better-filter-for-end-of-data.patch
Are there any plans to port this to python 3?
The number of users returned is always 1.
I think the problem is at line 169
accounts = len([listfiles(account_dir)])
I do not know how to fix it myself, because I do not understand the problem here.
When updatating, getting memory usage info generates munin errors:
2015/05/15-18:25:04 CONNECT TCP Peer: "[10.0.0.1]:55766" Local: "[10.0.0.12]:4949"
2015/05/15-18:25:11 [18552] Error output from prosody_mem:
2015/05/15-18:25:11 [18552] Traceback (most recent call last):
2015/05/15-18:25:11 [18552] File "/etc/munin/plugins/prosody_mem", line 234, in <module>
2015/05/15-18:25:11 [18552] main()
2015/05/15-18:25:11 [18552] File "/etc/munin/plugins/prosody_mem", line 78, in main
2015/05/15-18:25:11 [18552] print "memory_total.value", mem_map["allocated"]
2015/05/15-18:25:11 [18552] KeyError: 'allocated'
2015/05/15-18:25:11 [18552] Service 'prosody_mem' exited with status 1/0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.