plugin for download/upload routers switches configuration

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

slander wrote:Pepj,
http://serverip/Cacti/
try exchanging the "CONFIGMANAGER_EDIT.PHP" with this new one and let me know.
I wrote it as I begun with cacti and didn't know at the begin that it is a global variable $config['url_path'].

Thanks for your feedback.

CONFIGMANAGER_EDIT.PHP no more in this post because of new version
Last edited by pepj on Fri Jun 02, 2006 4:14 am, edited 2 times in total.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
slander
Posts: 32
Joined: Thu Mar 16, 2006 12:01 pm

Post by slander »

pepj wrote:
slander wrote:Pepj,
http://serverip/Cacti/
try exchanging the "CONFIGMANAGER_EDIT.PHP" with this new one and let me know.
I wrote it as I begun with cacti and didn't know at the begin that it is a global variable $config['url_path'].

Thanks for your feedback.
That was fast! Thanks.

Looks good, except for maybe a debugging print line still there? Above the line "show final configuration file" there is now a line "config['url_path']=/Cacti/"

I will find it and remove it in my copy of the script, but you might want to remove it for the distribution release.
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

"config['url_path']=/Cacti/".
sorry,

The line 335 is be to removed

I will do a new release later ..
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
wfeng
Posts: 6
Joined: Wed Jan 04, 2006 3:32 am

Post by wfeng »

why my cacti to appear picture phenomenon.
Attachments
uplodown.GIF
uplodown.GIF (20.08 KiB) Viewed 8965 times
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

wfeng wrote:why my cacti to appear picture phenomenon.
I don't understand chines ...

But it could be:
- that the first time you have to accept a certificate manually.
- or the directory d:/data/20060516 don't exist
- or (see help) do you have activated 'ip scp' on the cisco router.
- or this router IOS has no 'config.text' but an other name. In this case let me now I don't know all cisco. (sh dir or sh flash)

try it one time manually with:

pscp.exe -l user -pw password -scp IP_addresse:flash/file_name your_directory/your_new_file_name
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

pepj, do you have that new release yet?
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

knobdy wrote:pepj, do you have that new release yet?
Sorry ... here it is ...

(no more in this Post ---> new version)
Last edited by pepj on Fri Jun 02, 2006 4:15 am, edited 1 time in total.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

I have loaded this latest version 4cc and it has fixed a couple of my issues. On the compare configs screen I am missing the compare button image and under the config manager screen when I go to add devices the yes/no button is also missing. I have checked and both images are in the html and images folder under the plug-in so I am not sure if I need to copy them to another location.

Also I am having an issue with pancho. I have followed the install from the pancho website and installed all of the needed files along with the Malefile.PL When I try to run pancho from the command line I always get this response:

Global symbol "$config_file" requires explicit package name at /usr/local/bin/pancho line 84.
Global symbol "$config_file" requires explicit package name at /usr/local/bin/pancho line 86.
Global symbol "$config_file" requires explicit package name at /usr/local/bin/pancho line 92.
Global symbol "$config_file" requires explicit package name at /usr/local/bin/pancho line 101.
Execution of /usr/local/bin/pancho aborted due to compilation errors.

I am probably just overlooking something but can not figure it out.

Any ideas?

Thanks
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

On the compare configs screen I am missing the compare button image and under the config manager screen when I go to add devices the yes/no button is also missing.
I don't understand why you have a problem with the images. They should be under 'plugins/configmanager/images/'

+ where do you have install the plugin configmanager?
+ Can you say me what is the value of $config["url_path"] in your cacti/include/config.php file ?
+ perhaps it is a format problem with my gif. Can you try to exchange for example 'comparaison.gif' with an another icon and say me if you can see it.
issue with pancho
Pancho requires per default
'Net::SNMP' => '4.0.3',
'Config::IniFiles' => '2.30',
'Parallel::ForkManager' => '0.7.4',
But you can change in the makefile these values (or remove it) if you have more recent versions (I do it, it should function)
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

I installed configmanager in my plugins folder along with my other plugins. I have tried several other image files named compare.gif with no luck. The files are in the images folder under configmanager.

My config.php file has this in it: $config["url_path"] = '/cacti/';

When I ran the install for pancho I made sure to let it install any missing components.

Thanks for the help.

[/img]
Attachments
compare.gif
compare.gif (19.59 KiB) Viewed 8773 times
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

I don't understand why you can see the arrows and not the icon compare

I am using for both $config['url_path']
$config['url_path']."plugins/configmanager/images/comparaison.gif'"
$config['url_path']."images/arrow.gif"

the only differences are the path plugins/configmanager/images/
and the <input type='image' ...> html function.

What is your browser ?
What is your DocumentRoot in Apache for your cacti virtual host ?

I have to think about it....
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

Pepj,

Good thought on your browser question. When I view the site using firefox instead of IE the images do show up. I guess ie can just be a little picky.

Thanks.

Now I get to focus on Pancho.

Do you think that this line is in reference to a missing part of the Pancho install?

Global symbol "$config_file" requires explicit package name at /usr/local/bin/pancho line 84
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

jherrinike wrote:using firefox instead of IE
I never have a browser problem with cacti. In my test and productive environement both (IE and Firefox) function ....
jherrinike wrote:Do you think that this line is in reference to a missing part of the Pancho install? ..... requires explicit package name
yes ...
You need at least 'Net::SNMP' , 'Config::IniFiles', 'Parallel::ForkManager'
which are under pancho/module.
If you don't want to install it in your perl library, you can do it under pancho and later use .../perl.exe -I.../pancho/lib .../pancho/pancho.pl
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

I have verified that all three of those are installed on my system. I will keep playing around with it. It is the last part I am missing.
df_73
Posts: 1
Joined: Thu Jun 01, 2006 3:18 am

Post by df_73 »

jherrinike wrote:I installed configmanager in my plugins folder along with my other plugins. I have tried several other image files named compare.gif with no luck. The files are in the images folder under configmanager.

My config.php file has this in it: $config["url_path"] = '/cacti/';

When I ran the install for pancho I made sure to let it install any missing components.

Thanks for the help.

[/img]

I have the same problem on my linux server.

To solve it, rename comparaison.GIF to comparaison.gif


Another problem with an image : checkoff.gif / checkon.gif

In html/inc_device_filter_table.php, line 9, the path must be :

Code: Select all

$img=$config['url_path'].'plugins/configmanager/images/'.(($withmactrac)?'checkoff.gif':'checkoff.gif');

Great job pepj
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests