Giter Club home page Giter Club logo

cmk-teamspeak's Introduction

cmk-teamspeak

Check_MK agent check for Teamspeak3 virtual server instances

Setup

Install the mkp on your checkmk with:

omd su site
mkp install teamspeak3-0.2.mkp

Then copy agents/plugins/Teamspeak3 to /usr/lib/check_mk_agent/plugins/Teamspeak3 on your checkmk agent.

Create your configuration (destination: /etc/check_mk/teamspeak3.cfg)

After that restart checkmk and the agent and rescan for services for the specific host.

cmk-teamspeak's People

Contributors

bixilon avatar gurubert avatar hornochs avatar serverfrog avatar thannaske avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cmk-teamspeak's Issues

Example Config would be needed

Heyho,

I'm trying to setup a checkMK Server with this TeamSpeak Plugin. But I have no Idea how the teamspeak3.cfg should look. Would it be possible to help me with that?

Thanks!

Cheers,

Hornochs

Discovery crashes

Hi,

I was super happy to find a proper check for TS3, I've installed the mkp, copied the check, created a .cfg and tried running the plugin, works just fine. Then I went to discover new services, but the discovery crashes.

Exception:

ValueError (item must be None or of type `str`)

Traceback:

  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/decorator.py", line 43, in wrapped_check_func
    status, output_text = _combine_texts(check_func(hostname, *args, **kwargs))
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/__init__.py", line 578, in active_check_discovery
    services = _get_host_services(
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/__init__.py", line 1023, in _get_host_services
    **_get_node_services(
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/__init__.py", line 1048, in _get_node_services
    service_result = analyse_discovered_services(
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/_discovered_services.py", line 46, in analyse_discovered_services
    discovered_services=_discover_services(
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/_discovered_services.py", line 145, in _discover_services
    {
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/_discovered_services.py", line 145, in <dictcomp>
    {
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/_discovered_services.py", line 280, in _discover_plugins_services
    yield from (
  File "/omd/sites/monitoring/lib/python3/cmk/base/agent_based/discovery/_discovered_services.py", line 280, in <genexpr>
    yield from (
  File "/omd/sites/monitoring/lib/python3/cmk/base/api/agent_based/register/check_plugins.py", line 74, in filtered_generator
    for element in generator(*args, **kwargs):
  File "/omd/sites/monitoring/lib/python3/cmk/base/api/agent_based/register/check_plugins_legacy.py", line 90, in discovery_migration_wrapper
    raise ValueError("item must be None or of type `str`")

Local Variables:

{
	'check_info_dict': {
		'check_function': <function check_teamspeak3 at 0x7f12adf575e0>,
		 'default_levels_variable': None,
		 'extra_sections': [],
		 'group': None,
		 'handle_empty_info': False,
		 'handle_real_time_checks': False,
		 'has_perfdata': True,
		 'inventory_function': <function inventory_teamspeak3 at 0x7f12adf57550>,
		 'management_board': None,
		 'node_info': False,
		 'parse_function': <function parse_teamspeak3 at 0x7f12b12870d0>,
		 'service_description': 'Teamspeak3 %s',
		 'snmp_info': None,
		 'snmp_scan_function': None
	},
	 'check_name': 'Teamspeak3',
	 'disco_func': <function inventory_teamspeak3 at 0x7f12adf57550>,
	 'element': (9987, {'autostart': 'yes', 'status': 'online'}),
	 'get_check_context': <function get_check_context at 0x7f12afddb310>,
	 'item': 9987,
	 'original_discovery_result': <generator object inventory_teamspeak3 at 0x7f12ac6f3cf0>,
	 'parameters': {},
	 'raw_params': {'autostart': 'yes', 'status': 'online'},
	 'section': {
		'AuthSuccess': 'Yes',
		'Build': '1655727713',
		'ConfigError': 'No',
		'Platform': 'Linux',
		'QueryPortReachable': 'Yes',
		'Version': '3.13.7',
		'VirtualServer': {
			9987: {
				'autostart': 'yes',
				'channels': 0,
				'clientsmax': 32,
				'clientsonline': 0,
				'egress': 20128,
				'ingress': 15639,
				'port': 9987,
				'status': 'online'
			}
		}
	},
	'service': ('Global', {}, [])
}

I am using Checkmk Raw Edition 2.1.0p21.

check plugin missing

Hi,

thank you for providing an agent plugin, but where is the check plugin that uses the agent data?

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.