In Grafana, I have set up a dashboard with graphs that monitor memory usage based on the following Nagios command and service definitions
Code: Select all
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
define service{
use generic-service
#host_name MyServer
hostgroup_name MyServers
service_description Win_TotMem_NT
check_command check_nt!MEMUSE!-w 90 -c 95
}
Code: Select all
define command{
command_name check_nrpe_totmem
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckMEM -a MaxWarn=80% MaxCrit=90% ShowAll=long
}
define service{
use generic-service
#host_name MyServer
hostgroup_name MyServers
service_description Win_TotMem_NRPE
check_command check_nrpe_totmem
}
I have the Y Axis unit set to megabytes and whilst check_nt reports values in the range 2.0-3.0 GB, check_nrpe shows minimal MB values.
I'm assuming that this is something to do with the way in which the check_nrpe data is parsing, but I have no idea as to where to start in resolving this, so any advice would be gratefully received!
Thanks in advance
Pete