This section provides examples for using the edgewatch utility with SNMP versions 1, 2c, and 3 to create Autowatchers.
Examples:
Add a generic autowatcher entry (at table index 13) which generates devCapacity monitors for all discovered filesystems with a threshold of 90:
edgewatch -c private -o autowatch add -index=13 -watchtype=generic -name='All FileSystems - Minor' -table=devTableEntry -attribute=devCapacity -interval=120 -criteria='.*' -op=ge -value=95 -severity=minor -desc='FileSystem Usage (Percentage)' -objclass=FileSystem -objattr=PercentUsed
Add a process autowatcher entry (at table index 15) which generates procRSS monitors for all discovered SQL processes and automtically removes these monitors when the processes closes:
edgewatch -c private -o autowatch add -index=15 -watchtype=process -name='SQL Processes RSS' -criteria='.*sql.*' -attribute=procRSS -op=ge -value=100000 -severity=major -interval=60 -desc='SQL processes' -objclass='Process' -objattr='ResidentSet' -loss=remove
Add a service autowatcher entry (at table index 17) which generates a service procAlive watcher for all services which are configured for automatic start:
edgewatch -c private -o autowatch add -index 17 -watchtype=service -name='All Automatic Services' -criteria='.*' -severity=major -interval=300 -limit=200 -desc='Automatic Services' -objclass='Service' -objattr='Running' -starttype=automatic
List all defined autowatch entries:
edgewatch -c private -o autowatch list
Delete the previously specified service autowatcher entry:
edgewatch -c private -o autowatch delete -index=17
Set the row status of the previously specified process autowatcher to notInService:
edgewatch -c private -o autowatch setstatus -index=15 -rowstatus=notInService
Copyright © 2013 CA. All rights reserved. |
|