NRPE - Check For File + Contents Are The Output
Posted: Wed Dec 13, 2017 7:10 am
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?
* 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?