Page 1 of 2
Incorrect Performance Data
Posted: Wed Aug 01, 2018 2:16 am
by rlinux57
Hi,
I am getting incorrect information in performance data. It should be shown
TOTAL=64301000000 and onwards used,cache and buffer.
Code: Select all
Status Information: Memory: OK Total: 64301 MB - Used: 11755 MB - 18% used
[b]Performance Data: TOTAL=67425505280;;;; USED=12324757504;;;; CACHE=1164283904;;;; BUFFER=334974976[/b]
How can i fix it ?
Thank you,
rlinux57
Re: Incorrect Performance Data
Posted: Fri Aug 03, 2018 1:35 pm
by cdienger
What plugin is this the output of? What is the exact command that is being run to get it?
Re: Incorrect Performance Data
Posted: Thu Aug 09, 2018 8:04 am
by rlinux57
Actually i am using
command in order to get the output and grep free, buffer and cache and saved in a variable and use below formula in order to get used memory.
Code: Select all
memUsed_b=$(($memTotal_b-$memFree_b-$memBuffer_b-$memCache_b))
Re: Incorrect Performance Data
Posted: Thu Aug 09, 2018 5:17 pm
by scottwilkerson
Can you send the full plugin?
Re: Incorrect Performance Data
Posted: Fri Aug 10, 2018 12:27 am
by rlinux57
I have sent you in private message.
Re: Incorrect Performance Data
Posted: Fri Aug 10, 2018 7:31 am
by scottwilkerson
So the performance data uses free -b, whereas the output uses free -m
You should compare these outputs on your machine, they will likely not be equivalent.
Re: Incorrect Performance Data
Posted: Fri Aug 10, 2018 1:18 pm
by rlinux57
That means, I have to use
in order to calculate used memory. RIght ?
Re: Incorrect Performance Data
Posted: Fri Aug 10, 2018 1:55 pm
by scottwilkerson
I think it is actually correct
Code: Select all
67425505280 \ 1024 \ 1024 = 64301MB
Re: Incorrect Performance Data
Posted: Fri Aug 10, 2018 2:09 pm
by scottwilkerson
I think it is actually correct
Code: Select all
67425505280 \ 1024 \ 1024 = 64301MB
Re: Incorrect Performance Data
Posted: Thu Aug 16, 2018 5:10 am
by rlinux57
Right but when i used `free -m` then performance data gets down in pnp4nagios. And when i revert back to `free -b` It's working again. What would be the issue ?