Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Mitel Standard Linux OS Support #7513

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions html/images/os/msl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions includes/definitions/msl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
os: msl
text: 'Mitel Standard Linux'
type: server
over:
- { graph: device_processor, text: 'Processor Usage' }
- { graph: device_ucd_memory, text: 'Memory Usage' }
- { graph: device_storage, text: 'Storage Usage' }
mib_dir: mitel
discovery:
- sysObjectId:
- .1.3.6.1.4.1.1027.1
processor_stacked: 1
poller_modules:
bgp-peers: 0
ospf: 0
stp: 0
discovery_modules:
bgp-peers: 0
stp: 0
30 changes: 30 additions & 0 deletions includes/polling/os/msl.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/*
* LibreNMS OS Polling module for Mitel Standard Linux
*
* © 2017 Chris A. Evans <thecityofguanyu@outlook.com>
*
* 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.
*/

$mslhw = $poll_device['sysDescr'];
$version_oid = '.1.3.6.1.4.1.1027.4.1.2.1.1.1.4.10.1.3.6.1.4.1.1027.1.6.1';
$features_oid = '.1.3.6.1.4.1.1027.4.1.2.1.1.1.5.10.1.3.6.1.4.1.1027.1.6.1';
$oids = array("mitelAppTblProductVersion.10.1.3.6.1.4.1.1027.1.6.1", "mitelAppTblProductDescr.10.1.3.6.1.4.1.1027.1.6.1");
$mitelapptbl_data = snmp_get_multi_oid($device, $oids, "-OUQnt", "MITEL-APPCMN-MIB");

$hardware = preg_replace('/;VerSw.*$/', '', (preg_replace('/^.*VerHw:/', '', $mslhw)));
$version = trim($mitelapptbl_data[$version_oid], '"');
$features = trim($mitelapptbl_data[$features_oid], '"');

unset(
$mslhw,
$mitelapptbl_data,
$version_oid,
$features_oid
);
225 changes: 225 additions & 0 deletions mibs/mitel/MITEL-APPCMN-MIB
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
-- Copyright 2004, 2005, 2006 MITEL Networks Corporation
-- All rights reserved.
-- This MITEL SNMP Management Information Base Specification
-- (Specification) embodies MITEL's confidential and
-- proprietary intellectual property. MITEL retains all
-- title and ownership in the Specification, including any
-- revisions.

-- This Specification is supplied "AS IS", and MITEL makes
-- no warranty, either express or implied, as to the use,
-- operation, condition, or performance of the Specification.

MITEL-APPCMN-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-IDENTITY, OBJECT-TYPE
FROM SNMPv2-SMI
TEXTUAL-CONVENTION, DisplayString
FROM SNMPv2-TC
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF
mitelIdentification, mitelPropApplications, mitelConfGroups,
mitelConfCompliances
FROM MITEL-MIB
ItuPerceivedSeverity
FROM MITEL-CMNALM-MIB;

mitelAppCommon MODULE-IDENTITY
LAST-UPDATED "201402111200Z"
ORGANIZATION "MITEL Networks Corporation"
CONTACT-INFO "Standards Group,
Postal: MITEL Networks Corporation
350 Legget Drive, PO Box 13089
Kanata, Ontario
Canada K2K 2W7
Tel: +1 613 592 2122
Fax: +1 613 592 4784
URL: www.mitel.com"
DESCRIPTION "Replaced E-Mail: std@mitel.com with URL: www.mitel.com."
REVISION "201402111200Z"
DESCRIPTION "The MITEL Application-Specific Common MIB module."
REVISION "200502212134Z"
DESCRIPTION "Some additional attributes added to the Applications table."
REVISION "200401300000Z"
DESCRIPTION "MITEL Application-Specific Common MIB Version 1.0.0.1 - Draft"
::= { mitelPropApplications 2 }

-- ****************************************************************
-- MITEL Common Application-specific Textual Conventions
-- ****************************************************************

-- ****************************************************************
-- The mitelAppCommon subtree... Common information for Manageable
-- Applications.
-- ****************************************************************

mitelAppCmnObjects OBJECT-IDENTITY
STATUS current
DESCRIPTION "Manageable Application Common Objects."
::= { mitelAppCommon 1 }

mitelAppTable OBJECT-TYPE
SYNTAX SEQUENCE OF MitelAppTableEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "A list of the MITEL-defined manageable applications
supported by this agent. This table is typically
maintained in non-volatile memory, and is re-built
upon agent restart."
::= { mitelAppCmnObjects 1 }

mitelAppTableEntry OBJECT-TYPE
SYNTAX MitelAppTableEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "An entry containing application information."
INDEX { mitelAppTblProductOid }
::= { mitelAppTable 1 }

MitelAppTableEntry ::=
SEQUENCE {
mitelAppTblProductOid OBJECT IDENTIFIER,
mitelAppTblProductManufacturer DisplayString ,
mitelAppTblProductName DisplayString,
mitelAppTblProductVersion DisplayString,
mitelAppTblProductDescr DisplayString,
mitelAppTblAppAlrmStatus ItuPerceivedSeverity
}

-- Size of DisplayString will be set to a maximum value.

mitelAppTblProductOid OBJECT-TYPE
SYNTAX OBJECT IDENTIFIER
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The OID value of the application."
::= { mitelAppTableEntry 1 }

mitelAppTblProductManufacturer OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Product Manufacturer of this application."
::= { mitelAppTableEntry 2 }

mitelAppTblProductName OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Product Name of this application."
::= { mitelAppTableEntry 3 }

mitelAppTblProductVersion OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Product Version of this application. The format is
described in document xxx."
::= { mitelAppTableEntry 4 }

mitelAppTblProductDescr OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Product description of this application that may not be
contained in of the MIB-variables. If the description is
not available then this should return an empty string '' as
its value."
::= { mitelAppTableEntry 5 }

mitelAppTblAppAlrmStatus OBJECT-TYPE
SYNTAX ItuPerceivedSeverity
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Indicates the application's alarm level severity."
::= { mitelAppTableEntry 6 }

-- mitelAppTblAppStatus OBJECT-TYPE
-- SYNTAX INTEGER {
-- online (1),
-- offline (2),
-- error (3),
-- unknown(4)
-- }
-- MAX-ACCESS read-only
-- STATUS current
-- DESCRIPTION "Indicates the application's operational state."
-- ::= { mitelAppTableEntry .n. }

mitelAppNumberOfApps OBJECT-TYPE
SYNTAX INTEGER (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Indicates the number of applications installed
on this platform registered with the Applications
Table."
::= { mitelAppCmnObjects 2 }

-- ****************************************************************
-- The mitelConformance subtree.
-- ****************************************************************

mitelGrpAppCommon OBJECT-IDENTITY
STATUS current
DESCRIPTION "The groups associated with the Applications Common MIB."
::= { mitelConfGroups 3 }

-- ****************************************************************
-- The mitelComplMitelAppCmn subtree.... Compliance Statement
-- ****************************************************************

mitelComplAppCommon OBJECT-IDENTITY
STATUS current
DESCRIPTION "The groups associated with the Applications Common MIB."
::= { mitelConfCompliances 5 }

mitelComplAppCmn MODULE-COMPLIANCE
STATUS current
DESCRIPTION "The compliance statement for SNMPv2 entities which
implement the MITEL Applications Common MIB."
MODULE -- compliance to the MITEL Applications Common MIB module
MANDATORY-GROUPS { mitelGrpAppCmn }
OBJECT mitelAppTblProductOid
MIN-ACCESS read-only
DESCRIPTION "Read-only."
OBJECT mitelAppTblProductManufacturer
MIN-ACCESS read-only
DESCRIPTION "Read-only. Cannot be an empty string."
OBJECT mitelAppTblProductName
MIN-ACCESS read-only
DESCRIPTION "Read-only. Cannot be an empty string."
OBJECT mitelAppTblProductVersion
MIN-ACCESS read-only
DESCRIPTION "Read-only. Cannot be an empty string and must follow the
rules as outlined in Reference xxx."
OBJECT mitelAppTblProductDescr
MIN-ACCESS read-only
DESCRIPTION "Read-only. Can be an empty string."
OBJECT mitelAppTblAppAlrmStatus
MIN-ACCESS read-only
DESCRIPTION "Read-only."

::= { mitelComplAppCommon 1 }

-- ****************************************************************
-- The mitelConfGroups Application Common subtree.
-- ****************************************************************

mitelGrpAppCmn OBJECT-GROUP
OBJECTS {
mitelAppTblProductOid,
mitelAppTblProductManufacturer,
mitelAppTblProductName,
mitelAppTblProductVersion,
mitelAppTblProductDescr,
mitelAppTblAppAlrmStatus
}
STATUS current
DESCRIPTION "The collection of objects providing information on
the applications on the current agent platform."
::= { mitelGrpAppCommon 1 }

-- MITEL-APPCMN-MIB

END
96 changes: 96 additions & 0 deletions mibs/mitel/MITEL-APPLICATION-PLATFORM-LIST-MIB
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
-- Copyright 2005, 2006 MITEL Networks Corporation
-- All rights reserved.
-- This MITEL SNMP Management Information Base Specification
-- (Specification) embodies MITEL's confidential and
-- proprietary intellectual property. MITEL retains all
-- title and ownership in the Specification, including any
-- revisions.

-- This Specification is supplied "AS IS", and MITEL makes
-- no warranty, either express or implied, as to the use,
-- operation, condition, or performance of the Specification.

MITEL-APPLICATION-PLATFORM-LIST-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-IDENTITY
FROM SNMPv2-SMI
mitelIdentification
FROM MITEL-MIB;

mitelIdApplicationPlatforms MODULE-IDENTITY
LAST-UPDATED "201402111200Z"
ORGANIZATION "MITEL Networks Corporation"
CONTACT-INFO "Standards Group,
Postal: MITEL Networks Corporation
350 Legget Drive, PO Box 13089
Kanata, Ontario
Canada K2K 2W7
Tel: +1 613 592 2122
Fax: +1 613 592 4784
URL: www.mitel.com"
DESCRIPTION "Replaced E-Mail: std@mitel.com with URL: www.mitel.com."
REVISION "201402111200Z"
DESCRIPTION "The MITEL Application Patform List MIB module.
Platforms that provide a base for Mitel applications.
These typically will be used for the sysObjectID
Field."
REVISION "200608100000Z"
DESCRIPTION "Adding additional compute platforms to the list of
Application Servers."
REVISION "200508242134Z"
DESCRIPTION "Created."
::= { mitelIdentification 6 }

-- ****************************************************************
-- The mitelIdApplicationPlatforms...
-- ****************************************************************

mitelIdAppPlatManagementApplicationServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks MAS application server platform."
::= { mitelIdApplicationPlatforms 1 }

mitelIdAppPlatLXTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks LX Telephony server platform."
::= { mitelIdApplicationPlatforms 2 }

mitelIdAppPlatMXTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks MX Telephony server platform."
::= { mitelIdApplicationPlatforms 3 }

mitelIdAppPlatCXTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks CX Telephony server platform."
::= { mitelIdApplicationPlatforms 4 }

mitelIdAppPlatCXiTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks CXi Telephony server platform."
::= { mitelIdApplicationPlatforms 5 }

mitelIdAppPlatLiteTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks Lite Telephony server platform."
::= { mitelIdApplicationPlatforms 6 }

mitelIdAppPlatMXeTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks MXe Telephony server platform."
::= { mitelIdApplicationPlatforms 7 }

mitelIdAppPlatAXTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks AX Telephony server platform."
::= { mitelIdApplicationPlatforms 8 }

mitelIdAppPlatMXTTelephonyServer OBJECT-IDENTITY
STATUS current
DESCRIPTION "The Mitel Networks MXT Telephony server platform."
::= { mitelIdApplicationPlatforms 9 }

-- MITEL-APPLICATION-PLATFORM-LIST-MIB

END
Loading