To get ram usage in terms of gigabyte (GB) for windows
Posted: Tue Aug 04, 2015 7:26 am
Hello all,
I am trying to configure Nagios 4.08 for monitoring both Windows and Linux machines in our network. Attached an output of test configuration of windows machine.
I want to get memory values in two part; physical and total memory and terms in GB. To get the values in GB I use check_nrpe command like below because check_nt not shows values in GB.
Services defined in Nagios as;
define service{
use generic-service
host_name Muammer_pc
service_description NRPE-RAM Usage Total
check_command check_nrpe!alias_mem_tot
}
define service{
use generic-service
host_name Muammer_pc
service_description NRPE-RAM Usage Physical
check_command check_nrpe!alias_mem_phy
}
and aliases defined in the nsclient.ini as;
alias_mem_phy = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
alias_mem_tot = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
Questions:
1. Test machine has 4GB physical memory and alias_mem_phy shows 3.59GB. May this value be true?
2. alias_mem_tot gives some values like "virtual memory: Total: 8T - Used: 361M (0%) - Free: 8T (100%)". What these 8T and 361M values stands for?
3. How can I get total memory usage in GB for windows hosts?
Any help appreciated.
Muammer
I am trying to configure Nagios 4.08 for monitoring both Windows and Linux machines in our network. Attached an output of test configuration of windows machine.
I want to get memory values in two part; physical and total memory and terms in GB. To get the values in GB I use check_nrpe command like below because check_nt not shows values in GB.
Services defined in Nagios as;
define service{
use generic-service
host_name Muammer_pc
service_description NRPE-RAM Usage Total
check_command check_nrpe!alias_mem_tot
}
define service{
use generic-service
host_name Muammer_pc
service_description NRPE-RAM Usage Physical
check_command check_nrpe!alias_mem_phy
}
and aliases defined in the nsclient.ini as;
alias_mem_phy = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
alias_mem_tot = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
Questions:
1. Test machine has 4GB physical memory and alias_mem_phy shows 3.59GB. May this value be true?
2. alias_mem_tot gives some values like "virtual memory: Total: 8T - Used: 361M (0%) - Free: 8T (100%)". What these 8T and 361M values stands for?
3. How can I get total memory usage in GB for windows hosts?
Any help appreciated.
Muammer