Page 1 of 1

Nagios XI Check File Content

Posted: Thu Jul 19, 2018 4:02 pm
by DarenBrim23
Is there any modules available for Nagios XI that will allow monitoring to check the content of a file? For instance if I had a file that contained a message with a timestamp in it, can Nagios XI parse the file and report the content? Could it report the amount of time that has passed since the file has been touched or written to, and can you customize the error level based on the amount of time that has passed since the last write?

I am currently using the Nagios XI trial version on a RHEL 6.9 vm

Thanks

Re: Nagios XI Check File Content

Posted: Thu Jul 19, 2018 4:21 pm
by lmiltchev
What is the OS of the system, where the file is located - Windows, Linux, etc.?

You may be able to find a suitable plugin on the Nagios Exchange:

https://exchange.nagios.org/directory/Plugins

Have you already looked on the Exchange?

Re: Nagios XI Check File Content

Posted: Thu Jul 19, 2018 4:22 pm
by npolovenko
Hello, @DarenBrim23. I'd need a little bit more information to help you. Are you looking into monitoring files on a windows system or on a Linux? What is the extension of the monitored file that you want to parse?

Re: Nagios XI Check File Content

Posted: Thu Jul 26, 2018 10:17 am
by DarenBrim23
lmiltchev wrote:What is the OS of the system, where the file is located - Windows, Linux, etc.?

You may be able to find a suitable plugin on the Nagios Exchange:

https://exchange.nagios.org/directory/Plugins

Have you already looked on the Exchange?
I have not checked Nagios Exchange, I am new to Nagios so there is a lot that I do not know. Also the file that I am monitoring is a log file on a RedHat OS

Thanks

Re: Nagios XI Check File Content

Posted: Thu Jul 26, 2018 10:19 am
by DarenBrim23
npolovenko wrote:Hello, @DarenBrim23. I'd need a little bit more information to help you. Are you looking into monitoring files on a windows system or on a Linux? What is the extension of the monitored file that you want to parse?
Hi,

I am looking to monitor files on a Linux system, and it is a simple log file.

Thanks

Re: Nagios XI Check File Content

Posted: Thu Jul 26, 2018 10:35 am
by scottwilkerson
check_logfiles should be able to accomplish what you are looking for
https://exchange.nagios.org/directory/P ... es/details

Re: Nagios XI Check File Content

Posted: Thu Aug 23, 2018 8:24 am
by DarenBrim23
scottwilkerson wrote:check_logfiles should be able to accomplish what you are looking for
https://exchange.nagios.org/directory/P ... es/details
On the page for this plugin it states that it is compatible with Nagios 1.x, Nagios 2.x, and Nagios 3.x. Does this not include Nagios XI?

Thanks

Re: Nagios XI Check File Content

Posted: Thu Aug 23, 2018 8:44 am
by scottwilkerson
DarenBrim23 wrote:
scottwilkerson wrote:check_logfiles should be able to accomplish what you are looking for
https://exchange.nagios.org/directory/P ... es/details
On the page for this plugin it states that it is compatible with Nagios 1.x, Nagios 2.x, and Nagios 3.x. Does this not include Nagios XI?

Thanks
They just haven't updated their listing, as this is just a plugin it is compatible with all versions of Nagios including Nagios XI.