PNP4nagios - NO graph for some monitored service

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


    When I use nrpe to monitor the Disk/Memory/CPU utilization for my windows servers, the problem I get is, missing graph.


    the service.conf configuration shows in below


    apply Service "WinDisk" {


    import "system-service"

    check_command = "nrpe"

    vars.host = "$host.address$"

    vars.nrpe_command = "check_drivesize"

    # vars.nrpe_arguments = ["10%!5%"]

    vars.notification["mail"] = {

    groups = [ "icingaadmins" ]

    }


    assign where host.vars.windisk


    }


    apply Service "WinCPU" {


    import "system-service"

    check_command = "nrpe"

    vars.host = "$host.address$"

    vars.nrpe_command = "check_cpu"

    # vars.nrpe_arguments = "drive=*"

    vars.notification["mail"] = {

    groups = [ "icingaadmins" ]

    }


    assign where host.vars.wincpu


    }


    apply Service "WinMEM" {


    import "system-service"

    check_command = "nrpe"

    vars.host = "$host.address$"

    vars.nrpe_command = "check_memory"

    # vars.nrpe_arguments = "drive=*"

    vars.notification["mail"] = {

    groups = [ "icingaadmins" ]

    }


    assign where host.vars.winmem


    }


    and seems like pnp4nagios is using default template to display the graph


    for the check_cpu, I've put a template "check_cpu.php" to folder /usr/share/pnp4nagios/html/templates.dist

    but still does not have graph display.


    Can someone help to educate how to fix this?



    Appreciate!

  • Verify that the plugin provides valid performance data output. You can check that with a manual command run, or by looking into Icinga Web 2 in the Perfdata section.


    If the plugin does not provide any, Icinga 2 PerfdataWriter won't forward anything to NPCD which in turn doesn't write RRD files. You may also check the files on disk being updated, or NPCD's log file for stale update error messages.

  • hello


    When I check with command manually, there are result generated.


    root@ip-172-16-115-17:/usr/lib/nagios/plugins# ./check_nrpe -H 172.16.201.0 -c check_drivesize

    OK All 1 drive(s) are ok|'C:\ used'=18.42268GB;23.72499;26.69062;0;29.65624 'C:\ used %'=62%;80;90;0;100


    root@ip-172-16-115-17:/usr/lib/nagios/plugins# ./check_nrpe -H 172.16.201.0 -c check_cpu

    OK: CPU load is ok.|'total 5m'=0%;80;90 'total 1m'=0%;80;90 'total 5s'=0%;80;90


    Thanks