From f5b3fb1136e5ed1074ac5483aa113a858904816d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rosiak?= Date: Sun, 12 Jun 2016 15:59:17 +0200 Subject: [PATCH] Basic Oracle ILOM Support #3632 --- html/images/os/oracle.png | Bin 0 -> 764 bytes includes/definitions.inc.php | 12 ++++++++++++ includes/discovery/os/oracle-ilom.inc.php | 17 +++++++++++++++++ includes/polling/os/oracle-ilom.inc.php | 16 ++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 html/images/os/oracle.png create mode 100644 includes/discovery/os/oracle-ilom.inc.php create mode 100644 includes/polling/os/oracle-ilom.inc.php diff --git a/html/images/os/oracle.png b/html/images/os/oracle.png new file mode 100644 index 0000000000000000000000000000000000000000..6a4235fc654c331b0389540532aaf42cd9b92f4f GIT binary patch literal 764 zcmVBTPQ(BJ0*OgP zK~z}7?bb_3RACgr@&9+fJL9~^nI1$omWV;7Eh0tQMf9KtSO^gWLC_*16gMrRh@dxt z5p60Ig^Cu@iz0fcAu&{oh#uouL{^igQCV|m?#$eKzZOB!rtNI**&Pm?^MeD2Ba~8# zGKNN(!v(ki7vKV1fR0kwsbQ@2YY-rULA=YC;e7o{@xc&6N{|v+Q-j`64}i)VSTA1U zX=(nQ=ki$3o@0N?ApCx`NEi{TL|?e@?<`JqwvgAa~EI+Mn;~LyN~z zQ$Mg@zri?o6i;I#xvo>lsw$kZam=gN(V|ggb%K0%FUH>ecvmb3Ab0o}rDPH<90sAG zCMGG~ANW&O#UlB$-Q>G_kuzt2kwZknD5cQN%U6lrz4?!nu2U5H2kj4qXhy)`p!}8A4E1bpwF+P;Pp^?^cWEg{D09( z;k+BAkjYRCh7greD%Pz*U(|rE&zpzYcLBX=F(^=mfqDKSfzA%B$4>}!wqreiMfk)K zgwKz8@e;najeJ|(ikLnP`|Ueqb%Mg3d&s%f2#*J6auW6PC-&%jRNh1tifD-hA{@fk zwgJb;p+zI06vD~nm2v0@c6tPaKmnzBf9n>o zZJhCO%q!Q?=htCgyMgm*44IgNr)deLr%!Q4KcE~NPjeF$>(^4ab(>Q15$F=%=1urE uwj#><5h+#XJ0OI630;5-Z~-pB1@H@Ep9gabW)W`y0000 + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +if (!$os) { + if (strstr($sysObjectId, '.1.3.6.1.4.1.42.2.200.2.1.1')) { + $os = 'oracle-ilom'; + } +} diff --git a/includes/polling/os/oracle-ilom.inc.php b/includes/polling/os/oracle-ilom.inc.php new file mode 100644 index 0000000000..60166f3b34 --- /dev/null +++ b/includes/polling/os/oracle-ilom.inc.php @@ -0,0 +1,16 @@ + + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +if (preg_match('/^(.*), ILOM v(.*), (.*)/', $poll_device['sysDescr'], $regexp_result)) { + $hardware = 'Oracle ' . $regexp_result[1]; + $version = $regexp_result[2]; +}