Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

Allow crm_mon to run as non-root user?

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


abrown at bzzagent

Nov 24, 2009, 1:17 PM

Post #1 of 2 (773 views)
Permalink
Allow crm_mon to run as non-root user?

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.

The message I receive is:
[user [at] hos:~] $ 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


andrew at beekhof

Nov 24, 2009, 10:44 PM

Post #2 of 2 (740 views)
Permalink
Re: Allow crm_mon to run as non-root user? [In reply to]

On Tue, Nov 24, 2009 at 10:17 PM, Aaron Brown <abrown [at] bzzagent> 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] hos:~] $ 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
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>

_______________________________________________
Pacemaker mailing list
Pacemaker [at] oss
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.