<div dir="ltr">Hi all, <div>I seem to be having problems with CLASS in analysis.cfg and I'm really not sure as to why. I hope I can explain this well enough. </div><div><br></div><div>I have some servers picking up the rules from analysis.cfg and some not, I've selected 2 as samples to try and illustrate the issue. </div><div><br></div><div>These are the entries from hosts.cfg for each server</div><div><br></div><div><div>172.01.01.01    server1 # <a href="http://server1:2801/utils/enterLogin.jsp">http://server1:2801/utils/enterLogin.jsp</a> NOPROPYELLOW:disk,cpu,mq delayyellow=cpu:15 delayred=cpu:15 CLASS:linux</div><div>172.01.01.02    server2 # NOPROPYELLOW:disk,cpu delayyellow=cpu:15 delayred=cpu:15 CLASS:linux</div></div><div><br></div><div>As you can see, both force the CLASS:linux parameter.</div><div><br></div><div>Each server has it's own config file in an analysis.d directory which is included near the bottom of the analysis.cfg file. </div><div><br></div><div>server 1's file contains this,</div><div><br></div><div><div>HOST=server1 GROUP=unixsupport</div><div>        PORT "LOCAL=%([.:]22)$" state=LISTEN TEXT=ssh</div><div>        PROC cybAgent.bin 1</div><div>        PROC rmi_server1 1 -1 red</div><div>        PROC admin_server1 1 -1 red</div><div>        PROC eventprocessor_server1 1 -1 red</div><div>        PROC queuemanager_server1 1 -1 red</div><div>        PROC scheduler_server1 1 -1 red</div><div>        PROC workflowengine_server1 1 -1 red</div><div>        PROC "server1Cell01 server1Node01 pim01srv" 1 -1 red</div><div>        PROC init 1 -1 red</div><div>        PROC tlmagent.bin 1</div><div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmcad 1</div><div>        PROC "/opt/tivoli/tsm/client/ba/bin/dsmc sched" 1</div><div>        LOG %/opt/IBM/MDMPIM/logs/\w*server1/\w*.log "internal error" COLOR=yellow IGNORE="unregistered"</div><div>        LOG /opt/IBM/MDMPIM/logs/workflowengine_server1/db_manager.log "CWPCM0033W:An error occurred when registering thread: heartbeat_workflowengine" COLOR=red</div><div>        LOG /applogs/mdmpim/logs/appsvr_server1/default.log "/utils/custom_page.jsp] ERROR jsp.footer - CWPCM0002E:Generic error / Exception: Not an AustinException, Exception:Failure to acquire exclusive lock for AustinContext" COLOR=red</div><div>        MQ_QUEUE SYSTEM.DEAD.LETTER.QUEUE depth-warning=1</div><div>        MQ_QUEUE "%([A-Z.]*BO)$" depth-warning=1</div></div><div><br></div><div>and server 2's contains this,</div><div><br></div><div><div>HOST=server2 GROUP=unixsupport</div><div>        PORT "LOCAL=%([.:]22)$" state=LISTEN TEXT=ssh</div><div>        PROC /home/dasusr1/das/adm/db2dasrrm 1</div><div>        PROC /opt/IBM/db2/V9.7/bin/db2fmcd 1</div><div>        PROC /opt/IBM/db2/V9.7/das/bin/db2fmd 1</div><div>        PROC db2sysc</div><div>        PROC tlmagent.bin 1</div><div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmcad 1</div><div>        PROC "/opt/tivoli/tsm/client/ba/bin/dsmc sched" 1</div></div><div><br></div><div>Nothing unusual or out of the ordinary in either of those.</div><div><br></div><div>in my analysis.cfg file I have the following,</div><div><br></div><div><div>HOST=*</div><div>        DISK %^/mnt IGNORE</div><div>        DISK %^/nimdir 101 101</div><div>        DISK %^/media IGNORE</div><div>        DISK %^/cdrom IGNORE</div><div><br></div><div>CLASS=win32</div><div>#       SVC CentennialIPTransferAgent startup=automatic status=started</div><div>#       SVC %McShield startup=automatic status=started</div><div>#       CLOCK 600 yellow</div><div><br></div><div>CLASS=linux</div><div>        UP      10m</div><div>        PROC ntpd 1</div><div>        PROC /usr/sbin/sshd 1</div><div>        DISK /nmon 95 98 TIME=W:0800:1800</div><div>        DISK /nmon 95 101</div><div><br></div><div><br></div><div>CLASS=aix</div><div>#       PROC /usr/sbin/syslogd 1</div><div>        PROC /usr/sbin/xntpd 1</div><div>        PROC /usr/sbin/cron 1</div><div>        PROC /usr/lib/errdemon 1</div><div>        PROC /usr/sbin/syncd 1</div><div>        PROC sshd 1</div><div>        DISK /nmon 95 98 TIME=W:0800:1800</div><div>        DISK /nmon 95 101 TIME=W:1800:0800</div><div>        DISK /perf 95 98 TIME=W:0800:1800</div><div>        DISK /perf 95 101 TIME=W:1800:0800</div><div>        DISK /temp IGNORE</div><div><br></div><div># include files</div><div>directory /xymon/server/etc/analysis.d</div><div><br></div><div>CLASS=linux</div><div>        MEMSWAP 10 30</div><div><br></div><div>DEFAULT</div><div>     # These are the built-in defaults.</div><div>     UP      10m</div><div>     LOAD    6.0 8.0</div><div>     DISK    * 95 98</div><div>     MEMPHYS 100 101</div><div>     MEMSWAP 50 80</div><div>     MEMACT  90 97</div></div><div><br></div><div><br></div><div>Server 1 does not pick up the lines in the analysis.cfg file yet server 2 does. That is the confusing thing, as far as I can see, both should pick up these rules.</div><div><br></div><div>Thanks,</div><div>Neil.</div><div><br></div><div><br></div></div>