[Check_mk (english)] Problem monitoring Windows processes

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

I guess you're trying to use linux ps but you'll have to use
wmic_process.

···

--
with kind regards

Tuxclouds Support


http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------

Von: Aled Jones <d.aled.jones@gmail.com>
An: checkmk-en@lists.mathias-kettner.de
Betreff: [Check_mk (english)] Problem monitoring Windows processes
Datum: Sat, 23 Oct 2010 17:40:59 +0100

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 <lambda>
    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

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Thanks, I tried changing the check to
( ‘host2’, ‘wmic_process’, ‘w3wp.exe’, None ),

But I get this error:

UNKNOWN - invalid output from plugin section <<>> or error in check type wmic_process

Do I need to enable the plugin somehow?

···

On Sat, Oct 23, 2010 at 5:50 PM, Tuxclouds Support support@tuxclouds.org wrote:

I guess you’re trying to use linux ps but you’ll have to use

wmic_process.

with kind regards

Tuxclouds Support

http://tuxclouds.org

http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------

Von: Aled Jones d.aled.jones@gmail.com

An: checkmk-en@lists.mathias-kettner.de

Betreff: [Check_mk (english)] Problem monitoring Windows processes

Datum: Sat, 23 Oct 2010 17:40:59 +0100

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


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi,

And here:

............
This check uses the output of wmic process in order to monitor the
ressource consumption of processes on Windows servers. On the target
host this check needs the command line utility wmic and the agent plugin
wmicchecks.bat (in the subdirectory plugins below the directory where
check_mk_agent.exe is located).
..............

Like this:

# Monitor ressources used by SSHD processes.
# Warn at 20MB RAM or 10MB page file or 80% CPU usage
# Critical at 30MB RAM or 15MB page file or 90% CPU usage
checks += [
( "klapp", "wmic_process", "SSHD", ( "sshd.exe", 20, 30, 10, 15, 80, 90)),
]

http://mathias-kettner.de/checkmk_check_wmic_process.html

···

--
with kind regards

Tuxclouds Support


http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------
Von: Aled Jones <d.aled.jones@gmail.com>
An: support@tuxclouds.org
Kopie: checkmk-en@lists.mathias-kettner.de
Betreff: Re: [Check_mk (english)] Problem monitoring Windows processes
Datum: Sat, 23 Oct 2010 18:11:01 +0100

Thanks, I tried changing the check to
( 'host2', 'wmic_process', 'w3wp.exe', None ),

But I get this error:

UNKNOWN - invalid output from plugin section <<>> or error in check type
wmic_process

Do I need to enable the plugin somehow?

On Sat, Oct 23, 2010 at 5:50 PM, Tuxclouds Support <support@tuxclouds.org> wrote:
        I guess you're trying to use linux ps but you'll have to use
        wmic_process.
        
        --
        with kind regards
        
        Tuxclouds Support
        http://tuxclouds.org
        http://exchange.check-mk.org
        
        -------- Weitergeleitete Nachricht --------
        
        Von: Aled Jones <d.aled.jones@gmail.com>
        An: checkmk-en@lists.mathias-kettner.de
        Betreff: [Check_mk (english)] Problem monitoring Windows
        processes
        Datum: Sat, 23 Oct 2010 17:40:59 +0100
        
        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 <lambda>
           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
        
        _______________________________________________
        checkmk-en mailing list
        checkmk-en@lists.mathias-kettner.de
        http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Thanks for that, I hadnt seen that page before, must have missed it somehow.
I’ll have a play around and see if I can figure it out.
Thanks for your help

···

On Sat, Oct 23, 2010 at 6:39 PM, Tuxclouds Support support@tuxclouds.org wrote:

Hi,

And here:

This check uses the output of wmic process in order to monitor the

ressource consumption of processes on Windows servers. On the target

host this check needs the command line utility wmic and the agent plugin

wmicchecks.bat (in the subdirectory plugins below the directory where

check_mk_agent.exe is located).

Like this:

Monitor ressources used by SSHD processes.

Warn at 20MB RAM or 10MB page file or 80% CPU usage

Critical at 30MB RAM or 15MB page file or 90% CPU usage

checks += [

( “klapp”, “wmic_process”, “SSHD”, ( “sshd.exe”, 20, 30, 10, 15, 80, 90)),

]

http://mathias-kettner.de/checkmk_check_wmic_process.html


with kind regards

Tuxclouds Support

http://tuxclouds.org

http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------

Von: Aled Jones d.aled.jones@gmail.com

An: support@tuxclouds.org

Kopie: checkmk-en@lists.mathias-kettner.de

Betreff: Re: [Check_mk (english)] Problem monitoring Windows processes

Datum: Sat, 23 Oct 2010 18:11:01 +0100

Thanks, I tried changing the check to

( ‘host2’, ‘wmic_process’, ‘w3wp.exe’, None ),

But I get this error:

UNKNOWN - invalid output from plugin section <<>> or error in check type

wmic_process

Do I need to enable the plugin somehow?

On Sat, Oct 23, 2010 at 5:50 PM, Tuxclouds Support > > support@tuxclouds.org wrote:

    I guess you're trying to use linux ps but you'll have to use

    wmic_process.



    --

    with kind regards



    Tuxclouds Support

    [http://tuxclouds.org](http://tuxclouds.org)

    [http://exchange.check-mk.org](http://exchange.check-mk.org)







    -------- Weitergeleitete Nachricht --------





    Von: Aled Jones <d.aled.jones@gmail.com>

    An: checkmk-en@lists.mathias-kettner.de

    Betreff: [Check_mk (english)] Problem monitoring Windows

    processes

    Datum: Sat, 23 Oct 2010 17:40:59 +0100





    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](http://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 <lambda>

       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





    _______________________________________________

    checkmk-en mailing list

    checkmk-en@lists.mathias-kettner.de

    [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

I’m using ps to monitor windows processes. Should work shouldn’t it?

Rutger

···

On Sat, Oct 23, 2010 at 8:28 PM, Aled Jones d.aled.jones@gmail.com wrote:

Thanks for that, I hadnt seen that page before, must have missed it somehow.
I’ll have a play around and see if I can figure it out.

Thanks for your help

On Sat, Oct 23, 2010 at 6:39 PM, Tuxclouds Support support@tuxclouds.org wrote:

Hi,

And here:

This check uses the output of wmic process in order to monitor the

ressource consumption of processes on Windows servers. On the target

host this check needs the command line utility wmic and the agent plugin

wmicchecks.bat (in the subdirectory plugins below the directory where

check_mk_agent.exe is located).

Like this:

Monitor ressources used by SSHD processes.

Warn at 20MB RAM or 10MB page file or 80% CPU usage

Critical at 30MB RAM or 15MB page file or 90% CPU usage

checks += [

( “klapp”, “wmic_process”, “SSHD”, ( “sshd.exe”, 20, 30, 10, 15, 80, 90)),

]

http://mathias-kettner.de/checkmk_check_wmic_process.html


with kind regards

Tuxclouds Support

http://tuxclouds.org

http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------

Von: Aled Jones d.aled.jones@gmail.com

An: support@tuxclouds.org

Kopie: checkmk-en@lists.mathias-kettner.de

Betreff: Re: [Check_mk (english)] Problem monitoring Windows processes

Datum: Sat, 23 Oct 2010 18:11:01 +0100

Thanks, I tried changing the check to

( ‘host2’, ‘wmic_process’, ‘w3wp.exe’, None ),

But I get this error:

UNKNOWN - invalid output from plugin section <<>> or error in check type

wmic_process

Do I need to enable the plugin somehow?

On Sat, Oct 23, 2010 at 5:50 PM, Tuxclouds Support > > > > support@tuxclouds.org wrote:

    I guess you're trying to use linux ps but you'll have to use

    wmic_process.



    --

    with kind regards



    Tuxclouds Support

    [http://tuxclouds.org](http://tuxclouds.org)

    [http://exchange.check-mk.org](http://exchange.check-mk.org)







    -------- Weitergeleitete Nachricht --------





    Von: Aled Jones <d.aled.jones@gmail.com>

    An: checkmk-en@lists.mathias-kettner.de

    Betreff: [Check_mk (english)] Problem monitoring Windows

    processes

    Datum: Sat, 23 Oct 2010 17:40:59 +0100





    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](http://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 <lambda>

       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





    _______________________________________________

    checkmk-en mailing list

    checkmk-en@lists.mathias-kettner.de

    [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


Rutger Blom
Luzernvägen 14
227 38 LUND
Sweden
Tel. +46 763 46 99 44
www.rutgerblom.com

I found what the problem was here, I had installed the check_mk_agent in to the ‘Program Files’ directory on the Windows box. Seems this breaks the output of the <> section.
I removed the agent and then installed it in the root dir, works ok now.

Thanks again.

···

On Sat, Oct 23, 2010 at 8:06 PM, Rutger Blom rutger@blokje.net wrote:

I’m using ps to monitor windows processes. Should work shouldn’t it?

Rutger

On Sat, Oct 23, 2010 at 8:28 PM, Aled Jones d.aled.jones@gmail.com wrote:

Thanks for that, I hadnt seen that page before, must have missed it somehow.
I’ll have a play around and see if I can figure it out.

Thanks for your help

On Sat, Oct 23, 2010 at 6:39 PM, Tuxclouds Support support@tuxclouds.org wrote:

Hi,

And here:

This check uses the output of wmic process in order to monitor the

ressource consumption of processes on Windows servers. On the target

host this check needs the command line utility wmic and the agent plugin

wmicchecks.bat (in the subdirectory plugins below the directory where

check_mk_agent.exe is located).

Like this:

Monitor ressources used by SSHD processes.

Warn at 20MB RAM or 10MB page file or 80% CPU usage

Critical at 30MB RAM or 15MB page file or 90% CPU usage

checks += [

( “klapp”, “wmic_process”, “SSHD”, ( “sshd.exe”, 20, 30, 10, 15, 80, 90)),

]

http://mathias-kettner.de/checkmk_check_wmic_process.html


with kind regards

Tuxclouds Support

http://tuxclouds.org

http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------

Von: Aled Jones d.aled.jones@gmail.com

An: support@tuxclouds.org

Kopie: checkmk-en@lists.mathias-kettner.de

Betreff: Re: [Check_mk (english)] Problem monitoring Windows processes

Datum: Sat, 23 Oct 2010 18:11:01 +0100

Thanks, I tried changing the check to

( ‘host2’, ‘wmic_process’, ‘w3wp.exe’, None ),

But I get this error:

UNKNOWN - invalid output from plugin section <<>> or error in check type

wmic_process

Do I need to enable the plugin somehow?

On Sat, Oct 23, 2010 at 5:50 PM, Tuxclouds Support > > > > > > support@tuxclouds.org wrote:

    I guess you're trying to use linux ps but you'll have to use

    wmic_process.



    --

    with kind regards



    Tuxclouds Support

    [http://tuxclouds.org](http://tuxclouds.org)

    [http://exchange.check-mk.org](http://exchange.check-mk.org)







    -------- Weitergeleitete Nachricht --------





    Von: Aled Jones <d.aled.jones@gmail.com>

    An: checkmk-en@lists.mathias-kettner.de

    Betreff: [Check_mk (english)] Problem monitoring Windows

    processes

    Datum: Sat, 23 Oct 2010 17:40:59 +0100





    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](http://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 <lambda>

       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





    _______________________________________________

    checkmk-en mailing list

    checkmk-en@lists.mathias-kettner.de

    [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


Rutger Blom
Luzernvägen 14
227 38 LUND
Sweden
Tel. +46 763 46 99 44
www.rutgerblom.com


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

An older version of the agent didn't handle spaces
in the directory path to local\ correctly.

I found what the problem was here, I had installed the check_mk_agent in

to

the 'Program Files' directory on the Windows box. Seems this breaks the
output of the <<local>> section.
I removed the agent and then installed it in the root dir, works ok now.

Thanks again.

I'm using ps to monitor windows processes. Should work shouldn't it?

Rutger

Thanks for that, I hadnt seen that page before, must have missed it
somehow.
I'll have a play around and see if I can figure it out.
Thanks for your help

Hi,

And here:

............
This check uses the output of wmic process in order to monitor the
ressource consumption of processes on Windows servers. On the target
host this check needs the command line utility wmic and the agent
plugin
wmicchecks.bat (in the subdirectory plugins below the directory where
check_mk_agent.exe is located).
..............

Like this:

# Monitor ressources used by SSHD processes.
# Warn at 20MB RAM or 10MB page file or 80% CPU usage
# Critical at 30MB RAM or 15MB page file or 90% CPU usage
checks += [
( "klapp", "wmic_process", "SSHD", ( "sshd.exe", 20, 30, 10, 15, 80,
90)),
]

http://mathias-kettner.de/checkmk_check_wmic_process.html

--
with kind regards

Tuxclouds Support
http://tuxclouds.org
http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------
Von: Aled Jones <d.aled.jones@gmail.com>
An: support@tuxclouds.org
Kopie: checkmk-en@lists.mathias-kettner.de
Betreff: Re: [Check_mk (english)] Problem monitoring Windows

processes

Datum: Sat, 23 Oct 2010 18:11:01 +0100

Thanks, I tried changing the check to
( 'host2', 'wmic_process', 'w3wp.exe', None ),

But I get this error:

UNKNOWN - invalid output from plugin section <<>> or error in check
type
wmic_process

Do I need to enable the plugin somehow?

       I guess you're trying to use linux ps but you'll have to use
       wmic_process.

       --
       with kind regards

       Tuxclouds Support
       http://tuxclouds.org
       http://exchange.check-mk.org

       -------- Weitergeleitete Nachricht --------

       Von: Aled Jones <d.aled.jones@gmail.com>
       An: checkmk-en@lists.mathias-kettner.de
       Betreff: [Check_mk (english)] Problem monitoring Windows
       processes
       Datum: Sat, 23 Oct 2010 17:40:59 +0100

       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 <lambda>
          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

       _______________________________________________
       checkmk-en mailing list
       checkmk-en@lists.mathias-kettner.de
       http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

--
Rutger Blom
Luzernvägen 14
227 38 LUND
Sweden
Tel. +46 763 46 99 44
www.rutgerblom.com

<http://delicious.com/rbml77&gt; <Redirecting...;
<Unlocking Powerful Consumer Connections with Location | FSQ;
<http://www.linkedin.com/in/rutgerblom&gt;
<http://picasaweb.google.com/rutger.blom&gt;

<http://twitter.com/rutgerblom&gt;

···

On Mon, 25 Oct 2010 09:45:50 +0100, Aled Jones <d.aled.jones@gmail.com> wrote:

On Sat, Oct 23, 2010 at 8:06 PM, Rutger Blom <rutger@blokje.net> wrote:

On Sat, Oct 23, 2010 at 8:28 PM, Aled Jones >> <d.aled.jones@gmail.com>wrote:

On Sat, Oct 23, 2010 at 6:39 PM, Tuxclouds Support >>> <support@tuxclouds.org >>> > wrote:

On Sat, Oct 23, 2010 at 5:50 PM, Tuxclouds Support >>>> <support@tuxclouds.org> wrote:

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Thats what I suspected, thanks. For information, I was using Agent Version 1.1.7i2, I’ll update all to the latest release when 1.1.8 goes live.

Danke

···

On Mon, Oct 25, 2010 at 9:48 AM, mk mk@mathias-kettner.de wrote:

An older version of the agent didn’t handle spaces

in the directory path to local\ correctly.

On Mon, 25 Oct 2010 09:45:50 +0100, Aled Jones d.aled.jones@gmail.com > wrote:

I found what the problem was here, I had installed the check_mk_agent in

to

the ‘Program Files’ directory on the Windows box. Seems this breaks the

output of the <> section.

I removed the agent and then installed it in the root dir, works ok now.

Thanks again.

On Sat, Oct 23, 2010 at 8:06 PM, Rutger Blom rutger@blokje.net wrote:

I’m using ps to monitor windows processes. Should work shouldn’t it?

Rutger

On Sat, Oct 23, 2010 at 8:28 PM, Aled Jones > > >> d.aled.jones@gmail.comwrote:

Thanks for that, I hadnt seen that page before, must have missed it

somehow.

I’ll have a play around and see if I can figure it out.

Thanks for your help

On Sat, Oct 23, 2010 at 6:39 PM, Tuxclouds Support > > >>> <support@tuxclouds.org > > >>> > wrote:

Hi,

And here:

This check uses the output of wmic process in order to monitor the

ressource consumption of processes on Windows servers. On the target

host this check needs the command line utility wmic and the agent

plugin

wmicchecks.bat (in the subdirectory plugins below the directory where

check_mk_agent.exe is located).

Like this:

Monitor ressources used by SSHD processes.

Warn at 20MB RAM or 10MB page file or 80% CPU usage

Critical at 30MB RAM or 15MB page file or 90% CPU usage

checks += [

( “klapp”, “wmic_process”, “SSHD”, ( “sshd.exe”, 20, 30, 10, 15, 80,

90)),

]

http://mathias-kettner.de/checkmk_check_wmic_process.html

with kind regards

Tuxclouds Support

http://tuxclouds.org

http://exchange.check-mk.org

-------- Weitergeleitete Nachricht --------

Von: Aled Jones d.aled.jones@gmail.com

An: support@tuxclouds.org

Kopie: checkmk-en@lists.mathias-kettner.de

Betreff: Re: [Check_mk (english)] Problem monitoring Windows

processes

Datum: Sat, 23 Oct 2010 18:11:01 +0100

Thanks, I tried changing the check to

( ‘host2’, ‘wmic_process’, ‘w3wp.exe’, None ),

But I get this error:

UNKNOWN - invalid output from plugin section <<>> or error in check

type

wmic_process

Do I need to enable the plugin somehow?

On Sat, Oct 23, 2010 at 5:50 PM, Tuxclouds Support > > >>>> support@tuxclouds.org wrote:

   I guess you're trying to use linux ps but you'll have to use
   wmic_process.
   --
   with kind regards
   Tuxclouds Support
   [http://tuxclouds.org](http://tuxclouds.org)
   [http://exchange.check-mk.org](http://exchange.check-mk.org)
   -------- Weitergeleitete Nachricht --------
   Von: Aled Jones <d.aled.jones@gmail.com>
   An: checkmk-en@lists.mathias-kettner.de
   Betreff: [Check_mk (english)] Problem monitoring Windows
   processes
   Datum: Sat, 23 Oct 2010 17:40:59 +0100
   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](http://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 <lambda>
      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
   _______________________________________________
   checkmk-en mailing list
   checkmk-en@lists.mathias-kettner.de
   [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Rutger Blom

Luzernvägen 14

227 38 LUND

Sweden

Tel. +46 763 46 99 44

www.rutgerblom.com

<http://delicious.com/rbml77> <http://www.facebook.com/rutgerblom>

<http://foursquare.com/user/rutgerblom>

<http://www.linkedin.com/in/rutgerblom>

<http://picasaweb.google.com/rutger.blom>

<http://twitter.com/rutgerblom>


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en