FILE CONTENT

From ServersCheck Wiki

Jump to: navigation, search

Contents

Description

This check basically verifies if some content exists in the file at the specified location or not. Great check if you need to know if some string exist or not in the file at some location. Example: to know when some error occurs and when is entered in the file, so you can react properly on the error.


Definition

Filecontent1.png


Besides general settings for each check, which are similar for all checks, there are following specific settings that also need to be established. In the Check Specific Settings, there are following fields you need to supply with parameters:

  • Filename (including path) - The full path to the file (including in its filename) or check the flag to read it from a file. It will then open the filelist.txt file in the agents directory and verify for each filename - one per line - if it exists.
  • Reference string - The reference value that the file has to contain.


Filecontent2.png


Returned Results

This check returns one result: OK if the string can be found; otherwise a DOWN is returned


Graphs

When the graphing option is activated, ServersCheck will produce for this check two graphs: Service Level, Availability.

Personal tools