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 Endian Bugtracker
Endian Issue Tracker

Please see now our new Bugtracker system: JIRA

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003412Endian FirewallProxy - HTTPpublic2010-12-30 15:572011-03-21 08:47
Assigned Tosimon-endian 
PlatformOSOS Version
Product Version2.4 
Target VersionFixed in Version 
Summary0003412: monit monitors the wrong winbind pid file
DescriptionThis 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

Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2010-12-30 15:57 luca-endian New Issue
2010-12-30 15:57 luca-endian Tag Attached: purple
2011-01-03 14:42 luca-endian Summary monit monitors the wrong pid file => monit monitors the wrong winbind pid file
2011-02-10 10:26 lorenzo-endian Customer Occurencies => 0
2011-02-10 10:26 lorenzo-endian Assigned To => simon-endian
2011-02-10 10:26 lorenzo-endian Status new => confirmed
2011-02-10 12:02 luca-endian Customer Occurencies 0 => 1

Copyright © 2005-2008 Endian, SRL. All rights reserved.

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker