I'm trying to roll out SAM monitoring to our infrastructure (version 6.4.0). There's a lot of really neat things that can be monitored out-of-the-box, but also flexibility to add whatever we need. I created an application template to monitor all the "gotchas" in our environment, however, when I apply it to VMs in our environment, the host CPU usages spike to 100%. I'm sure it's just that I need to optimize the application monitors, but I need some assistance. We have 9 hosts and if I add this application template to 20 VMs, most of them immediately spike to 100%. Without the application template, the hosts sit between 50-80% CPU usage. I already tried adjusting some of the fetching methods from WMI to RPC, but I'm not noticing a difference.
I also understand this could be tricky, but I'm going to try my best to communicate what I have in the monitors. Any assistance is appreciated.
I've attached the script for the PowerShell monitors. It just reports free disk space, with the drive as an argument.
1. Directory Size Monitor
Path = \\${IP}\c$\Windows\Logs\CBS
Extension Filter = *
Include subdirectories? No
Convert returned value? Yes, XtoMega(${Statistic})
Warning > 1000
Critical > 2000
2. Windows PowerShell Monitor
Execution Mode = Local Host
Convert returned value? Yes, Truncate(XtoMega(${Statistic}),2)
Warning < 2000
Critical < 1000
3. Windows PowerShell Monitor
Execution Mode = Local Host
Convert returned value? Yes, Truncate(XtoMega(${Statistic}),2)
Warning < 2000
Critical < 1000
4. Windows Service Monitor
Fetching method = RPC
Service Name = <specified>
5. Windows Service Monitor
Fetching method = RPC
Service Name = <specified>
6. Process Monitor - Windows
Fetching method = WMI
Process Name = <specified>
7. Windows Event Log Monitor
Fetching method = RPC
Log Source = <specified>
Event ID = Find all IDs
8. Windows Event Log Monitor
Fetching method = RPC
Log Source = <specified>
Event ID = Find all IDs
9. Directory Size Monitor
Path = \\${IP}\c$\$Recycle.Bin
Extension Filter = *
Include subdirectories? Yes
Convert returned value? Yes, XtoMega(${Statistic})
Warning > 1000
Critical > 2000
10. Windows Service Monitor
Fetching method = RPC
Service Name = <specified>
11. Windows Service Monitor
Fetching method = RPC
Service Name = <specified>
12. Directory Size Monitor
Path = \\${IP}\c$\ProgramData\Microsoft\Windows\WER
Extension Filter = *
Include subdirectories? Yes
Convert returned value? Yes, XtoMega(${Statistic})
Warning > 1000
Critical > 2000