Hello,
Ive been using check_mk for a while now, mainly for publicly available services, its been great, thanks to all involved.
I now want to start monitoring processes on Windows boxes but I’m having trouble.
Ive attached details below if anyone has any ideas where I’m going wrong, much appreciated.
main.mk
checks = [
( ‘host1’, ‘services’, ‘NCacheSvc’, None ),
( ‘host2’, ‘services’, ‘NCacheSvc’, None ),
( ‘host2’, ‘ps.perf’, ‘w3wp.exe’, None ),
( ‘host2’, ‘ps.perf’, ‘alg.exe’, None ),
]
The service works ok, but I get this error for the process:
UNKNOWN - invalid output from plugin section <<>> or error in check type ps.perf
check_mk -nv --debug host2
Reading default settings from /usr/share/check_mk/modules/defaults
Reading config file /etc/check_mk/main.mk…
Check_mk version 1.1.7i4
CPU Usage OK - 0% used / 2 CPUs (in last 44 secs)
Disk IO OK - reading 0.1 MB/s, writing 0.2 MB/s (in last 44 secs)
LOG Application OK - no old or new error messages
LOG HP Diagnostics OK - no old or new error messages
LOG Internet Explorer OK - no old or new error messages
LOG SPIN Data OK - no old or new error messages
LOG Security OK - no old or new error messages
LOG System OK - no old or new error messages
LOG Windows PowerShell OK - no old or new error messages
Memory used OK - 0.52 GB RAM+SWAP used (this is 26.1% of RAM size)
fs_C:/ OK - 80.1% used (8.4 of 10.5 GB), (levels at 85.0/95.0%)
Traceback (most recent call last):
File “/usr/share/check_mk/modules/check_mk.py”, line 3599, in ?
do_check(hostname, ipaddress)
File “/usr/share/check_mk/modules/check_mk_base.py”, line 627, in do_check
agent_version, num_success, num_errors = do_all_checks_on_host(hostname, ipaddress)
File “/usr/share/check_mk/modules/check_mk_base.py”, line 696, in do_all_checks_on_host
result = check_funktion(item, params, info)
File “/usr/share/check_mk/checks/ps”, line 207, in
check_info[‘ps.perf’] = (lambda i,p,n: check_procs(i,p,n,True), “proc_%s”, 1, inventory_ps)
File “/usr/share/check_mk/checks/ps”, line 155, in check_procs
if len(params) == 5:
TypeError: len() of unsized object
The processes are listed if I run check_mk -d host2
Cheers