How to parse the log file using nagios plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
madti
Posts: 1
Joined: Wed Dec 18, 2019 2:28 am

How to parse the log file using nagios plugin

Post by madti »

Hi ,
Happy new year year.

I am new to nagios.

We are automating application log monitoring using nagios.

I want read entire first line ( eg: like head command in linux) from application application log

I am trying tonparse log filen with check_log and check_logfiles pluging but the plugin not giving first line details.

Please could you suggest if any plugin available to read first line from lo.

Thanks
Tiruparhi
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to parse the log file using nagios plugin

Post by lmiltchev »

What is the operating system your log resides on - Linux, Windows, etc.? What are you trying to accomplish? Do you want to find a specific pattern in the first line of the log, and warn if the pattern is/is not found? Maybe, you just want to read the first line "(eg: ike head command in linux)", without alerting? Please elaborate, so that we could point you to the right direction.

As this is your first post, I'd like to thank you for choosing Nagios! We're happy have you in the community. Welcome aboard!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked