Page 1 of 1

Graph not working for Memory Usage plugin

Posted: Fri Jan 03, 2020 6:07 am
by CentricIT
Hi,

check_nrpe plugin is not giving us a graph result on our Nagios.

We are creating a dashboard for all the services under the hosts, before that we have used the check_nt plugin to check the memory status.
currently, we are using the check_nrpe plugin to monitor memory usage, after using nrpe plugin we are unable to get the graphs in the dashboard.

Below command, we are using for the memory usage

$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckMEM -a MaxWarn=$ARG1$% MaxCrit=$ARG2$% ShowAll=long type=physical

kindly check and share with us the solution for it.

Regards,
CentricIT

Re: Graph not working for Memory Usage plugin

Posted: Fri Jan 03, 2020 8:29 am
by scottwilkerson
If you just changed the command from check_nt to check_nrpe you need to remove the old performance graph RRD file because once the command changes the number of datapoints will change

it can be found in a path like this

Code: Select all

rm -f /usr/local/nagios/share/perfdata/<HOSTNAME>/Memory_Usage.rrd
<HOSTNAME> would be replaced with the host name this service is on
Memory_Usage would be replaced with the service description for this check