[hobbit] trigger with client-local.cfg

Buchan Milne bgmilne at staff.telkomsa.net
Mon Jun 1 10:21:48 CEST 2009


On Friday 29 May 2009 17:38:41 Visram, Ali wrote:
> Hi,
>
> I have just started looking into running xymon v4.2.3 and finding that
> only the last error in passed over to the
> server with from the client where multiple errors exist in the logfile -
> see below example.
>
> Any Ideas ?
>
> Thanking you in advance
>
> Ali
>
>
>
> client-local.cfg
>
> [sunos]
> log:/tmp/report.log:250
>         ignore INFO
>         trigger WARNING
>
>
>
> Sample log file - /tmp/report.log
>
>
> ===== Server Model =====
> INFO: Server is a:  Sun Fire V440
>
> WARNING:  Test failed 1
>
> ===== CPU and Memory Information =====
> Memory size: 8192 Megabytes
> Core 1     : 1281Mhz UltraSPARC
> Core 2     : 1281Mhz UltraSPARC
> Core 3     : 1281Mhz UltraSPARC
> Core 4     : 1281Mhz UltraSPARC
>
> ===== Build Revision =====
> Solaris 10 5/08 s10s_u5wos_10 SPARC
>
> ===== System Uptime =====
> Has been up for 2 Hours/Days
>
> WARNING:  Test failed 2
>
> ===== Eeprom tests =====
> INFO: Auto boot set to true
> INFO: diag-level set to minimum level
> INFO: local-mac-address set to true
>
> ===== Reconfigure check =====
> INFO: /reconfigure does not exist
>
> ===== Zone information =====
> Server not running zones
>
> WARNING:  Test failed 3
>
>
> Result
>
> [msgs:/tmp/report.log]
> <...SKIPPED...>
> ===== Reconfigure check =====
>
> ==============================
> Server not running zones
>
> WARNING:  Test failed 3
>
> ==============================
>
>
> [logfile:/tmp/report.log]
> type:100000 (file)
> mode:644 (-rw-r--r--)
> linkcount:1
> owner:5003 (xymon)
> group:14 (sysadmin)
> size:746
> clock:1243609703 (2009/05/29-16:08:23)
> atime:1243609703 (2009/05/29-16:08:23)
> ctime:1243609621 (2009/05/29-16:07:01)
> mtime:1243609621 (2009/05/29-16:07:01)
>
>

The log feature is really intended mostly for real application logs, not for 
creating messages for diagnostic scripts. These should rather report directly 
to Hobbit/Xymon. For example, have you tried the prtdiag script from the 
Deadcat site ? It works fine with Hobbit/Xymon, and provides most of the info 
you added to your "log" file ...

Regards,
Buchan




More information about the Xymon mailing list