mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-10-31 11:14:10 +01:00 
			
		
		
		
	Change file location, doc, and varaible names as requested in the review
https://github.com/Icinga/icinga2/pull/7540#pullrequestreview-302072030
This commit is contained in:
		
							parent
							
								
									3fdc9ac69a
								
							
						
					
					
						commit
						070ac4442b
					
				| @ -1731,11 +1731,11 @@ Check command object for `check_file_age.cmd` command file and `check_file_age.c | ||||
| 
 | ||||
| Custom variables: | ||||
| 
 | ||||
| Name             | Description | ||||
| :----------------|:------------ | ||||
| file             | **Required**. File name and location | ||||
| warning          | **Required**. The warning threshold of file age in seconds. | ||||
| critical         | **Required**. The critical threshold of file age in seconds. | ||||
| Name                  | Description | ||||
| :---------------------|:------------ | ||||
| file_age_win_file     | **Required**. File name and location | ||||
| file_age_win_warning  | **Required**. The warning threshold of file age in seconds. | ||||
| file_age_win_critical | **Required**. The critical threshold of file age in seconds. | ||||
| 
 | ||||
| All variables are required and all variables are positional. The variable order is: file warning critical. | ||||
| 
 | ||||
|  | ||||
| @ -317,31 +317,3 @@ object CheckCommand "users-windows" { | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| object CheckCommand "file-age-windows" { | ||||
|         command = [ PluginDir + "/check_file_age.cmd" ] | ||||
| 
 | ||||
|         arguments = { | ||||
|                 "file" = { | ||||
|                         skip_key = true | ||||
|                         order = 0 | ||||
|                         value = "$file_age_file$" | ||||
|                         description = "File name and location" | ||||
|                         required = true | ||||
|                 } | ||||
|                 "warning" = { | ||||
|                         skip_key = true | ||||
|                         order = 1 | ||||
|                         value = "$file_age_warning$" | ||||
|                         description = "Warning threshold of file age in seconds" | ||||
|                         required = true | ||||
|                 } | ||||
|                 "critical" = { | ||||
|                         skip_key = true | ||||
|                         order = 2 | ||||
|                         value = "$file_age_critical$" | ||||
|                         description = "Critical threshold of file age in seconds" | ||||
|                         required = true | ||||
|                 } | ||||
|         } | ||||
| } | ||||
|  | ||||
							
								
								
									
										28
									
								
								itl/plugins-contrib.d/windows.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								itl/plugins-contrib.d/windows.conf
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,28 @@ | ||||
| 
 | ||||
| object CheckCommand "file-age-windows" { | ||||
|         command = [ PluginDir + "/check_file_age.cmd" ] | ||||
| 
 | ||||
|         arguments = { | ||||
|                 "file" = { | ||||
|                         skip_key = true | ||||
|                         order = 0 | ||||
|                         value = "$file_age_win_file$" | ||||
|                         description = "File name and location" | ||||
|                         required = true | ||||
|                 } | ||||
|                 "warning" = { | ||||
|                         skip_key = true | ||||
|                         order = 1 | ||||
|                         value = "$file_age_win_warning$" | ||||
|                         description = "Warning threshold of file age in seconds" | ||||
|                         required = true | ||||
|                 } | ||||
|                 "critical" = { | ||||
|                         skip_key = true | ||||
|                         order = 2 | ||||
|                         value = "$file_age_win_critical$" | ||||
|                         description = "Critical threshold of file age in seconds" | ||||
|                         required = true | ||||
|                 } | ||||
|         } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user