http://bugzilla.novell.com/show_bug.cgi?id=497574 Summary: monit status says the monit daemon is not running, even if it really is. Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i586 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jack_csk@yahoo.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) Issue "monit status" on the shell reports the monit daemon is not running, but the monit process is indeed running: ---------- 8< ---------- snail:~ # sudo monit status monit: no status available -- the monit daemon is not running snail:~ # ps -ef | grep monit root 2349 1 0 15:52 ? 00:00:00 /usr/bin/monit -c /etc/monitrc -p /var/run/monit/monit.pid -s /var/run/monit/monit.state root 5695 4874 0 16:39 pts/2 00:00:00 grep monit ---------- 8< ---------- If I supply the pid file path by the -p flag, i.e.: sudo monit -p /var/run/monit/monit.pid status It works as expected. That makes me believe the monit process can't find the pid file, so I have to explicitly add the pid file path in /etc/monitrc: set pidfile /var/run/monit/monit.pid After said line is added to /etc/monitrc, the "monit status" command works as expected. Such issue is not found on Fedora / Ubuntu, and I believe it has to do with the different pathname for the monit.pid file. My suggestion to fix this issue is either: a. Change the path of the monit.pid to that of the default one (i.e. /var/run/monit.pid) b. Add the "set pidfile /var/run/monit/monit.pid" to /etc/monitrc by default installation Reproducible: Always Steps to Reproduce: 1. Login to OpenSUSE, open a Linux terminal 2. Make sure the monit package is installed 3. Start the monit process: service /sbin/service monit start 4. Type in: sudo monit status 5. Compare the result with: ps -ef | grep monit 6. Type in this command, and see the difference: sudo monit -p /var/run/monit/monit.pid status Actual Results: monit displays the error message, even the process is running: monit: no status available -- the monit daemon is not running Expected Results: monit reports the system status -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.