On 8/28/07, Martin Flemming <[EMAIL PROTECTED]> wrote: > I've got a problem to check the pidfile of a process .. > > The pidfile has got the name inclusive his own hostname, > but unfortunatley monit didn't resolve this variable ... > What can i do ?
The monitrc config file is not a shell script. As written in the monit manual in the part 'Alert message layout' $HOST, $EVENT, $SERVICE, $DESCRIPTION,$DATE are used to setup custom alert message. Just put the hostname in the line: check process hobbit with pidfile '/usr/lib/hobbit/client/logs/clientlaunch.$HOST.pid You don't change the hostname often, right? :) Cheers, Jovan -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
