NRPE - Check For File + Contents Are The Output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sav2880
Posts: 60
Joined: Tue Mar 13, 2012 8:24 am

NRPE - Check For File + Contents Are The Output

Post 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?
bolson

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

Post by bolson »

Would the file have more than one line of text?
Locked