Is it possible to monitor overall CPU load/Free Memory/Disk Space/etc through WMI? This install is at an army base, and the only snmp allowed is version 3 and for the life of me I can't seem to get net-snmp configured to monitor these.
It's not currently possibly with Orion or APM to monitor the overall CPU/Memory or any disk space information using WMI or SNMP. You might want to take a look at installing SNMP Informant on your servers, which will make then accessible via SNMPv3. Then you can use Orion to monitor these performance metrics. No APM needed.
I'll look, I was hoping to not have to install/purchase anything else. It looks like informant requires nudesign or some other snmpv3 agent to work, I'll have to see if I can get it to work with net-snmp.
You are correct but $20.00 for NuDesign's SNMP Agent might be worth it in the end. Good luck.
APM 2.0 will have script monitors that will allow you to collect data from Linux and Unix machines use of SNMP. You'll just need an SSH connection. We will provide some scripts out of the box. You will also be able to leverage Nagios scripts, which should give you a substantial library to choose from.
Any idea when 2.0 is going to be released? Will windows nagios scripts work also? It's to bad wmi isn't fully supported, being on an army network, snmpv3 isn't allowed on windows machines, not being able to monitor disk, cpu, memory on the windows systems greatly limits the usefullness of the tool.
Any idea when 2.0 is going to be released?
Yes, but I can't tell you. :-)
Will windows nagios scripts work also?
No. the windows nagios scripts require the nagios agent.
It's to bad wmi isn't fully supported, being on an army network
APM 2.0 will allow you to monitor any WMI performance counter, so I'd call that full support.
No hints on release time frame?
No, seriously, I'm not allowed to say. Soon.
;-P
Just noticed it was an available download on my account.
Go to the AppBuilder and do a WMI Performance Counter Monitor. From their, you can browse to your server and find the WMI counters on a target machine. I think the one you're looking for is Logical Disk and % Free Space.
Thanks Denny, I think I have it now. There are two other items that I have questions about. First is the settings for Statistic Warning Threshold and Statistic Critical Threshold. Both state "Assigns warning status to the component if the statistic value equals orexceeds this threshold", but since I am looking at % of free disk space, lower numbers are bad, not higher numbers. If I want to set the warning for 25% free disk space and the critical threshold at 10% free disk space, how can I do that? I entered 25.00 and 10.00 into the respected fields, but the way these work, I am always getting Warnings as my current 94% is greater than 10%. Is there a way around this? Secondly, is there a document available that describes how to use Orion to send out alerts based on APM events? I found a little bit of info in the Admin Guide, but not enough to understand what I am trying to do. For example, I would like an email alert to be sent to me when my % free monior hits both the critical and warning levels.
Jon
Jon, you're looking for a "% disk space used" WMI counter, but I don't think it exists. What I do know is we can write a short little Windows script that runs calculations on the WMI counters to give us a value that is the % disk spaced used. That would then let us set our warning/critical thresholds and get the results that we expect.
Here's a script that does exactly what I just described. It gets the raw percent free WMI counter for the C: instance, and performs the necessary arithmetic to give us the % of used disk space.
Notes:We're using the raw counters here instead of formatted counters to be as backwards compatible as possible -- Windows 2000 doesn't have the snazzy formatted counters of the later OS releases.
Change the strComputer assignment to the IP address of the computer you want to monitor.
If you want to monitor some other logical drive, change the drive letter in the Select statement.
Every script that APM runs has to output the string "Statistic:xxx", where xxx is some value. This is the value that APM uses to determine whether the component has exceeded any thresholds.
strComputer = "127.0.0.1"Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colDisks = objWMIService.ExecQuery _ ("Select * from Win32_PerfRawData_PerfDisk_LogicalDisk Where Name = 'C:'")For Each objDisk in colDisks intBaseValue = objDisk.PercentFreeSpace_Base dblActualUsedSpace = 100 - ((100 * objDisk.PercentFreeSpace) / intBaseValue) WScript.Echo "Statistic:" & Int(dblActualUsedSpace)Next
1. Add an Administrator Credential for the Windows Servera. Click APM Settings, and then click Credential Library.b. Add a credential that has administrator-level access to the Windows server you want to monitor. I named mine "Admin". Whatever you name it, just be sure you can recall it later.
2. Create a Windows Script component monitor in AppBuilder.a. Click APM Settings, and then click AppBuilder.b. Select Windows Script Monitor as your component type, and then click Next.c. Select <Create a new component monitor>, and then click Next.d. Type a descriptive name for this component such as "Drive C: Space Used (%)"e. Select the administrator-level credential for this server from the Credential for Monitoring list.f. Copy and paste the "Used Disk Space" script from this post into the Script Body field.g. Set a sensible warning and critical statistic threshold. I used 50 and 90, respectively.h. Click Next.
3. Make a template from this component monitor so that you can reuse it.a. Click New Application Monitor Template, and type a descriptive name for this template such as "Logical Disk Usage Statistics - WMI"b. Click Next.
4. Assign the template to the server you want to monitor.a. Expand the nodes to locate the server you want to monitor.b. Check the server name, and then click Next.c. Click OK, Create.
5. Check the status and other details of your application monitor.a. Click APM Settings, and then click Component Monitor Library.b. Expand the Windows Script Monitor node.c. Expand the Application Monitors containing Windows Script Monitor node.d. Click the Logical Disk Usage Statistics - WMI monitor for your server to view the details.
The disk is 71% full, and we're in a warning state because we set our warning threshold to 50%.
There are a number of online resources you can use to investigate other methods in which you can use Windows Scripts to query the WMI counters to come up with other derivative statistics. For example, you could subtract the counter for Disk Used from Disk Size to get a Disk Remaining value representing the number of megabytes free on the drive, and then set your thresholds in "MBs free" instead of a percentage.
To start, I would point you to the Microsoft Scripting Clinic article "How's My Driving? Monitoring Performance Using WMI"http://msdn.microsoft.com/en-us/library/ms974615.aspx
I'd also recommend Microsoft's Scriptomatic Tool that can help you create WMI scripts.http://www.microsoft.com/downloads/details.aspx?familyid=09dfc342-648b-4119-b7eb-783b0f7d1178
-Roger
Hi Roger,
Thank you very much for this! I am running into an issue though. I created everything as described, but I keep getting an "Application Status is Down". Specifically, it states "The return code is different than expected. The script returned status code DOWN."