monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Variable for pidfile


From: Martin Flemming
Subject: Variable for pidfile
Date: Tue, 28 Aug 2007 22:09:09 +0200 (CEST)


Dear, all !

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 ...

[it-hobbit3] /etc/monit.d # cat check_hobbit
check process hobbit with pidfile 
'/usr/lib/hobbit/client/logs/clientlaunch.$HOST.pid'
  start program = "/etc/init.d/hobbit-client start"
  stop  program = "/etc/init.d/hobbit-client stop"
  alert address@hidden

In my logfile is written

[CEST Aug 28 22:04:39] debug    : monit: pidfile 
'/usr/lib/hobbit/client/logs/clientlaunch.$HOST.pid' does not exist

What can i do ?

Cheers,

       Martin

P.S.: I've used $HOST and $HOSTNAME with the same result ...

______________________________________________________
Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : 040 - 8998 - 4667
22603 Hamburg      mail   : address@hidden
______________________________________________________




reply via email to

[Prev in Thread] Current Thread [Next in Thread]