Compare commits
	
		
			3 Commits
		
	
	
		
			33239e88f4
			...
			37587a0853
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | 37587a0853 | |
|  | 6931410def | |
|  | 68ba6f14f1 | 
|  | @ -1,3 +1,9 @@ | ||||||
|  | ## v1.5.1 | ||||||
|  | 
 | ||||||
|  | ### Enhancements | ||||||
|  | * Add temp probe configuration. | ||||||
|  | * Add example to enable probes for hardware hosts. | ||||||
|  | 
 | ||||||
| ## v1.5.0 | ## v1.5.0 | ||||||
| 
 | 
 | ||||||
| ### Enhancements | ### Enhancements | ||||||
|  |  | ||||||
							
								
								
									
										32
									
								
								README.md
								
								
								
								
							
							
						
						
									
										32
									
								
								README.md
								
								
								
								
							|  | @ -140,6 +140,26 @@ one's recommended by the vendor and check a recent (<24h) test was done. | ||||||
| * **xymon_cli__plug_smart_tpl** : Template used to generate the previous config file [default : `'etc/xymon/clientlaunch.d/smart.cfg.j2'`]. | * **xymon_cli__plug_smart_tpl** : Template used to generate the previous config file [default : `'etc/xymon/clientlaunch.d/smart.cfg.j2'`]. | ||||||
| * **xymon_cli__plug_smart_interval** : Time between each run of the `smart` plugin [default : `'10m'`] | * **xymon_cli__plug_smart_interval** : Time between each run of the `smart` plugin [default : `'10m'`] | ||||||
| 
 | 
 | ||||||
|  | #### Temp | ||||||
|  | 
 | ||||||
|  | Variables for the Mq plugin from hobbit-plugins. Simple temperature monitor. | ||||||
|  | 
 | ||||||
|  | * **xymon_cli__plug_temp_state** : The state of plugin `temp` [default : `False`]. | ||||||
|  | * **xymon_cli__plug_temp_package** : The packages to install to provide `temp` plugin [default : `[ 'libfile-which-perl', 'libyaml-tiny-perl', 'hddtemp', 'smartmontools', 'libxml-twig-perl' ]`]. | ||||||
|  | * **xymon_cli__plug_temp_path** : Configuration file for the `temp` plugin [default : `'/etc/xymon/clientlaunch.d/temp.cfg'`]. | ||||||
|  | * **xymon_cli__plug_temp_tpl** : Template used to generate the previous config file [default : `'etc/xymon/clientlaunch.d/temp.cfg.j2'`]. | ||||||
|  | * **xymon_cli__plug_temp_interval** : Time between each run of the `temp` plugin [default : `'5m'`] | ||||||
|  | 
 | ||||||
|  | ##### Nvidia support | ||||||
|  | 
 | ||||||
|  | The temp can also checks NVidia GPU temperature. In order to get those | ||||||
|  | informations, you need to install `nvidia-smi` package by your own or override | ||||||
|  | **xymon_cli__plug_temp_package** var : | ||||||
|  | 
 | ||||||
|  | ``` yml | ||||||
|  | xymon_cli__plug_temp_package: [ 'libfile-which-perl', 'libyaml-tiny-perl', 'hddtemp', 'smartmontools', 'libxml-twig-perl', 'nvidia-smi' ] | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| #### ZFS | #### ZFS | ||||||
| 
 | 
 | ||||||
| Variables for ZFS plugin from [Xymonton][zfs plugin source]. The plugin check | Variables for ZFS plugin from [Xymonton][zfs plugin source]. The plugin check | ||||||
|  | @ -152,6 +172,18 @@ health (global and for pools), capacity and snapshot status. | ||||||
| * **xymon_cli__plug_zfs_tpl** : Template used to generate the previous config file [default : `etc/xymon/clientlaunch.d/zfs.cfg.j2`]. | * **xymon_cli__plug_zfs_tpl** : Template used to generate the previous config file [default : `etc/xymon/clientlaunch.d/zfs.cfg.j2`]. | ||||||
| * **xymon_cli__plug_zfs_interval** : Time between each run of the `zfs` plugin [default : `5m`]. | * **xymon_cli__plug_zfs_interval** : Time between each run of the `zfs` plugin [default : `5m`]. | ||||||
| 
 | 
 | ||||||
|  | #### Automatically enable some probes | ||||||
|  | 
 | ||||||
|  | It can be useful to automatically enable some probes according to the type of | ||||||
|  | servers : | ||||||
|  | * Enable temp probe on hardware hosts (also useful for Smartoverall and Smart): | ||||||
|  | 
 | ||||||
|  | ``` yml | ||||||
|  | xymon_cli__plug_temp_state: '{{ True | ||||||
|  |                                  if (ansible_virtualization_role == "host") | ||||||
|  |                                  else False }}' | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| ### OS Specific Variables | ### OS Specific Variables | ||||||
| 
 | 
 | ||||||
| Please see default value by Operating System file in [vars][vars directory] directory. | Please see default value by Operating System file in [vars][vars directory] directory. | ||||||
|  |  | ||||||
|  | @ -148,6 +148,15 @@ xymon_cli__plug_smart_path: '/etc/xymon/clientlaunch.d/smart.cfg' | ||||||
| xymon_cli__plug_smart_tpl: 'etc/xymon/clientlaunch.d/smart.cfg.j2' | xymon_cli__plug_smart_tpl: 'etc/xymon/clientlaunch.d/smart.cfg.j2' | ||||||
| xymon_cli__plug_smart_interval: '10m' | xymon_cli__plug_smart_interval: '10m' | ||||||
| 
 | 
 | ||||||
|  |                                                                    # ]]] | ||||||
|  | ## Plugin temp [[[ | ||||||
|  | ### Enable by default on hardware host | ||||||
|  | xymon_cli__plug_temp_state: False | ||||||
|  | xymon_cli__plug_temp_package: [ 'libfile-which-perl', 'libyaml-tiny-perl', 'hddtemp', 'smartmontools', 'libxml-twig-perl' ] | ||||||
|  | xymon_cli__plug_temp_path: '/etc/xymon/clientlaunch.d/temp.cfg' | ||||||
|  | xymon_cli__plug_temp_tpl: 'etc/xymon/clientlaunch.d/temp.cfg.j2' | ||||||
|  | xymon_cli__plug_temp_interval: '5m' | ||||||
|  | 
 | ||||||
|                                                                    # ]]] |                                                                    # ]]] | ||||||
| ## Plugin zfs [[[ | ## Plugin zfs [[[ | ||||||
| xymon_cli__plug_zfs_state: false | xymon_cli__plug_zfs_state: false | ||||||
|  |  | ||||||
|  | @ -331,6 +331,31 @@ | ||||||
|          xymon_cli__plug_smart_script_url|length > 0 ) |          xymon_cli__plug_smart_script_url|length > 0 ) | ||||||
|   notify: restart xymon-client service |   notify: restart xymon-client service | ||||||
| 
 | 
 | ||||||
|  | # Manage temp plugin [[[1 | ||||||
|  | - name: PLUGIN temp packages | ||||||
|  |   package: | ||||||
|  |     name: '{{ item }}' | ||||||
|  |     state: 'present' | ||||||
|  |   with_items: | ||||||
|  |     - '{{ xymon_cli__plug_temp_package | to_nice_json }}' | ||||||
|  |   register: temp_plug_result | ||||||
|  |   until: temp_plug_result is success | ||||||
|  |   when: (xymon_cli_manage|bool and | ||||||
|  |          xymon_plug_manage|bool and | ||||||
|  |          xymon_cli__plug_temp_state|bool) | ||||||
|  |   notify: restart xymon-client service | ||||||
|  | 
 | ||||||
|  | - name: PLUGIN temp | ||||||
|  |   template: | ||||||
|  |     src: '{{ xymon_cli__plug_temp_tpl }}' | ||||||
|  |     dest: '{{ xymon_cli__plug_temp_path }}' | ||||||
|  |     owner: root | ||||||
|  |     group: root | ||||||
|  |     mode: 0644 | ||||||
|  |   when: (xymon_cli_manage|bool and | ||||||
|  |          xymon_plug_manage|bool) | ||||||
|  |   notify: restart xymon-client service | ||||||
|  | 
 | ||||||
| # Manage zfs plugin [[[1 | # Manage zfs plugin [[[1 | ||||||
| - name: PLUGIN zfs config file | - name: PLUGIN zfs config file | ||||||
|   template: |   template: | ||||||
|  |  | ||||||
|  | @ -1,3 +1,6 @@ | ||||||
|  | # {{ ansible_managed }} | ||||||
|  | ## From ipr-cnrs.xymon role | ||||||
|  | 
 | ||||||
| # Configure the Xymon client settings. | # Configure the Xymon client settings. | ||||||
| 
 | 
 | ||||||
| # You MUST set the list of Xymon servers that this | # You MUST set the list of Xymon servers that this | ||||||
|  |  | ||||||
|  | @ -1,4 +1,5 @@ | ||||||
| # {{ ansible_managed }} | # {{ ansible_managed }} | ||||||
|  | ## From ipr-cnrs.xymon role | ||||||
| {% for package in xymon_plug_apt_combined_whitelist %} | {% for package in xymon_plug_apt_combined_whitelist %} | ||||||
| {{ package }} | {{ package }} | ||||||
| {% endfor %} | {% endfor %} | ||||||
|  |  | ||||||
|  | @ -1,4 +1,6 @@ | ||||||
| [apt] | [apt] | ||||||
|  | 	# {{ ansible_managed }} | ||||||
|  | 	## From ipr-cnrs.xymon role | ||||||
| 	{{ '#DISABLED' if xymon_plug_apt_state else 'DISABLED' }} | 	{{ '#DISABLED' if xymon_plug_apt_state else 'DISABLED' }} | ||||||
| 	ENVFILE /etc/xymon/xymonclient.cfg | 	ENVFILE /etc/xymon/xymonclient.cfg | ||||||
| 	CMD $XYMONCLIENTHOME/ext/apt | 	CMD $XYMONCLIENTHOME/ext/apt | ||||||
|  |  | ||||||
|  | @ -1,4 +1,6 @@ | ||||||
| [ipmi] | [ipmi] | ||||||
|  | 	# {{ ansible_managed }} | ||||||
|  | 	## From ipr-cnrs.xymon role | ||||||
| 	{{ '#DISABLED' if xymon_cli__plug_ipmi_state else 'DISABLED' }} | 	{{ '#DISABLED' if xymon_cli__plug_ipmi_state else 'DISABLED' }} | ||||||
| 	ENVFILE /etc/xymon/xymonclient.cfg | 	ENVFILE /etc/xymon/xymonclient.cfg | ||||||
| 	CMD /usr/bin/sudo -E -u root $XYMONCLIENTHOME/ext/ipmi | 	CMD /usr/bin/sudo -E -u root $XYMONCLIENTHOME/ext/ipmi | ||||||
|  |  | ||||||
|  | @ -1,4 +1,6 @@ | ||||||
| [libs] | [libs] | ||||||
|  | 	# {{ ansible_managed }} | ||||||
|  | 	## From ipr-cnrs.xymon role | ||||||
| 	{{ '#DISABLED' if xymon_plug_libs_state else 'DISABLED' }} | 	{{ '#DISABLED' if xymon_plug_libs_state else 'DISABLED' }} | ||||||
| 	ENVFILE /etc/xymon/xymonclient.cfg | 	ENVFILE /etc/xymon/xymonclient.cfg | ||||||
| 	CMD $XYMONCLIENTHOME/ext/libs | 	CMD $XYMONCLIENTHOME/ext/libs | ||||||
|  |  | ||||||
|  | @ -1,4 +1,6 @@ | ||||||
| [mq] | [mq] | ||||||
|  | 	# {{ ansible_managed }} | ||||||
|  | 	## From ipr-cnrs.xymon role | ||||||
| 	{{ '#DISABLED' if xymon_plug_mq_state else 'DISABLED' }} | 	{{ '#DISABLED' if xymon_plug_mq_state else 'DISABLED' }} | ||||||
| 	ENVFILE /etc/xymon/xymonclient.cfg | 	ENVFILE /etc/xymon/xymonclient.cfg | ||||||
| 	CMD $XYMONCLIENTHOME/ext/mq | 	CMD $XYMONCLIENTHOME/ext/mq | ||||||
|  |  | ||||||
|  | @ -1,4 +1,6 @@ | ||||||
| [netstats] | [netstats] | ||||||
|  | 	# {{ ansible_managed }} | ||||||
|  | 	## From ipr-cnrs.xymon role | ||||||
| 	{{ '#DISABLED' if xymon_cli__plug_netstats_state else 'DISABLED' }} | 	{{ '#DISABLED' if xymon_cli__plug_netstats_state else 'DISABLED' }} | ||||||
| 	ENVFILE /etc/xymon/xymonclient.cfg | 	ENVFILE /etc/xymon/xymonclient.cfg | ||||||
| 	CMD $XYMONCLIENTHOME/ext/netstats | 	CMD $XYMONCLIENTHOME/ext/netstats | ||||||
|  |  | ||||||
|  | @ -0,0 +1,8 @@ | ||||||
|  | [temp] | ||||||
|  | 	# {{ ansible_managed }} | ||||||
|  | 	## From ipr-cnrs.xymon role | ||||||
|  | 	{{ '#DISABLED' if xymon_cli__plug_temp_state else 'DISABLED' }} | ||||||
|  | 	ENVFILE /etc/xymon/xymonclient.cfg | ||||||
|  | 	CMD $XYMONCLIENTHOME/ext/temp | ||||||
|  | 	LOGFILE /var/log/xymon/xymonclient.log | ||||||
|  | 	INTERVAL {{ xymon_cli__plug_temp_interval }} | ||||||
|  | @ -1,4 +1,6 @@ | ||||||
| [zfs] | [zfs] | ||||||
|  | 	# {{ ansible_managed }} | ||||||
|  | 	## From ipr-cnrs.xymon role | ||||||
| 	{{ '#DISABLED' if xymon_cli__plug_zfs_state else 'DISABLED' }} | 	{{ '#DISABLED' if xymon_cli__plug_zfs_state else 'DISABLED' }} | ||||||
| 	ENVFILE /etc/xymon/xymonclient.cfg | 	ENVFILE /etc/xymon/xymonclient.cfg | ||||||
| 	CMD /usr/bin/sudo -E -u root $XYMONCLIENTHOME/ext/zfs | 	CMD /usr/bin/sudo -E -u root $XYMONCLIENTHOME/ext/zfs | ||||||
|  |  | ||||||
|  | @ -1,4 +1,5 @@ | ||||||
| # {{ ansible_managed }} | # {{ ansible_managed }} | ||||||
|  | ## From ipr-cnrs.xymon role | ||||||
| {% set inputmerged = xymon_plug_libs_default_whitelist.copy() %} | {% set inputmerged = xymon_plug_libs_default_whitelist.copy() %} | ||||||
| {% set _ = inputmerged.update(xymon_plug_libs_whitelist) %} | {% set _ = inputmerged.update(xymon_plug_libs_whitelist) %} | ||||||
| {% set _ = inputmerged.update(xymon_plug_libs_group_whitelist) %} | {% set _ = inputmerged.update(xymon_plug_libs_group_whitelist) %} | ||||||
|  |  | ||||||
|  | @ -1,4 +1,8 @@ | ||||||
| #!/bin/ksh | #!/bin/ksh | ||||||
|  | 
 | ||||||
|  | # {{ ansible_managed }} | ||||||
|  | # From ipr-cnrs.xymon role | ||||||
|  | 
 | ||||||
| # Revision History: | # Revision History: | ||||||
| # 1. Mike Rowell <Mike.Rowell@Rightmove.co.uk>, original | # 1. Mike Rowell <Mike.Rowell@Rightmove.co.uk>, original | ||||||
| # 2. Uwe Kirbach <U.Kirbach@EnBW.com> | # 2. Uwe Kirbach <U.Kirbach@EnBW.com> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue