Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


plugin for download/upload routers switches configuration
Goto page Previous  1, 2, 3, ... 25, 26, 27  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
Exo7
Cacti User


Joined: 13 Jul 2005
Posts: 124

PostPosted: Mon Mar 13, 2006 2:14 pm    Post subject: Reply with quote

here it is
http://wotsit.thingy.com/haj/cacti/links-plugin.html
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Mon Mar 13, 2006 3:13 pm    Post subject: Reply with quote

Hi

For the "link plugin" I think you are thinking about this one, there is a discussion Forum in http://cactiusers.org/forums/viewforum.php?f=9

About my plugin:
My first goal is to have the possiblity to have an automatic backup of the routers and switches configuration, or to do some changes on severall switches/routers. This is almost ok ... still some optimization and to check if all is ok with unix.
After that I think we can add other functions like diff.

It is easy to add some functions which are writting in PHP/HTML/javascript. So if you have some programs .... I or someone else could try to integrate it.
Back to top
knobdy
Cacti User


Joined: 28 Sep 2005
Posts: 495

PostPosted: Mon Mar 13, 2006 3:21 pm    Post subject: Reply with quote

<finding all kinds of tools I missed before, first rrdcleaner and now links!>

pepj: I think what you're working on is one of the more important functions of a complete network management system. That said, if you'd like copies of the scripts I'm running (and promise not to tell anyone how horrible they are), let me know. I'd love to do all of this via Cacti - but it has to do what I'm doing now, but better, and it has to pass muster later on (meaning it can't use an ftp server).
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Tue Mar 14, 2006 7:11 am    Post subject: Reply with quote

Hello

This subversion seems very powerfull. But I think it should be a another plugin which could shows the version. (I ask me if Mantis is also using the same subversion or could be an alternative : could be linked with the plugin http://wotsit.thingy.com/haj/cacti/links-plugin.html for the current version.).

You know in my plugin you can start a file before or after the download. What I could do is to adapt the "file to start after" parameter in order to be able to pass the "location where the files have been saved" (like %d%). So You could copy these in a "subversion" or "Mantis" directory.
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Tue Mar 14, 2006 7:16 am    Post subject: Reply with quote

sorry

When I say an another plugin ... I mean only it has to be a plugin which is separate of the pancho configmanager. Subversion could be also very good possibility.

sorry for my english ... sometimes I 'm writing to quickly. I'm not an english people.
Back to top
JJX
Cacti User


Joined: 06 Oct 2005
Posts: 171

PostPosted: Tue Mar 14, 2006 7:18 am    Post subject: Reply with quote

really nice plugin!!!
however, i havent succed configuring yet but i hope i will tomorow

Is it working under linux? Has nayone test it?
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Tue Mar 14, 2006 8:08 am    Post subject: little bug Reply with quote

Hello

There is a little cosmetic bug (I will correct it).

In this version when you want to add router/switches you have to use:

Quote:
the last (below) "go" button to insert them.


To remove no problem.

I have also changed the filter in order to not look at the description too. I thought it was good at this, but it gives too many not desired results. So I will keep it simple.

The possibility to use also the Mactrac devices is coming soon.
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Tue Mar 14, 2006 7:19 pm    Post subject: Reply with quote

Hello

Here the new version with the possibility to choose the devices of Mactrac.

I ve corrected some bugs. I think it should be all ok now.
14.03.2005 possibility to use mactrac devices
14.03.2005 no more problem with the drop list
13.03.2006 the filter look now only at the name not the description
12.03.2006 correction bug with any.
12.03.2006 correction bug switch up/down.
12.03.2006 correction bug filter


Last edited by pepj on Fri Mar 24, 2006 5:01 pm; edited 1 time in total
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Thu Mar 16, 2006 7:04 pm    Post subject: Reply with quote

Here some little correction again:

I hope the last for this part of this plugin

16.03.2006 add show "last log file"
16.03.2006 problem with select all solved

In developpement:
----------------
- option for using SCP/SSH instead TFTP.
- comparaison of to file / like diff


Last edited by pepj on Fri Mar 24, 2006 5:02 pm; edited 1 time in total
Back to top
Viggy



Joined: 16 Sep 2005
Posts: 23
Location: MI, USA

PostPosted: Sun Mar 19, 2006 12:10 am    Post subject: GUI works but files don't download Reply with quote

I am using
Cacti 0.8.6h
Win2K
Pumpkin TFTP

I think I have the plugin and pancho configured correctly but I have some issues.

Issue 1
I can add hosts in the GUI. The conf file is created correctly in the data directory. However when I click on the show fianl config button I recieve a page cannot be displayed error

Sample config file:

[global]
TftpServer=192.168.11.130
TftpRoot=\
LogFile=d:\tftp\data\Cat5005id2.conf.log
ForkLimit=10
StylePattern=::HOST::.::DATE::.cfg
StyleDate=%Y%m%d
SnmpVersion=2c
SnmpRetries=1
SnmpWait=5.2
SnmpMtu=1500
SnmpDebug=1
SnmpCommunity=sniffle
[192.168.11.5_83]
IpAddress=192.168.11.5
post=move ::FULLPATH::\::FILENAME:: d:\tftp\data\20060318\


Issue 2
When I try and compare two files I recieve the following error:
Notice: Undefined index: compare.php:file in D:\apache2\Apache2\htdocs\cacti\lib\functions.php on line 1361

Issue 3
No files get downloaded

Issue 4
When I run Pancho from the command line with the above config file I recieve the following output

D:\>pancho --download --config d:\tftp\data\cat5005id2.conf
Net::SNMP::Transport::dstname() is deprecated, use dest_hostname() instead at D:
/Perl/lib/Net/SNMP.pm line 388.
Net::SNMP::Transport::dstname() is deprecated, use dest_hostname() instead at D:
/Perl/lib/Net/SNMP.pm line 388.
error: [1891] Net::SNMP::__ANON__(): Received noAccess(6) error-status at error-
index 1

ERROR (192.168.11.5_83): Received noAccess(6) error-status at error-index 1


D:\>

Any help would be greatly appreciated
Back to top
Viggy



Joined: 16 Sep 2005
Posts: 23
Location: MI, USA

PostPosted: Sun Mar 19, 2006 12:46 am    Post subject: GUI not working Reply with quote

OK I got Pancho working from the command line, but I still don' t get downloads from within Cacti - the jobs show as never having been run.

I have debugging checked but I am not seeing anything in the logs.

Any ideas wher I have gone wrong?
Back to top
Viggy



Joined: 16 Sep 2005
Posts: 23
Location: MI, USA

PostPosted: Sun Mar 19, 2006 11:58 am    Post subject: Getting closer Reply with quote

I am getting closer

I fixed the show config issue.

I can run

d:\perl\bin\perl.exe -Id:\pancho\lib d:\pancho\modules\blib\lib\pancho.pl --download --config d:\tftp\data\apid1.conf

from the command line and it works.

However I still can not do a compare, and it appears as if the Poller is never caller the application to download the files.

Can anyone help?
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Sun Mar 19, 2006 12:58 pm    Post subject: Reply with quote

Hi

0/ First: forget the compare function it is comming soon. I though I had put the "message under developpement". I had to solve the possibility to browse the server and not the client. But I think I have solved this.

1/ when you click on "manage config" you can see the last run time. What can you see ?
Do you have set your configuration to "up" !!

2/ to force it schedules immediatly again you can click on litte icon under the column "config" like "a paper and pencil". So you will see the schedule configuration of your config. When you click on save the last time is reset to "0000-00-00 00:00:00" and the scheduler will retry to start it in 5mins
but you can for it with (on command)
"php yourdirectoryinlowercases/plugins/configmanager/configmanager_poller.php -d "
(in lower case !! because PHPbug ). "-d" is here to force a debug in cacti log.

3/ after this can you see on the "View Cacti Log File" something ?
Back to top
Viggy



Joined: 16 Sep 2005
Posts: 23
Location: MI, USA

PostPosted: Sun Mar 19, 2006 1:13 pm    Post subject: That Fixed it Reply with quote

Smack the stupid user....

I thought the Up/Down refered to uploading/downloading

Switched to up and it kicked off like a champ.

Thanks for the great plugin and the quick reply

I look forward to the compare feature.

-Dave
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Sun Mar 19, 2006 1:18 pm    Post subject: Reply with quote

Ok my language is not english:

What would be better than up / down in order to refer to "activ/not activ configuration"? It would be good at having a very short word.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, ... 25, 26, 27  Next
Page 2 of 27

 



Powered by phpBB © 2001, 2005 phpBB Group