Advertisement
FengShui

glances.conf

Nov 4th, 2023
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.43 KB | Fixit | 0 0
  1. ##############################################################################
  2. # Globals Glances parameters
  3. ##############################################################################
  4.  
  5. [global]
  6. # Stats refresh rate (default is a minimum of 2 seconds)
  7. # Can be overwrite by the -t <sec> option
  8. # It is also possible to overwrite it in each plugin sections
  9. refresh=2
  10. # Does Glances should check if a newer version is available on PyPI ?
  11. check_update=False
  12. # History size (maximum number of values)
  13. # Default is 1200 values (~1h with the default refresh rate)
  14. history_size=1200
  15. # Set the way Glances should display the date (default is %Y-%m-%d %H:%M:%S %Z)
  16. #strftime_format="%Y-%m-%d %H:%M:%S %Z"
  17.  
  18. ##############################################################################
  19. # User interface
  20. ##############################################################################
  21.  
  22. [outputs]
  23. # Theme name for the Curses interface: black or white
  24. curse_theme=black
  25. # Limit the number of processes to display in the WebUI
  26. max_processes_display=30
  27.  
  28. ##############################################################################
  29. # plugins
  30. ##############################################################################
  31.  
  32. [quicklook]
  33. # Set to true to disable a plugin
  34. # Note: you can also disable it from the command line (see --disable-plugin <plugin_name>)
  35. disable=False
  36. # Graphical percentage char used in the terminal user interface (default is |)
  37. percentage_char=|
  38. # Define CPU, MEM and SWAP thresholds in %
  39. cpu_careful=50
  40. cpu_warning=70
  41. cpu_critical=90
  42. mem_careful=50
  43. mem_warning=70
  44. mem_critical=90
  45. swap_careful=50
  46. swap_warning=70
  47. swap_critical=90
  48.  
  49. [system]
  50. # This plugin display the first line in the Glances UI with:
  51. # Hostname / Operating system name / Architecture information
  52. # Set to true to disable a plugin
  53. disable=False
  54. # Default refresh rate is 60 seconds
  55. #refresh=60
  56.  
  57. [cpu]
  58. disable=False
  59. # See https://scoutapm.com/blog/slow_server_flow_chart
  60. #
  61. # I/O wait percentage should be lower than 1/# (# = Logical CPU cores)
  62. # Leave commented to just use the default config:
  63. # Careful=1/#*100-20% / Warning=1/#*100-10% / Critical=1/#*100
  64. #iowait_careful=30
  65. #iowait_warning=40
  66. #iowait_critical=50
  67. #
  68. # Total % is 100 - idle
  69. total_careful=65
  70. total_warning=75
  71. total_critical=85
  72. total_log=True
  73. #
  74. # Default values if not defined: 50/70/90 (except for iowait)
  75. user_careful=50
  76. user_warning=70
  77. user_critical=90
  78. user_log=False
  79. #user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
  80. #
  81. system_careful=50
  82. system_warning=70
  83. system_critical=90
  84. system_log=False
  85. #
  86. steal_careful=50
  87. steal_warning=70
  88. steal_critical=90
  89. #steal_log=True
  90. #
  91. # Context switch limit (core / second)
  92. # Leave commented to just use the default config (critical is 50000*# (Logical CPU cores)
  93. #ctx_switches_careful=10000
  94. #ctx_switches_warning=12000
  95. #ctx_switches_critical=14000
  96.  
  97. [percpu]
  98. disable=False
  99. # Define CPU thresholds in %
  100. # Default values if not defined: 50/70/90
  101. user_careful=50
  102. user_warning=70
  103. user_critical=90
  104. iowait_careful=50
  105. iowait_warning=70
  106. iowait_critical=90
  107. system_careful=50
  108. system_warning=70
  109. system_critical=90
  110.  
  111. [gpu]
  112. #disable=False
  113. disable=True
  114. # Default processor values if not defined: 50/70/90
  115. proc_careful=50
  116. proc_warning=70
  117. proc_critical=90
  118. # Default memory values if not defined: 50/70/90
  119. mem_careful=50
  120. mem_warning=70
  121. mem_critical=90
  122.  
  123. [mem]
  124. disable=False
  125. # Define RAM thresholds in %
  126. # Default values if not defined: 50/70/90
  127. careful=50
  128. #careful_action_repeat=echo {{percent}} >> /tmp/memory.alert
  129. warning=70
  130. critical=90
  131.  
  132. [memswap]
  133. disable=False
  134. # Define SWAP thresholds in %
  135. # Default values if not defined: 50/70/90
  136. careful=50
  137. warning=70
  138. critical=90
  139.  
  140. [load]
  141. disable=False
  142. # Define LOAD thresholds
  143. # Value * number of cores
  144. # Default values if not defined: 0.7/1.0/5.0 per number of cores
  145. # Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
  146. # http://www.linuxjournal.com/article/9001
  147. careful=0.7
  148. warning=1.0
  149. critical=5.0
  150. #log=False
  151.  
  152. [network]
  153. disable=False
  154. # Default bitrate thresholds in % of the network interface speed
  155. # Default values if not defined: 70/80/90
  156. rx_careful=70
  157. rx_warning=80
  158. rx_critical=90
  159. tx_careful=70
  160. tx_warning=80
  161. tx_critical=90
  162. # Define the list of hidden network interfaces (comma-separated regexp)
  163. #hide=docker.*,lo
  164. # Define the list of wireless network interfaces to be show (comma-separated)
  165. #show=docker.*
  166. # WLAN 0 alias
  167. #wlan0_alias=Wireless
  168. # It is possible to overwrite the bitrate thresholds per interface
  169. # WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
  170. #wlan0_rx_careful=4000000
  171. #wlan0_rx_warning=5000000
  172. #wlan0_rx_critical=6000000
  173. #wlan0_rx_log=True
  174. #wlan0_tx_careful=700000
  175. #wlan0_tx_warning=900000
  176. #wlan0_tx_critical=1000000
  177. #wlan0_tx_log=True
  178.  
  179. [ip]
  180. disable=False
  181. public_refresh_interval=300
  182. public_ip_disabled=False
  183. # Configuration for the Censys online service
  184. # Need to create an aacount: https://censys.io/login
  185. censys_url=https://search.censys.io/api
  186. # Get your own credential here: https://search.censys.io/account/api
  187. # Enter your credential and uncomment the following lines
  188. #censys_username=<censys_api_id>
  189. #censys_password=<censys_secret>
  190. # List of fields to be displayed in user interface (comma separated)
  191. censys_fields=location:continent,location:country,autonomous_system:name
  192.  
  193. [connections]
  194. # Display additional information about TCP connections
  195. # This plugin is disabled by default
  196. disable=True
  197. # nf_conntrack thresholds in %
  198. nf_conntrack_percent_careful=70
  199. nf_conntrack_percent_warning=80
  200. nf_conntrack_percent_critical=90
  201.  
  202. [wifi]
  203. disable=True
  204. # Define the list of hidden wireless network interfaces (comma-separated regexp)
  205. hide=lo,docker.*
  206. # Define the list of wireless network interfaces to be show (comma-separated)
  207. #show=docker.*
  208. # Define SIGNAL thresholds in db (lower is better...)
  209. # Based on: http://serverfault.com/questions/501025/industry-standard-for-minimum-wifi-signal-strength
  210. careful=-65
  211. warning=-75
  212. critical=-85
  213.  
  214. [diskio]
  215. disable=False
  216. # Define the list of hidden disks (comma-separated regexp)
  217. #hide=sda2,sda5,loop.*
  218. # Janus
  219. #hide=loop.*,/dev/loop.*
  220. hide=loop.*,/dev/loop.*,sd*
  221. # End Janus
  222. # Define the list of disks to be show (comma-separated)
  223. #show=sda.*
  224. # Alias for sda1
  225. #sda1_alias=InternalDisk
  226.  
  227. [fs]
  228. disable=False
  229. # Define the list of file system to hide (comma-separated regexp)
  230. # Janus
  231. #hide=/boot.*,/snap.*
  232. hide=/boot.*,/snap.*,/etc/*,_config/*
  233. # End Janus
  234. # Define the list of file system to show (comma-separated regexp)
  235. #show=/,/srv
  236. # Define filesystem space thresholds in %
  237. # Default values if not defined: 50/70/90
  238. # It is also possible to define per mount point value
  239. # Example: /_careful=40
  240. careful=50
  241. warning=70
  242. critical=90
  243. # Allow additional file system types (comma-separated FS type)
  244. #allow=shm
  245.  
  246. [irq]
  247. # Documentation: https://glances.readthedocs.io/en/latest/aoa/irq.html
  248. # This plugin is disabled by default
  249. disable=True
  250.  
  251. [folders]
  252. # Documentation: https://glances.readthedocs.io/en/latest/aoa/folders.html
  253. disable=False
  254. # Define a folder list to monitor
  255. # The list is composed of items (list_#nb <= 10)
  256. # An item is defined by:
  257. # * path: absolute path
  258. # * careful: optional careful threshold (in MB)
  259. # * warning: optional warning threshold (in MB)
  260. # * critical: optional critical threshold (in MB)
  261. # * refresh: interval in second between two refreshes
  262. #folder_1_path=/tmp
  263. #folder_1_careful=2500
  264. #folder_1_warning=3000
  265. #folder_1_critical=3500
  266. #folder_1_refresh=60
  267. #folder_2_path=/home/nicolargo/Videos
  268. #folder_2_warning=17000
  269. #folder_2_critical=20000
  270. #folder_3_path=/nonexisting
  271. #folder_4_path=/root
  272.  
  273. [cloud]
  274. # Documentation: https://glances.readthedocs.io/en/latest/aoa/cloud.html
  275. # This plugin is disabled by default
  276. disable=True
  277.  
  278. [raid]
  279. # Documentation: https://glances.readthedocs.io/en/latest/aoa/raid.html
  280. # This plugin is disabled by default
  281. disable=True
  282.  
  283.  
  284. [smart]
  285. # Documentation: https://glances.readthedocs.io/en/latest/aoa/smart.html
  286. # This plugin is disabled by default
  287. disable=True
  288.  
  289. [hddtemp]
  290. # Janus
  291. #disable=False
  292. disable=True
  293. # End Janus
  294. # Define hddtemp server IP and port (default is 127.0.0.1 and 7634 (TCP))
  295. host=127.0.0.1
  296. port=7634
  297.  
  298. [sensors]
  299. # Documentation: https://glances.readthedocs.io/en/latest/aoa/sensors.html
  300. disable=False
  301. # By default refresh every refresh time * 2
  302. #refresh=6
  303. # Hide some sensors
  304. #hide=ambient
  305. # Sensors core thresholds (in Celsius...)
  306. # Default values are grabbed from the system
  307. #temperature_core_careful=60
  308. #temperature_core_warning=70
  309. #temperature_core_critical=80
  310. # Temperatures threshold in °C for hddtemp
  311. # Default values if not defined: 45/52/60
  312. temperature_hdd_careful=45
  313. temperature_hdd_warning=52
  314. temperature_hdd_critical=60
  315. # Battery threshold in %
  316. battery_careful=80
  317. battery_warning=90
  318. battery_critical=95
  319. # Sensors alias
  320. #temp1_alias=Motherboard 0
  321. #temp2_alias=Motherboard 1
  322. #core 0_temperature_core_alias=CPU Core 0 temp
  323. #core 0_fans_speed_alias=CPU Core 0 fan
  324. #or
  325. #core 0_alias=CPU Core 0
  326. #core 1_alias=CPU Core 1
  327.  
  328. [processcount]
  329. disable=False
  330. # If you want to change the refresh rate of the processing list, please uncomment:
  331. #refresh=10
  332.  
  333. [processlist]
  334. disable=False
  335. # Sort key: if not defined, the sort is automatically done by Glances (recommended)
  336. # Should be one of the following:
  337. # cpu_percent, memory_percent, io_counters, name, cpu_times, username
  338. #sort_key=memory_percent
  339. # Define CPU/MEM (per process) thresholds in %
  340. # Default values if not defined: 50/70/90
  341. cpu_careful=50
  342. cpu_warning=70
  343. cpu_critical=90
  344. mem_careful=50
  345. mem_warning=70
  346. mem_critical=90
  347. #
  348. # Nice priorities range from -20 to 19.
  349. # Configure nice levels using a comma separated list.
  350. #
  351. # Nice: Example 1, non-zero is warning (default behavior)
  352. nice_warning=-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
  353. #
  354. # Nice: Example 2, low priority processes escalate from careful to critical
  355. #nice_careful=1,2,3,4,5,6,7,8,9
  356. #nice_warning=10,11,12,13,14
  357. #nice_critical=15,16,17,18,19
  358.  
  359. [ports]
  360. disable=False
  361. # Interval in second between two scans
  362. # Ports scanner plugin configuration
  363. refresh=30
  364. # Set the default timeout (in second) for a scan (can be overwritten in the scan list)
  365. timeout=3
  366. # If port_default_gateway is True, add the default gateway on top of the scan list
  367. port_default_gateway=True
  368. #
  369. # Define the scan list (1 < x < 255)
  370. # port_x_host (name or IP) is mandatory
  371. # port_x_port (TCP port number) is optional (if not set, use ICMP)
  372. # port_x_description is optional (if not set, define to host:port)
  373. # port_x_timeout is optional and overwrite the default timeout value
  374. # port_x_rtt_warning is optional and defines the warning threshold in ms
  375. #
  376. #port_1_host=192.168.0.1
  377. #port_1_port=80
  378. #port_1_description=Home Box
  379. #port_1_timeout=1
  380. #port_2_host=www.free.fr
  381. #port_2_description=My ISP
  382. #port_3_host=www.google.com
  383. #port_3_description=Internet ICMP
  384. #port_3_rtt_warning=1000
  385. #port_4_description=Internet Web
  386. #port_4_host=www.google.com
  387. #port_4_port=80
  388. #port_4_rtt_warning=1000
  389. #
  390. # Define Web (URL) monitoring list (1 < x < 255)
  391. # web_x_url is the URL to monitor (example: http://my.site.com/folder)
  392. # web_x_description is optional (if not set, define to URL)
  393. # web_x_timeout is optional and overwrite the default timeout value
  394. # web_x_rtt_warning is optional and defines the warning respond time in ms (approximately)
  395. #
  396. #web_1_url=https://blog.nicolargo.com
  397. #web_1_description=My Blog
  398. #web_1_rtt_warning=3000
  399. #web_2_url=https://github.com
  400. #web_3_url=http://www.google.fr
  401. #web_3_description=Google Fr
  402. #web_4_url=https://blog.nicolargo.com/nonexist
  403. #web_4_description=Intranet
  404.  
  405. [containers]
  406. disable=False
  407. # Only show specific containers (comma separated list of container name or regular expression)
  408. # Comment this line to display all containers (default configuration)
  409. #show=telegraf
  410. # Hide some containers (comma separated list of container name or regular expression)
  411. # Comment this line to display all containers (default configuration)
  412. #hide=telegraf
  413. # Define the maximum docker size name (default is 20 chars)
  414. max_name_size=20
  415. #cpu_careful=50
  416. # Thresholds for CPU and MEM (in %)
  417. #cpu_warning=70
  418. #cpu_critical=90
  419. #mem_careful=20
  420. #mem_warning=50
  421. #mem_critical=70
  422. #
  423. # Per container thresholds
  424. #containername_cpu_careful=10
  425. #containername_cpu_warning=20
  426. #containername_cpu_critical=30
  427. #
  428. # By default, Glances only display running containers
  429. # Set the following key to True to display all containers
  430. all=False
  431. # Define Podman sock
  432. #podman_sock=unix:///run/user/1000/podman/podman.sock
  433.  
  434. [amps]
  435. # AMPs configuration are defined in the bottom of this file
  436. disable=False
  437.  
  438. ##############################################################################
  439. # Client/server
  440. ##############################################################################
  441.  
  442. [serverlist]
  443. # Define the static servers list
  444. #server_1_name=localhost
  445. #server_1_alias=My local PC
  446. #server_1_port=61209
  447. #server_2_name=localhost
  448. #server_2_port=61235
  449. #server_3_name=192.168.0.17
  450. #server_3_alias=Another PC on my network
  451. #server_3_port=61209
  452. #server_4_name=pasbon
  453. #server_4_port=61237
  454.  
  455. [passwords]
  456. # Define the passwords list related to the [serverlist] section
  457. # Syntax: host=password
  458. # Where: host is the hostname
  459. # password is the clear password
  460. # Additionally (and optionally) a default password could be defined
  461. #localhost=abc
  462. #default=defaultpassword
  463. #
  464. # Define the path of the local '.pwd' file (default is system one)
  465. #local_password_path=~/.config/glances
  466.  
  467. ##############################################################################
  468. # Exports
  469. ##############################################################################
  470.  
  471. [graph]
  472. # Configuration for the --export graph option
  473. # Set the path where the graph (.svg files) will be created
  474. # Can be overwrite by the --graph-path command line option
  475. path=/tmp
  476. # It is possible to generate the graphs automatically by setting the
  477. # generate_every to a non zero value corresponding to the seconds between
  478. # two generation. Set it to 0 to disable graph auto generation.
  479. # Janus
  480. #generate_every=60
  481. generate_every=0
  482. # End Janus
  483. # See following configuration keys definitions in the Pygal lib documentation
  484. # http://pygal.org/en/stable/documentation/index.html
  485. width=800
  486. height=600
  487. style=DarkStyle
  488.  
  489. [influxdb]
  490. # !!!
  491. # Will be DEPRECATED in future release.
  492. # Please have a look on the new influxdb2 export module (compatible with InfluxDB 1.8.x and 2.x)
  493. # !!!
  494. # Configuration for the --export influxdb option
  495. # https://influxdb.com/
  496. host=localhost
  497. port=8086
  498. protocol=http
  499. user=root
  500. password=root
  501. db=glances
  502. # Prefix will be added for all measurement name
  503. # Ex: prefix=foo
  504. # => foo.cpu
  505. # => foo.mem
  506. # You can also use dynamic values
  507. #prefix=foo
  508. # Following tags will be added for all measurements
  509. # You can also use dynamic values.
  510. # Note: hostname is always added as a tag
  511. #tags=foo:bar,spam:eggs,domain:`domainname`
  512.  
  513. [influxdb2]
  514. # Configuration for the --export influxdb2 option
  515. # https://influxdb.com/
  516. host=localhost
  517. port=8086
  518. protocol=http
  519. org=nicolargo
  520. bucket=glances
  521. token=EjFUTWe8U-MIseEAkaVIgVnej_TrnbdvEcRkaB1imstW7gapSqy6_6-8XD-yd51V0zUUpDy-kAdVD1purDLuxA==
  522. # Set the interval between two exports (in seconds)
  523. # If the interval is set to 0, the Glances refresh time is used (default behavor)
  524. #interval=0
  525. # Prefix will be added for all measurement name
  526. # Ex: prefix=foo
  527. # => foo.cpu
  528. # => foo.mem
  529. # You can also use dynamic values
  530. #prefix=foo
  531. # Following tags will be added for all measurements
  532. # You can also use dynamic values.
  533. # Note: hostname is always added as a tag
  534. #tags=foo:bar,spam:eggs,domain:`domainname`
  535.  
  536. [cassandra]
  537. # Configuration for the --export cassandra option
  538. # Also works for the ScyllaDB
  539. # https://influxdb.com/ or http://www.scylladb.com/
  540. host=localhost
  541. port=9042
  542. protocol_version=3
  543. keyspace=glances
  544. replication_factor=2
  545. # If not define, table name is set to host key
  546. table=localhost
  547. # If not define, username and password will not be used
  548. #username=cassandra
  549. #password=password
  550.  
  551. [opentsdb]
  552. # Configuration for the --export opentsdb option
  553. # http://opentsdb.net/
  554. host=localhost
  555. port=4242
  556. #prefix=glances
  557. #tags=foo:bar,spam:eggs
  558.  
  559. [statsd]
  560. # Configuration for the --export statsd option
  561. # https://github.com/etsy/statsd
  562. host=localhost
  563. port=8125
  564. #prefix=glances
  565.  
  566. [elasticsearch]
  567. # Configuration for the --export elasticsearch option
  568. # Data are available via the ES RESTful API. ex: URL/<index>/cpu
  569. # https://www.elastic.co
  570. scheme=http
  571. host=localhost
  572. port=9200
  573. index=glances
  574.  
  575. [riemann]
  576. # Configuration for the --export riemann option
  577. # http://riemann.io
  578. host=localhost
  579. port=5555
  580.  
  581. [rabbitmq]
  582. # Configuration for the --export rabbitmq option
  583. host=localhost
  584. port=5672
  585. user=guest
  586. password=guest
  587. queue=glances_queue
  588. #protocol=amqps
  589.  
  590. [mqtt]
  591. # Configuration for the --export mqtt option
  592. host=localhost
  593. port=8883
  594. tls=false
  595. user=guest
  596. password=guest
  597. topic=glances
  598. topic_structure=per-metric
  599.  
  600. [couchdb]
  601. # Configuration for the --export couchdb option
  602. # https://www.couchdb.org
  603. host=localhost
  604. port=5984
  605. db=glances
  606. # user and password are optional (comment if not configured on the server side)
  607. # If they are used, then the https protocol will be used
  608. #user=root
  609. #password=root
  610.  
  611. [mongodb]
  612. # Configuration for the --export mongodb option
  613. # https://www.mongodb.com
  614. host=localhost
  615. port=27017
  616. db=glances
  617. user=root
  618. password=example
  619.  
  620. [kafka]
  621. # Configuration for the --export kafka option
  622. # http://kafka.apache.org/
  623. host=localhost
  624. port=9092
  625. topic=glances
  626. #compression=gzip
  627. # Tags will be added for all events
  628. #tags=foo:bar,spam:eggs
  629. # You can also use dynamic values
  630. #tags=hostname:`hostname -f`
  631.  
  632. [zeromq]
  633. # Configuration for the --export zeromq option
  634. # http://www.zeromq.org
  635. # Use * to bind on all interfaces
  636. host=*
  637. port=5678
  638. # Glances envelopes the stats in a publish message with two frames:
  639. # - First frame containing the following prefix (STRING)
  640. # - Second frame with the Glances plugin name (STRING)
  641. # - Third frame with the Glances plugin stats (JSON)
  642. prefix=G
  643.  
  644. [prometheus]
  645. # Configuration for the --export prometheus option
  646. # https://prometheus.io
  647. # Create a Prometheus exporter listening on localhost:9091 (default configuration)
  648. # Metric are exporter using the following name:
  649. # <prefix>_<plugin>_<stats>{labelkey:labelvalue}
  650. # Note: You should add this exporter to your Prometheus server configuration:
  651. # scrape_configs:
  652. # - job_name: 'glances_exporter'
  653. # scrape_interval: 5s
  654. # static_configs:
  655. # - targets: ['localhost:9091']
  656. #
  657. # Labels will be added for all measurements (default is src:glances)
  658. # labels=foo:bar,spam:eggs
  659. # You can also use dynamic values
  660. # labels=system:`uname -s`
  661. #
  662. host=localhost
  663. port=9091
  664. #prefix=glances
  665. labels=src:glances
  666.  
  667. [restful]
  668. # Configuration for the --export restful option
  669. # Example, export to http://localhost:6789/
  670. host=localhost
  671. port=6789
  672. protocol=http
  673. path=/
  674.  
  675. [graphite]
  676. # Configuration for the --export graphite option
  677. # https://graphiteapp.org/
  678. host=localhost
  679. port=2003
  680. # Prefix will be added for all measurement name
  681. prefix=glances
  682. # System name added between the prefix and the stats
  683. # By default, system_name = FQDN
  684. #system_name=mycomputer
  685.  
  686. ##############################################################################
  687. # AMPS
  688. # * enable: Enable (true) or disable (false) the AMP
  689. # * regex: Regular expression to filter the process(es)
  690. # * refresh: The AMP is executed every refresh seconds
  691. # * one_line: (optional) Force (if true) the AMP to be displayed in one line
  692. # * command: (optional) command to execute when the process is detected (thk to the regex)
  693. # * countmin: (optional) minimal number of processes
  694. # A warning will be displayed if number of process < count
  695. # * countmax: (optional) maximum number of processes
  696. # A warning will be displayed if number of process > count
  697. # * <foo>: Others variables can be defined and used in the AMP script
  698. ##############################################################################
  699.  
  700. [amp_dropbox]
  701. # Use the default AMP (no dedicated AMP Python script)
  702. # Check if the Dropbox daemon is running
  703. # Every 3 seconds, display the 'dropbox status' command line
  704. enable=false
  705. regex=.*dropbox.*
  706. refresh=3
  707. one_line=false
  708. command=dropbox status
  709. countmin=1
  710.  
  711. [amp_python]
  712. # Use the default AMP (no dedicated AMP Python script)
  713. # Monitor all the Python scripts
  714. # Alert if more than 20 Python scripts are running
  715. enable=false
  716. regex=.*python.*
  717. refresh=3
  718. countmax=20
  719.  
  720. [amp_conntrack]
  721. # Use comma separated for multiple commands (no space around the comma)
  722. # If the regex key is not defined, the AMP will be executed every refresh second
  723. # and the process count will not be displayed (countmin and countmax will be ignore)
  724. enable=false
  725. refresh=30
  726. one_line=false
  727. command=sysctl net.netfilter.nf_conntrack_count;sysctl net.netfilter.nf_conntrack_max
  728.  
  729. [amp_nginx]
  730. # Use the NGinx AMP
  731. # Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
  732. enable=false
  733. regex=\/usr\/sbin\/nginx
  734. refresh=60
  735. one_line=false
  736. status_url=http://localhost/nginx_status
  737.  
  738. [amp_systemd]
  739. # Use the Systemd AMP
  740. enable=false
  741. regex=\/lib\/systemd\/systemd
  742. refresh=30
  743. one_line=true
  744. systemctl_cmd=/bin/systemctl --plain
  745.  
  746. [amp_systemv]
  747. # Use the Systemv AMP
  748. enable=false
  749. regex=\/sbin\/init
  750. refresh=30
  751. one_line=true
  752. service_cmd=/usr/bin/service --status-all
Tags: glances
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement