[X] The "/vmpk/vmpk-0.2.5-setup.exe" file could not be found or is not available. Please select another file.

Share

More
Instant Diagnose System Icon

Instant Diagnose System

beta

by brunoribas


SDI is a simple and scalable system to Diagnose Instantly huge (and small) networks. It provides a way to run diagnose scripts at hosts or any other kind of script [such as a DEE], also creates a webpage containing all informations summarized.


http://sdi.sourceforge.net





Separate each tag with a space.

Release Date:

2008-12-02

Topics:

License:

Ratings and Reviews

Be the first to post a text review of Instant Diagnose System. Rate and review a project by clicking thumbs up or thumbs down in the right column.

Project Feed

  • File released: /sdi/1.0.0/sdi-1.0.0.tar.bz2

    posted 342 days ago

  • sdi 1.0.0 file released: sdi-1.0.0.tar.bz2

    commit 9c48bd539cddf0be60dc6db9d29863a21786a484 Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Wed Nov 5 02:27:16 2008 -0200 SDI 1.0.0 Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit f1cda284ca246b4b09c721d9e3cc7f7ec0315b14 Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Tue Nov 4 02:30:00 2008 -0200 README: Update it to contain updated information about SDI As README was a draft version from the PoC SDI. I updated it to contain any new information about SDI, such as: - Mailing List - WIKI - WebSite Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit bff2e49d8eed47803bb15fbae49cd23da8a63ac7 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 30 23:51:47 2008 -0200 Added check to discover if realpath command is available The realpath is strong SDI prerequisite, so this command must be installed on the system. If not SDI must fail and exit. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 925deb99fd9cd215d062caa22a89fce5860a3678 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 30 23:51:46 2008 -0200 Fix savestate tail not be killed before it ends When killing SDI processes an "exit" command is sent to SFIFO (which is the FIFO of the running savestate), but after sending the 'exit' command all SDI preccesses were killed (SIGKILLed) with no mercy and not properly finished. Before killing this tail we need to wait savestate() to finish correctly, so the remaining unprocessed states will be updated. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 456888a64fa3b44d05aaf9f825c97ad6b09b714b Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 30 12:50:35 2008 -0200 Fix check of open tunnels Sometime ago PID file for each tunnel had it's name changed to $HOST.sditunnel but LAUNCH() continued checking the old name which was duplicating, triplicating... n-cating tunnels each time LAUNCH() was called when SDI was running. But it is fixed now. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 239435884d0eb8a48b962950114cec36543d8c26 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 30 12:50:34 2008 -0200 Fix SDI closing message Message was displaying that sendfile was ending but there's not just sendfile pids on PIDDIRSYS folder, but all SDI related proccess. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 3461d79fd0ba7ede29110f2fc8f49b5083d65a1f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Oct 24 15:48:36 2008 -0200 Fix attribute errors log messages When some parser object don't act like expected, an attribute error happens, but now we don't know on witch HOST or script. Moving this message to the HOST specific log file will be easily to debug parser objects errors. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 7d33d483112863e00bde28ec7ae818843b895807 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 23 19:14:24 2008 -0200 Reduce number of calls to PARSE() at SDITUNNEL() SDITUNNEL() set the host as OFFLINE before and after the ssh connection, but to do this it creates two new PARSE() instances. Doing all at the same time will decrease the proccess to be used by SDITUNNEL(). Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 916fd6ef43cf7160de2671890db49011d8d950fa Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 23 19:14:23 2008 -0200 Fix background tail alive after killing all hosts When running the ssh connection receiving two tail's of commands, the first one was on background. The bug happens when the "exit 0" command is sent to CMDGENERAL file, because this tail will suffer a broken pipe, but the first not. This fix replace those tail's by just one, adding the '-q' option. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit ae5f4de5076d5eb30781f67bdc9abff5eb136d22 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 23 19:14:21 2008 -0200 Added interval between exit commands When killing all hosts on SDI the "exit 0" command is sent twice, the first will kill the ssh tunnel and the other will cause a broken pipe, killing the tail's. But with 2 consecutives exit commands, theres no time to bash detect the broken pipe, stalling the proccess. This fix will provide a time between those commands. The minimum wait time is one second (the tail update period), but 15 seconds are a good choice to secure slow connections to safely closure. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b969da85fe4c8af08cdfcb7ce78307ba0951d83b Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 23 19:14:22 2008 -0200 Moved SDITUNNEL() pid detection to inside the function Moving the pid detection to inside the function can be important if some command needs this information. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 0891a42df1e53ca3617cbcb57a0505c3d714d288 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 23 19:14:20 2008 -0200 Fix premature calling of closesdiprocs() When killing all hosts on SDI the "exit 0" command is sent twice, the first will kill the ssh tunnel and the other will cause a broken pipe, killing the tail's. The closesdiprocs() kills all pocesses related to SDI management, such as the states fifo read. This cause no more mesages to be interpreted by savestate. Calling closesdiprocs() before wait the proccess cause the PARSE() to be stalled when sending mesagens to SFIFO, witch reading is alreadly stoped. The fix move closesdiprocs() after waitend(). Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit e70bfa374da962b34c0249060ce2033f4a4b241a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 22 19:39:36 2008 -0200 Fix savestate() to avoid multiple instances The savestate function call must check if another instance is running before launch. The expression to check this was wrong for some reason, and it was modified to work the same way as sendfile daemon is checking. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit a594f0cdb95fdc2bd5a3d74a7bcefba3d8ed754d Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 22 17:28:31 2008 -0200 Added online and offline states Added Online and Offline states to be an example of how to create a state that will not produce table to be showed. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit f3a7c6eb420d56dbcc711bf678ad2463bb74a7cf Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 22 16:51:10 2008 -0200 sdiweb: Added detection of tables that should not be showed on webpages The showtable xml attribute will say if the table will be processed or ignored. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 149dbe3d44fde9ad5b3cae84a2422613e498d01c Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 22 16:51:09 2008 -0200 Added a new variable STABLE to control if the state table will be showed The STABLE variable must be set to true, witch is the default, or false. This information will be transmited to the webpage thougth the showtable xml attribute. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 6da1ab84f1c9669d37cff1fca38f2ed65145a809 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 22 14:35:38 2008 -0200 Fix launchsdi.sh to import functions from misc.sh The savestate function uses LOG function but it wasn't sourced on launchsdi script. So import functions from misc.sh is very important. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 1366c2855069ec8f53f95848131e75f36f803de2 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Oct 20 13:54:21 2008 -0200 Fix SDI default scripts function names to work with new PARSE() The new parser objects default says that updatedata and www functios must start with the script name and a underline, like status_updatedata. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 452c3547fad7e139833774d5c6d9eaee85479555 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Oct 20 13:54:20 2008 -0200 Renamed ram-memory script to rammemory The ram-memory script has been renamed because the command unset don't have support to character '-'. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 90a9dc35bfdcb710b85aa636a89dbe4f58b143df Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Oct 20 11:29:39 2008 -0200 Rewrite sources idea in PARSE() to decrease the disk usage during execution When running a PARSE function to each HOST on SDI, the number of sources on script files are one per message. If there's 2000 hosts with 10 diagnose scripts running hour by hour, the number of sources will be 20000 per hour. With this commit we only source the parser object once per host, and on demand. For example, with 2000 hosts and 10 scripts, the first time a line comes to SDI, it will source the parser object but in the next hour this source will not be necessary anymore. This will reduce 20000 disk access on each hour. Also, a trap has been added to force a re-source of parser objects. This could be useful if some parser object has been updated and you don't want to reopen all SDI tunnels again. On the next time the script line comes to SDI PARSE() the source will be made. This action can be done running lauchsditunnel with option --reload-po. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 2cb209eaf2a770027cf8c11869a6dcd1d740b991 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Oct 20 11:29:38 2008 -0200 Fix PARSE() function to not mkdir DATAPATH every loop iteration Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 9c454012ec6e9878352fe9faa34d6ce67fc02e42 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Oct 20 11:29:37 2008 -0200 SDI parser pid is saved at file PIDDIRHOSTS/HOST.parserpid This pid could be useful for some future feature. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 187ebc6bfcc4689a64f6af92781b06a66ba1b7d7 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 16 13:26:07 2008 -0300 Moved states update to launchsdi script When running sdi to multiples classes the savestate function are launched all those times. With this modification the savestate will run just once. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 2df2721b23cf1dcff759c270d39a586a15c4fe5a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 16 01:09:00 2008 -0300 Fix sdibar default selection when the CLASS have a space Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit aa92c07e7ff2813aff9139010a7cc204b914c19f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 16 00:48:57 2008 -0300 Added protection when removing hosts from transfer list on sendfile When multiples hosts finish the transfer at the same time a direct remove of pid from transfer file is a bad idea. Adding a fifo to control those updates is safer. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 782902a871ae51a7cf5d4c7667fbf8b2272ab9b1 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 15 20:47:42 2008 -0300 Fix sendfile daemon pid path Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit e1536a1bc5d0e3dff6a5b1739983180e2b8a1afd Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 15 20:28:04 2008 -0300 Added creation of empty transfers pids file when launching sendfile When senfile is killed with transfers running, the transfers pids file will keep those pids. Launching sendfile again will give a bad count of current transfers. To prevent this, every time sendfile is launched an empty file of pid transfers is created. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 1e91d4effd27bbea97da4a7df6d3e5a9d65290a8 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 15 20:16:27 2008 -0300 Added quiet option to sendfile scp's and redirect output to /dev/null Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 0f15a3e4d06764efa84a10f230019de58cedd409 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 15 19:21:08 2008 -0300 Moved createstatestructure function to launchsdi With this function on launchsditunnel the states files were created for every class. This causes only the last class called to get hosts on states. When launching sdi the state data struct must be created just once. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit c3a2fb2fe1fba59a6b0a78f08be1691603273b58 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 15 19:02:50 2008 -0300 Moved messages when no parser is available to a host specific log file Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit faf060be54387445f2ad61e3df37e1982a58f14a Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Oct 15 15:00:18 2008 -0300 Fix launchsditunnel.sh: hide useless error messages when look for pids Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> commit 183790bc2ee86eb616a4f3a24a598daa8947029d Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Oct 15 11:27:37 2008 -0300 launchsdi.sh: Added protection when sourcing sdi conf file Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> commit 91610a0a8297c9e34d35e4962ba5d0e317268409 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Tue Oct 14 10:05:46 2008 -0300 sendfile: Add protection when sourcing sdi conf Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 3a4d4645a9c5136ccfaf8e3bac3fc56b1e56a23e Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Tue Oct 14 10:05:45 2008 -0300 sendfile: Add ssh options from sdi conf to scp Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 2edc9ccd6837e3eb1304acb9b87b0521ec5192a7 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Oct 10 15:50:25 2008 -0300 Fix paths for new PIDDIRSYS and FIFODIR variables Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 053427d02d957e4571636099b60f4cb87005e921 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Oct 10 16:16:12 2008 -0300 sdiweb: Fix language cookie When viewing a sdi page, the language cookie is set to default browser language. But if the language is changed and, then, the page is changed, the default language show up again. This change ensures that the language cookie will be valid in all sdi pages. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit a8a8635dc8dcc5457dc233ce14ccd41e25d4ff8e Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Thu Oct 9 01:10:13 2008 -0300 Fix SDITUNNEL() to redirect all ssh output to stdout If some message (even a ssh error) were sent to stderr it was printed at user's terminal console that has launch SDI. From now on these stderr messages are redirected to sdtout and PARSE() will decide what to do with the message Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 32115073716c2729b0072a2762f366f55eefc9d8 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Oct 8 10:09:29 2008 -0300 Fix launchsditunnel.sh: close SDI if no SDITUNNEL is open If the user closes one by one all the SDITUNNEL's, the SDI (and processes opened by it) should be closed as well. To facilitate this, two new functions were created: - notunnelisopen(): returns TRUE is no tunnel is open, otherwise FALSE. - closesdiprocs(): close processes used by SDI. Is used by both closehost() and closeallhosts() functions. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> commit df92846d09062635ad12a47dc6dafa7d7bb1cc2a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 8 16:43:14 2008 -0300 Moved SDIWEB/hosts folder to WWWDIR/ The SDIWEB must be read only but the hosts folder is constantly updated with the last hosts information. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit df03d041a9b1ccfac9fa1ee691d8e7581f528dc6 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 8 16:43:13 2008 -0300 Fix inconsistencies in STATEDIR variable The STATEDIR must not be inside SDIWEB, because it's a read only directory. Now the states information will be directly created inside WWWDIR. The STATEDIR is now hardcoded to WWWDIR/states. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 76f86ea8bc9b37b11ca2b1be98d728aa24da5b78 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Tue Oct 7 18:50:43 2008 -0300 Added a README file to sdiweb Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> Spell-Checked-by: aspell <http://aspell.net> commit d0d7c5d4d32ee5d4aedffebb87d8157d774bb141 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Tue Oct 7 10:43:05 2008 -0300 Fix launchsditunnel.sh to check if sendfile.sh exists and can be sourced Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit 5ddd9ec7458d65a41111e7e228663b5c4d2c1d85 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Tue Oct 7 10:33:06 2008 -0300 Fix sendfile API and related to use $PIDDIRSYS for pid files Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> commit f07bf5ec4b034e80a59d32a0519d870227d94da7 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Tue Oct 7 10:33:05 2008 -0300 Created a $FIFODIR to store the FIFO's used in SDI All FIFO's used in SDI were placed at $FIFODIR directory. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> commit 509fa4d01d902fb8edc60488b132b7089e9069b0 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Mon Oct 6 11:13:05 2008 -0300 Organized into groups the pids of SDI running process The pids of the tunnels opened will be stored in $PIDDIR/hosts (new $PIDDIRHOSTS variable) directory, while the pids used by SDI for control proposes will be placed in the $PIDDIR/system (new $PIDDIRSYS variable) directory. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit d2d4f13771b6900cc813d08eb41b024086c60410 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Mon Oct 6 11:13:04 2008 -0300 Fix launchsdi.sh: force the recreation of the symbolic links This prevents possible broken links when some directory needed for the sdiweb has the path changed by the user. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 74b604c866a714c9ba0d315b69261d4393439585 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Oct 6 09:50:32 2008 -0300 Added protection to not launch multiple stances of sendfile daemon Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b2c18bc3ed394a5b8e6dd712117c4e2838b24b2f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Oct 6 09:43:15 2008 -0300 Fix status when first running sdi Running sdi for the first time, the status column was empty and the offline message was taking 4 minutes to be shown. Setting status before try to connect do host will prevent this issue. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 8e107f1b287bdcb8f9fcbd3651dfea72bbd886ad Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Fri Oct 3 10:09:52 2008 -0300 Fix launchsdi.sh: prevents the creation of a zombie process The launchsendfile.sh deamon must be launched only if at least one host is defined in CLASSESDIR. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> commit 29c93bfec2aea23957022cec12812cfdf987d4b5 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Oct 2 09:54:57 2008 -0300 sdiweb: Added a "Powered by SDI" on sdi pages footer Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 3de3435de52b7650d444f30e16c086c9ed5269c5 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Oct 1 11:21:23 2008 -0300 Fix launchsdi.sh: Exit SDI if no class is defined in $CLASSESDIR At least one class with one or more hosts must be defined at $CLASSDIR directory Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 687bc17cc681a8e1448d44e6cc32e3da06640163 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Oct 1 11:21:22 2008 -0300 launchscripts.sh now uses the $PREFIX variable Old sdiroot variable was changed to the default name $PREFIX, to ensure consistency between the SDI scripts. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit d9b7690c60724a53b5052f9039132bd64677290a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 1 11:44:05 2008 -0300 Removed old sdi scripts Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 7c24ee7ffa8e75d1487d9e70a8816cf6211bcfc2 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 1 11:44:04 2008 -0300 Added script to diagnose the hosts load average Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit a53d014136e30c9e998724a213cac08268113912 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Oct 1 11:44:03 2008 -0300 Converted ram-memory script to new sdi standards Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 88ed06d540fcf6e09c296513f13d2240c32e840f Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Tue Sep 30 03:12:55 2008 -0300 Add file COPYING regarding SDI license, GPLv2 Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 3c28d8a85a9b1f17d706816dd262967ff4b6afb1 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Sep 29 17:37:15 2008 -0300 Fix the way of getting information about the processes Removing the calls to ps(1) to check if a process is running will decrease the script time. Checking /proc the effect is the same, but faster. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 6ae10f9e922d2071469644165e9b68d1cc6d48d9 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Sep 29 14:02:14 2008 -0300 Fix uptime.po default high uptime to a minimum of 100 days Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit bdf878bd24dad5b8cda69b79b2b4b77574560f6f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Sep 29 13:50:47 2008 -0300 Removed PREFIX from paths that can be outside sdi root folder Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 250a5eabc554b26f624c88c00443a09b84239c28 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Sep 29 13:50:46 2008 -0300 sdiweb: Removed PREFIX from paths that can be outside sdi root folder Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 0de9c8b7add979236b2c0c1bf278cfc1b3044375 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 26 16:06:41 2008 -0300 sdiweb: Fix generation of sdibar and xml files but no summary is enabled Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 4049a84f1d184f6bab1ba1511c4b95d5296710d1 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 26 16:30:02 2008 -0300 sdiweb: Added support to select the current page on sdibar The sdibar shows all pages available that user can visit, but when the visitor are in some page the sdibar page selection combobox must be with the current page selected by default. Otherwise will become impossible to visit the first page on sdibar. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit f94238714451d765d97a73d8b285a2424570c215 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 26 16:10:44 2008 -0300 sdiweb: Fix summaries page extension to shtml instead of html Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit f6452e1d6a4b679bb51a13bd8934483b9a56c094 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:41:09 2008 -0300 Fix when generating summaries but there's no summary enabled Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 4b1d2e940494dafb3c332265fb2c61193baea65c Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:28:59 2008 -0300 Added HOSTCOLUMNNAME variable to sdi.conf and Status column to default Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 2432423a18dad4cf7af50dcfc5764497d3664927 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:34 2008 -0300 000-index summary enabled by default Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit ef73494fef927df3500e259c2fd246af60ebd1d7 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:33 2008 -0300 Fix index summary to display low and high uptime states Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 7ac8ed08ccff3cad5167872a5b71772bdfd3f48c Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:32 2008 -0300 Added states support to uptime parser object Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 306772d25396163a2293e3b916a0d94d73e4c32f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:31 2008 -0300 lowuptime state is enabled by default Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b339fe7f62f6856178c4cd6b95d6404af4333d5f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:30 2008 -0300 highuptime state is enabled by default Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 8ba3e910ec417bf0725febda9b48735ea0d55e60 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:29 2008 -0300 Create state to say how much hosts are in high uptime mode Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 90096b18ee1eb6927e3fd5e1491cf8ad1e98f903 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:28 2008 -0300 Moved uptime state to lowuptime state There will be two uptime states, a low and a high uptime states. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 2c75a8df0ed016217dc0a9b429773a2bca68a552 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:27 2008 -0300 Fix SDIWEB/hosts folder creation when launching sdi Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 9b1fcf857fef7229380cca9f7b60f120791e4f47 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 25 10:20:26 2008 -0300 Enable status script Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 235dee34263762d9217b83c0c2181a3c0496fa4a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 19 12:02:23 2008 -0300 Fix typo at launchsdi.sh Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 90c22dedbf7660ac61a31164780059ee1cc03a50 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 19 12:02:22 2008 -0300 Fix the default status creation The bug occours when launchsdi.sh is executed more than one time. When first running the default status is changed to OFFLINE, but when running again, without killing the connections, the OFFLINE state is forced but the host can be ONLINE. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 6c2a2ad920722cf42cbe462986beb7486c9dd795 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 19 16:24:19 2008 -0300 Added states link when creating WWWDIR structure This is necessary to summaries pages get information about the states and load the correct data. Only the WWWDIR root folder need this link because the summaries are located there. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 9d5d6000aadc36a3b7ebd2cf82f7c72f735ada30 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Thu Sep 18 11:25:18 2008 -0300 Fix launchsditunnel.sh: Checks if the tunnel is opened and running Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 75507fb294bdf84677239d50ebf5d4199cffbf5a Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Thu Sep 18 11:25:17 2008 -0300 Fix creation of essencial dirs to SDI Stop execution of SDI if some directory needed is unabled to be created. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 5a4fead1eaacc7015e3554882c9e3800ab544c8d Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Sep 17 14:58:42 2008 -0300 Fix launchsditunnel.sh: kill signal sent to a process that does not exist Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 4cb95b68ce97bbd7bc39080288baa2efd907b2dc Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Sep 17 14:58:41 2008 -0300 Fix common: kill signal sent to a process that not exist Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit aa7e45d8fcc3b52bd351d0160f248b37686eae47 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Sep 17 14:58:40 2008 -0300 Fix cat error at closeallhosts() ("sendfile: Is a directory") Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 927e6828e37639c7d7dc991ca5c5f447a6b49323 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Sep 17 14:58:39 2008 -0300 Timeout to kill SDITUNNEL's is counted only once This prevents an excessive waiting for the SDITUNNEL's that failed to be close from a normal way. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit c15cee4d00ebd8e767ccf57522d704d7e6ec123b Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Sep 17 14:58:38 2008 -0300 Fix missing '\n' on printf command at waitend() Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b7402297196a523197be61010f02f3227dc2a415 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Sep 17 14:58:37 2008 -0300 Fix launchsditunnel.sh: Ensures that $HOOKS and $SHOOKS directories exists Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit e68d2909610d95ba381f9f299abe8ecc1f8b87f1 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Sep 17 13:53:13 2008 -0300 Fix the way the sendfile() function behaves on errors When some error occour it's necessary to use "return" instead of "exit" because its in a function. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 18e460799459a07a0b1d70d225181345f7e1e268 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Sep 17 13:53:17 2008 -0300 Added support to host block A file at TMPDIR says which hosts are blocked. If a host is blocked then sendfile requests will be ignored. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 26f1da382b6066d99d432f08396f35903ff9419f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Sep 17 13:53:16 2008 -0300 Add a host to the sendfile block list when finishing the SDItunnel Killing the sdi tunnel of a host, implies don't send files to this host anymore. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 2f9896c2489bbf702dd1ae6a760285e07e165f67 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Sep 17 13:53:15 2008 -0300 Added dependency to sendfile.sh at launchsditunnel.sh This new 'include' provides an API to interface with .po scripts Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 4316f6d0e43334e61627d7f4871ce5a942e19d8c Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Sep 17 13:53:14 2008 -0300 sendfile.sh Added a option to block a host to receive files The new option (-b) put the HOST on a blocked list. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit fc6137dbe600c5708fa4b0f3561bc0173d549deb Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Tue Sep 16 11:09:57 2008 -0300 New feature: classification of hosts by states The state of a host shows an adverse situation about it, for example: hard disk problem, high load average, wrong software version. The web part of the SDI will retrieve this information and create a summary, facilitating the administration of the hosts. New configuration items: -SHOOKS: directory where the configuration files of the states are placed. -SDIWEB: directory to store the files of the web interface. -STATEDIR:directory where the states of the hosts will be saved. -SFIFO: path to the FIFO used for upgrade the states. Implementation details: - A FIFO file ensures that does not exist simultaneous recordings in the files that store the information about the states. - The states system is enabled only if the SDI web mode is enabled to. - The states-available directory have the scripts that describes the states, while the states-enabled directory has links to the scripts in states-available that must be enabled. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit f7e8bcce064184bc3c575d605df502cecf849483 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Mon Sep 15 11:10:09 2008 -0300 Fix failure to close SDITUNNEL process when the host is offline Added killchilds() function to send a recursive kill signal for SDITUNNEL() process which has a subprocess (sleep) blocking it's normal closing. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 9e4b0ba8b62a42cb61b65c7dbf4ad9478b11b1e9 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Fri Sep 12 13:33:09 2008 -0300 Fix closeallhosts() to finish sendfiledaemon Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit ed1bbc72dc25214b723af17dea76fa516ace8c27 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 12 11:14:04 2008 -0300 Start sendfile daemon when launching SDI Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b60fada199a4a958216a86420a7949ee05df42ab Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 12 11:14:03 2008 -0300 Fix sendfile check end of transfer for the first time to a host When running sendfile to a host for the first time, the temporary file used to control the transfers is not there and grep will fail until the transfer is done. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 033c2f2eaa68ead531c73820a153bf41598fd49c Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 5 10:22:01 2008 -0300 Added creation of TMPDIR when launching sdi Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit ae81d98419f3997e1fc17efb0d2b0bc94177996a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Sep 4 10:25:06 2008 -0300 Move function createdatastructure() to launchsdi.sh When running sdi to large number of hosts sometimes the data struct creation don't run for every hosts. This causes sdi pages crash because the classes XML files will not be complete. With this creation process on launchsdi we have all the files before start launching sdi tunnels. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 8125f331adc7d11255e3414bdce346dde417e66a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 5 11:14:08 2008 -0300 sdiweb: Fix generateclasspage.sh to escape apostrofes Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 32e951f318d6f3ce6c931b541ec5a7503754ac81 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Sep 5 11:14:07 2008 -0300 sdiweb: Fix sdi.js show_menu() action to escape apostrofes Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit a7ef28acffdf7a761e904704df1f8969014f49c9 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Sep 1 10:45:06 2008 -0300 Added call to killchilds() before trying to kill sdi tunnel Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 8fe70613f1c795db4f62d5d588591e2bf7f2f6c9 Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:51:18 2008 -0300 Fix launchsdi.sh: Removal of all 11 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 5a8782d38951ed7bc27481b9a2201b43403ec45b Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:51:18 2008 -0300 Fix generatesdibar.sh: Removal of all 4 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit cce467824cb2961eff9cf4d258d5855072dad190 Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:51:18 2008 -0300 Fix generateclasspage.sh: Removal of all 1 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 57e6513aeaf101842e152eb797953b99674b011f Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:44:40 2008 -0300 Fix launchsditunnel.sh: Removal of all 2 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 4221ca25f6eb36bbcfdf781d0dd30e2d760a54b0 Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:44:40 2008 -0300 Fix generatexmls.sh: Removal of all 1 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 07e9274f0064330ef23e75ac3cc004e7ff70c84a Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:44:40 2008 -0300 Fix sdi.js: Removal of all 4 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit e35f2d702a5d8ffed8ef56c563dd990da12c32e8 Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:44:40 2008 -0300 Fix sorttable.js: Removal of all 3 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 4986c0f07800bf6625278721b0390cf0fc38c731 Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Sep 1 02:44:40 2008 -0300 Fix README: Removal of all 2 trailing spaces Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit f1daa511d25c41324063ceb4bbbd67d046fb596b Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Fri Aug 29 10:42:25 2008 -0300 Move function PRINT() from launchsditunnel.sh to misc.sh Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit f13a91f395679b1920e2507e8a7f21826d6584b0 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Fri Aug 29 10:42:24 2008 -0300 Fix DATAPATH value at launchsditunnel.sh The last level in $DATAPATH variable is unnecessary and was removed. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b0f2a295c283a579cb72577b40a45562a885ac9b Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Fri Aug 29 10:42:23 2008 -0300 Fix launchsditunnel.sh to check if sdi.conf file exist The sdi.conf file is vital and the program must stop if it does not exist Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 666540b304e589bef2ba7b33b6385a6d362d9460 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Fri Aug 29 10:42:22 2008 -0300 Fix launchsditunnel.sh to use standard SDI LOG() function For LOG purposes, the LOG() function replaces the old PRINT() function. Because of this, the $DATAPATHERR directory is no longer necessary. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 39f49f4e4c2198c72da7dfbcf418332b4dccb88e Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Sat Aug 30 17:41:19 2008 -0300 Created function killchilds() to kill childs of a process The killchilds() kills all childs from PID and childs from each child recursively. This is necessary to avoid some zumbis while disabling some scripts or programs Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit e2c93799875b4c331d6d9e6f764eedc9a6b7c5fd Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Sat Aug 30 20:23:03 2008 -0300 Created function waitsendfile() to wait the sendfile function requests The waitsendfile function waits until a sendfile request ends based on the destination file name and the current date. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 27edf465252a5c0d713dd9168ae2f647d206c547 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Sat Aug 30 20:23:02 2008 -0300 Created function sendfile() to send files through .po scripts The sendfile function receives the request to send a file to a host, check the arguments and put it on the queue. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 5076e3b7ef1edc5dd71d390728a52714a9cc07c7 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Sat Aug 30 20:23:01 2008 -0300 Created launchsendfile.sh to administer file transfer This script simply manage a queue and send information to host when the transfer ends. The variable SENDLIMIT has been added to control the number of transfers at the same time. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b36ea298d28ce541d491bcd69834c3d1d5fa7e59 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Thu Aug 28 10:15:33 2008 -0300 Fix launchscripts.sh to check if vital files exists To avoid massive cron error e-mails, launchscripts.sh check whether vital files does exists, such as misc.sh AND more important cron requested HOOK. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit d0ff36e8e2e321de1b94909caa14d95f68a76b68 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Thu Aug 28 10:15:32 2008 -0300 Fix default $PREFIX value The value was changed in launchsditunnel.sh and misc.sh files from "." to "dirname $0" to allow them to be run from any directory Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 16e549454929be9a0b8c6d28f60bb66f455c237a Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Thu Aug 28 10:15:31 2008 -0300 $CMDDIR and $HOOKS becomes configurable Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit d2594814aea8bcc543406cd1db6771c8425c3f18 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Mon Aug 25 15:42:49 2008 -0300 New file misc.sh. This file provides miscellaneous functions Functions shared by several scripts will be placed on misc.sh file. For now it provides a function to save a message on sdi log file. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit da3fe7dbdbb7840d695204b7fc125929ae030459 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 22 09:38:54 2008 -0300 sdiweb: Created generatesummary.sh to generate summaries pages SDI will support multiples summaries, each with it's own set of associated states. This script generates a summary page, and stores it to the first argument of the function. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit d3e1af42cabd39ad1e1fe19d220d7685192a4430 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 22 09:38:57 2008 -0300 sdiweb: Added generation of summaries XML files The summary have a special XML format. The function generatesummariesxml() will generate this XML to be loaded by summary page. The summary configuration file must have two elements: SNAME is the summary name, used on generatesdibar script. And a vector STATES that have all states that should be showned by the summary. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 228aa867843a5006f46e73f8dbfff648e1ad284e Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 22 09:38:58 2008 -0300 Created an example of a summary configuration file Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 7dd562b261c239912cbec5b004cf59356048f76e Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 22 09:38:56 2008 -0300 Update sdi launch script to generate summaries After launching SDItunnels, launchsdi.sh will call for summaries generation based on PREFIX/summaries-enabled and functions at SDIWEB/generatesumary.sh Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 05d1de124bc3e918c99ee4645f021bbfa64fcc4f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 22 09:38:55 2008 -0300 sdiweb: Updated generatesdibar to include enabled summaries The sdi bar should have all summaries on page selection box. To do this the SNAME variable is used, and the target of page is the same name as the summary configuration file name. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 855a538f7d6cc5fed3c3d25d42d5e882953de6ac Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Aug 21 10:16:38 2008 -0300 Fix uptime.po to send correct string for table sort Added the PSORTCUSTOM variable with a good string to make table sort by uptime numerically correct Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit d9a3f892392f65363dfab7a99f99f89de93b8118 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Aug 21 10:16:31 2008 -0300 Added a parser object to common script This parser object just says that common should not appear in web pages. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit ecb2ed154af11b30148acfe7b11a1e1ae17eb656 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Aug 21 10:16:30 2008 -0300 Removed PRINT function from common scripts This function is useless now because the return text from a sdi script should be SCRIPTNAME+DATA, but PRINT puts the current date before this string. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 34117696cf343f8adf9ef5b3b09a2b2c38e43cb9 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 20 00:11:55 2008 -0300 sdiweb: Added comments and adjustments on sdi.js The adjustments are mainly typographical and changes of variable names. Sdi javascript is growing, but comments leave things clearer. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit c0cb2549dc4629cbb33bcb4c6dc5e1926d5295cd Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 20 00:11:54 2008 -0300 sdiweb: Added creation of summary by javascript The summary have a special XML format and need another way to load it. The functions included can dynamically create the tables using the DOM tree. This means that the summary page itself doesn't need any html code, but only a container element. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 072ee83e4dc7c143a0edd477a1efb59664736fa5 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 20 00:11:53 2008 -0300 sdiweb: Added dynamic language support to web pages The language are loaded from a XML language file. The first try is the browser native language, if this language isn't available the default language is en-US. Once user select another language, this information will be saved through all sdi pages. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit cae802f60f2ea7b73a028cf6caf7f7d489d1fede Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 20 00:11:52 2008 -0300 sdiweb: Added support to auto update on sdi.js Included function to reload a table from a XML. This function is important because it doesn't re-create the table, but update only data that has been changed. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 63e3350b9d7ae7c660cf6281410e09929c9d4a96 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 20 00:11:51 2008 -0300 sdiweb: Added support on sdi.js to create a table from a XML file The XML files are the heart of sdi. The functions added can request a XML and create a table with this information. More information about XML format are located at README. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 7845842462aea790af4ae718025687db49a573b0 Merge: 6f0e3a4... d5ca34b... Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Tue Aug 19 13:29:47 2008 -0300 Merge branch 'master' into next commit 6f0e3a43cee2e1f6cd454c5391cd12018b29ce5a Author: Gabriel Ramos <gabriel@c3sl.ufpr.br> Date: Mon Aug 18 21:24:05 2008 -0300 sdiweb: Added German Language Translation (de-DE.xml) Signed-off-by: Gabriel Ramos <gabriel@guinness.c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit fedb6f80249d6426fef9ab90d5036670de4d3810 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Aug 18 09:35:47 2008 -0300 sdiweb: Added html table model The generateclasspage.sh script uses this model to create the sdi tables. This model have a tag {TID}, replaced by the table id, and a tag {COLUMNS}, replaced by the default columns on sdi.conf. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit c6527014239140ab6cecb52ceb2b2eca4b83193d Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Aug 18 09:35:46 2008 -0300 sdiweb: Added sdibar support for auto update control A checkbox has been added to allow user manage of auto update system. Also, there's a new icon near the checkbox to represent this feature. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 88a6975d09f0f08f4d65c366ceb1b5e9f9bc3e35 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Mon Aug 18 09:35:45 2008 -0300 sdiweb: Added sdibar support for multiples languages Sdibar has been adapted to multi language system. All text fields that should be internationalized must have a id or a common class. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 9f9951a732de9beac48ddfefee84eaf58a4e98fc Author: Bruno Ribas <ribas@c3sl.ufpr.br> Date: Mon Aug 18 13:40:58 2008 -0300 sdiweb: Added Russian Language translation (ru-RU.xml) Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> Acked-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> commit f6ec498b0da756317a5758db008209aed80835dd Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 15 16:28:02 2008 -0300 Fix the way column order are retrieved from commands-enabled folder An arbitrary order from "ls" was used, but this didn't give any control of columns order through cron(8) folders. The order now is the filename. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 6d15395bb0220314b9e458a64934e3996ba3e89a Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 15 11:18:29 2008 -0300 sdiweb: Created language files The current available languages are English, Portuguese and Spanish. A language file is a xml that hold all internationalized texts, and also have information about the language short tag and the language name. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 49ae56360a0688df7bf95cc8f204c05bdeaa8a63 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 15 11:18:28 2008 -0300 sdiweb: Added language support to a class page generation The language support is an important feature. All generated class page will have the select-box to easily change the language. The available languages will be loaded by javascript with a xml file. The folder holding those files is SDIWEB/langs. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 31a028a8d79d6d25eb8ee892c3f20a439975199f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 15 09:57:00 2008 -0300 sdiweb: Fix line wrap on header.html model file Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 5dff8a3d7d2a06194e4577dab17625290bd0d109 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Aug 14 15:13:48 2008 -0300 launchsdi.sh becomes the SDI launcher Since SDI 0.0.99, which was our Proof of Concept implementation, no formal sdi tunnel launcher existed and were left to the administrator to create a script to do so. PRDSDI is the example of that, and it were not generic. As previously rename of launchsdi.sh to launchsditunnel.sh, this commit modifies launchsdi.sh to be like old PRDSDI but more generic. It includes functions to generate class structure, to create WWWDIR folders and links, to retrieve enabled columns to web pages and also includes a complete host search through CLASSDIR folder. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit a964a4b7b876f0ab859604269795efa3bf8c6742 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:22 2008 -0300 Added support for cron(8) to execute scheduled scripts Configure cron application to run launchscripts.sh script in certain periods of time describes in "commands-enable" directory (daily, minutely, monthly, hourly, yearly, weekly). This script, in turn, execute scripts contained in the cited diretory in the remote hosts. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 2e981e7e447c6d4c03f0095d12072c71964fe79c Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:21 2008 -0300 Improved the way to check if some SDI tunnels are opened before open it. Check only the hosts that user is trying to open (instead all hosts with a existing pid file) and shows the hostname instead your PID. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 0f1615dfd0e12ca053d2a8bb214590d1ddf25aff Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:20 2008 -0300 Given the option to close one or all the SDI tunnels In addition to SDIFINISH file, a control file was created for each host ($HOST_FINISH) to allow the closing of a single and especific SDI tunnel. Also, the usage() function and the treatment of command line parameters was updated to deal with this new feature. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 7dc5d47252544ccb82ab89979eef0b19427bd61a Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:19 2008 -0300 Created the usage() function. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 4bb1c178b65f3143c1967b88e7e34d6a55b9203d Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:18 2008 -0300 Added status verification of the hosts (online/offline). To allow this feature to steps were necessary: create a script to run in remote hosts (like all other example scripts) telling the PARSE() that a connection is established and (step 2) send to the PARSE() a code when a tunnel was disconnected (built in launchsditunnel.sh). Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit ea490f9e9008040510635758e08a9527718492eb Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:17 2008 -0300 Creates the structure of xml files With the tag value set as empty, the struct of the xml files are created before opening the tunnels to prevent errors in the loading of the web interface. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 25f079c714347e25e7a0e410c9ddafe47e0d4e4a Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:16 2008 -0300 Fix a wrong xml tag (sortable_customkey => sorttable_customkey) Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit aa163eafacbe3de4124912801fea683b114e0ce4 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:15 2008 -0300 Fix LAUNCH() protecting $pidstunning variable with quotes. This will prevent a sintax error in test command when the variable contains a string with some space character. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 908976243985faa2406ed82fb5f07d5c274b3514 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:14 2008 -0300 Better separation between main data and web interface. Use $WEBMODE variable to determine if PARSE() function must create the xml files or just update the data history. The xml files were placed in a specific directory, configurable by $SDIWEB variable. Also, the default value for $DATADIR was changed from $PREFIX/coleta to $PREFIX/data, a more informative name. Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit fed5f19c0e2ce5523fa7aa295feb7ea5cea83574 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Wed Aug 13 11:11:13 2008 -0300 launchsdi.sh renamed to launchsditunnel.sh Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 7f4de60f3ae8fc5e8a679a299ad3bbed0d871429 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 6 16:42:53 2008 -0300 sdiweb: Created generatexmls.sh to generate XML files. The XML files with SSI tecnology will be the main reason because sdi becomes a real instant diagnose system. This script is the creator of XML-SSI integration. Our XML files have informations about the hosts, a tag for each script running. What happens it's that when users request the XML file, the server will include others files to complete the file, and those files will be always updated (provided by sdi tunnel). Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 636138c4b1208bafdbf4ca6038c64bc0a1347e82 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 6 16:42:51 2008 -0300 sdiweb: Created generateclasspage.sh to generate classes pages. When launching sdi, we'll create all web pages. This script provides the creation of a class page for a single host. A class page is the main page of a class, keeping all hosts in a organized table. At this point, we use SSI server tecnology to easy mantain our web pages. The page header, footer and tables comes from models files. This script assumes that SDIBAR variable is defined and have the bar html. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit af7a02287a21a02b4b38ac0432aa3973ba643857 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Wed Aug 6 16:42:52 2008 -0300 sdiweb: Created generatesdibar.sh to generate sdibar code. Based on CLASSESDIR folder, the script gets the pages avaliable to sdi users and returns the html needed to create the sdi bar. For this generation process, a model file for sdi bar is used to keep an easy way to modify the bar. The main function of script is create the selectbox that allows navegate truh the sdi classes page. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit b21b4d918e0946ca317bb4adfd5473fb099d31e5 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 1 16:48:06 2008 -0300 Removed PrD specific from sdiweb. We removed generate* scripts because the new sdi will not generate pages with new informations. The pages will be dinamicly updated with XML files. The xxx-{id,nre,city,school-name,version,terminals} has been removed because there are too much PrD specific. The remains scripts will be adapted to new sdi format. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 63e6b74117535637533bfbb5894989cdcec63da3 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Fri Aug 1 16:48:05 2008 -0300 Removed PrD specific scripts. The PRDSDI script has been removed cause it isn't a generic script. The hourly hooks xxx-{terminals,version} scripts were also removed by the same reason. client.sh script was the first code executed on hosts, but in the new implementation we'll not need it anymore, because all script sent to host will be controled by sdi server hosts. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 37924aa8629c8dbfd886c7d080cf2aebf7a25b03 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Jul 31 16:04:00 2008 -0300 Renamed expand{DOWN,_down}.jpg to expand{UP,_up}.jpg, respectively. This is the default way of how the files are named. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit c7c29e39e85ee0fca55b40d05d1db47aa2ea207f Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Jul 31 16:03:59 2008 -0300 Merged wwwsdi.conf with sdi.conf. Before, we had two different configuration files. One for the web and another for sdi tunnels. Now, both files were merged since these two areas are being integrated. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 7bce2da57a91a314cdbc83a5a7ef845647fc5ce7 Author: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Date: Thu Jul 31 11:37:52 2008 -0300 New author added to sdi development team. Diego Pasqualin <dgp06@c3sl.ufpr.br> is now a sdi developer. Signed-off-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br> Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br> commit 6df4974ba564cd7870465c467e0fe3262f7b1015 Author: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Date: Mon Jul 28 11:31:10 2008 -0300 SDI rewrite to fit a new paradigm Implementation Details: - Commands and script are sent through the ssh tunnel and are automatically executed on the remote host. This allows us to create a realtime parser (defined at PARSE() - prototipated on this version) - Two command files per host, one specific to that host and one common to all hosts defined as "general" inside $CMDDIR - Each SDITUNNEL() defines a file named with it's host containing the PID to avoid multiple instances of SDITUNNEL() to the same host - Loop that launchs SDITUNNEL() placed in a function - $OUTDIR and $CMDDIR are automatically created by launchsdi.sh New Configuration Items: - $SDIUSER can be defined at sdi conf file to determine the user to be used on the remote host. - $HOOKS defines the name of directory that contains the example scripts. - $OUTDIR renamed to $DATADIR. Scripts to Diagnose and Info: - The example scripts which runs on remote hosts were separated in directories that represent a period of time when they should be run (montly.d, daily.d, yearly.d, hourly.d, minutely.d and onconnect.d). Signed-off-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Acked-by: Bruno Ribas <ribas@temari.c3sl.ufpr.br>

    posted 369 days ago

Rate and Review

Be the first person to add a text review.

Would you recommend this project?






<

Related Projects

Instant Diagnose System Actions

Thanks for your rating!

Would you also like to write a review?





Skip Review