[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable for pidfile
From: |
Martin Flemming |
Subject: |
Re: Variable for pidfile |
Date: |
Wed, 29 Aug 2007 00:21:34 +0200 (CEST) |
Thanks, for answer !
ok, i'm not the master of shell-scripts and so on ...
But i thought, that this could be handle with monit itself ...
So, i will distribute this check_hobbit-file on my thousand hosts
and will change it to the respective hostname of that machine with ower
own-house configuration-tool ( .. like cfengine and so on ..)
... also i can distribute that and other files with an own rpm,
but i've got also solaris machines ...
Cheers,
Martin
On Tue, 28 Aug 2007, Jovan Kostovski wrote:
On 8/28/07, Martin Flemming <address@hidden> 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
Gruss
Martin Flemming
______________________________________________________
Martin Flemming
DESY / IT office : Building 2b / 008a
Notkestr. 85 phone : 040 - 8998 - 4667
22603 Hamburg mail : address@hidden
______________________________________________________