mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Make vminfo.vmwVmGuestOS wider (#15595)
With tools installed, the string provided by ESXi contains a lot more information. In 8.9, Red Hat have further extended the string to include a machine readable string, parsable by tools that are compatible with OVAL: Linux 4.18.0-513.5.1.el8_9.x86_64 Red Hat Enterprise Linux 8.9 (Ootpa) 8.9 Red Hat Enterprise Linux 8.9 (Ootpa) cpe:/o:redhat:enterprise_linux:8::baseos
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('vminfo', function (Blueprint $table) {
|
||||
$table->string('vmwVmGuestOS', 256)->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('vminfo', function (Blueprint $table) {
|
||||
$table->string('vmwVmGuestOS', 128)->change();
|
||||
});
|
||||
}
|
||||
};
|
@@ -2171,7 +2171,7 @@ vminfo:
|
||||
- { Field: vm_type, Type: varchar(16), 'Null': false, Extra: '', Default: vmware }
|
||||
- { Field: vmwVmVMID, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: vmwVmDisplayName, Type: varchar(128), 'Null': false, Extra: '' }
|
||||
- { Field: vmwVmGuestOS, Type: varchar(128), 'Null': true, Extra: '' }
|
||||
- { Field: vmwVmGuestOS, Type: varchar(256), 'Null': true, Extra: '' }
|
||||
- { Field: vmwVmMemSize, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: vmwVmCpus, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: vmwVmState, Type: 'smallint unsigned', 'Null': false, Extra: '' }
|
||||
|
Reference in New Issue
Block a user