Another check_log Question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stonkers
Posts: 30
Joined: Tue Oct 31, 2017 9:58 am

Another check_log Question

Post by stonkers »

So using check_log, we find "string a" and have it alert on this string. Then the next time it checks the log, it determines a recovery based on no more occurrences of the string. With WebSphere, the string "WSVR0605W" shows a thread is hung and the string "WSVR0606W" shows it has released the hung thread. Is there any way to configure check_log so that it looks for "WSVR0605W" for the error condition and "WSVR0606W" for the recovery condition? Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Another check_log Question

Post by tmcdonald »

You would most likely have to write a wrapper script that runs the plugin twice, looking first for the bad string then for the good string following it.

This sort of thing is why we wrote Nagios Log Server. You can build up queries that include multiple terms and see what happened in-between if needed.
Former Nagios employee
stonkers
Posts: 30
Joined: Tue Oct 31, 2017 9:58 am

Re: Another check_log Question

Post by stonkers »

Gotcha! Saw log server and have been trying to push for it. Don't really know whether the powers that be are listening at all though... Thanks! You can lock this thread.
Locked