<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>ahh...after litle more work I find this 
..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>From: Giulius <BR>To: <EMAIL: PROTECTED>,<BR><EMAIL: 
PROTECTED><BR>Subject: [netsaint] HOW TO USE SMS NOTIFICATION + 
GNOKII<BR><BR>This is a little HOWTO that help who try to run gnokii with 
netsaint on <BR>unix systems for sms notification:<BR><BR><BR><BR>TO use gnokii 
with netasint you "must" know 3 things:<BR><BR>1)Netsaint cannot understand any 
replay output/error given by gnokii;<BR>2)Netsaint user (process owner) must 
have the ability to read/write on <BR>the serial (or any other device like irda) 
connected to the gsm sender<BR>3)Netsaint user (process owner) must read/write 
on lock directory<BR><BR><BR>1) add this command to netsaint 
host.cfg<BR>command[sms]=/path/to/printf "MESSAGE+VARIABLE" | /path/to/gnokii 
<BR>--sendsms [gsm number] -C0 2>/dev/null<BR>add olso the contact 
information about sms like this:<BR>contact[netsaint]=Netsaint 
<BR>User;24x7;24x7;1;1;1;1;1;1;notify-by-email,notify-by-epager,notify-by-sms;<BR>host-notify-by-email,host-notify-by-epager,host-notify-by-sms;netsaint;netsaint<BR><BR>Remember:<BR>if 
you forget to add "2>/dev/null" on the end of the command line, <BR>the 
result was a broken pipe and netsaint<BR>cannot go over, freezing all the 
netsaint process.<BR><BR>2)Remember to set permission RW on serial (or any other 
device like <BR>irda) device to user netsaint (or process owner). This to 
permit<BR>Read Write on device attached to gsm cel.<BR>There are differently 
method to do this based on type of unix you own.<BR>You must find this on 
yourself.<BR><BR>3)Now you must configure gnokii in order to use lock files (to 
avoid <BR>conflict with other devices that use serial/usb).<BR>On gnokii/etc 
directory un can find a file called gnokiirc.<BR>Make sure that contain 
this:<BR><BR>port = /dev/ (device attached to gsm)<BR>model = (the model number 
of your nokia gsm like 6210)<BR>connection = serial (or you connection to gsm 
cel. like irda, ecc.)<BR>use_locking = yes<BR><BR>Now you are ready to receive 
sms about notification of netsaint.<BR><BR><BR>Bye.<BR>Giulius.<BR></DIV>
<DIV><FONT face=Arial size=2>So there was not so big thing to get it working 
with nagios :)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks Giulius !!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/Jonas</FONT></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=jontte@home.se href="mailto:jontte@home.se">Jonas Kalliokoski</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=nagios-users@lists.sourceforge.net 
  href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, August 22, 2003 10:47 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Nagios-users] nagios - 
  gnokii</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Hi!</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Now I have read all information I could find and 
  test my system a couple of days but itīs one problem I canīt find any help 
  for.</FONT></DIV>
  <DIV><FONT face=Arial size=2>how should the misccommands.cfg and contacts.cfg 
  look like if the gnokii will work nice with nagios.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>I can send sms through the command: 
  /usr/bin/printf "TEXT" | /usr/bin/gnokii --sendsms xxxxxxxxxx 
  -C0</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Please anyone !</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>/Jonas</FONT></DIV></BLOCKQUOTE></BODY></HTML>