<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Your syntax is wrong.  For logfile monitoring you must have the
following in hobbit-clients.cfg:<br>
<b>LOG logfilename pattern [COLOR=color] [IGNORE=excludepattern]</b><br>
<br>
So, using one of your examples below, it should be:<br>
<br>
LOG /var/adm/messages WARNING COLOR=yellow<br>
<br>
If you need a reference just check the man pages, either on your Hobbit
instance, or at:<br>
<a class="moz-txt-link-freetext" href="http://www.hobbitmon.com/hobbit/help/manpages/man5/client-local.cfg.5.html">http://www.hobbitmon.com/hobbit/help/manpages/man5/client-local.cfg.5.html</a><br>
<a class="moz-txt-link-freetext" href="http://www.hobbitmon.com/hobbit/help/manpages/man5/hobbit-clients.cfg.5.html">http://www.hobbitmon.com/hobbit/help/manpages/man5/hobbit-clients.cfg.5.html</a><br>
<br>
-Charles<br>
<br>
Steve Holmes wrote:
<blockquote
 cite="mid:43be87180705090844p40699deeqb3575b488d102c42@mail.gmail.com"
 type="cite">Hi all,<br>
  <br>
I may not be understanding how the LOG match-pattern works. <br>
  <br>
In my hobbit-clients.cfg file I have under the DEFAULT section the
following:<br>
  <br>
        LOG %.* NOTICE<br>
        LOG %.* ERROR<br>
        LOG %.* WARNING COLOR=yellow
  <br>
        LOG %.* notice COLOR=yellow<br>
        LOG %.* error COLOR=yellow<br>
        LOG %.* daemon.error COLOR=yellow<br>
        LOG %.* warning COLOR=yellow<br>
        LOG %.* warn COLOR=yellow<br>
  <br>
At the moment on my hobbit server I have a green status for the host
mentor and the following messages in /var/adm/messages:
  <br>
  <br>
[msgs:/var/adm/messages]<br>
<...SKIPPED...><br>
  <a moz-do-not-send="true" href="http://purdue.edu">purdue.edu</a>
scsi: [ID 107833 kern.warning] WARNING:
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cffa6698,0 (ssd1):<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a>    
Error for Command: read(10)                Error Level: Retryable<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a> scsi:
[ID 107833 kern.notice]     Requested Block: 33383911                 
Error Block: 33383911<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a> scsi:
[ID 107833 kern.notice]     Vendor: SEAGATE                           
Serial Number: 0317A1JGAZ  <br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a> scsi:
[ID 107833 kern.notice]     Sense Key: Media Error<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu
  </a> scsi: [ID 107833 kern.notice]     ASC: 0x11 (unrecovered read
error), ASCQ: 0x0, FRU: 0xf<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a> scsi:
[ID 107833 kern.warning] WARNING: /pci@9,600000/SUNW,
qlc@2/fp@0,0/ssd@w21000004cffa6698,0 (ssd1):<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a>    
Error for Command: write(10)               Error Level: Retryable<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">
mentor.ics.purdue.edu</a> scsi: [ID 107833 kern.notice]     Requested
Block: 33982299                  Error Block: 33982299<br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a> scsi:
[ID 107833 kern.notice]     Vendor: SEAGATE                           
Serial Number: 0317A1JGAZ  <br>
May  9 11:07:36 <a moz-do-not-send="true"
 href="http://mentor.ics.purdue.edu">mentor.ics.purdue.edu</a> scsi:
[ID 107833 kern.notice]     Sense Key: Unit Attention
  <br>
  <br>
The above is copied from the hobbit display reached by clicking on the
[/var/adm/messages] link on the msgs page for this host. <br
 clear="all">
  <br>
In the client-local.cfg I have:<br>
  <br>
[sunos]<br>
log:/var/adm/messages:10240
  <br>
  <br>
  <br>
So why is the page green? There are at least 3 strings that should
match to turn it yellow, right? And incidentally, the BB server I'm
running on another host *does* show yellow. I'm trying to validate my
hobbit configuration by making sure it matches the running BB server.
And it doesn't for msgs, ever. <br>
  <br>
Thanks,<br>
Steve.<br>
  <br>
</blockquote>
<br>
</body>
</html>