mirror of
				https://github.com/moudsen/mailGraph
				synced 2025-10-31 09:37:39 +01:00 
			
		
		
		
	Added ability to embed multiple periods of the same graph (v1.22)
This commit is contained in:
		| @@ -6,17 +6,23 @@ | ||||
|     "cli_eventValue": 0, | ||||
|     "cli_duration": 0, | ||||
|     "cli_recipient": "recipient@domain.com", | ||||
|     "cli_subject": "[CLI TEST] {{ HOST_NAME|raw }}:  ({{ EVENT_SEVERITY }}) {{ EVENT_NAME|raw }}", | ||||
|     "cli_subject": "[TEST] {{ HOST_NAME|raw }}:  ({{ EVENT_SEVERITY }}) {{ EVENT_NAME|raw }}", | ||||
|     "cli_baseURL": "https:\/\/domain.com\/zabbix\/", | ||||
|     "cli_period": "30m", | ||||
|     "cli_period_header": "Last 30 minutes", | ||||
|     "cli_debug": 1, | ||||
|     "zabbix_user": "alogicalusername", | ||||
|     "zabbix_user_pwd": "astrongpassword", | ||||
|     "zabbix_api_user": "alogicalusername", | ||||
|     "zabbix_api_pwd": "astrongpassword", | ||||
|     "mail_from": "sender@domain.com", | ||||
|     "subject": "{{ HOST_NAME|raw }}:  ({{ EVENT_SEVERITY }}) {{ EVENT_NAME|raw }}", | ||||
|     "smtp_server": "localhost", | ||||
|     "smtp_port": 25, | ||||
|     "smtp_transport": "none", | ||||
|     "smtp_strict": "yes", | ||||
|     "graph_match": "any", | ||||
|     "period": "2d" | ||||
|     "period": "20m", | ||||
|     "period_header": "Last 20 minutes", | ||||
|     "debug": 0 | ||||
| } | ||||
|   | ||||
							
								
								
									
										28
									
								
								config/config.json.template.multigraph
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								config/config.json.template.multigraph
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| { | ||||
|     "script_baseurl": "https:\/\/domain.com\/", | ||||
|     "cli_itemId": 0, | ||||
|     "cli_triggerId": 0, | ||||
|     "cli_eventId": 0, | ||||
|     "cli_eventValue": 0, | ||||
|     "cli_duration": 0, | ||||
|     "cli_recipient": "recipient@domain.com", | ||||
|     "cli_subject": "[TEST] {{ HOST_NAME|raw }}:  ({{ EVENT_SEVERITY }}) {{ EVENT_NAME|raw }}", | ||||
|     "cli_baseURL": "https:\/\/domain.com\/zabbix\/", | ||||
|     "cli_periods": "10m,4h,2d,7d", | ||||
|     "cli_periods_headers": "Last 10 minutes,Last 4 hours,Last 2 days,Last 7 days", | ||||
|     "cli_debug": 1, | ||||
|     "zabbix_user": "alogicalusername", | ||||
|     "zabbix_user_pwd": "astrongpassword", | ||||
|     "zabbix_api_user": "alogicalusername", | ||||
|     "zabbix_api_pwd": "astrongpassword", | ||||
|     "mail_from": "sender@domain.com", | ||||
|     "subject": "{{ HOST_NAME|raw }}:  ({{ EVENT_SEVERITY }}) {{ EVENT_NAME|raw }}", | ||||
|     "smtp_server": "localhost", | ||||
|     "smtp_port": 25, | ||||
|     "smtp_transport": "none", | ||||
|     "smtp_strict": "yes", | ||||
|     "graph_match": "any", | ||||
|     "periods": "10m,4h,2d,7d", | ||||
|     "periods_headers": "Last 10 minutes,Last 4 hours,Last 2 days,Last 7 days", | ||||
|     "debug": 0 | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Mark Oudsen
					Mark Oudsen