Check_memory - different output when using threshold

(Oliver Tatzmann) #1

Hi,

just recognized, when I add thresholds to “check_memory” is returns different values.
here are the results - ran a few seconds after each other

OMD[monitoring@apu-monitoring]:~/monitoring-scripts$ /omd/sites/monitoring/local/lib/nagios/plugins/check_nrpe_deb -H 192.168.x -c check_memory
WARNING: committed = 19.498GB, physical = 16.065GB|'committed'=19.49788GB;28.79785;32.39759;0;35.99732 'committed %'=54%;80;90;0;100 'physical'=16.06514GB;14.39965;16.1996;0;17.99956 'physical %'=89%;80;90;0;100
OMD[monitoring@apu-monitoring]:~/monitoring-scripts$ /omd/sites/monitoring/local/lib/nagios/plugins/check_nrpe_deb -H 192.168.x -c check_memory -a "warn=free < 15%" "crit=free < 10%"
WARNING: committed = 19.509GB, physical = 16.069GB|'committed'=16.48872GB;5.39959;3.59973;0;35.99732 'committed %'=46%;15;10;0;100 'physical'=1.93053GB;2.69993;1.79995;0;17.99956 'physical %'=11%;15;10;0;100

OMD[monitoring@apu-monitoring]:~/monitoring-scripts$ /omd/sites/monitoring/local/lib/nagios/plugins/check_nrpe_deb -H 192.168.x -c check_memory
WARNING: committed = 19.495GB, physical = 16.067GB|'committed'=19.49508GB;28.79785;32.39759;0;35.99732 'committed %'=54%;80;90;0;100 'physical'=16.06724GB;14.39965;16.1996;0;17.99956 'physical %'=89%;80;90;0;100
OMD[monitoring@apu-monitoring]:~/monitoring-scripts$ /omd/sites/monitoring/local/lib/nagios/plugins/check_nrpe_deb -H 192.168.x -c check_memory -a "warn=free < 15%" "crit=free < 10%"
WARNING: committed = 19.494GB, physical = 16.066GB|'committed'=16.5037GB;5.39959;3.59973;0;35.99732 'committed %'=46%;15;10;0;100 'physical'=1.93337GB;2.69993;1.79995;0;17.99956 'physical %'=11%;15;10;0;100

Any idea?
Cheers
Oli

#2

I’d guess that 80 and 90 are the default values for used memory. You set values for free memory which influence the thresholds as well.

(Oliver Tatzmann) #3

but why is the current value (Perfdata) diffrent when i use thresholds

#4

Might be an error but probably somebody else can give a more authoritative answer :wink: .