GithubHelp home page GithubHelp logo

munin-prosody's People

Contributors

ge0rg avatar jarus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

munin-prosody's Issues

socket.error: [Errno 111] Connection refused

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.

Python 3

Are there any plans to port this to python 3?

Number of users is always 1

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.

prosody_mem memory usage - lacking dependency info?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.