Compare commits
	
		
			No commits in common. "e18bb37670b289f913d3ec482d2a26ef28e9e375" and "f19d604213c7850e79adaa4c4ba5698f93102624" have entirely different histories.
		
	
	
		
			e18bb37670
			...
			f19d604213
		
	
		
					 4 changed files with 3 additions and 30 deletions
				
			
		|  | @ -1,15 +0,0 @@ | ||||||
| #!/bin/bash |  | ||||||
| 
 |  | ||||||
| apt update -qq --silent 2> /dev/null |  | ||||||
| 
 |  | ||||||
| UPGRADABLE=$(apt list --upgradable -qq 2> /dev/null | cut -d '/' -f 1) |  | ||||||
| 
 |  | ||||||
| if test "$UPGRADABLE" != "" |  | ||||||
| then |  | ||||||
|   echo "$(wc -l <<< $UPGRADABLE) package(s) upgradable:" |  | ||||||
|   echo |  | ||||||
|   echo "$UPGRADABLE" |  | ||||||
|   exit 1 |  | ||||||
| else |  | ||||||
|   exit 0 |  | ||||||
| fi |  | ||||||
|  | @ -28,9 +28,6 @@ files = { | ||||||
|     '/etc/apt/sources.list': { |     '/etc/apt/sources.list': { | ||||||
|         'content': '# managed' |         'content': '# managed' | ||||||
|     }, |     }, | ||||||
|     '/usr/lib/nagios/plugins/check_apt_upgradable': { |  | ||||||
|         'mode': '0755', |  | ||||||
|     }, |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| actions = { | actions = { | ||||||
|  |  | ||||||
|  | @ -3,13 +3,4 @@ defaults = { | ||||||
|         'packages': {}, |         'packages': {}, | ||||||
|         'sources': set(), |         'sources': set(), | ||||||
|     }, |     }, | ||||||
|     'monitoring': { |  | ||||||
|         'services': { |  | ||||||
|             'apt upgradable': { |  | ||||||
|                 'vars.command': '/usr/lib/nagios/plugins/check_apt_upgradable', |  | ||||||
|                 'vars.sudo': True, |  | ||||||
|                 'check_interval': '1d', |  | ||||||
|             }, |  | ||||||
|         }, |  | ||||||
|     }, |  | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -19,7 +19,7 @@ defaults = { | ||||||
|     }, |     }, | ||||||
|     'nftables': { |     'nftables': { | ||||||
|         'input': { |         'input': { | ||||||
|             'udp dport 51820 accept', |             'tcp dport 51820 accept', | ||||||
|         }, |         }, | ||||||
|     }, |     }, | ||||||
|     'wireguard': { |     'wireguard': { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue