Page 1 of 1

HTTP checking for File

Posted: Mon Nov 17, 2014 5:37 am
by nagios365
Hi,

I wonder if you can help me, what I need to do is check for a file on my web servers (test.txt)

e.g.
http://Server/test.txt

How can I create a custom command to check for this file?

Many thanks,
N

Re: HTTP checking for File

Posted: Mon Nov 17, 2014 5:56 am
by rhassing
The default check_http should be able to check the file.
If you want to build something yourself and the webserver is running linux, you could use snmp to test the file.

The following link describes how to do so:
http://mona.deltics.info/?page_id=107

Re: HTTP checking for File

Posted: Mon Nov 17, 2014 2:05 pm
by abrist
Do you just want to check for the existence of the file, or a string inside the file?