On Tue, 2 Jul 2013, Dejan Muhamedagic wrote:
Hi,
On Tue, Jul 02, 2013 at 12:13:40PM +0000, Tony Stocker wrote:
Version Info:
OS: CentOS 6.4
Kernel (current): 2.6.32-358.11.1.el6.x86_64
Pacemaker: 1.1.8-7.el6
Corosync: 1.4.1-15.el6_4.1
CRMSH: 1.2.5-55.6
Resource Agents: 3.9.2-21.el6
I'm having a problem with the ProFTPD OCF script
(/usr/lib/ocf/resource.d/heartbeat/proftpd) and the monitor
function.
Here is the relevant section of my config (anonymizing addresses):
primitive TEST-EXT-IP ocf:heartbeat:IPaddr2 \
params ip="xxx.yyy.zzz.11" \
op monitor interval="30s"
primitive TEST-PROFTPD ocf:heartbeat:proftpd \
params conffile="/usr/local/etc/test_proftpd.conf"
binary="/usr/local/sbin/proftpd" test_user="gpmreal"
test_pass="[email protected]"
curl_url="ftp://hacbackup.blah.blah.bla"
pidfile="/var/run/test_proftpd.pid" \
Does this match the setting in the conffile (as set above)?
According to the meta-data:
The Proftpd PID file. The location of the PID file is configured
in the Proftpd configuration file.
Thanks,
Dejan
No, it did not and due to the installation of ProFTPD it didn't match the
default location either. Changing this and restarting everything seems to
have worked.
However, it did lead to two follow-up questions.
First, the monitor works fine, and at first all I specified was an op
monitor interval value, I didn't specify any action, i.e. "on-fail=x".
Yet when I intentionally killed the PID running the ProFTPD daemon, to see
if the monitor would notice, I found that the FTPD daemon got restarted.
Is this the normal default?
Second, even after the FTPD daemon was restarted and running fine - and I
verified that it was up and functioning, I still saw this message
in the output of 'crm -1r':
Failed actions:
TEST-PROFTPD_monitor_120000 (node=gpmhac10, call=5188, rc=7,
status=complete): not running
When do these messages get cleared automatically? If they don't get
cleared automatically, how can I manually clear the message so that it
doesn't continue to appear to be a problem?
Tony
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems