freeipmi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freeipmi-devel] ganglia_ipmimonitoring.pl


From: Christopher Maestas
Subject: Re: [Freeipmi-devel] ganglia_ipmimonitoring.pl
Date: Tue, 21 Dec 2010 22:35:14 -0700

Here's a stab at adding a -e flag that lets you run a perl regex against the hostname.  Then you can run:

./ganglia_ipmimonitoring.pl -e 's/^mp-//g' -h mp-cn[1-4] -D -d

I'm sure it could be cleaned up further or restricted to only doing/checking for search and replace expressions.

-cdm

On Tue, Dec 21, 2010 at 2:20 PM, Al Chu <address@hidden> wrote:
Hi Chris,

Hmmm.  I'm not really sure how we could/should do that.  Perhaps some
other option would tell the script to create/remove the prefix before
passing it up to ganglia?

Al

On Tue, 2010-12-21 at 10:52 -0800, Christopher Maestas wrote:
> Any thought given to translating the hostlist from the management
> processor name to a real device name?  For example:
>       * device name is mp-cn[1-2] and hostname is cn[1-2]
>
>
> ./ganglia_ipmimonitoring.pl -D -d -h mp-cn[1-2] | sed -e 's/mp-//g'
>
>
> but I don't think that will do what I want ...
--
Albert Chu
address@hidden
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory


Attachment: ganglia_ipmimonitoring.pl.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]