Linux System Check_Mem output Shows Negative Value

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nsupport
Posts: 1
Joined: Tue Jan 03, 2017 4:17 am

Linux System Check_Mem output Shows Negative Value

Post by nsupport »

We have identified that Redhat OS 7 servers memory usage output getting negative value. Please find the status below.




We are currently using Check_mem script on agent end. In this script calculating Real memory Usage value getting from “free” command (Real memory value is not a Used memory value). Please find the Real Memory Value calculation below.

Real Memory Value= Total Used(573424) - Total Buffer Ram(6716180) - Total Ram Caching(not available, But taking Available value)

Script is getting the wrong value (Available Value)







So We should be modified the script on agent end, to avoid confusion in future we have raised a case with vendor to provide the script for both version( Rhel 6 & 7)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Linux System Check_Mem output Shows Negative Value

Post by rkennedy »

So We should be modified the script on agent end, to avoid confusion in future we have raised a case with vendor to provide the script for both version( Rhel 6 & 7)
It sounds like you're getting this handled. Nagios only reports what is shown as an output from a plugin, so we're a bit limited when it comes to changing what will result.

Did you have any further questions for us?

If so, please provide the following -
1. The plugin
2. Your check_command on the Nagios machine
3. Your service definition that goes with the check_command
4. How you have the command defined on the client side, in your NRPE configuration
5. Any other applicable information you think would be useful for us to re-create this in house.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Linux System Check_Mem output Shows Negative Value

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
Locked