[racktables-users] Re: Plugin install procedure

  • From: Michał Sochoń <kaszpir@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Mon, 5 Jan 2015 19:31:04 +0100

Call him Steve.

Just kidding ;-)
I hope Kim Valentin Yourevich is easier for you.

On Mon, Jan 5, 2015 at 5:44 PM, Michael Potts <hm@xxxxxxxxxxxxx> wrote:

> I know we kinda deviated from my initial question, but I wanted to follow
> up and state that Ким Валентин Юрьевич* had the right answer.
>
> Adding this to the 'secret.php' file made everything work perfectly:
>
> $racktables_plugins_dir = '/var/www/racktables/plugins/';
>
>
>
> *I spent a humorously long amount of time trying to figure out how to
> properly credit you. I don't even know what name is what or how to
> pronounce it. But I hope Kazakhstan is nice. :)
>
> Michael Potts
> GV: (904) 638-2914 | Gtalk: HM@xxxxxxxxxxxxx
> @HMHackMaster | http://about.me/MichaelPotts
>
> On Sun, Jan 4, 2015 at 3:44 AM, Ким Валентин Юрьевич <
> VJKim@xxxxxxxxxxxxxxx> wrote:
>
>> No errors in errorlog, libgv-php5 and php5-cli installed too.
>>
>> It’s not a problem, of course
>>
>>
>>
>>
>>
>> С уважением, Валентин Ким
>>
>> системный администратор ТОО "Цветная"
>>
>> +7 701 802 47 00
>>
>> +7 7142 22 18 17 вн. 147
>>
>>
>>
>> *From:* racktables-users-bounce@xxxxxxxxxxxxx [mailto:
>> racktables-users-bounce@xxxxxxxxxxxxx] *On Behalf Of *Maximilian Mensing
>> *Sent:* Saturday, January 03, 2015 7:04 PM
>>
>> *To:* racktables-users@xxxxxxxxxxxxx
>> *Subject:* [racktables-users] Re: Plugin install procedure
>>
>>
>>
>> Hm..
>>
>> Do you have anything in your apache2/error.log ?
>>
>> It could be that you need to install libgv-php5 or php5-cli as well
>>
>>
>>
>> *Von: *Ким Валентин Юрьевич <VJKim@xxxxxxxxxxxxxxx>
>> *Antworten an: *"racktables-users@xxxxxxxxxxxxx" <
>> racktables-users@xxxxxxxxxxxxx>
>> *Datum: *Saturday 3 January 2015 11:47
>> *An: *"racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
>> *Betreff: *[racktables-users] Re: Plugin install procedure
>>
>>
>>
>> Yes, I have
>>
>> And there is /usr/share/php/Image/GraphViz.php on the path by default
>>
>> I double check access rights but still have same error
>>
>>
>>
>> С уважением, Валентин Ким
>>
>> системный администратор ТОО "Цветная"
>>
>> +7 701 802 47 00
>>
>> +7 7142 22 18 17 вн. 147
>>
>>
>>
>> *From:* racktables-users-bounce@xxxxxxxxxxxxx [
>> mailto:racktables-users-bounce@xxxxxxxxxxxxx
>> <racktables-users-bounce@xxxxxxxxxxxxx>] *On Behalf Of *Maximilian
>> Mensing
>> *Sent:* Thursday, January 01, 2015 8:48 PM
>> *To:* racktables-users@xxxxxxxxxxxxx
>> *Subject:* [racktables-users] Re: Plugin install procedure
>>
>>
>>
>> Do you have GraphViz already installed?
>>
>> Once you have it and the problem is still unsolved, find out where
>> GraphViz has it's files on your OS and symlink them to the location where
>> rack tables expects them ("/usr/share/php/Image" or "/usr/share/pear/Image"
>> usually).
>>
>> This should be all.
>>
>>
>>
>> Cheers, Max
>>
>>
>>
>>
>>
>> *Von: *Ким Валентин Юрьевич <VJKim@xxxxxxxxxxxxxxx>
>> *Antworten an: *"racktables-users@xxxxxxxxxxxxx" <
>> racktables-users@xxxxxxxxxxxxx>
>> *Datum: *Wednesday 31 December 2014 18:39
>> *An: *"racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
>> *Betreff: *[racktables-users] Re: Plugin install procedure
>>
>>
>>
>> It’s works, thank you
>>
>> But I also have a “ERROR Fetching image data!” error when click to
>> “object map” link.
>>
>>
>>
>> Can you point me, is this any GraphViz error or something else?
>>
>>
>>
>> С уважением, Валентин Ким
>>
>> системный администратор ТОО "Цветная"
>>
>> +7 701 802 47 00
>>
>> +7 7142 22 18 17 вн. 147
>>
>>
>>
>> *From:*racktables-users-bounce@xxxxxxxxxxxxx [
>> mailto:racktables-users-bounce@xxxxxxxxxxxxx
>> <racktables-users-bounce@xxxxxxxxxxxxx>] *On Behalf Of *Maximilian
>> Mensing
>> *Sent:* Wednesday, December 31, 2014 10:15 PM
>> *To:* racktables-users@xxxxxxxxxxxxx
>> *Subject:* [racktables-users] Re: Plugin install procedure
>>
>>
>>
>> The answer is here:
>>
>>
>> https://github.com/RackTables/racktables-contribs/commit/cfab30fe7902255ce7d094c8ed659d5fa6204ffa
>>
>>
>>
>> As a 'temporary quickfix'
>>
>> You could add the  getProximateRacks() from popup.php to linkmgmt.php
>>
>> Looking at @infrastation <https://github.com/infrastation>'s comment to
>> the commit it looks like this will be fixed otherwise starting with rack
>> tables 0.20.9
>>
>>
>>
>> Or, just use this version of linkmgmt.php :
>>
>> https://github.com/madmax2012/racktables-contribs/blob/master/linkmgmt.php
>>
>>
>>
>> It works fine with rack tables 0.20.6/7/8
>>
>> --
>>
>> @Michael Potts: Do you have any kind of apache log which might provide
>> some debugging information?
>>
>>
>>
>>
>>
>> Cheers, Max
>>
>>
>>
>> *Von: *Ким Валентин Юрьевич <VJKim@xxxxxxxxxxxxxxx>
>> *Antworten an: *"racktables-users@xxxxxxxxxxxxx" <
>> racktables-users@xxxxxxxxxxxxx>
>> *Datum: *Wednesday 31 December 2014 05:20
>> *An: *"racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
>> *Betreff: *[racktables-users] Re: Plugin install procedure
>>
>>
>>
>> I’m try yesterday, and it works, but shows blank windows when I tried to
>> create link.
>>
>>
>>
>> What I found in logs:
>>
>> PHP Fatal error:  Call to undefined function getProximateRacks() in
>> /var/www/racktables/plugins/linkmgmt.php
>>
>>
>>
>> What  can I do about it?
>>
>>
>>
>>
>>
>> *From:*racktables-users-bounce@xxxxxxxxxxxxx [
>> mailto:racktables-users-bounce@xxxxxxxxxxxxx
>> <racktables-users-bounce@xxxxxxxxxxxxx>] *On Behalf Of *Maximilian
>> Mensing
>> *Sent:* Tuesday, December 30, 2014 9:36 PM
>> *To:* racktables-users@xxxxxxxxxxxxx
>> *Subject:* [racktables-users] Re: Plugin install procedure
>>
>>
>>
>> Hi,
>>
>> All you have to do is:
>>
>> 1.) place linkmgmt.php in the plugin directory (as you have done)
>>
>> 2.) run the SQL commands found in the Plugins header on your database
>> (Line 48-57, 70-72 and  line 76)
>>
>>
>>
>> Thats all.
>>
>>
>>
>> Cheers, Max
>>
>>
>>
>> *Von: *Michael Potts <hm@xxxxxxxxxxxxx>
>> *Antworten an: *"racktables-users@xxxxxxxxxxxxx" <
>> racktables-users@xxxxxxxxxxxxx>
>> *Datum: *Tuesday 30 December 2014 16:24
>> *An: *"racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
>> *Betreff: *[racktables-users] Plugin install procedure
>>
>>
>>
>> > TL;DR: How do I track the Patch Panels in between my switches without
>> > making a bunch of crazy objects?
>> Maybe I misunderstood something but I think 'linkmgmt' plugin
>> is what solves your problem.
>>
>> https://github.com/RackTables/racktables-contribs/tree/master/LinkManagement/plugins
>>
>>
>>
>>
>>
>> This brings me to my next question: Plugin install procedure!
>>
>>
>>
>> I have a directory on my web server (/var/www/racktables/) and my site (
>> https://server/racktables/).
>>
>>
>>
>> I have a *plugins* folder (/var/www/racktables/plugins/) that I have
>> copied in my plugins.
>>
>>
>>
>> [image: Inline image 3]
>>
>>
>>
>> The install procedure for the "Reports" extension suggested that I need
>> to fill out the *extensions.php* file, which I did.
>>
>>
>>
>> <?php
>> # Load server report
>> require_once "/var/www/racktables/plugins/server-report.php";
>> # Load virtual machine report
>> require_once "/var/www/racktables/plugins/vm-report.php";
>> # Load switch report
>> require_once "/var/www/racktables/plugins/switch-report.php";
>> # Load custom report
>> require_once "/var/www/racktables/plugins/custom-report.php";
>> ?>
>>
>>
>>
>> What am I missing?
>>
>>
>>
>>
>>
>>
>>
>>
>> Michael Potts
>> GV: (904) 638-2914 | Gtalk: HM@xxxxxxxxxxxxx
>>
>> @HMHackMaster | http://about.me/MichaelPotts
>>
>
>


-- 
Michal Sochoń
alias _KaszpiR_ kaszpir@xxxxxxxxx
IRC: _KaszpiR_ @ freenode.net

Other related posts: