Ping on log event?

Hi there,
I’m trying to find a cause to a problem, which is intermitting.
I was wondering is there anyway for a ping to occur on the event of an phase/event type within the system log.

I.e. I’m trying to record a ping as and when the word ‘warning’ or ‘radius’ appears in the logs and then save the results of a 100 packets to a text file.

thanks

you could create a script to check for new log entries every minutes or so. and issue the ping command if it matches any ‘warning’ or ‘radius’ log.