Page 1 of 1

Memory Graph not available for Linux servers

Posted: Thu Mar 08, 2018 1:14 pm
by naranant
Hello,

Need help with performance graph for the memory usage for the Linux servers. The data is not getting recorded as it is not reflecting any changes in the value. This is started happening after using the new script for the memory.

I am attaching both the screenshot of the graph as well as the memory script we are using. Please help in troubleshooting this issue

This is the command we are using.

check_nrpe!check_memory! -a '-w 10 -c 5 -n'

Re: Memory Graph not available for Linux servers

Posted: Thu Mar 08, 2018 1:35 pm
by scottwilkerson
If you change the plugin for the memory you need to remove the current performance data because the new script likely has different performace metrics and they would need to be exactly the same

to remove the old performance data you need to move or delete the old files, and they are named in a structure like this

/usr/local/nagios/share/perfdata/HOSTNAME/SERVICENAME.*

so to move the PING service from localhost to /tmp I would run the following

Code: Select all

mv /usr/local/nagios/share/perfdata/localhost/PING.* /tmp
Now the next time the service runs 2 times it will create a new .xml and .rrd file with the performance metrics