Problem with performance data using range with check_procs plugin

This forum was archived to /woltlab and is now in read-only mode.
  • Hi.


    I've a problem with Performance Data in my Icinga 2 / Icinga Web 2installation, using
    nagios plugin check_procs, (version 2.0.3).
    I've tryed to use the monitoring-plugins's one too, version 2.1.2, but the
    problem is the same.


    For example I want to check that are running exactly 5 instances of a
    particural process:


    apply Service "NAMEOFPROC" {
    import "generic-service"
    command_endpoint = host.name
    check_command = "procs"
    vars.procs_warning = "5:5"
    vars.procs_critical = "5:5"
    vars.procs_command = "NAMEOFPROC"
    assign where host.vars.os == "Linux"
    }


    But into my Icinga Web 2 console, under Performance Data, I see:


    Label Value Warning Critical
    procs 5.00 0.00 0.00


    Warning and Critical values are not displayed correctly, are all set to 0.


    But if I don't use ranges it works correcly, like this example, to monitor
    Apache processes:


    apply Service "httpd" {
    import "generic-service"
    command_endpoint = host.name
    check_command = "procs"
    vars.procs_warning = "30"
    vars.procs_critical = "50"
    vars.procs_command = "httpd"
    assign where host.vars.apacheserver
    }


    Label Value Warning Critical
    procs 11.00 30.00 50.00


    I'm using Graphite module to graph my environment, with graphite-web and
    python-carbon.
    What could be the problem?


    I've found a workaround, but it's NOT the solution:


    apply Service "ntpd" {
    import "generic-service"
    command_endpoint = host.name
    check_command = "procs"
    vars.procs_warning = "2"
    vars.procs_critical = "1:1"
    vars.procs_command = "ntpd"
    assign where host.vars.os == "Linux"
    }


    Plugin Output
    PROCS CRITICAL: 0 processes with command name 'ntpd'


    Performance data
    Label Value Warning Critical
    procs 0.00 2.00 0.00


    In this way I've got the Critical state into Icinga Web 2 and a value only
    for the Warning state into Graphite.


    But ... it's NOT the solution.
    Any other ideas?


    Thanks, bye.
    Morgan