<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV><FONT size=2><FONT size=3>I put the commands in a script alert.sh and call
that script in hobbit-alerts.cfg:<BR></FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=2> HOST=my_linux
SERVICE=disk<BR> SCRIPT
alert.sh my_linux<BR></FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=3><FONT size=2></FONT> </DIV></FONT></FONT>
<DIV><FONT size=2><FONT size=3><FONT size=2>But still failed, no alert messages
sent while disk state went to warning level, color was
changed.</FONT></DIV></FONT></FONT><FONT size=2><FONT size=3><FONT
size=2></FONT>
<DIV><BR>alert.sh:<BR><BR><FONT size=2>#!/bin/sh<BR>echo "$RCPT disk went to
warning state" |smbclient -M cici<BR>echo "$BBHOSTNAME disk reached warning
state" |write hobbit</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV></FONT><FONT size=2>This test script works well in terminal
mode.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>[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</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>The call looked like invalid, any other detail debug mechanism
available? </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks again.</FONT></DIV>
<DIV> </DIV>
<DIV>Case</DIV></FONT></FONT></DIV></BODY></HTML>