@zumiani said:
Hello peppermath,
load a background image with desired dimensions.
FANTASTIC!!!!!!
Grazie!!!!
@zumiani said:
Hello peppermath,
load a background image with desired dimensions.
FANTASTIC!!!!!!
Grazie!!!!
how can i enlarge the the box of "Graphical View editor"?: i need to have a much more big area where to insert a lot of components.
Is possible to do this? Are there solutions?
Thanks
how can i enlarge the the box of "Graphical View editor"?: i need to have a much more big area where to insert a lot of components.
Is possible to do this? Are there solutions?
Thanks
Is for a long time that i don't use mango installed on my linux machine and i have forget the username and password to login: how do you to reset username and password without loose the data in database??
I found this post
http://mango.serotoninsoftware.com/forum/posts/list/32.page#101
but he does nott resolve my problems
Can you help me??
Thank
Is for a long time that i don't use mango installed on my linux machine and i have forget the username and password to login: how do you to reset username and password without loose the data in database??
I found this post
http://mango.serotoninsoftware.com/forum/posts/list/32.page#101
but he does nott resolve my problems
Can you help me??
Thank
Hello everyone,
after some testing and considering that I'm new with java
to solve my problem I have proceeded as follows:
MANGO->proxy->agent
a) I created a html control with a button that makes a local call to a proxy java (proxyProcess) by ajax
<script language="javascript">
<!--
var myRequest = null;
function CreateXmlHttpReq( handler)
{
alert("create XmllHttpReq");
var xmlhttp = null;
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = handler;
return xmlhttp;
}
function myHandler()
{
if (myRequest.readyState == 4 && myRequest.status == 200)
{
alert(myRequest.responseText);
}
}
function sendRequest( operation)
{
var path = '?process=snmpd&command=' + operation;
var urlProxy = 'http://xxx.xxx.xxx.xxx:8080/proxyPROCESS' + path;
alert("sendRequest to proxy \n" + urlProxy);
try
{
myRequest = CreateXmlHttpReq(myHandler);
myRequest.open( 'GET', urlProxy, true);
myRequest.send( null);
}
catch(e)
{
alert(e.message);
}
}
-->
</script>
<input type="button" value="start " onclick="sendRequest('start')" />
b) I created a servlet (positioned between the servlet Mango) proxyProcess.class that received the request makes a remote call (http://yyy.yyy.yyy.yyy/provaXMango/PROCESSI/processCommands.php?process = "+ param1 + "& command =" + param2) to the server where I want to execute the command
public class proxyPROCESS extends HttpServlet
{
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
try
{
String param1 = request.getParameter("process");
String param2 = request.getParameter("command");
URL url = new URL("http://yyy.yyy.yyy.yyy/provaXMango/PROCESSI/processCommands.php?process=" + param1 + "&command=" + param2);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
int code = conn.getResponseCode();
//conn.disconnect();
}
catch(MalformedURLException ex)
{
ex.printStackTrace();
}
catch(IOException ioex)
{
ioex.printStackTrace();
}
}
}
c) I created an php agent on the remote server to run command
<?php
$availableProcess = array();
getProcess( $availableProcess);
$qs = $_SERVER['QUERY_STRING'];
$process = $_GET['process'];
$command = $_GET['command'];
//comando to execute
$completeCommand = "sudo /etc/init.d/" . $process . " " . $command;
$tmp = exec( $completeCommand, $outputs, $ret_var);
?>
To execute commands with www user with sudo, you need to enable the www user to run the desired command in sudoers, for example
apache yyy.yyy.yyy.yyy=NOPASSWD: /etc/init.d/snmpd
Everything works correctly!
Probably this is not the optimal solution, but it works!
Ciao
I found the problem!
Excuse me, but it is my error: i'm new with java!
I have executed the command
java -version
and i have noticed that the version was not the jre1.6.0_17 but jre1.6.0-openjdk: this because when i installed all java world I didn't set the JAVA_HOME variable and it remained the configuration of java of centos distribution (i don't know well the mechanisms of management of Centos related to java ,openJDK).
However, now I have setted JAVA_HOME=/usr/java/latest/ in the script to start tomcat and all work fine!!!
Thanks again, your advices have been very precious!!!
Ciao
peppemath
I launched the test
start test .....
...... stop test
there aren't script engines !!!! :(
How must it do?
ciao
I tried to install the old versions of "Java Runtime Environment":
jre-6u10-xxxxx
jre-6u14-xxxxx
jre-6u17-xxxxx
jre-6u18-xxxxx
but the error continues to exist.
The error, could be caused by tomcat?
What could be the best configuration?
Ciao
when I installed mango i used the mango-1.8.0.tar.gz packet
Centos release 5.3 (final)
java version 1.6.0
I attached the section of logcatalina when i tried to check the script
Attachment: download link
Ciao,
i have a problem with Meta Data Source
I have created 2 snmp data source (both return a Numeric data type)
then i tried to sum these values with a metadata source that return a Numeric data type
return p1.value + p2.value;
but whenever i validate the script, i get a error.
I tried with the example that is descibed in the contextual help
return p1.value;
but don't work :(
What could be the problem?
Can you help me??
Ciao,
i have a problem with Meta Data Source
I have created 2 snmp data source (both return a Numeric data type)
then i tried to sum these values with a metadata source that return a Numeric data type
return p1.value + p2.value;
but whenever i validate the script, i get a error.
I tried with the example that is descibed in the contextual help
return p1.value;
but don't work :(
What could be the problem?
Can you help me??
Ciao
I have created a php script called "processSNMPD"; launching the url http://localhost/processSNMPD.php?oper=xxxx (with xxx=start/stop) with a webbroser, i can start or stop the service.
Now, How can i send a HTTP request to server? In the context help (of Http receiver) i found "HTTP sender publisher" but, where is it? how it work? There isn't in the list of data sources types
Can you help me?
Ciao
How Mango should get commands to linux box?
No, I don't know Munin
but it is impossible with mango?? :(
Ciao,
my problem is this:
I would monitor an application/daemon in a remote linux machine: i would launch the commands start, stop, eccc. in the remote machine
for example if i want to restart snmpd daemon then i must to execute
"/etc/init.d/snmpd start" in the remote machine
What could be the ways to achieve this?
Ciao to everyone!
Ciao,
my problem is this:
I would monitor an application/daemon in a remote linux machine: i would launch the commands start, stop, eccc. in the remote machine
for example if i want to restart snmpd daemon then i must to execute
"/etc/init.d/snmpd start" in the remote machine
What could be the ways to achieve this?
Ciao to everyone!
Thanks
now is perfect
with
URL = http://65.5.172.234/axis-cgi/jpg/image.cgi
WEBCAM ... = <img src="http://65.5.172.234/axis-cgi/mjpg/video.cgi?camera=&showlength=1&resolution=704x240" id="liveimage" />
It works perfectly