You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

855 lines
16 KiB

4 years ago
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "GLANCES" "1" "Sep 29, 2018" "3.0.2" "Glances"
  4. .SH NAME
  5. glances \- An eye on your system
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSIS
  34. .sp
  35. \fBglances\fP [OPTIONS]
  36. .SH DESCRIPTION
  37. .sp
  38. \fBglances\fP is a cross\-platform curses\-based monitoring tool which aims
  39. to present a maximum of information in a minimum of space, ideally to
  40. fit in a classical 80x24 terminal or higher to have additional
  41. information. It can adapt dynamically the displayed information
  42. depending on the terminal size. It can also work in client/server mode.
  43. Remote monitoring could be done via terminal or web interface.
  44. .sp
  45. \fBglances\fP is written in Python and uses the \fIpsutil\fP library to get
  46. information from your system.
  47. .SH OPTIONS
  48. .SH COMMAND-LINE OPTIONS
  49. .INDENT 0.0
  50. .TP
  51. .B \-h, \-\-help
  52. show this help message and exit
  53. .UNINDENT
  54. .INDENT 0.0
  55. .TP
  56. .B \-V, \-\-version
  57. show program’s version number and exit
  58. .UNINDENT
  59. .INDENT 0.0
  60. .TP
  61. .B \-d, \-\-debug
  62. enable debug mode
  63. .UNINDENT
  64. .INDENT 0.0
  65. .TP
  66. .B \-C CONF_FILE, \-\-config CONF_FILE
  67. path to the configuration file
  68. .UNINDENT
  69. .INDENT 0.0
  70. .TP
  71. .B \-modules\-list
  72. display modules (plugins & exports) list and exit
  73. .UNINDENT
  74. .INDENT 0.0
  75. .TP
  76. .B \-\-disable\-plugin PLUGIN
  77. disable PLUGIN (comma separed list)
  78. .UNINDENT
  79. .INDENT 0.0
  80. .TP
  81. .B \-\-stdout PLUGINS_STATS
  82. display stats to stdout (comma separated list of plugins/plugins.attribute)
  83. .UNINDENT
  84. .INDENT 0.0
  85. .TP
  86. .B \-\-export EXPORT
  87. enable EXPORT module (comma separed list)
  88. .UNINDENT
  89. .INDENT 0.0
  90. .TP
  91. .B \-\-export\-csv\-file EXPORT_CSV_FILE
  92. file path for CSV exporter
  93. .UNINDENT
  94. .INDENT 0.0
  95. .TP
  96. .B \-\-export\-json\-file EXPORT_JSON_FILE
  97. file path for JSON exporter
  98. .UNINDENT
  99. .INDENT 0.0
  100. .TP
  101. .B \-\-disable\-process
  102. disable process module (reduce Glances CPU consumption)
  103. .UNINDENT
  104. .INDENT 0.0
  105. .TP
  106. .B \-\-disable\-webui
  107. disable the Web UI (only the RESTful API will respond)
  108. .UNINDENT
  109. .INDENT 0.0
  110. .TP
  111. .B \-\-light, \-\-enable\-light
  112. light mode for Curses UI (disable all but top menu)
  113. .UNINDENT
  114. .INDENT 0.0
  115. .TP
  116. .B \-0, \-\-disable\-irix
  117. task’s CPU usage will be divided by the total number of CPUs
  118. .UNINDENT
  119. .INDENT 0.0
  120. .TP
  121. .B \-1, \-\-percpu
  122. start Glances in per CPU mode
  123. .UNINDENT
  124. .INDENT 0.0
  125. .TP
  126. .B \-2, \-\-disable\-left\-sidebar
  127. disable network, disk I/O, FS and sensors modules
  128. .UNINDENT
  129. .INDENT 0.0
  130. .TP
  131. .B \-3, \-\-disable\-quicklook
  132. disable quick look module
  133. .UNINDENT
  134. .INDENT 0.0
  135. .TP
  136. .B \-4, \-\-full\-quicklook
  137. disable all but quick look and load
  138. .UNINDENT
  139. .INDENT 0.0
  140. .TP
  141. .B \-5, \-\-disable\-top
  142. disable top menu (QuickLook, CPU, MEM, SWAP and LOAD)
  143. .UNINDENT
  144. .INDENT 0.0
  145. .TP
  146. .B \-6, \-\-meangpu
  147. start Glances in mean GPU mode
  148. .UNINDENT
  149. .INDENT 0.0
  150. .TP
  151. .B \-\-enable\-history
  152. enable the history mode
  153. .UNINDENT
  154. .INDENT 0.0
  155. .TP
  156. .B \-\-disable\-bold
  157. disable bold mode in the terminal
  158. .UNINDENT
  159. .INDENT 0.0
  160. .TP
  161. .B \-\-disable\-bg
  162. disable background colors in the terminal
  163. .UNINDENT
  164. .INDENT 0.0
  165. .TP
  166. .B \-\-enable\-process\-extended
  167. enable extended stats on top process
  168. .UNINDENT
  169. .INDENT 0.0
  170. .TP
  171. .B \-c CLIENT, \-\-client CLIENT
  172. connect to a Glances server by IPv4/IPv6 address, hostname or hostname:port
  173. .UNINDENT
  174. .INDENT 0.0
  175. .TP
  176. .B \-s, \-\-server
  177. run Glances in server mode
  178. .UNINDENT
  179. .INDENT 0.0
  180. .TP
  181. .B \-\-browser
  182. start the client browser (list of servers)
  183. .UNINDENT
  184. .INDENT 0.0
  185. .TP
  186. .B \-\-disable\-autodiscover
  187. disable autodiscover feature
  188. .UNINDENT
  189. .INDENT 0.0
  190. .TP
  191. .B \-p PORT, \-\-port PORT
  192. define the client/server TCP port [default: 61209]
  193. .UNINDENT
  194. .INDENT 0.0
  195. .TP
  196. .B \-B BIND_ADDRESS, \-\-bind BIND_ADDRESS
  197. bind server to the given IPv4/IPv6 address or hostname
  198. .UNINDENT
  199. .INDENT 0.0
  200. .TP
  201. .B \-\-username
  202. define a client/server username
  203. .UNINDENT
  204. .INDENT 0.0
  205. .TP
  206. .B \-\-password
  207. define a client/server password
  208. .UNINDENT
  209. .INDENT 0.0
  210. .TP
  211. .B \-\-snmp\-community SNMP_COMMUNITY
  212. SNMP community
  213. .UNINDENT
  214. .INDENT 0.0
  215. .TP
  216. .B \-\-snmp\-port SNMP_PORT
  217. SNMP port
  218. .UNINDENT
  219. .INDENT 0.0
  220. .TP
  221. .B \-\-snmp\-version SNMP_VERSION
  222. SNMP version (1, 2c or 3)
  223. .UNINDENT
  224. .INDENT 0.0
  225. .TP
  226. .B \-\-snmp\-user SNMP_USER
  227. SNMP username (only for SNMPv3)
  228. .UNINDENT
  229. .INDENT 0.0
  230. .TP
  231. .B \-\-snmp\-auth SNMP_AUTH
  232. SNMP authentication key (only for SNMPv3)
  233. .UNINDENT
  234. .INDENT 0.0
  235. .TP
  236. .B \-\-snmp\-force
  237. force SNMP mode
  238. .UNINDENT
  239. .INDENT 0.0
  240. .TP
  241. .B \-t TIME, \-\-time TIME
  242. set refresh time in seconds [default: 3 sec]
  243. .UNINDENT
  244. .INDENT 0.0
  245. .TP
  246. .B \-w, \-\-webserver
  247. run Glances in web server mode (bottle lib needed)
  248. .UNINDENT
  249. .INDENT 0.0
  250. .TP
  251. .B \-\-cached\-time CACHED_TIME
  252. set the server cache time [default: 1 sec]
  253. .UNINDENT
  254. .INDENT 0.0
  255. .TP
  256. .B open\-web\-browser
  257. try to open the Web UI in the default Web browser
  258. .UNINDENT
  259. .INDENT 0.0
  260. .TP
  261. .B \-q, \-\-quiet
  262. do not display the curses interface
  263. .UNINDENT
  264. .INDENT 0.0
  265. .TP
  266. .B \-f PROCESS_FILTER, \-\-process\-filter PROCESS_FILTER
  267. set the process filter pattern (regular expression)
  268. .UNINDENT
  269. .INDENT 0.0
  270. .TP
  271. .B \-\-process\-short\-name
  272. force short name for processes name
  273. .UNINDENT
  274. .INDENT 0.0
  275. .TP
  276. .B \-\-hide\-kernel\-threads
  277. hide kernel threads in process list (not available on Windows)
  278. .UNINDENT
  279. .INDENT 0.0
  280. .TP
  281. .B \-b, \-\-byte
  282. display network rate in byte per second
  283. .UNINDENT
  284. .INDENT 0.0
  285. .TP
  286. .B \-\-diskio\-show\-ramfs
  287. show RAM FS in the DiskIO plugin
  288. .UNINDENT
  289. .INDENT 0.0
  290. .TP
  291. .B \-\-diskio\-iops
  292. show I/O per second in the DiskIO plugin
  293. .UNINDENT
  294. .INDENT 0.0
  295. .TP
  296. .B \-\-fahrenheit
  297. display temperature in Fahrenheit (default is Celsius)
  298. .UNINDENT
  299. .INDENT 0.0
  300. .TP
  301. .B \-\-fs\-free\-space
  302. display FS free space instead of used
  303. .UNINDENT
  304. .INDENT 0.0
  305. .TP
  306. .B \-\-theme\-white
  307. optimize display colors for white background
  308. .UNINDENT
  309. .INDENT 0.0
  310. .TP
  311. .B \-\-disable\-check\-update
  312. disable online Glances version ckeck
  313. .UNINDENT
  314. .SH INTERACTIVE COMMANDS
  315. .sp
  316. The following commands (key pressed) are supported while in Glances:
  317. .INDENT 0.0
  318. .TP
  319. .B \fBENTER\fP
  320. Set the process filter
  321. .sp
  322. \fBNOTE:\fP
  323. .INDENT 7.0
  324. .INDENT 3.5
  325. On macOS please use \fBCTRL\-H\fP to delete filter.
  326. .UNINDENT
  327. .UNINDENT
  328. .sp
  329. Filter is a regular expression pattern:
  330. .INDENT 7.0
  331. .IP \(bu 2
  332. \fBgnome\fP: matches all processes starting with the \fBgnome\fP
  333. string
  334. .IP \(bu 2
  335. \fB\&.*gnome.*\fP: matches all processes containing the \fBgnome\fP
  336. string
  337. .UNINDENT
  338. .TP
  339. .B \fBa\fP
  340. Sort process list automatically
  341. .INDENT 7.0
  342. .IP \(bu 2
  343. If CPU \fB>70%\fP, sort processes by CPU usage
  344. .IP \(bu 2
  345. If MEM \fB>70%\fP, sort processes by MEM usage
  346. .IP \(bu 2
  347. If CPU iowait \fB>60%\fP, sort processes by I/O read and write
  348. .UNINDENT
  349. .TP
  350. .B \fBA\fP
  351. Enable/disable Application Monitoring Process
  352. .TP
  353. .B \fBb\fP
  354. Switch between bit/s or Byte/s for network I/O
  355. .TP
  356. .B \fBB\fP
  357. View disk I/O counters per second
  358. .TP
  359. .B \fBc\fP
  360. Sort processes by CPU usage
  361. .TP
  362. .B \fBd\fP
  363. Show/hide disk I/O stats
  364. .TP
  365. .B \fBD\fP
  366. Enable/disable Docker stats
  367. .TP
  368. .B \fBe\fP
  369. Enable/disable top extended stats
  370. .TP
  371. .B \fBE\fP
  372. Erase current process filter
  373. .TP
  374. .B \fBf\fP
  375. Show/hide file system and folder monitoring stats
  376. .TP
  377. .B \fBF\fP
  378. Switch between file system used and free space
  379. .TP
  380. .B \fBg\fP
  381. Generate graphs for current history
  382. .TP
  383. .B \fBh\fP
  384. Show/hide the help screen
  385. .TP
  386. .B \fBi\fP
  387. Sort processes by I/O rate
  388. .TP
  389. .B \fBI\fP
  390. Show/hide IP module
  391. .TP
  392. .B \fBl\fP
  393. Show/hide log messages
  394. .TP
  395. .B \fBm\fP
  396. Sort processes by MEM usage
  397. .TP
  398. .B \fBM\fP
  399. Reset processes summary min/max
  400. .TP
  401. .B \fBn\fP
  402. Show/hide network stats
  403. .TP
  404. .B \fBN\fP
  405. Show/hide current time
  406. .TP
  407. .B \fBp\fP
  408. Sort processes by name
  409. .TP
  410. .B \fBq|ESC|CTRL\-C\fP
  411. Quit the current Glances session
  412. .TP
  413. .B \fBQ\fP
  414. Show/hide IRQ module
  415. .TP
  416. .B \fBr\fP
  417. Reset history
  418. .TP
  419. .B \fBR\fP
  420. Show/hide RAID plugin
  421. .TP
  422. .B \fBs\fP
  423. Show/hide sensors stats
  424. .TP
  425. .B \fBt\fP
  426. Sort process by CPU times (TIME+)
  427. .TP
  428. .B \fBT\fP
  429. View network I/O as combination
  430. .TP
  431. .B \fBu\fP
  432. Sort processes by USER
  433. .TP
  434. .B \fBU\fP
  435. View cumulative network I/O
  436. .TP
  437. .B \fBw\fP
  438. Delete finished warning log messages
  439. .TP
  440. .B \fBW\fP
  441. Show/hide Wifi module
  442. .TP
  443. .B \fBx\fP
  444. Delete finished warning and critical log messages
  445. .TP
  446. .B \fBz\fP
  447. Show/hide processes stats
  448. .TP
  449. .B \fB0\fP
  450. Enable/disable Irix/Solaris mode
  451. .sp
  452. Task’s CPU usage will be divided by the total number of CPUs
  453. .TP
  454. .B \fB1\fP
  455. Switch between global CPU and per\-CPU stats
  456. .TP
  457. .B \fB2\fP
  458. Enable/disable left sidebar
  459. .TP
  460. .B \fB3\fP
  461. Enable/disable the quick look module
  462. .TP
  463. .B \fB4\fP
  464. Enable/disable all but quick look and load module
  465. .TP
  466. .B \fB5\fP
  467. Enable/disable top menu (QuickLook, CPU, MEM, SWAP and LOAD)
  468. .TP
  469. .B \fB6\fP
  470. Enable/disable mean GPU mode
  471. .TP
  472. .B \fB/\fP
  473. Switch between process command line or command name
  474. .UNINDENT
  475. .sp
  476. In the Glances client browser (accessible through the \fB\-\-browser\fP
  477. command line argument):
  478. .INDENT 0.0
  479. .TP
  480. .B \fBENTER\fP
  481. Run the selected server
  482. .TP
  483. .B \fBUP\fP
  484. Up in the servers list
  485. .TP
  486. .B \fBDOWN\fP
  487. Down in the servers list
  488. .TP
  489. .B \fBq|ESC\fP
  490. Quit Glances
  491. .UNINDENT
  492. .SH CONFIGURATION
  493. .sp
  494. No configuration file is mandatory to use Glances.
  495. .sp
  496. Furthermore a configuration file is needed to access more settings.
  497. .SH LOCATION
  498. .sp
  499. \fBNOTE:\fP
  500. .INDENT 0.0
  501. .INDENT 3.5
  502. A template is available in the \fB/usr{,/local}/share/doc/glances\fP
  503. (Unix\-like) directory or directly on \fI\%GitHub\fP\&.
  504. .UNINDENT
  505. .UNINDENT
  506. .sp
  507. You can put your own \fBglances.conf\fP file in the following locations:
  508. .TS
  509. center;
  510. |l|l|.
  511. _
  512. T{
  513. \fBLinux\fP, \fBSunOS\fP
  514. T} T{
  515. ~/.config/glances, /etc/glances
  516. T}
  517. _
  518. T{
  519. \fB*BSD\fP
  520. T} T{
  521. ~/.config/glances, /usr/local/etc/glances
  522. T}
  523. _
  524. T{
  525. \fBmacOS\fP
  526. T} T{
  527. ~/Library/Application Support/glances, /usr/local/etc/glances
  528. T}
  529. _
  530. T{
  531. \fBWindows\fP
  532. T} T{
  533. %APPDATA%\eglances
  534. T}
  535. _
  536. .TE
  537. .INDENT 0.0
  538. .IP \(bu 2
  539. On Windows XP, \fB%APPDATA%\fP is: \fBC:\eDocuments and Settings\e<USERNAME>\eApplication Data\fP\&.
  540. .IP \(bu 2
  541. On Windows Vista and later: \fBC:\eUsers\e<USERNAME>\eAppData\eRoaming\fP\&.
  542. .UNINDENT
  543. .sp
  544. User\-specific options override system\-wide options and options given on
  545. the command line override either.
  546. .SH SYNTAX
  547. .sp
  548. Glances reads configuration files in the \fIini\fP syntax.
  549. .sp
  550. A first section (called global) is available:
  551. .INDENT 0.0
  552. .INDENT 3.5
  553. .sp
  554. .nf
  555. .ft C
  556. [global]
  557. # Does Glances should check if a newer version is available on PyPI?
  558. check_update=true
  559. .ft P
  560. .fi
  561. .UNINDENT
  562. .UNINDENT
  563. .sp
  564. Each plugin, export module and application monitoring process (AMP) can
  565. have a section. Below an example for the CPU plugin:
  566. .INDENT 0.0
  567. .INDENT 3.5
  568. .sp
  569. .nf
  570. .ft C
  571. [cpu]
  572. user_careful=50
  573. user_warning=70
  574. user_critical=90
  575. iowait_careful=50
  576. iowait_warning=70
  577. iowait_critical=90
  578. system_careful=50
  579. system_warning=70
  580. system_critical=90
  581. steal_careful=50
  582. steal_warning=70
  583. steal_critical=90
  584. .ft P
  585. .fi
  586. .UNINDENT
  587. .UNINDENT
  588. .sp
  589. an InfluxDB export module:
  590. .INDENT 0.0
  591. .INDENT 3.5
  592. .sp
  593. .nf
  594. .ft C
  595. [influxdb]
  596. # Configuration for the \-\-export influxdb option
  597. # https://influxdb.com/
  598. host=localhost
  599. port=8086
  600. user=root
  601. password=root
  602. db=glances
  603. prefix=localhost
  604. #tags=foo:bar,spam:eggs
  605. .ft P
  606. .fi
  607. .UNINDENT
  608. .UNINDENT
  609. .sp
  610. or a Nginx AMP:
  611. .INDENT 0.0
  612. .INDENT 3.5
  613. .sp
  614. .nf
  615. .ft C
  616. [amp_nginx]
  617. # Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status\-page/)
  618. enable=true
  619. regex=\e/usr\e/sbin\e/nginx
  620. refresh=60
  621. one_line=false
  622. status_url=http://localhost/nginx_status
  623. .ft P
  624. .fi
  625. .UNINDENT
  626. .UNINDENT
  627. .sp
  628. With Glances 3.0 or higher it is also possible to use dynamic configuration
  629. value using system command. For example, if you to set the prefix of an
  630. InfluxDB export to the current hostname, use:
  631. .INDENT 0.0
  632. .INDENT 3.5
  633. .sp
  634. .nf
  635. .ft C
  636. [influxdb]
  637. \&...
  638. prefix=\(gahostname\(ga
  639. .ft P
  640. .fi
  641. .UNINDENT
  642. .UNINDENT
  643. .sp
  644. Or if you want to add the Operating System name as a tag:
  645. .INDENT 0.0
  646. .INDENT 3.5
  647. .sp
  648. .nf
  649. .ft C
  650. [influxdb]
  651. \&...
  652. tags=system:\(gauname \-a\(ga
  653. .ft P
  654. .fi
  655. .UNINDENT
  656. .UNINDENT
  657. .SH LOGGING
  658. .sp
  659. Glances logs all of its internal messages to a log file.
  660. .sp
  661. \fBDEBUG\fP messages can been logged using the \fB\-d\fP option on the command
  662. line.
  663. .sp
  664. By default, the \fBglances\-USERNAME.log\fP file is under the temporary directory:
  665. .TS
  666. center;
  667. |l|l|.
  668. _
  669. T{
  670. \fB*nix\fP
  671. T} T{
  672. /tmp
  673. T}
  674. _
  675. T{
  676. \fBWindows\fP
  677. T} T{
  678. %TEMP%
  679. T}
  680. _
  681. .TE
  682. .INDENT 0.0
  683. .IP \(bu 2
  684. On Windows XP, \fB%TEMP%\fP is: \fBC:\eDocuments and Settings\e<USERNAME>\eLocal Settings\eTemp\fP\&.
  685. .IP \(bu 2
  686. On Windows Vista and later: \fBC:\eUsers\e<USERNAME>\eAppData\eLocal\eTemp\fP\&.
  687. .UNINDENT
  688. .sp
  689. If you want to use another system path or change the log message, you
  690. can use your own logger configuration. First of all, you have to create
  691. a \fBglances.json\fP file with, for example, the following content (JSON
  692. format):
  693. .INDENT 0.0
  694. .INDENT 3.5
  695. .sp
  696. .nf
  697. .ft C
  698. {
  699. "version": 1,
  700. "disable_existing_loggers": "False",
  701. "root": {
  702. "level": "INFO",
  703. "handlers": ["file", "console"]
  704. },
  705. "formatters": {
  706. "standard": {
  707. "format": "%(asctime)s \-\- %(levelname)s \-\- %(message)s"
  708. },
  709. "short": {
  710. "format": "%(levelname)s: %(message)s"
  711. },
  712. "free": {
  713. "format": "%(message)s"
  714. }
  715. },
  716. "handlers": {
  717. "file": {
  718. "level": "DEBUG",
  719. "class": "logging.handlers.RotatingFileHandler",
  720. "formatter": "standard",
  721. "filename": "/var/tmp/glances.log"
  722. },
  723. "console": {
  724. "level": "CRITICAL",
  725. "class": "logging.StreamHandler",
  726. "formatter": "free"
  727. }
  728. },
  729. "loggers": {
  730. "debug": {
  731. "handlers": ["file", "console"],
  732. "level": "DEBUG"
  733. },
  734. "verbose": {
  735. "handlers": ["file", "console"],
  736. "level": "INFO"
  737. },
  738. "standard": {
  739. "handlers": ["file"],
  740. "level": "INFO"
  741. },
  742. "requests": {
  743. "handlers": ["file", "console"],
  744. "level": "ERROR"
  745. },
  746. "elasticsearch": {
  747. "handlers": ["file", "console"],
  748. "level": "ERROR"
  749. },
  750. "elasticsearch.trace": {
  751. "handlers": ["file", "console"],
  752. "level": "ERROR"
  753. }
  754. }
  755. }
  756. .ft P
  757. .fi
  758. .UNINDENT
  759. .UNINDENT
  760. .sp
  761. and start Glances using the following command line:
  762. .INDENT 0.0
  763. .INDENT 3.5
  764. .sp
  765. .nf
  766. .ft C
  767. LOG_CFG=<path>/glances.json glances
  768. .ft P
  769. .fi
  770. .UNINDENT
  771. .UNINDENT
  772. .sp
  773. \fBNOTE:\fP
  774. .INDENT 0.0
  775. .INDENT 3.5
  776. Replace \fB<path>\fP by the folder where your \fBglances.json\fP file
  777. is hosted.
  778. .UNINDENT
  779. .UNINDENT
  780. .SH EXAMPLES
  781. .sp
  782. Monitor local machine (standalone mode):
  783. .INDENT 0.0
  784. .INDENT 3.5
  785. $ glances
  786. .UNINDENT
  787. .UNINDENT
  788. .sp
  789. Note: The standalone mode is not available on Microsoft Windows (c).
  790. Glances will start in Web server mode on this operating system.
  791. .sp
  792. Monitor local machine with the web interface (Web UI):
  793. .INDENT 0.0
  794. .INDENT 3.5
  795. $ glances \-w
  796. .UNINDENT
  797. .UNINDENT
  798. .sp
  799. Monitor local machine and export stats to a CSV file:
  800. .INDENT 0.0
  801. .INDENT 3.5
  802. $ glances –export csv –export\-csv\-file /tmp/glances.csv
  803. .UNINDENT
  804. .UNINDENT
  805. .sp
  806. Monitor local machine and export stats to a InfluxDB server with 5s
  807. refresh time (also possible to export to OpenTSDB, Cassandra, Statsd,
  808. ElasticSearch, RabbitMQ and Riemann):
  809. .INDENT 0.0
  810. .INDENT 3.5
  811. $ glances \-t 5 –export influxdb
  812. .UNINDENT
  813. .UNINDENT
  814. .sp
  815. It is also possible to export stats to multiple endpoints:
  816. .INDENT 0.0
  817. .INDENT 3.5
  818. $ glances \-t 5 –export influxdb,statsd,csv
  819. .UNINDENT
  820. .UNINDENT
  821. .sp
  822. Start a Glances server (server mode):
  823. .INDENT 0.0
  824. .INDENT 3.5
  825. $ glances \-s
  826. .UNINDENT
  827. .UNINDENT
  828. .sp
  829. Connect Glances to a Glances server (client mode):
  830. .INDENT 0.0
  831. .INDENT 3.5
  832. $ glances \-c <ip_server>
  833. .UNINDENT
  834. .UNINDENT
  835. .sp
  836. Connect to a Glances server and export stats to a StatsD server:
  837. .INDENT 0.0
  838. .INDENT 3.5
  839. $ glances \-c <ip_server> –export statsd
  840. .UNINDENT
  841. .UNINDENT
  842. .sp
  843. Start the client browser (browser mode):
  844. .INDENT 0.0
  845. .INDENT 3.5
  846. $ glances –browser
  847. .UNINDENT
  848. .UNINDENT
  849. .SH AUTHOR
  850. .sp
  851. Nicolas Hennion aka Nicolargo <\fI\%contact@nicolargo.com\fP>
  852. .SH COPYRIGHT
  853. 2018, Nicolas Hennion
  854. .\" Generated by docutils manpage writer.
  855. .