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
Nagios XI Check File Content
Re: Nagios XI Check File Content
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?
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
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
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 OSlmiltchev 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?
Thanks
-
DarenBrim23
- Posts: 11
- Joined: Thu Oct 05, 2017 7:46 am
Re: Nagios XI Check File Content
Hi,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?
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
check_logfiles should be able to accomplish what you are looking for
https://exchange.nagios.org/directory/P ... es/details
https://exchange.nagios.org/directory/P ... es/details
-
DarenBrim23
- Posts: 11
- Joined: Thu Oct 05, 2017 7:46 am
Re: Nagios XI Check File Content
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?scottwilkerson wrote:check_logfiles should be able to accomplish what you are looking for
https://exchange.nagios.org/directory/P ... es/details
Thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI Check File Content
They just haven't updated their listing, as this is just a plugin it is compatible with all versions of Nagios including Nagios XI.DarenBrim23 wrote: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?scottwilkerson wrote:check_logfiles should be able to accomplish what you are looking for
https://exchange.nagios.org/directory/P ... es/details
Thanks