2011-01-26 Sancho Lerena <slerena@artica.es>

* ssh_console: new ssh extension (agent tab extension) it will
        exec a ssh java plugin to connect agent using it's main IP address.
        Requires an external download (Mindterm SSH Applet), free for individual
        use.

        * vnc_view.php: Now uses VNC/HTTP port by default.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3780 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-01-26 21:08:40 +00:00
parent 412b9a7a63
commit f39d91210e
5 changed files with 68 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2011-01-26 Sancho Lerena <slerena@artica.es>
* ssh_console: new ssh extension (agent tab extension) it will exec a
ssh java plugin to connect agent using it's main IP address. Requires
an external download (Mindterm SSH Applet), free for individual use.
* vnc_view.php: Now uses VNC/HTTP port by default.
2011-01-26 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/status_monitor.php: fixed the ACL in the Module name for

View File

@ -0,0 +1,44 @@
<?php
//Pandora FMS- http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation for version 2.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
add_extension_opemode_tab_agent ('ssh_console','SSH Console','extensions/ssh_console/ssh.png',"main_ssh_console");
function main_ssh_console () {
$id_agente = get_parameter ("id_agente");
$ip = get_db_sql ("SELECT direccion FROM tagente WHERE id_agente = $id_agente");
?>
<div>
<APPLET CODE="com.mindbright.application.MindTerm.class" style="border: 2px;" ARCHIVE="extensions/ssh_console/mindterm.jar" WIDTH=600 HEIGHT=400>
<PARAM NAME="sepframe" value="false">
<PARAM NAME="debug" value="false">
<param name="verbose" value="false">
<param name="bg-color" value="black">
<param name="fg-color" value="white">
<param name="resizable" value="true">
<param name="save-lines" value="2000">
<param name="menus" value="pop2">
<param name="exit-on-logout" value="true">
<PARAM NAME="server" value="<?PHP echo $ip; ?>">
</applet>
</div>
<?php
}
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

View File

@ -0,0 +1,14 @@
You have several options to use a SSH Java Plugin for SSH access from pandora:
OpenSource (GPL).
https://sourceforge.net/projects/gsi-sshterm/
http://freshmeat.net/projects/sshtools-sshterm/
Commercial (we cannot redistribute the binary)
http://www.cryptzone.com/products/agmindterm/
In this extension we use Mindterm as default. just Get the JAR file and put on the extension/ssh_console directory with "mindterm.jar" filename. It will work.

View File

@ -17,9 +17,9 @@ function vnc_view() {
$idAgent = (int)get_parameter('id_agente', 0);
$ipAgent = get_db_value('direccion', 'tagente', 'id_agente', $idAgent);
?>
<iframe width="95%" height="500px" src="http://<?php echo $ipAgent;?>:5800"></iframe>
<iframe width="95%" height="500px" src="http://<?php echo $ipAgent;?>:5801"></iframe>
<?php
}
add_extension_opemode_tab_agent('vnc_view', __('VNC view'), 'images/computer.png', 'vnc_view');
?>
?>