Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Wed Aug 01, 2018 2:16 am
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
cdienger
Support Tech
Posts: 5045 Joined: Tue Feb 07, 2017 11:26 am
Post
by cdienger » Fri Aug 03, 2018 1:35 pm
What plugin is this the output of? What is the exact command that is being run to get it?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Aug 09, 2018 8:04 am
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))
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Aug 09, 2018 5:17 pm
Can you send the full plugin?
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Fri Aug 10, 2018 12:27 am
I have sent you in private message.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 10, 2018 7:31 am
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.
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Fri Aug 10, 2018 1:18 pm
That means, I have to use
in order to calculate used memory. RIght ?
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 10, 2018 1:55 pm
I think it is actually correct
Code: Select all
67425505280 \ 1024 \ 1024 = 64301MB
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 10, 2018 2:09 pm
I think it is actually correct
Code: Select all
67425505280 \ 1024 \ 1024 = 64301MB
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Aug 16, 2018 5:10 am
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 ?