Incorrect Performance Data

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

Incorrect Performance Data

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Incorrect Performance Data

Post by cdienger »

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

Re: Incorrect Performance Data

Post by rlinux57 »

Actually i am using

Code: Select all

free -b
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:

Re: Incorrect Performance Data

Post by scottwilkerson »

Can you send the full plugin?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Incorrect Performance Data

Post by rlinux57 »

I have sent you in private message.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Incorrect Performance Data

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Incorrect Performance Data

Post by rlinux57 »

That means, I have to use

Code: Select all

free -m
in order to calculate used memory. RIght ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Incorrect Performance Data

Post by scottwilkerson »

I think it is actually correct

Code: Select all

67425505280 \ 1024 \ 1024 = 64301MB
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Incorrect Performance Data

Post by scottwilkerson »

I think it is actually correct

Code: Select all

67425505280 \ 1024 \ 1024 = 64301MB
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Incorrect Performance Data

Post 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 ?
Locked