<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=GB2312" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
you can look at these logs <br>
<br>
/var/log/hobbit/notifications.cfg <br>
/var/log/hobbit/page.log<br>
<br>
<pre class="moz-signature" cols="72">Daniel Bourque
Systems/Network Administrator
Weather Data Inc

Office (316) 266-8013
Office (316) 265-9127 ext. 3013
Mobile (316) 640-1024
</pre>
<br>
<br>
casedj wrote:
<blockquote cite="mid000e01c7a83b$98c0af90$7363560a@cici" type="cite">
  <meta http-equiv="Context-Type" content="text/html; charset=gb2312">
  <div>
  <div> I put the commands in a script alert.sh and call that script in
hobbit-alerts.cfg:<br>
  </div>
  <div>   HOST=my_linux   SERVICE=disk<br>
          SCRIPT alert.sh  my_linux<br>
  </div>
  <div>   </div>
  <div> But still failed, no alert messages sent while disk state went
to warning level, color was changed. </div>
  <div><br>
alert.sh:<br>
  <br>
#!/bin/sh<br>
echo "$RCPT disk went to warning state" |smbclient -M cici<br>
echo "$BBHOSTNAME disk reached warning state" |write hobbit </div>
  <div>  </div>
  <div> This test script works well in terminal mode. </div>
  <div> </div>
  <div> [hobbit@my_linux etc]$ ../bin/bbcmd hobbitd_alert --test
my_linux disk<br>
2007-05-31 06:04:23 Using default environment file
/home/hobbit/server/etc/hobbitserver.cfg<br>
00005798 2007-05-31 06:04:23 send_alert my_linux:disk state Paging<br>
00005798 2007-05-31 06:04:23 Matching host:service:page
'my_linux:disk:' against rule line 120<br>
00005798 2007-05-31 06:04:23 *** Match with 'HOST=my_linux  
SERVICE=disk' ***<br>
00005798 2007-05-31 06:04:23 Matching host:service:page
'my_linux:disk:' against rule line 120<br>
00005798 2007-05-31 06:04:23 *** Match with 'HOST=my_linux  
SERVICE=disk' ***<br>
00005798 2007-05-31 06:04:23 Script alert with command 'alert.sh' and
recipient my_linux </div>
  <div> </div>
  <div> The call looked like invalid, any other detail debug mechanism
available? </div>
  <div>  </div>
  <div> Thanks again. </div>
  <div> </div>
  <div>Case</div>
  </div>
</blockquote>
</body>
</html>