Nagios XI Check File Content

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DarenBrim23
Posts: 11
Joined: Thu Oct 05, 2017 7:46 am

Nagios XI Check File Content

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Check File Content

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI Check File Content

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
DarenBrim23
Posts: 11
Joined: Thu Oct 05, 2017 7:46 am

Re: Nagios XI Check File Content

Post 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
DarenBrim23
Posts: 11
Joined: Thu Oct 05, 2017 7:46 am

Re: Nagios XI Check File Content

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Check File Content

Post by scottwilkerson »

check_logfiles should be able to accomplish what you are looking for
https://exchange.nagios.org/directory/P ... es/details
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
DarenBrim23
Posts: 11
Joined: Thu Oct 05, 2017 7:46 am

Re: Nagios XI Check File Content

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Check File Content

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked