Advertisement
FengShui

glances.conf

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