diff --git a/html/images/logos/chatsworth.png b/html/images/logos/chatsworth.png new file mode 100644 index 0000000000..2b8b7f1010 Binary files /dev/null and b/html/images/logos/chatsworth.png differ diff --git a/html/images/os/chatsworth.png b/html/images/os/chatsworth.png new file mode 100644 index 0000000000..91568c9d5a Binary files /dev/null and b/html/images/os/chatsworth.png differ diff --git a/includes/definitions/chatsworth-pdu.yaml b/includes/definitions/chatsworth-pdu.yaml new file mode 100644 index 0000000000..3f7f2a513f --- /dev/null +++ b/includes/definitions/chatsworth-pdu.yaml @@ -0,0 +1,8 @@ +os: chatsworth-pdu +text: 'Chatsworth PDU' +type: power +icon: chatsworth +nobulk: 1 +discovery: + - sysObjectId: + - .0.10.43.6.1.4.1 diff --git a/includes/polling/os/chatsworth-pdu.inc.php b/includes/polling/os/chatsworth-pdu.inc.php new file mode 100644 index 0000000000..dabd339b59 --- /dev/null +++ b/includes/polling/os/chatsworth-pdu.inc.php @@ -0,0 +1,27 @@ +. + * + * @package LibreNMS + * @link http://librenms.org + * @copyright 2017 Lorenzo Zafra + * @author Lorenzo Zafra + */ + +$serial = trim(snmp_get($device, '.1.3.6.1.4.1.30932.1.1.1.2.0', '-OQv'), '"'); +$version = trim(snmp_get($device, '.1.3.6.1.4.1.30932.1.1.1.1.0', '-OQv'), '"'); diff --git a/tests/snmpsim/chatsworth-pdu.snmprec b/tests/snmpsim/chatsworth-pdu.snmprec new file mode 100644 index 0000000000..1daa5d3805 --- /dev/null +++ b/tests/snmpsim/chatsworth-pdu.snmprec @@ -0,0 +1,2 @@ +1.3.6.1.2.1.1.1.0|4|Epicenter SNMP +1.3.6.1.2.1.1.2.0|6|.0.10.43.6.1.4.1