Page 1 of 1
How to monitor Dynamic log file for a linux server
Posted: Mon Oct 12, 2020 5:32 am
by deek
Hi ,
I have a requirement to monitor a Dynamically changing log file on a linux server . How can we do it through check_xi_by_ssh plugin .
Im pasting the screenshot of the Log which is dynamically changing .
Capture dynamic.PNG
Re: How to monitor Dynamic log file for a linux server
Posted: Mon Oct 12, 2020 1:10 pm
by SteveBeauchemin
I found a nice plugin created by Consol Labs that does log file scrape. Dynamic or otherwise.
Very well written. Been using it for many years. On Linux and MS both.
The cfg file is actually in perl and as such you can add your own selection code for dynamic file names.
Steve B
Re: How to monitor Dynamic log file for a linux server
Posted: Mon Oct 12, 2020 3:25 pm
by benjaminsmith
Thanks Steve B.
Besides
that plugin, there are few dedicated log file plugins available on the Ngaios Exchange.
https://exchange.nagios.org/directory/Plugins/Log-Files
To use one of those plugins with ssh, please see the following guide.
https://assets.nagios.com/downloads/nag ... ng_SSH.pdf
Also, take a look at the following page on our KB for example log checks.
https://support.nagios.com/kb/article/l ... s-787.html
Hope that helps answer your questions, let us know if you need further assistance.
Regards,
Benjamin