New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Check for Website error codes

Votes:

0

Your Vote:

Up

Down

hi , I need to add sensor to website to check for error code like 500,404,401. or if it is 200 then say OK .How can I achieve it ? I need to do this with IIS logs.Only reading IIS log file and searching for particular string e.g. 500 using File Content sensor will not work as it will show 500 anywhere in logs though its not error code. What is best way to monitor IIS logs for such error codes?

Thank you in advance!

custom-sensor iis website

Created on Dec 27, 2017 12:51:59 PM by  Madhuri (0) 1



3 Replies

Votes:

0

Your Vote:

Up

Down

Hi,

Check this link, this should allow you to distinguish between the status.

Best, Felix

Created on Dec 28, 2017 9:26:54 PM by  Felix Saure [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thank you for your reply. But I don't want to use HTTP sensor for this. I only need to check IIS log files for such error codes. What should I do?

Created on Jan 1, 2018 6:44:33 AM by  Madhuri (0) 1



Votes:

0

Your Vote:

Up

Down

The File Content Sensor allows you to check log files for particular words. Please note that the sensor just works for files which do not change their names. If the name changes, you can write your own script, the required syntax is described on the Setup > PRTG API > Custom Sensors page.

Best regards, Felix

Created on Jan 1, 2018 9:27:13 AM by  Felix Saure [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.