only physical memory from windows server x64

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
01082015
Posts: 2
Joined: Mon Nov 14, 2016 7:59 am

only physical memory from windows server x64

Post by 01082015 »

Hello,

I would like to see only the physical memory :shock: in my nagios.

How can I make this?

Yours
Ulrich
_________________________________________
Nagios Core 4.2.1 - NRPE - NSClient++
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: only physical memory from windows server x64

Post 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?
Former Nagios employee
https://www.mcapra.com/
01082015
Posts: 2
Joined: Mon Nov 14, 2016 7:59 am

Re: only physical memory from windows server x64

Post by 01082015 »

The NSClient++ ist 0.5.0 the Server ist a PC with Win10:
Nagios_Core_4_nsclient.png
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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: only physical memory from windows server x64

Post 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...
Former Nagios Employee
Locked