[Pacemaker] Allow crm_mon to run as non-root user?

Andrew Beekhof andrew at beekhof.net
Wed Nov 25 06:44:00 UTC 2009


On Tue, Nov 24, 2009 at 10:17 PM, Aaron Brown <abrown at bzzagent.com> wrote:
> I am attempting to set up monitoring of my Pacemaker cluster with Nagios
> and, as a start, I would like to use `crm_mon –s` for general status and
> also write a script to parse the results of `crm_mon –1`.  The problem I am
> having is that I can’t run crm_mon as a non-root user and I’m unwilling to
> allow nagios/NRPE to run as root.

Just add the user to the haclient group and have them re-login.

>
> The message I receive is:
> [user at host:~] $ crm_mon -1
> Connection to cluster failed: connection failed
>
> Is there a way to make crm_mon work as a non-root user?  Or alternatively,
> it appears that Pacemaker has some SNMP support in the pacemaker-mgmt
> package from the yum repository, but I can’t find any documentation on it.
>
> Suggestions are welcome,
> Aaron
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>




More information about the Pacemaker mailing list