<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style>.EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; }</style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Good morning list</div>
<div> </div>
<div>I would like to run a check_sipsak check from the nagios-server to the a sip server.</div>
<div> </div>
<div>Running the command from cli, without arguments, gives</div>
<div> </div>
<div>./check_sipsak </div>
<div><font face="Arial, sans-serif"><i>ERROR: Sorry, but a hostname or full URI must be given.</i></font></div>
<div><font face="Arial, sans-serif"> </font></div>
<div><font face="Arial, sans-serif"><i>check_sipsak -H host [-c contact] [-P proxy] [-p port] [-u user] [-U uri] [-v]</i></font></div>
<div> </div>
<div>so, adding arguments, gives:</div>
<div> </div>
<div># ./check_sipsak –H <sip.server.name> -u <username></div>
<div>SIP OK: SIP ok </div>
<div> </div>
<div>In the checkcommands.cfg I have</div>
<div> </div>
<div># 'check_sipsak' command definition</div>
<div>define command{</div>
<div> command_name check_sipsak</div>
<div> command_line $USER1$/check_sipsak -H $ARG1$ -u $ARG2$</div>
<div>}</div>
<div> </div>
<div>And in the servername.cfg, I have</div>
<div> </div>
<div>define service{</div>
<div> use generic-service</div>
<div> host_name <font color="#FF0000"><i>servername</i></font></div>
<div> service_description SIP REGISTRATION</div>
<div> is_volatile 0</div>
<div> check_period 24x7</div>
<div> max_check_attempts 3</div>
<div> normal_check_interval 3</div>
<div> retry_check_interval 1</div>
<div> contact_groups unix-admins,voip-admins</div>
<div> notification_interval 60</div>
<div> notification_period 24x7</div>
<div> notification_options w,u,c,r</div>
<div> check_command check_sipsak!<font color="#FF0000"><i>servername</i></font>!<font color="#FF0000"><i>username</i></font></div>
<div> }</div>
<div> </div>
<div>However, when nagios runs, it returns</div>
<div> </div>
<div>SIP CRITICAL: SIP failure ("...")</div>
<div> </div>
<div>Any kicks in the right direction would be appreciated.</div>
<div> </div>
<div>Thanks</div>
<div><font face="Arial, sans-serif" size="2">Tom</font></div>
<div> </div>
<div> </div>
</font>
<SPAN lang=EN-GB style="FONT-SIZE: 10pt"><FONT face=Arial>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt"><FONT face=Verdana size=1>This electronic communication
and the attached file(s) are subject to a disclaimer which can be accessed on
the following link: </FONT><A href="http://www.mweb.co.za/disclaimer"><FONT
face=Verdana size=1>Disclaimer</FONT></A><FONT face=Verdana size=1> - or copy
the following URL into your browser - </FONT><A
href="http://www.mweb.co.za/disclaimer"><FONT face=Verdana
size=1>http://www.mweb.co.za/disclaimer</FONT></A><FONT face=Verdana size=1>. If
you are unable to view the disclaimer, please contact </FONT><A
href="mailto:abuse@mweb.com"><FONT face=Verdana
size=1>abuse@mweb.com</FONT></A><FONT face=Verdana size=1> for a
copy.</FONT></SPAN></FONT></SPAN></P>
</body>
</html>