Hi Jason,
The default cron-job is not meant for HA setups.
You could always use the output from 'crm status' to check if it running on the
active node.
A quick hack like this script would work (but I am sure there are better ways
to do it):
MASTER=`crm status | awk '$1 ~ /Masters/ { print $3 }' `
if [[ $MASTER == `hostname` ]]; then
/usr/local/pf/bin/pfcmd service pf watch
fi
Regards,
--
Louis Munro
[email protected] :: www.inverse.ca
+1.514.447.4918 *125 :: +1 (866) 353-6153
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
On 2013-07-14, at 19:26 , Jason Frisvold <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> It appears that the service watch cron job is not aware of an HA
> configuration. If it's run on the standby system, it continually
> complains that PF is not running and sends an alert.
>
> Am I missing some configuration somewhere, or is this a known issue?
>
> Thanks,
>
> - --
> - ---------------------------
> Jason 'XenoPhage' Frisvold
> [email protected]
> - ---------------------------
>
> "Any sufficiently advanced magic is indistinguishable from technology."
> - - Niven's Inverse of Clarke's Third Law
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlHjM5gACgkQ8CjzPZyTUTTucACfX/IL+QVFXozHL92gj2wdZbEf
> UBoAoJtG6BxhaqN7WLDKsHjQO1msYnUT
> =Ym9W
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users