configmanager question

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
liuzhe2000
Posts: 16
Joined: Wed Mar 19, 2008 9:57 am

configmanager question

Post by liuzhe2000 »

i'm wrote a "startup-dh8505.bat", and it can dowmload a "vrpcfg.cfg" from my router .

But it seems as if the "post command" doesn't execute.

the "vrpcfg.cfg" isn't in the "e:\\aa\\%y%%m%%d%" folder.

the "pre command" executed , and it producted a year-month-day folder.

why is it ?

And after programme finished, i found that a "cactiplus" window is opened.

in every poller cyc , a windows is opened and it can't be closed automatically.

in post command , can i input some commands , so that i can close the window?
Attachments
window.JPG
window.JPG (16.35 KiB) Viewed 2266 times
config.jpg
config.jpg (102.62 KiB) Viewed 2266 times
liuzhe2000
Posts: 16
Joined: Wed Mar 19, 2008 9:57 am

configmanager question

Post by liuzhe2000 »

oh?

can nobody help me ?


the post command is executed

but when the "startup-dh8505.bat" in "command" is being executing step by step, the "post command" have been finished.

how can i delay the "post command", so that the "post command" is executed when the "command" is finished ?
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Re: configmanager question

Post by pepj »

liuzhe2000 wrote:And after programme finished, i found that a "cactiplus" window is opened.
Do you have insert an "exit" in your startup-dh8505.bat in order to close it ?
liuzhe2000 wrote:the post command is executed
how can i delay the "post command", so that the "post command" is executed when the "command" is finished ?
In fact the pre and post idea were created at the begining for pancho ... with the method "multi" a problem of synchronising appears because each program/batch is started with a seperate process (changing this to a system php command could create some other problem like PHP timeout if the process need time..) ...
In any case with the method "multi" you don't really need PRE and POST. You can insert these commands in your batch startup-dh8505.bat ...
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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests