1NDCTL-MONITOR(1) ndctl Manual NDCTL-MONITOR(1)
2
3
4
6 ndctl-monitor - Monitor the smart events of nvdimm objects
7
9 ndctl monitor [<options>]
10
12 Ndctl monitor is used for monitoring the smart events of nvdimm objects
13 and dumping the json format notifications to syslog, standard output or
14 a logfile.
15
16 The objects to monitor and smart events to notify can be selected by
17 setting options and/or the configuration file at
18 /etc/ndctl/monitor.conf
19
20 Both, the values in configuration file and in options will work. If
21 there is a conflict, the values in options will override the values in
22 the configuration file. Any updated values in the configuration file
23 will take effect only after the monitor process is restarted.
24
26 Run a monitor as a daemon to monitor DIMMs on bus "nfit_test.1"
27
28 ndctl monitor --bus=nfit_test.1 --daemon
29
30 Run a monitor as a one-shot command and output the notifications to
31 /var/log/ndctl.log
32
33 ndctl monitor --log=/var/log/ndctl.log
34
35 Run a monitor daemon as a system service
36
37 systemctl start ndctl-monitor.service
38
40 -b, --bus=
41 Enforce that the operation only be carried on devices that are
42 attached to the given bus. Where bus can be a provider name or a
43 bus id number.
44
45 -d, --dimm=
46 A nmemX device name, or dimm id number. Select the devices to
47 monitor reference the given dimm.
48
49 -r, --region=
50 A regionX device name, or a region id number. The keyword all can
51 be specified to carry out the operation on every region in the
52 system, optionally filtered by bus id (see --bus= option).
53
54 -n, --namespace=
55 A namespaceX.Y device name, or namespace region plus id tuple X.Y.
56
57 -l, --log=
58 Send log messages to the specified destination.
59
60 · "<file>": Send log messages to specified <file>. When fopen()
61 is not able to open <file>, log messages will be forwarded to
62 syslog.
63
64 · "syslog": Send messages to syslog.
65
66 · "standard": Send messages to standard output.
67
68 The default log destination is syslog if "--daemon" is specified,
69 otherwise standard. Note that standard and relative path for <file>
70 will not work if "--daemon" is specified.
71
72 -c, --config-file=
73 Provide the config file to use. This overrides the default config
74 typically found in /etc/ndctl
75
76 --daemon
77 Run a monitor as a daemon.
78
79 -D, --dimm-event=
80 Name of an smart health event from the following:
81
82 · "dimm-spares-remaining": Spare Blocks Remaining value has gone
83 below the pre-programmed threshold.
84
85 · "dimm-media-temperature": NVDIMM Media temperature value has
86 gone above the pre-programmed threshold.
87
88 · "dimm-controller-temperature": NVDIMM Controller temperature
89 value has gone above the pre-programmed threshold.
90
91 · "dimm-health-state": NVDIMM Normal Health Status has changed
92
93 · "dimm-unclean-shutdown": NVDIMM Last Shutdown Status was a
94 unclean shutdown.
95
96 The monitor will attempt to enable the alarm control bits for all
97 specified events.
98
99 -u, --human
100 Output monitor notification as human friendly json format instead
101 of the default machine friendly json format.
102
103 -v, --verbose
104 Emit extra debug messages to log.
105
107 Copyright (c) 2018, FUJITSU LIMITED. License GPLv2: GNU GPL version 2
108 <http://gnu.org/licenses/gpl.html>. This is free software: you are free
109 to change and redistribute it. There is NO WARRANTY, to the extent
110 permitted by law.
111
113 ndctl-list(1), ndctl-inject-smart(1)
114
115
116
117ndctl 2019-10-28 NDCTL-MONITOR(1)