From: Tim W. <tim...@gm...> - 2004-12-07 13:01:57
|
All, I'm trying to see what the best way is of monitoring perfparsed, preferably using nagios itself. I'm currently using perfparsed in combination with the write to pipe method. What are my options? 1. check_procs -c1:1 -C perfparsed -u nagios this will notify me in case the daemon died. I could attach an event handler to restart the perfparse daemon. The problem with this method is that there is no way of knowing the perfparse daemon is still doing anything useful, since nagios writes to a named pipe, and this never fails. (and even then, should it fail, there's apparently no trace of the failure anywhere). This hasn't happened (yet), the daemon seems to die whenever something goes wrong. 2. write a (perl) check script that checks the perfparse_service_bin (since I'm storing in a mysql db) for new data (i.e check the timestamp of the most recent record, cry wolf if it's older than x minutes). Attach an event handler to check for perfparsed still running and eventually restarting it. In my view this is the only right way to check the sanity of perfparse. I'd like to hear your thoughts on this, or any other ideas.... Tim. |