Page 1 of 1
only physical memory from windows server x64
Posted: Mon Nov 14, 2016 9:31 am
by 01082015
Hello,
I would like to see only the physical memory

in my nagios.
How can I make this?
Yours
Ulrich
_________________________________________
Nagios Core 4.2.1 - NRPE - NSClient++
Re: only physical memory from windows server x64
Posted: Mon Nov 14, 2016 11:25 am
by mcapra
Do you know which version of NSClient++ your remote machine is using? Also which version of Windows Server is being used?
Can you also show the full check command definition you are using to check this machine's memory?
Re: only physical memory from windows server x64
Posted: Tue Nov 15, 2016 9:59 am
by 01082015
The NSClient++ ist 0.5.0 the Server ist a PC with Win10:
The Code I would like to use should be:
In command.cfg
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c '$ARG1$'
in Client-Config:
Code: Select all
define service{
use generic-service
host_name 700-0840
service_description 11_Test-Speicher
check_command check_nrpe!check_memory -a warn 90 crit 95 type=physical
}
But it doesn't work.
Re: only physical memory from windows server x64
Posted: Tue Nov 15, 2016 11:59 am
by rkennedy
Not sure how that would work -
Code: Select all
[root@localhost libexec]# ./check_nrpe -H 192.168.47.8 -c 'check_memory -a warn 90 crit 95 type=physical'
Unknown command(s): check_memory -a warn 90 crit 95 type=physical
I was able to get this working, but not with the correct results (machine has 4GB memory) -
Code: Select all
[root@localhost libexec]# ./check_nrpe -H 192.168.47.8 -c check_memory -a 'type=physical'
OK: physical = 701.828MB|'physical'=0.68537GB;3.19965;3.5996;0;3.99956 'physical %'=17%;79;89;0;100
The final result is using the checkmem wrapper, which reported correctly -
Code: Select all
[root@localhost libexec]# ./check_nrpe -H 192.168.47.8 -c checkmem -a 'type=physical'
OK: physical: Total: 4GB - Used: 695.453MB (16%) - Free: 3.32GB (83%)|'physical'=0.67915GB;3.19965;3.5996;0;3.99956 'physical %'=16%;79;89;0;100
I would adjust your command accordingly, and use checkmem instead of check_memory. I am on an earlier version, so based on that you may be seeing slightly different results.
Code: Select all
[root@localhost libexec]# ./check_nrpe -H 192.168.47.8
I (0.4.3.143 2015-04-29) seem to be doing fine...