SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0003412: monit monitors the wrong winbind pid file - MantisBT
MantisBT - Endian Firewall
View Issue Details
0003412Endian FirewallProxy - HTTPpublic2010-12-30 15:572011-03-21 08:47
0003412: monit monitors the wrong winbind pid file
This is the /etc/monit/winbind.conf file:

 check process winbind with pidfile /var/run/

But the /var/run/ doesn't exist :(

ll /var/run/win*
-rw-r--r-- 1 root root 6 Dec 30 16:27 /var/run/

After some tests seems that winbind started without the -s /etc/samba/winbind.conf option creates the /var/run/ while as soon as the -s option is set the pidfile changes to /var/run/

If the init.d script will be the same the only solution is to change the /etc/monit.d/winbind.conf file.

**For the future** every monit service should depend on a check for the pidfile in order to avoid wrong restart triggered by monit.

Something like this:

 check process winbind with pidfile /var/run/
   start program = "/etc/init.d/winbind start"
   stop program = "/etc/init.d/winbind stop"
   if 5 restarts within 5 cycles then timeout
   if changed pid then restart
   mode manual
   depends on winbind_pid

 check winbind_pid with path /var/run/
   if does not exist for 2 cycles then unmonitor

Issue History
2010-12-30 15:57luca-endianNew Issue
2010-12-30 15:57luca-endianTag Attached: purple
2011-01-03 14:42luca-endianSummarymonit monitors the wrong pid file => monit monitors the wrong winbind pid file
2011-02-10 10:26lorenzo-endianCustomer Occurencies => 0
2011-02-10 10:26lorenzo-endianAssigned To => simon-endian
2011-02-10 10:26lorenzo-endianStatusnew => confirmed
2011-02-10 12:02luca-endianCustomer Occurencies0 => 1

There are no notes attached to this issue.