<br><br><div><span class="gmail_quote">On 4/23/07, <b class="gmail_sendername">Manuel Arostegui Ramirez</b> &lt;<a href="mailto:manuel@todo-linux.com">manuel@todo-linux.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El Lunes, 23 de Abril de 2007 19:04, Tomas Lewis escribió:<br>&gt; Hello.<br>&gt;<br>&gt; This is my first post to the fedora list, don&#39;t know if this is the correct<br>&gt; place to post my question to, if this is not, let me know.
<br>&gt;<br>&gt; I&#39;m trying to set up the pandora free monitoring system in one of my<br>&gt; servers.<br>&gt; I have already set up the server and the web console without a problem.<br>&gt; Besides that, I&#39;m trying to run the pandora agent in one of the remote
<br>&gt; servers, but I have found some troubles I don&#39;t know how to solve yet.<br>&gt; I&#39;m running the agent in daemon mode, but when the XML is written it<br>&gt; remains on the /opt/pandora_agent/data_out I&#39;ve set up as a temporal one,
<br>&gt; it&#39;s not copied to the server /opt/pandora_server/data_in/<br>&gt; If I copy it manually using scp the server process the data smooth.<br>&gt; This is my pandora_agent.conf<br>&gt;<br>&gt; # General Parameters
<br>&gt; # ==================<br>&gt;<br>&gt; server_ip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://10.30.7.134">10.30.7.134</a><br>&gt; server_path&nbsp;&nbsp;&nbsp;&nbsp; /opt/pandora_server/data_in<br>&gt; pandora_path&nbsp;&nbsp;&nbsp;&nbsp;/opt/pandora_agent/<br>&gt; temporal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/opt/pandora_agent/data_out
<br>&gt; interval&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;600<br>&gt; debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>&gt; checksum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br>&gt;<br>&gt;<br>&gt; # Module Definition<br>&gt; # =================<br>&gt;<br>&gt; # vmstat syntax depends on linux distro and vmstat command version, please
<br>&gt; check before use it<br>&gt; module_begin<br>&gt; module_name cpu_user<br>&gt; module_type generic_data<br>&gt; module_interval 1<br>&gt; module_exec vmstat 1 2 | tail -1 | awk &#39;{ print $14 }&#39;<br>&gt; module_max 100
<br>&gt; module_min 0<br>&gt; module_descripcion User CPU Usage (%)<br>&gt; module_end<br>&gt;<br>&gt; module_begin<br>&gt; module_name cpu_sys<br>&gt; module_type generic_data<br>&gt; module_exec vmstat 1 2 | tail -1 | awk &#39;{ print $15 }&#39;
<br>&gt; module_max 100<br>&gt; module_min 0<br>&gt; module_description System CPU Usage (%)<br>&gt; module_end<br>&gt;<br>&gt; module_begin<br>&gt; module_name disk_root_free<br>&gt; module_type generic_data<br>&gt; module_interval 2
<br>&gt; module_exec df -kh / | tail -1 | awk &#39;{ print 100-$5 }&#39;<br>&gt; module_max 100<br>&gt; module_min 0<br>&gt; module_description Free disk Percentage of root partition<br>&gt; module_end<br>&gt;<br>&gt; module_begin
<br>&gt; module_name memfree<br>&gt; module_type generic_data<br>&gt; module_exec cat /proc/meminfo&nbsp;&nbsp;| grep MemFree | awk &#39;{ print $2 }&#39;<br>&gt; module_end<br>&gt;<br>&gt; module_begin<br>&gt; module_name memused<br>
&gt; module_type generic_data<br>&gt; module_exec cat /proc/meminfo | grep &quot;Active&quot;&nbsp;&nbsp;| awk &#39;{ print $2 }&#39;<br>&gt; module_end<br>&gt;<br>&gt; Thank you all.<br>&gt;<br>&gt; /Tomas<br><br>Hi Tomas,<br>Well, you&#39;re not missing anything and pandora is not failing either. That
<br>behaviour is perfectly normal.<br>When the debug flag is set to 1, pandora agent run as it would does in a<br>normal situation, right, execept from the fact it won&#39;t copy the .data file<br>to the server. So pandora agent was doing exactly what it was supposed to
<br>when debug=1 :-)<br><br>So, just set the value to 0, restart the agent and it will work (as long as<br>your ssh connection is properly configured, but that&#39;s another long story<br>short )</blockquote><div><br>It works!!!
<br>Thank you Manuel, I missed that, although I read it on the user guide.<br>Thanks again.<br><br>/Tomas<br></div><br></div><br>