Page 1 of 1

NRPE - Check For File + Contents Are The Output

Posted: Wed Dec 13, 2017 7:10 am
by sav2880
I'm looking for a way for my Nagios hosts to have a "comment" field, if you will. Basically something where I can put a URL or small bit of text into a file and have it output into Nagios for display. So, the check ...

* Checks for the existance of a file (prefer to do this over NRPE)
* If the file is present at all, check is OK, and the output is the contents of the file.
* If the file isn't present, check is CRITICAL (and says file isn't there)

Is there a check that exists that accomplishes this?

Re: NRPE - Check For File + Contents Are The Output

Posted: Wed Dec 13, 2017 12:20 pm
by bolson
Would the file have more than one line of text?