asc monitor
Perform CloudControl monitoring management.
Syntax
asc monitor [options]
Option |
Description |
|||
-a, --fileaudit [--config] [--system] [--verbose] |
Audits the local filesystem to identify possible intrusions. This option invokes the Advanced Intrusion Detection Environment (AIDE) using CloudControl validated reference data. CloudControl maintains two different AIDE databases for file system integrity:
By default, this command runs against both databases. If you specify one, the command only runs against the specified database. The output is sent to syslog as well as to the console. |
|||
-P, --fileprofile [--config] [--system] |
Recreates the reference database used by AIDE based on the current contents of the file system. You can specify the config or system database, or recreate both.
|
|||
--filemon {on|off} [--filemoninterval <minutes>] |
Enables automatic monitoring of file integrity using AIDE. This option enables or disables a cron job that runs the
|
|||
-c, --community <string> |
Specify the SNMP community string. |
|||
-e, --email <email_address> |
Set an email address where system notifications will be sent. |
|||
-f, --force |
Ignore failed connection attempts to mail servers and SNMP trap recipient hosts. |
|||
-H, --health |
Perform a health check on the CloudControl. |
|||
-h, --help |
Display usage text. |
|||
-k, --network {on|off} |
Enable ( NRM is enabled by default. |
|||
-l, --trial |
Send an SNMP, SMTP, and syslog test alert notice. Include the |
|||
-m, --message <message> |
Specify the message to use in log files and configuration file change journals for monitoring related activities. If the message contains spaces, you must surround it by single or double quotation marks. |
|||
-n, --snmp {on|off} |
Enable ( |
|||
-p, --protected {on|off} |
Enable ( PHM is disabled by default. |
|||
-s, --server <smtp_server> |
Set the SMTP server to use for sending email notifications. |
|||
-t, --trap <trap_host> |
Set an SNMP Trap recipient host. |
|||
-u, --status |
Display a report showing service, resource state, and monitoring configuration. |
|||
-v, --verbose |
Enable verbose output. |
Examples
Perform an audit of the local CloudControl filesystem:
asc monitor --fileaudit
Perform an audit of the config database in the local CloudControl filesystem:
asc monitor --fileaudit --config
Recreate the AIDE reference database:
asc monitor --fileprofile
Set the asc monitor --fileprofile
job to run every 120 minutes.
asc monitor --filemon on --filemoninterval 120
Set the SMTP notification server and target address:
asc monitor -s mail.foo.com -e user@foo.com
Enable the SNMP server and set its community and trap recipient host:
asc monitor -n on -c public -t 1.2.3.4
Send an SMTP and SNMP test with a message:
asc monitor -l -m 'Hello monitoring systems'
View a system status report:
asc monitor --status
Set an SMTP server:
asc monitor -s smtp.foo.com
Set a single SNMP Trap recipient host:
asc monitor -t trapd.foo.com
Set two SNMP Trap recipient hosts:
asc monitor -t trapd.foo.com -t trapd2.foo.com
Enable the SNMP server:
asc monitor -n on
Disable the SNMP server:
asc monitor -n off
Set the SNMP community string:
asc monitor -c public
or
asc monitor -c othercommunity
Specify a single email address where notifications will be sent:
asc monitor -e admin@foo.com
Specify three email addresses where notification will be sent:
asc monitor -e admin@foo.com -e other@foo.com -e third@elsewhere.org
Disable network resource monitoring (NRM):
asc monitor --network off
Enable protected host monitoring (PHM):
asc monitor --protected on