Page 1 of 1

mem check reporting not exactly

Posted: Fri Apr 10, 2020 12:14 am
by scharft
hi,

we have 2 very importand vm's with very early memory alerts configured => MEMUSE -w 60 -c 70
The situation is, that actually on both vm's 65% of memory consumed but we received no alert.
Regarding: https://support.nagios.com/forum/viewto ... 16&t=54910
Plese calculate the value we should use for warning and critical:

Get-WmiObject -Class Win32_ComputerSystem TotalPhysicalMemory
__GENUS : 2
__CLASS : Win32_ComputerSystem
__SUPERCLASS :
__DYNASTY :
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
TotalPhysicalMemory : 25769332736
PSComputerName :


thanks in advanced

best regards

Re: mem check reporting not exactly

Posted: Fri Apr 10, 2020 10:01 am
by lmiltchev
Let's clarify the actual issue that you are having. Are you saying that your check doesn't return the correct value for memory use or you are simple not being notified about the problem?

Can you show us the actual command that you are using, run from the command line, along with the output of it?

Do you see a notification about the issue in the Notifications report?

Reports > Available Reports > Notifications

Re: mem check reporting not exactly

Posted: Tue Apr 21, 2020 7:10 am
by scharft
in may case, both:

Nagios doesn't show the exact value of the available and consumed memory and we don't get a notification for warning (60%) or critical (70%).

[nagios@atvinag003 ~]$ /usr/local/nagios/libexec/check_nt -H atvi31afs926 -p 1248 -s xxxxx -v MEMUSE -w 60 -c 70
Memory usage: total:97152.38 MB - used: 17416.42 MB (18%) - free: 79735.97 MB (82%) | 'Memory usage'=17416.42MB;58291.43;68006.67;0.00;97152.38
(btw: the memory has been increased to 48000mb)

Re: mem check reporting not exactly

Posted: Tue Apr 21, 2020 9:02 am
by lmiltchev
I would recommend that you try using check_nrpe instead of check_nt. For more information on the topic, please review the KB article below:

https://support.nagios.com/kb/article.php?id=169