I have IIS configured to report failed requests into a specific folder. It is very simple: If a web page request fails because of an application error then a file is created in C:\inetpub\logs\FailedReqLog|Files\.
I would like to monitor that folder and have it reported to Zabbix.
I will delete the file when I deal with the error.
Here are the options as I see them:
1. Have Zabbix run a user script to poll the contents of that folder every 15 minutes. If file exists report failed, if file does not exist then clear failures.
2. Write a C# or powershell program that uses the FileSystemWatcher routines to immediately alert that a file exists and send an alert to Zabbix.
Here are my questions:
A. Is option 1 or 2 preferred or is there a better option.
B. If I am polling then each polling would return a that it failed. How would I configure zabbix to only show the latest failure.
C. Is there anything else I should be aware of in monitoring IIS?
D. How can I get the number of active sessions in IIS. I want to graph them in Zabbix.
I would like to monitor that folder and have it reported to Zabbix.
I will delete the file when I deal with the error.
Here are the options as I see them:
1. Have Zabbix run a user script to poll the contents of that folder every 15 minutes. If file exists report failed, if file does not exist then clear failures.
2. Write a C# or powershell program that uses the FileSystemWatcher routines to immediately alert that a file exists and send an alert to Zabbix.
Here are my questions:
A. Is option 1 or 2 preferred or is there a better option.
B. If I am polling then each polling would return a that it failed. How would I configure zabbix to only show the latest failure.
C. Is there anything else I should be aware of in monitoring IIS?
D. How can I get the number of active sessions in IIS. I want to graph them in Zabbix.