The System Health Check daemon can run in two different modes, depending on how you want to use it.
The System Health Check daemon by default runs in this mode. In this mode, system data is collected only after you run the nzhealthcheck command and then the rules are evaluated using this data. The advantage of the diagnostic mode is that it produces no background workload because it does not collect any data in the background.
nzhealthcheck -I
Daemon status: active
Daemon mode: diagnostic
To switch back from the monitoring to the diagnostic mode, run nzhealthcheck -D.
Run the nzhealthcheck -M command to restart the daemon and switch it to the monitoring mode. In this mode, data is constantly gathered in the background and the rules are evaluated periodically.
When the daemon runs in the monitoring mode, it only evaluates the automatic rules. Refer to the rules-doc.pdf document for information about which of the rules are evaluated automatically and which are evaluated manually.
The monitoring mode allows for enabling automatic notifications. See Enabling automatic notifications.
Some rules are automatically integrated with the callhome service when the daemon runs in this mode. See Integration with the callhome service.
nzhealthcheck -I
Daemon status: active
Daemon mode: monitoring