<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Albert,<br>
<br>
Please, try this command : netstat -tlnp . See if opensips is listening
also on port 8000 (this should be the xmlrpc port - if this is what
you've set up in your opensips config)<br>
and also see if monit is configured to listen on 127.0.0.1:2812. If
this info is not shown in the output of the command then in means
something is not working correctly. <br>
<br>
Also see monit's config file : monitrc. See if it is set up to listen
on the same IP:PORT that you have set up in the OpensipsCP config
(boxes.global.inc.php)<br>
<br>
Regards,<br>
Alex<br>
On 5/25/2010 15:31, Albert Paijmans wrote:
<blockquote
cite="mid:AANLkTiml5Yrj7N1a_sdEcm7zu5oGLqGvtSAuZvI90VEV@mail.gmail.com"
type="cite">
<div>Hi,</div>
<div><br>
</div>
<div>
<div>I have some problems connecting to monit and mi</div>
<div>Installed xmlrpc (deb packages) and running monit -t gives an ok</div>
<div>Starting OpenSIPS gives an ok to.</div>
<div><br>
</div>
<div>But in the control panel I get these error messages:</div>
<div><span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">Cannot
connect to OpenSIPS Server via Management Interface (<a
moz-do-not-send="true" href="http://127.0.0.1/8000">127.0.0.1/8000</a>)<br>
And cannot connect tot <a moz-do-not-send="true"
href="http://127.0.0.1:2812">127.0.0.1:2812</a> (monit tool)</span></div>
<div><span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;"><br>
</span></div>
<div><span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">OpenSIPS
seems to run and listening on udp ports for sip messages.</span></div>
<div><span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">So
I am missing something? Did the install for monit from the readme.</span></div>
<div><span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;"><br>
</span></div>
<div><span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">Thanks,</span></div>
<div><span class="Apple-style-span"
style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px;"><br>
Albert</span></div>
<div><font class="Apple-style-span"
face="Verdana, Arial, Helvetica, sans-serif" size="3"><span
class="Apple-style-span" style="font-size: 12px;"><br>
</span></font><br>
<div class="gmail_quote">On Tue, May 25, 2010 at 10:43 AM, Aman <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:goforaman@gmail.com">goforaman@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font
face="verdana, sans-serif">
<div><font face="verdana, sans-serif"><br>
</font></div>
Greetings,<br>
</font>
<div><font face="verdana, sans-serif"><br>
</font></div>
<div><font face="verdana, sans-serif"> Need a help, i am
getting the error on monit on OpenSIPS-CP that "</font><span
style="font-size: medium;"><font face="verdana, sans-serif">I can't
connect!</font><span style="font-size: small;"><font
face="verdana, sans-serif">", when i run </font></span></span></div>
<div><span style="font-size: medium;"><span
style="font-size: small;"><font face="verdana, sans-serif">monit -t
for syntax check, its shows error,</font></span></span></div>
<div><font face="verdana, sans-serif"><br>
</font></div>
<div><span style="font-size: medium;"><span
style="font-size: small;">
<div><font face="verdana, sans-serif">May 24 10:17:26 opensips
monit: /etc/monit/monitrc:241: Warning: include files not found
'/etc/monit/conf.d/*'</font></div>
<div><font face="verdana, sans-serif">May 24 10:50:49 opensips
monit: /etc/monit/monitrc:241: Warning: include files not found
'/etc/monit/conf.d/*'</font></div>
<div><font face="verdana, sans-serif">May 24 11:08:14 opensips
monit: /etc/monit/monitrc:241: Warning: include files not found
'/etc/monit/conf.d/*'</font></div>
</span></span></div>
<div><font face="verdana, sans-serif"><br>
</font></div>
<div><font face="verdana, sans-serif">But this file does not exist
on defined path, i have also skipped the following configuration part
in 'monitrc'</font></div>
<div><font face="verdana, sans-serif"><br>
</font></div>
<div><font face="verdana, sans-serif"><font color="#333399">" check
process opensips with pidfile /var/run/opensips.pid</font></font></div>
<div><font face="verdana, sans-serif"><font color="#333399">#Below
is actions taken by monit when service got stuck.</font></font></div>
<div><font face="verdana, sans-serif"><font color="#333399">start
program = "/etc/init.d/opensips start"</font></font></div>
<div><font face="verdana, sans-serif"><font color="#333399">stop
program = "/etc/init.d/opensips stop"</font></font></div>
<div><font face="verdana, sans-serif"><font color="#333399"># Admin
will notify by mail if below of the condition satisfied.</font></font></div>
<div><font face="verdana, sans-serif"><font color="#333399">if cpu
is greater than 70% for 2 cycles then alert</font></font></div>
<div><font face="verdana, sans-serif"><font color="#333399">if cpu
> 90% for 5 cycles then restart "</font></font></div>
<div><font face="verdana, sans-serif"><br>
</font></div>
<div><font face="verdana, sans-serif">as this shows error opensips
already icluded, please advice to make the monit work.</font></div>
<div><font face="verdana, sans-serif">Any suggestions are
really appreciable.</font></div>
<div><font face="verdana, sans-serif"> </font></div>
<font color="#888888">
<div><font face="verdana, sans-serif"><br>
</font></div>
<div><font face="verdana, sans-serif"><br>
-- <br>
Amanpreet Singh</font><br>
</div>
</font><br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alex Ionescu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a> </pre>
</body>
</html>