Fixed: FS#3302 - Hourly monitoring of system updates make system unusable
- Updated Linux Distribution detection to recognize all wheezy sub versions correctly.
| | |
| | | $distid = 'debian60'; |
| | | $distbaseid = 'debian'; |
| | | swriteln("Operating System: Debian 6.0 (Squeeze/Sid) or compatible\n"); |
| | | } elseif(strstr(trim(file_get_contents('/etc/debian_version')), '7.0') || strstr(trim(file_get_contents('/etc/debian_version')), '7.1') || trim(file_get_contents('/etc/debian_version')) == 'wheezy/sid') { |
| | | } elseif(strstr(trim(file_get_contents('/etc/debian_version')), '7.0') || substr(trim(file_get_contents('/etc/debian_version')),0,2) == '7.' || trim(file_get_contents('/etc/debian_version')) == 'wheezy/sid') { |
| | | $distname = 'Debian'; |
| | | $distver = 'Wheezy/Sid'; |
| | | $distid = 'debian60'; |
| | |
| | | munin_url= |
| | | munin_user= |
| | | munin_password= |
| | | monitor_system_updates=y |
| | | |
| | | [mail] |
| | | module=postfix_mysql |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | 'monitor_system_updates' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | |
| | | $wb['munin_url_note_txt'] = 'Platzhalter:'; |
| | | $wb['backup_dir_is_mount_txt'] = 'Backupverzeichnis ist ein eigener Mount?'; |
| | | $wb['backup_dir_mount_cmd_txt'] = 'Mount-Befehl, falls Backupverzeichnis nicht gemountet'; |
| | | $wb['monitor_system_updates_txt'] = 'Suche nach Linux updates'; |
| | | ?> |
| | |
| | | $wb['munin_url_note_txt'] = 'Placeholder:'; |
| | | $wb['backup_dir_is_mount_txt'] = 'Backup directory is a mount?'; |
| | | $wb['backup_dir_mount_cmd_txt'] = 'Mount command, if backup directory not mounted'; |
| | | $wb['monitor_system_updates_txt'] = 'Check for Linux updates'; |
| | | ?> |
| | |
| | | <label for="munin_password">{tmpl_var name='munin_password_txt'}</label> |
| | | <input name="munin_password" id="munin_password" value="{tmpl_var name='munin_password'}" size="40" maxlength="255" type="text" class="textInput" /> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <p class="label">{tmpl_var name='monitor_system_updates_txt'}</p> |
| | | <div class="multiField"> |
| | | {tmpl_var name='monitor_system_updates'} |
| | | </div> |
| | | </div> |
| | | </fieldset> |
| | | |
| | | <input type="hidden" name="id" value="{tmpl_var name='id'}"> |
| | |
| | | $distver = 'Squeeze/Sid'; |
| | | $distid = 'debian60'; |
| | | $distbaseid = 'debian'; |
| | | } elseif (strstr(trim(file_get_contents('/etc/debian_version')), '7.0') || strstr(trim(file_get_contents('/etc/debian_version')), '7.1') || trim(file_get_contents('/etc/debian_version')) == 'wheezy/sid') { |
| | | } elseif (strstr(trim(file_get_contents('/etc/debian_version')), '7.0') || substr(trim(file_get_contents('/etc/debian_version')),0,2) == '7.' || trim(file_get_contents('/etc/debian_version')) == 'wheezy/sid') { |
| | | $distname = 'Debian'; |
| | | $distver = 'Wheezy/Sid'; |
| | | $distid = 'debian60'; |
| | |
| | | * OK - here we go... |
| | | */ |
| | | global $app; |
| | | |
| | | $app->uses('getconf'); |
| | | $server_config = $app->getconf->get_server_config($conf['server_id'], 'server'); |
| | | if($server_config['monitor_system_updates'] == 'n') return; |
| | | |
| | | /* |
| | | * First we get the Monitoring-data from the tools |