Incorrect Performance Data

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Incorrect Performance Data

Postby 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
rlinux57
 
Posts: 300
Joined: Mon Dec 08, 2014 12:03 am

Re: Incorrect Performance Data

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

Re: Incorrect Performance Data

Postby rlinux57 » Thu Aug 09, 2018 8:04 am

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))
rlinux57
 
Posts: 300
Joined: Mon Dec 08, 2014 12:03 am

Re: Incorrect Performance Data

Postby scottwilkerson » Thu Aug 09, 2018 5:17 pm

Can you send the full plugin?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Incorrect Performance Data

Postby rlinux57 » Fri Aug 10, 2018 12:27 am

I have sent you in private message.
rlinux57
 
Posts: 300
Joined: Mon Dec 08, 2014 12:03 am

Re: Incorrect Performance Data

Postby 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Incorrect Performance Data

Postby rlinux57 » Fri Aug 10, 2018 1:18 pm

That means, I have to use
Code: Select all
free -m
in order to calculate used memory. RIght ?
rlinux57
 
Posts: 300
Joined: Mon Dec 08, 2014 12:03 am

Re: Incorrect Performance Data

Postby scottwilkerson » Fri Aug 10, 2018 1:55 pm

I think it is actually correct

Code: Select all
67425505280 \ 1024 \ 1024 = 64301MB
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Incorrect Performance Data

Postby scottwilkerson » Fri Aug 10, 2018 2:09 pm

I think it is actually correct

Code: Select all
67425505280 \ 1024 \ 1024 = 64301MB
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Incorrect Performance Data

Postby 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 ?
rlinux57
 
Posts: 300
Joined: Mon Dec 08, 2014 12:03 am

Next

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 18 guests