[racktables-users] Re: Request or enhancement...

  • From: Luis Fernando Lacayo <lflacayo@xxxxxxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Thu, 06 Aug 2009 09:18:04 -0500

Dude, 

This thing is just the thing I needed... 

Luis

On Thu, 2009-08-06 at 14:56 +0200, Troy Rose wrote:

> Cool, no problem - I've attached it here.
> 
> Also, it opens up into a new page if you click on the title. I've
> included a couple of examples there.
> 
> Let me know if it works!
> 
> Regards,
> 
> Troy Rose
> 
> 
> On Thu, Aug 6, 2009 at 2:21 PM, Luis Fernando Lacayo
> <lflacayo@xxxxxxxxxxxxx> wrote:
> 
>         Troy, 
>         
>         I am interested...  
>         
>         Thanks, 
>         
>         Luis
>         
>         
>         
>         
>         On Thu, 2009-08-06 at 12:42 +0200, Troy Rose wrote:
>         
>         > If you are interested, I have a some php code (function)
>         > that does a dynamically resized iframe that sucks in the
>         > management page, which (finally) works with firefox and IE
>         > very nicely.
>         > 
>         > The function accepts a title and a link, and displays the
>         > page as per the racktables layout, with server name at the
>         > top.
>         > 
>         > I use it to tie all our management systems into racktables,
>         > such as our ticketing, wiki, nagios and splunk instances.
>         > The engineers and people that are using it love it!
>         > 
>         > 
>         > 
>         > On Wed, Aug 5, 2009 at 1:39 PM, Killsystem
>         > <killsystem@xxxxxxxxxxxxxxxx> wrote:
>         > 
>         >         Hi, since we have the HP System Mangement Agent on
>         >         every server I edited
>         >         the ./inc/local.php like this to get an extra tab
>         >         with a direct link.
>         >         [code]
>         >         //HP System Management Homepage
>         >         $tab['object']['HPSysMan'] = 'HP System Management
>         >         Homepage';
>         >         $trigger['object']['HPSysMan'] =
>         >         'localtrigger_HPSysMan';
>         >         $tabhandler['object']['HPSysMan'] =
>         >         'localfunc_HPSysMan';
>         >         
>         >         function localfunc_HPSysMan()
>         >         {
>         >         assertUIntArg ('object_id', __FUNCTION__);
>         >         $object = spotEntity ('object',
>         >         $_REQUEST['object_id']);
>         >         $alloclist = getObjectIPv4Allocations
>         >         ($object['id']);
>         >         if (count ($alloclist))
>         >         {
>         >         foreach ($alloclist as $dottedquad => $alloc)
>         >         {
>         >         if ($alloc[addrinfo][allocs][0][type]=="regular") {
>         >         echo "<p>Please click <a
>         >         href='https://".$alloc[addrinfo][ip].":2381'>here</a>!</p>";
>         >         }
>         >         }
>         >         }
>         >         }
>         >         
>         >         function localtrigger_HPSysMan()
>         >         {
>         >         assertUIntArg ('object_id', __FUNCTION__);
>         >         $object = spotEntity ('object',
>         >         $_REQUEST['object_id']);
>         >         $record = getAttrValues ($object['id'], TRUE);
>         >         if ($object['objtype_id'] == 4 &&
>         >         strstr($record[2][value],"HP"))
>         >         return 1;
>         >         else
>         >         {
>         >         return '';
>         >         }
>         >         }
>         >         [/code]
>         >         It's not a perfect solution since you have to click
>         >         twice, but I didn't got
>         >         iframes working and a redirect with the php header
>         >         was not possible since
>         >         this script is executed to late for this.
>         >         You only would have to change the port in the link
>         >         and the names.
>         >         
>         >         gretz Killsystem
>         >         
>         >         
>         >         
>         >         On Tue, 04 Aug 2009 15:13:39 -0500, Les Mikesell
>         >         <lesmikesell@xxxxxxxxx>
>         >         wrote: 
>         >         
>         >         > Denis Ovsienko wrote:
>         >         >>> WE use the Dell openmanage or HP openview to
>         >         check stuff on the server
>         >         >>> quite often.
>         >         >>>
>         >         >>> Do you think that it would be have a hyperlink
>         >         to the OMMSA from the
>         >         >>> object summary page?
>         >         >>
>         >         >> Could you provide an example?
>         >         >
>         >         > That's something OpenNMS does: if it detects the
>         >         openmanage service on
>         >         > port 1311 it shows a clickable link to
>         >         https://ip_address:1311 shown as
>         >         > "OpenManage" when displaying node details.
>         >          Likewise for normal http if
>         >         > the node answers on port 80.
>         >         
>         >         
>         > 
>         > 
>         
>         -- ______________________________________________________ Luis
>         Fernando Lacayo Chicago Public Schools Senior Unix
>         Administrator ITS/ UNIX Infrastructure Office: 773-553-3835
>         Cell: 773-203-4493 
>         lflacayo@xxxxxxxxxxxxx
>         ______________________________________________________
>         "In God we trust, the rest we monitor ..." 
> 
> 

-- 
______________________________________________________

Luis Fernando Lacayo
Chicago Public Schools
Senior Unix Administrator
ITS/ UNIX Infrastructure
Office: 773-553-3835
Cell: 773-203-4493
lflacayo@xxxxxxxxxxxxx
______________________________________________________
               "In God we trust, the rest we monitor ..."


Other related posts: