How to configure SystemEDGE to monitor the size of a directory

book

Article ID: 39473

calendar_today

Updated On:

Products

CA Server Automation CA Virtual Assurance for IM

Issue/Introduction

Summary:  
How to create a monitor using VAIM or SystemEDGE, to observe directory size, and to trap when a certain size is breached.

Environment: 

Windows/Linux

Instructions: 

Create a Directory Monitor in VAIM

1.      Create a Log File Monitor pointing to the directory. 

Monitors > Logfile

Monitor Type: Directory Monitoring

Log File/ Directory Name: C:\logs (replace with your directory)

Search Filter: .*  (wildcard)

Optional Settings: Do not send any trap, Do not log any traps, No not-ready trap.

<Please see attached file for image>

dirmonitor.PNG

2.   Create a Threshold Monitor pointing to the directory. 

Monitors > Threshold

Object Class: logMonitorEntry

Object Attribute: logMonitorLogFileSize [Size of file/ directory]

Object Instance: C:\logs (replace with your directory)

Threshold Configuration: Value will be size in bytes.

<Please see attached file for image>

thresmonitor.PNG

 

Create a Directory Monitor within SystemEDGE:

  1.  Navigate and open the sysedge.cf located in the port# folder.
  2.  Create the following Monitors: (Follow Syntax in Additional Information)
    watch logfile 11 0x84a C:\logs .* '' '' 1 none
    monitor logMonitorEntry C:\logs logMonitorLogFileSize 12 0x0 60 absolute >= 3000000 '' '' logMonitorEntry C:\logs logMonitorLogFileSize major
  3.  Save File
  4.  Restart SystemEDGE
  5.  

Additional Information:
watch logfile monitor template example:
#watch logfile <index> <flags> '<file>' '<regexpr>' ['<descr>' ['<action>' [<interval> [<severity>]]]]

logMonitorLogFileSize Syntax: (The example above is trapping when the file equals or is above 3000000 bytes)
#monitor <table> '<inst>' <attr> <index> <flags> <interval> <stype>[/<scale>] <oper> <thresh> ['<descr>' ['<action>' ['<objClass>' '<objInst>' '<objAttr>' <severity>]]]

Environment

Release: SEAUBC99000-12.8-Server Automation-Base Configuration
Component:

Attachments

1558715253553000039473_sktwi1f5rjvs16tr1.png get_app
1558715251442000039473_sktwi1f5rjvs16tr0.png get_app