[hobbit] monitor files,log msgs,

Perumal, Santoshbabu santoshbabu_perumal at platts.com
Mon Feb 4 18:33:47 CET 2008


HI,

   Thanks. It worked.

   

          Is there any way to display contents of file or it displays
only size, timestamp, file type, permissions. When I made following
entry on client-local.cfg

 

 

file:`ls -l -t /var/adm/sa/sar*`:4096

 

it outputs

    

   -rw-r--r--   1 sys      sys       118298 Feb  1 18:05
/var/adm/sa/sar01
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Feb%20%201%2018:05%20/var/adm/sa/sar01>

 
-rw-r--r--   1 sys      sys       118298 Jan 31 18:05 /var/adm/sa/sar31
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2031%2018:05%20/var/adm/sa/sar31> 
 
  -rw-r--r--   1 sys      sys       118298 Jan 30 18:05
/var/adm/sa/sar30
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2030%2018:05%20/var/adm/sa/sar30> 
 
 -rw-r--r--   1 sys      sys       118298 Jan 29 18:05 /var/adm/sa/sar29
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2029%2018:05%20/var/adm/sa/sar29> 
 
 -rw-r--r--   1 sys      sys       118298 Jan 28 18:05 /var/adm/sa/sar28
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2028%2018:05%20/var/adm/sa/sar28> 
 
 -rw-r--r--   1 sys      sys       118298 Jan 25 18:05 /var/adm/sa/sar25
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2025%2018:05%20/var/adm/sa/sar25> 
 
 -rw-r--r--   1 sys      sys       118298 Jan 24 18:05 /var/adm/sa/sar24
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2024%2018:05%20/var/adm/sa/sar24> 
 
 -rw-r--r--   1 sys      sys       118298 Jan 23 18:05 /var/adm/sa/sar23
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2023%2018:05%20/var/adm/sa/sar23> 
 
 -rw-r--r--   1 sys      sys       118298 Jan 22 18:05 /var/adm/sa/sar22
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2022%2018:05%20/var/adm/sa/sar22> 
 
 -rw-r--r--   1 sys      sys       118298 Jan 21 18:05 /var/adm/sa/sar21
<http://nypplweblogs.platts.mcgraw-hill.com/hobbit-cgi/bb-hostsvc.sh?CLI
ENT=nj1db200pt&SECTION=file:-rw-r--r--%20%20%201%20sys%20%20%20%20%20%20
sys%20%20%20%20%20%20%20118298%20Jan%2021%2018:05%20/var/adm/sa/sar21> 
 

 

 

When I click on any one of the lick  it outputs

 

   

[file:-rw-r--r--   1 sys      sys       118298 Feb  1 18:05
/var/adm/sa/sar01]

ERROR: No such file or directory

 

But file is there.  Do I have to change or add anything to display the
contents of sar file or it checks only size, timestamp, permission etc.

    

 

 

________________________________

From: Haertig, David F (Dave) [mailto:haertig at avaya.com] 
Sent: Friday, February 01, 2008 7:20 PM
To: hobbit at hswn.dk
Subject: RE: [hobbit] monitor files,log msgs,

 

Your client-local.cfg syntax is wrong.  client-local tells hobbit what
to upload, hobbit-client tells Hobbit how to use what it uploaded.  You
have the two files configured the same, which is wrong.  Also, you don't
need anything on the client side if you're running Hobbit in the typical
manner.  The client-local.cfg data is downloaded from the server to the
client automatically.

 

Try something more like this:

 

Client-local.cfg

[nj1db200pt]

file:/home/monitor/test

file:/var/log/

log:/var/adm/messages:4096

The default copies of all these files are commented heavily at the top
showing all this syntax.

 

________________________________

From: Perumal, Santoshbabu [mailto:santoshbabu_perumal at platts.com] 
Sent: Friday, February 01, 2008 1:24 PM
To: hobbit at hswn.dk
Subject: [hobbit] monitor files,log msgs,

I have been trying to monitor files and messages.but no luck.

On server side I have edited following files and given entries

hobbit-client.cfg

    HOST=nj1db200pt 

       FILE  /home/monitor/test mtime>600 red

       DIR %^/var/log TRACK

       LOG /var/adm/messages  WARNING COLOR=yellow

Client-local.cfg

      

     [nj1db200pt]

    FILE  /home/monitor/test mtime>600 red

   DIR %^/var/log TRACK

   LOG /var/adm/messages  WARNING COLOR=yellow

On Client side

           

    HOST=nj1db200pt

     FILE  /home/monitor/test mtime>600 red

     DIR %^/var/log TRACK

     LOG /var/adm/messages  WARNING COLOR=yellow

  Do I have to edit any other files. or I am doing something wrong. I
can see any output. I can see only white icon.help me monitorl logs and
messages

Thanks

Santhoshbabu Perumal

Unix system Administrator

System Engineering, GO & I

The Mcgraw-Hill companies

HTS East Windsor, NJ

609-371-6317 (Desk)

609-385-5016 (work cell)

________________________________

The information contained in this message is intended only for the
recipient, and may be a confidential attorney-client communication or
may otherwise be privileged and confidential and protected from
disclosure. If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this message to the
intended recipient, please be aware that any dissemination or copying of
this communication is strictly prohibited. If you have received this
communication in error, please immediately notify us by replying to the
message and deleting it from your computer.  The McGraw-Hill Companies,
Inc. reserves the right, subject to applicable local law, to monitor and
review the content of any electronic message or information sent to or
from McGraw-Hill employee e-mail addresses without informing the sender
or recipient of the message.

________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080204/9af76319/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 118 bytes
Desc: image001.gif
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080204/9af76319/attachment.gif>


More information about the Xymon mailing list