Getting Big Brother to monitor custom processes
This is very easy to do - and the documentation is bang on the money… but as always, there are no examples!
So without further a do…
Create a bb-proctab file in the etc folder in your Big Brother’s home folder with the following syntax:
<host name>: <yellow alert processes> : <red alert processes>
Processes are space delimited (enclosed in quotes where necessary) and can be followed by a semicolon if you want to specify a minimum or maximum of times it should be running.
The example below will issue a yellow alert if myscript.pl is running more than 8 times (to check for over forking or excessive load) and then a red alert if cron, bbrun or myscript.pl stop running.
localhost: "myscript.pl;<8" : cron;>=1 bbrun;>=1 “myscript.pl”
Comments
Leave a Reply