Page 5 of 5
Re: check_nt!MEMUSE showing wrong info
Posted: Fri Mar 01, 2013 10:06 am
by slansing
Give this one a shot from your Nagios XI server's command line run the following, be sure to change the disk letter after PhysicalDisk(0 to one relevant to your server. Also, be sure to define the MaxWarn= and MaxCrit= values. Lets start with this disk check for an example and then work on finding one you need to use:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H (windows ip goes here) -c CheckCounter -a "Counter:=\\PhysicalDisk(0 C:)\Avg. Disk sec/Transfer" ShowAll MaxWarn= MaxCrit=
Re: check_nt!MEMUSE showing wrong info
Posted: Mon Mar 04, 2013 12:36 am
by lafargeuser
Below is the output
OK: \PhysicalDisk(0 C:)\Avg. Disk sec/Transfer: 0.00153334|'\PhysicalDisk(0 C:)\Avg. Disk sec/Transfer'=0.0015333419936518933;80;90
Re: check_nt!MEMUSE showing wrong info
Posted: Mon Mar 04, 2013 11:33 am
by slansing
Alright great, now we need to choose a performance counter to use. From your windows system navigate to the following:
Code: Select all
Start > All Programs > Accessories > Run
In the Run box type:
Once the Performance Monitor opens you will see a list on the left hand side, from here click the tab labeled Performance Monitor "Should have a graph icon next to it." Once this page opens click the green "+" sign at the top and search for Memory in the listing, then click the "+" sign next to memory to expand the list of performance counters, choose one from the list and let me know which it was. If you would like multiple counters monitored you will need to set up additional services.
Re: check_nt!MEMUSE showing wrong info
Posted: Tue Mar 05, 2013 2:52 am
by lafargeuser
Basically, my concern is to get Used & Actual memory.
I can see there are number of counters available under mem tab tried one of them, but no luck.
/check_nrpe -H 172.17.98.163 -c CheckCounter -a "Counter:=\\Memory Available MBytes" ShowAll MaxWarn=80 MaxCrit=90
CRIT: Counter not found: \Memory Available MBytes: Unable to parse the counter path. Check the format and syntax of the specified path. (C0000BC0)
Re: check_nt!MEMUSE showing wrong info
Posted: Tue Mar 05, 2013 10:36 am
by scottwilkerson
try
Code: Select all
./check_nrpe -H 172.17.98.163 -c CheckCounter -a "Counter:read=\\Memory\\Available MBytes" ShowAll MaxWarn=80 MaxCrit=90
Re: check_nt!MEMUSE showing wrong info
Posted: Wed Mar 06, 2013 12:35 am
by lafargeuser
./check_nrpe -H 172.17.98.163 -c CheckCounter -a "Counter:read=\\Memory\\Available MBytes" ShowAll MaxWarn=80 MaxCrit=90
CRITICAL: read: 1123 > critical|'read'=1123;80;90
Re: check_nt!MEMUSE showing wrong info
Posted: Wed Mar 06, 2013 11:16 am
by lmiltchev
It seems like this is a valid reading...
Re: check_nt!MEMUSE showing wrong info
Posted: Thu Mar 07, 2013 1:36 am
by lafargeuser
I am not convinced with this type of output,
Again , my concern is to get Used & Actual memory.
Re: check_nt!MEMUSE showing wrong info
Posted: Thu Mar 07, 2013 11:27 am
by slansing
The available memory shows exactly what you would see in the Windows Task Manager..
You could simply "for example" set your warning threshold to 1000, and critical to 500, this will let you know when your memory is being eaten up. Used memory out of total memory is not something windows monitors through it's internal performance counters, this would have to be done by some custom plugin magic and number crunching as it is not readily available. A great deal of plugins are based off performance counters and if the information never existed in the counters there would be no way to monitor it besides how I described above.