newdevice: Add support for Halon Gateway (#6716)

newdevice: Add support for Halon Gateway
This commit is contained in:
Søren Rosiak 2017-05-24 07:00:43 +02:00 committed by Tony Murray
parent 88e71a58c1
commit 88a490a969
5 changed files with 157 additions and 0 deletions

3
html/images/os/halon.svg Normal file
View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 290 58.3">
<path d="M191.9 58.3c-.2-.1-1.2-.2-2.2-.2-1-.1-1.8-.2-1.9-.2-.1 0-.6-.1-1.2-.2-1.4-.2-3.4-.7-4.4-1-5.1-1.8-8.1-3.8-10.9-7.1-1.7-2.1-3.6-5.5-4.1-7.6-.1-.2-.2-.5-.2-.7-.3-.7-.7-2.4-1.2-4.6-.1-.4-.2-1.3-.2-1.9-.1-.6-.2-1.5-.2-1.8-.2-1-.2-7.3.1-8.6.1-.6.2-1.3.2-1.6 0-.3.1-.7.1-1 .1-.2.2-.8.3-1.3.1-.5.3-1.2.4-1.6.1-.4.3-1 .4-1.4.1-.4.2-.7.3-.8.1-.1.1-.2.1-.4 0-.1.1-.4.2-.5.1-.1.2-.3.2-.4 0-.3 1.3-2.8 2.1-3.9 2.6-3.9 6.5-7 11.1-8.8.4-.1.8-.3.9-.4.1-.1.6-.2 1.1-.4.5-.1 1.1-.3 1.4-.4.3-.1.7-.2.8-.2.2 0 .4-.1.6-.1.1-.1.6-.2 1-.2s1-.1 1.3-.2c2.4-.6 10.9-.9 14.9-.6 1.7.1 3.7.4 4.6.6.3.1.8.2 1.1.2.3.1.7.1.9.2.2.1.9.3 1.6.5 4.8 1.5 8.7 4.3 11.3 8.3.9 1.4 2.2 4.1 2.7 5.7.1.3.2.6.2.7.1.2.5 1.7.6 2.3.1.3.2.8.2 1.2.7 3.7 1.1 9.1.8 12.3-.1.9-.2 1.9-.2 2.4-.2 2.3-1.2 6.9-1.9 8.4-.1.2-.2.4-.2.5 0 .1-.1.3-.2.5s-.5.9-.8 1.7c-.4.7-1 1.8-1.4 2.4-.7 1-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.8 1.9c.1.1.2.5.4.9.1.3.3.8.4.9.1.2.1.4.1.4s-3.2.1-6.9.1h-7.1c-4.8-12.5-10-25.7-14.9-38.2-.1-.3-.3-.7-.4-.9-.1-.2-.1-.4-.1-.5 0-.1-.1-.3-.2-.5s-.3-.6-.5-.9c-.2-.4-.4-.6-.5-.6-.3 0-.3.1-1 1.9-4.2 11.3-8.6 22.5-13 33.7-.7 1.5-1.3 3.1-1.9 4.6-.3.7-.5 1.3-.6 1.3-.2.1-13.4.1-13.5 0zm81.7 0c-.3-.1-1.2-.2-1.8-.2-.6-.1-1.3-.2-1.5-.3-.2-.1-.5-.1-.7-.1-.6 0-3-.7-4.5-1.3-2-.8-3.5-1.8-5.2-3.5-1.9-1.9-3.2-3.9-4.5-7-.7-1.7-.7-1.8-1-4.6-.1-.7-.1-8.6-.1-19.6V1.6h12.7V19c0 19.4 0 19.4.8 21.2 1 2.4 2.7 4.1 5.1 5.3.4.2.8.4.9.4.3.1 1.8.6 2.8.8 2.2.5 2.4.5 13.4.6l10.8.1.1 9.6h-13.3c-7.5-.2-13.7-.3-14-.3zm96.3 0s-.1-12.5-.1-27.7V1.5h17.6l.3.5c8.4 13.2 9.1 14.4 25.6 39.4.8 1.2 1.2 1.7 1.2 1.7 0-.1.1-9.6.1-20.9V1.6H290v55.1h-8.4c-4.6 0-8.4 0-8.5-.1-8.4-12.3-16.6-24.7-24.9-37-1.1-1.6-2-2.9-2.1-3-.1-.1-.3-.1-.4-.1-.2 0-.2.9-.3 20.1l-.1 20.1h-6.2c-3.5.1-6.3.1-6.3 0"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,9 @@
os: halon
text: Halon
type: appliance
over:
- { graph: device_processor, text: 'Processor Usage' }
- { graph: device_ucd_memory, text: 'Memory Usage' }
discovery:
- sysDescr:
- Halon

View File

@ -0,0 +1,15 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2017 Søren Friis Rosiak <sorenrosiak@gmail.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.
*/
$explodeddata = explode("Halon ", $poll_device['sysDescr']);
$version = $explodeddata['1'];
$serial = trim(snmp_get($device, 'HALON-SP-MIB::serialNumber.0', '-OQv'), '"');

128
mibs/halon/HALON-SP-MIB Normal file
View File

@ -0,0 +1,128 @@
HALON-SP-MIB DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-TYPE, MODULE-IDENTITY, enterprises,
Counter64, Integer32
FROM SNMPv2-SMI;
halonSecuritySP MODULE-IDENTITY
LAST-UPDATED "201302061107Z"
ORGANIZATION "Halon Security"
CONTACT-INFO "http://www.halon.se"
DESCRIPTION "SNMP MIB for Halon"
REVISION "201302071132Z"
DESCRIPTION "Initial release"
::= { halonSecurityProducts 1 }
halonSecurity OBJECT IDENTIFIER ::= { enterprises 33234 }
halonSecurityProducts OBJECT IDENTIFIER ::= { halonSecurity 1 }
halonSecuritySPObjects OBJECT IDENTIFIER ::= { halonSecuritySP 1 }
serialNumber OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Serial number"
::= { halonSecuritySPObjects 1 }
configurationRevision OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Running configuration revision"
::= { halonSecuritySPObjects 2 }
mailQueueLength OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Length of mail queue to be delivered"
::= { halonSecuritySPObjects 3 }
quarantinedMessages OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Messages in quarantine"
::= { halonSecuritySPObjects 4 }
statTable OBJECT-TYPE
SYNTAX SEQUENCE OF StatEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Table containing statistics"
::= { halonSecuritySPObjects 5 }
statEntry OBJECT-TYPE
SYNTAX StatEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Statistic entry"
INDEX {
statKey1Index,
statKey2Index,
statKey3Index
}
::= { statTable 1 }
StatEntry ::= SEQUENCE {
statKey1Index
OCTET STRING,
statKey2Index
OCTET STRING,
statKey3Index
OCTET STRING,
statCount
Counter64,
statCreated
Integer32,
statUpdated
Integer32
}
statKey1Index OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Key1"
::= { statEntry 1 }
statKey2Index OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Key2"
::= { statEntry 2 }
statKey3Index OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Key3"
::= { statEntry 3 }
statCount OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Counter value"
::= { statEntry 4 }
statCreated OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Unix timestamp when created"
::= { statEntry 5 }
statUpdated OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Unix timestamp when last updated"
::= { statEntry 6 }
END

View File

@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Halon 4.1-teamy-amd64
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.8