HTTP checking for File

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagios365
Posts: 4
Joined: Thu Oct 16, 2014 11:56 am

HTTP checking for File

Post 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
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: HTTP checking for File

Post 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
Rob Hassing
Image
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: HTTP checking for File

Post by abrist »

Do you just want to check for the existence of the file, or a string inside the file?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked