What is the best way to monitor a folder for number of files? We would like an alert when a folder size reaches a certain threshold.
Thanks!
Yes, enter that that path into the file count monitor.
There is File Count template you can setup and then you may setup an alert based on that component monitor type by value.
To assign a template through the Manage Application Monitor Templates
page:
1. Log on to your Orion NPM Web Console with an Administrator account.
2. Click Application Performance Monitor in the Modules toolbar.
3. Click APM Settings.
4. Click Manage Application Monitor Templates.
5. Check the checkbox next to the template you want to assign.
6. Click Assign to Node.
7. Select the server node or nodes to which you want to apply the application
monitor template, and then click Next.
8. If suitable credentials already exist, choose the credential from the
Choose Credential list.
9. If suitable credentials do not exist, choose <New Credential> from the
Choose Credential list, and then add the new credential by filling out the
credential details.
10. Click Test to test the credentials and component monitors against the test
node..
11. If the test fails, troubleshoot the problem based on the error messages, and
then retest the node.
12. If the test passes, click Assign Application Monitors.
To setup an alert see:
Configuring Orion APM Alerts
on page 55- for steps.
http://www.solarwinds.com/support/apm/docs/APMAdministratorGuide.pdf
The File Count Monitor = 39 for the component monitor type.
Hope this helps.
Thanks, I was able to find that. For the Full Directory Path field, is it a standard UNC? Example: \\servername\c$\Program Files\Application\folder ?
When I test the Component Monitor it never completes. I've had it running for over an hour now.
I got it working. Thanks Again!
What was the issue? Path or credentials?
I'm sorry but I don't understand what you are asking.
To use file count script create new Windows Script Monitor component in APM, paste script into filed for script body and to field for script arguments enter UNC path and optionally file extension if you want to count only files of one type.
Your initial post was fine. From that I figured I needed to add "File Count Monitor" as opposed to just "File Count". I have the path added now but it's been runing for a long time on an empty folder so I was responding to another post. In the other post he said it ran for a long time then he said it was fixed but didn't specify what he might have changed to fix it. So currently my monitor has been testing for over 20 minutes now on a fodler that is empty and has no subfolders.
My current UNC path is \\10.1.112.180\D$\MSW\Internet\Addressing. I am assuming I don't need to leave in any special characters {$} like the initial example had.
Your current hard-coded path should work fine. Alternatively, you could use the following path with the IP variable ${IP}, which represents the target node's IP address:\\${IP}\D$\MSW\Internet\AddressingThen when you assign the monitor to a node, the IP address for the node will be filled in when the monitor runs.I would suggest you try using the monitor on a non-empty folder for testing. Remember to set the Warning and Critical Thresholds in the monitor, based on when you wish to be notified. For example, if there are 50 files in the directory you might set the warning threshold to 40 and the critical threshold to 60. Then the current value of 50 files should show a Warning status.You can do your testing from the new template page, where you have added the File Count Monitor. Click Change test node and select the node for testing. Then click Test to see the results.Hope this helps,Mike
Hi Mark, i am getting "Directory Not Found" error while trying to monitor the Folder using "File Count" template in SAM SolarWinds. for all the serves i am getting the same error.
Can you post a screenshot of how you are putting the file path?