SlideShare a Scribd company logo
– Developing and
Monitoring ?
ZABBIX
Bio
• Name: Aidan Venn
• Zabbix irc & Forum: avenn
• Experience: 17 years in IT - networking
• Company: ObservIT Ltd
Unique? site facts
• 7 R & D sites x Various sensors &
actuators
• Unique In house designed Chinese
Components
• Concept works
• Soon to come out of Beta stage v23.4
Background – Energy Costs
“The cost total has more than doubled over the
last 10 years. Energy price rises have been
proportionately higher for industry and have direct
impacts on costs and competitiveness…”
“There is little prospect of a sustained reversal in
these trends. It is more likely that price
increases will continue into the medium term at
least.”
Key Issues for the New Parliament 2010, Paul Bolton
Background – Reduce Travel
• In parallel with this was the desire to
reduce/eliminate the need to reboot
remote/local devices that had “frozen”
with out travelling “for hours” to site.
• In particular “frozen” remote routers with
the obvious question - How do we reboot
if the internet connection is gone?
Overall Aims
• To save energy
• To save time
To save Money
General Objectives
• Scalable - Zabbix
– 1000s of sensors and sites
• Central control as much as possible
• As Plug ‘n’ Play as possible – less site time
• Minimal Overhead
– Network
– Processing – contradictory in certain contexts
• Cost Effective – Zabbix
• Resilient – Zabbix proxy
• Proof Of Concept – saves time & money
Initial Results
• Devices & Zabbix gave time savings for
remote unmanned sites as in reboot
frozen device of 99%
• Temperature monitoring allowed boilers at
various sites to be adjusted – come on
later turn off earlier – saving energy
consumption and money
Research
• A few off the shelf products
• Developing own to reduce long term
costs, gain Unique Selling Point and tailor
to our and customer needs. Points to
Note:
– Initial significant higher costs
– Challenging – time consuming
– Rewarding knowledge
– Correct decision in the medium to long term
Brainstorm
• Brainstorming led to the following devices:
• Server – Store, View and Process data
• Remote Hub – Collate data, send to sever
• Sensors – Acquire environmental data
• Actuators – Remotely switch devices
on/off
Why
• Proven Track record
• Continual development
• Scalable, Flexible, Reliable
• Professional & community support
• Our previous experience
ZABBIX ?
Pi-Fi Hub
• Raspberry Pi model B v2
• Zabbix 2.x Proxy & Agent
• 12v or Solar Power
• Encrypted Serial RF up to
2km*
Pi-Fi
Hub
www.mvdigital.co.uk
Sensor - PiFiMon
• 3.3v, solar or 2 year lithium
bat*
• Encrypted Serial RF up to
2km*
• temperature, humidity, light
• tilt, vibration, contact
• analog and digital reading etc.
Sleep/Active/Sleep profile
PiMon
www.mvdigital.co.uk
Actuator - PiFiKontrol
• 5v or Solar
• Switch 12v power
• Encrypted Serial RF up to
2km*
• Awake/Passive profile
www.mvdigital.co.uk
Pi-FiKon
ZABBIX
SERVER
Pi-Fi
Hub
PiMon
PiMon
Pi-Fikon
OpenVPN
3G/SMS/Tweet
Pi-Fikon
Example Site
Serial RF
Serial RF
Very Early
Example
Monitoring
• During the journey it became apparent
that Zabbix monitoring would be in three
areas:
– Research and design
– Infrastructure
– Sensors & Actuators
• 30 mins to briefly discuss each one
• One challenge from each and how we are
currently tackling/overcoming them.
General Approach
What
Why
How
Respond
Issues
Config
Research & Design
R & D Example
• To aid R & D we needed to record various
operational events including:
• Receiving values from sensors (PiMon)
• Sending commands to actuators (PiKontrol)
• Simple reliability test example:
– Send switch OFF command
– TEST : Successful Coms or/and command
execution
R & D - Actuator
1. Switch OFF command sent
Zabbix sender – command sent – count key = sendOFF
2. ACK as Expected - yes or no?
Zabbix sender – expACK = yes – count key= expACKyes
Zabbix sender – expACK = no – count key = expACKno
Aim for and expect sendOFF count = expACKyes count
= COMMS AND STATUS APPEARS OK
R & D - Actuator
Traceback (most recent call last):
File "writeSERIALnewD.py", line 120, in <module>
Ser.write(ans[0:9] + "O")
NameError: name 'Ser' is not defined
Infrastructure
Infrastructure Example - OpenVPN
ZABBIX
Agent
ZABBIX
Server
Dedicated Server running OpenVZ
Containers
OpenVPN
Use ObservIT OpenVPN setup for example of how
we monitor parts of the virtual infrastructure.
3G / ADSL Links
ZABBIX
Agent
Remote Site
OpenVPN
• Separate Templates for Client, Server &
Overall
• Parse Log Files for keywords –”reset” etc
• Scripts – ps aux – extract – RSS & VSZ
• Zabbix Sender
• Telnet! – OpenVPN Management Interface
– Use Comman Names (CN) and commands
such as “status”
OpenVPN – Challenge 1
Many
Physical
Hosts
OpenVPN
Server
One
Zabbix
Agent
ZABBIX
Agent
ZABBIX
Server
Many Physical Hosts to One Agent to Many Hosts to Many Templates
Host 1
Host 2
Host 3
One
Zabbix
Server
Client
Template
VPN
Server
Server
Template
OpenVPN
Template
OpenVZ Containers
OpenVPN – Challenge 1
Server Template ClientTemplate
Double the number of items for needed values
https://www.zabbix.com/forum/showthread.php?t=42265
OpenVPN – Challenge 1
Pass a list of clients (denoted as numbers) that we want values
for rather than one pass per client.
Back to a one to many situation
A More suitable Solution:
Actuators – PiKon
&
Sensors - PiMon
ZABBIX
SERVER
Pi-Fi
Hub
Pi-Fikon
OpenVPN
Pikon
Actuators - PiKon
ZABBIX
Agent
Serial RF
Zabbix
Hosts
3G/SMS/Tweet
Actuator - Serial RF Command
aAVxxxxxxON
Unique PiKon
Device ID
Actuator/Switch Command
ON or OFF
Actuators - PiKon
• Agent on PiFiHub – Remote Command
Script – allowing the sending of serial RF
actuator/switch command to PiKon -
on/off of CONNECTED host
– Can be automated if no response in 5mins etc
the send SMS etc to reboot.
Challenge 2
• Each site may use many and different PiKon
device ids in commands.
• To reduce duplication we wanted to reuse
actuator switch script by passing appropriate
device id host level macro.
• Client 1 Example:
– {$DEVID} = AA
– /externalscripts/writeSERIAL.py {DEVID} ON
Challenge 2
The link for macro is the hostname
/externalscripts/writeSERIAL.py {DEVID} ON
Pi-Fikon: AA
Challenge 2
• At present it appears that the passing of host
level macros to the script is not possible.
• HOWEVER… all is not lost… Look what
Zabbix 2.2 will do:
“Starting with Zabbix 2.2, user macros are
supported in script commands.”
• https://www.zabbix.com/documentation/2.2/manual/web_inte
rface/frontend_sections/administration/scripts
Challenge 2
• At present we store (in a text file) the
unique site commands at the PiFiHub
(Zabbix Agent) and have “standard” script
commands with parameters Example:
Script/Remote Command Line Number Line Content
externalscripts/writeSERIAL.py 1 ON 1 AA
externalscripts/writeSERIAL.py 1 OFF 1 AA
externalscripts/writeSERIAL.py 3 ON 3 AB
externalscripts/writeSERIAL.py 4 OFF 4 Etc….
• Issue: All scripts available for all host
group – Which One to pick etc.
Sensor - Serial RF Value
aAVTMPA23.50
Unique
Device ID
Zabbix Key Value
Type Sensor
Number
Sensors - PiMon
ZABBIX
Agent
Pi-Fi
Hub
ZABBIX
SERVEROpenVPN
PiMon
PiMon
Serial RF
Zabbix
Items
Item
Values
Sensors - PiMon
• PiMon wakes up at programmed intervals
and sends back values to PiFiHub
• Script on PiFiHub reads every second
Serial Coms and parses for keys & values
• Zabbix Sender sends keys and values back
to the server.
Challenge 3
• Wanted to use host macros for:
– Device ID
– Type
– Sensor
• Then apply to PiMon/sensor template as keys for
zabbix trapper items.
• However:
“user macros (variables) are supported in item key
parameters, not as replacement for item keys themselves”
https://www.zabbix.com/forum/showthread.php?t=42239&highlight=macros+keys
Challenge 3
• In this instance we didn`t look for a
workaround as time was pressing so we
added each item individually.
Challenge 3
Any ideas?
Future Paths
• Research API
Wishlist
• Macros as keys
Speak Later
• If you need to speak to me after I look
like this:
References
• Bolton, P. (2010) Energy price rises and fuel poverty [Internet]. House of Commons Library
Research. Available from:
<http://www.parliament.uk/documents/commons/lib/research/key_issues/Key%20Issues%20Ene
rgy%20price%20rises%20and%20fuel%20poverty.pdf> [Accessed 3rd June 2012].
• http://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management-
interface.html
• http://blog.zabbix.com/multiple-servers-for-active-agent-sure/858/
• https://www.zabbix.com/documentation/2.0/manual/config/macros/usermacros
• https://www.zabbix.com/documentation/2.2/manual/web_interface/frontend_sections/administrat
ion/scripts

More Related Content

What's hot

MikroTik & RouterOS
MikroTik & RouterOSMikroTik & RouterOS
MikroTik & RouterOS
Faelix Ltd
 
MTCNA
MTCNAMTCNA
Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Rofiq Fauzi
 
MikroTik MTCNA
MikroTik MTCNAMikroTik MTCNA
MikroTik MTCNA
Ali Layth
 
Choosing MikroTik for Your Network
Choosing MikroTik for Your NetworkChoosing MikroTik for Your Network
Choosing MikroTik for Your Network
Faisal Reza
 
MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]
Faisal Reza
 
VXLAN and FRRouting
VXLAN and FRRoutingVXLAN and FRRouting
VXLAN and FRRouting
Faisal Reza
 
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
Rofiq Fauzi
 
CAPsMANv2 | Wireless APs Controller by MikroTik
CAPsMANv2 | Wireless APs Controller by MikroTikCAPsMANv2 | Wireless APs Controller by MikroTik
CAPsMANv2 | Wireless APs Controller by MikroTik
Dobri Boyadzhiev
 
BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016) BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016)
Rofiq Fauzi
 
MikroTik Security
MikroTik SecurityMikroTik Security
MikroTik Security
Rofiq Fauzi
 
How To Becoming SysAdmin MikroTik
How To Becoming SysAdmin MikroTikHow To Becoming SysAdmin MikroTik
How To Becoming SysAdmin MikroTik
Adhie Lesmana
 
Low Sost Secure VPN SSTP - MUM ID 2012
Low Sost Secure VPN SSTP - MUM ID 2012Low Sost Secure VPN SSTP - MUM ID 2012
Low Sost Secure VPN SSTP - MUM ID 2012Faisal Reza
 
Mikrotik Hotspot User Manager
Mikrotik Hotspot User ManagerMikrotik Hotspot User Manager
Mikrotik Hotspot User Manager
KHNOG
 
PPPoE With Mikrotik and Radius
PPPoE With Mikrotik and RadiusPPPoE With Mikrotik and Radius
PPPoE With Mikrotik and Radius
Dashamir Hoxha
 
Mikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW ManagementMikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW Management
gopartheredbuff
 

What's hot (20)

MikroTik & RouterOS
MikroTik & RouterOSMikroTik & RouterOS
MikroTik & RouterOS
 
MTCNA
MTCNAMTCNA
MTCNA
 
Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)
 
MikroTik MTCNA
MikroTik MTCNAMikroTik MTCNA
MikroTik MTCNA
 
Choosing MikroTik for Your Network
Choosing MikroTik for Your NetworkChoosing MikroTik for Your Network
Choosing MikroTik for Your Network
 
MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]MikroTik Multicast Routing [www.imxpert.co]
MikroTik Multicast Routing [www.imxpert.co]
 
VXLAN and FRRouting
VXLAN and FRRoutingVXLAN and FRRouting
VXLAN and FRRouting
 
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)MikroTik BGP Security - MUM 2014 (rofiq fauzi)
MikroTik BGP Security - MUM 2014 (rofiq fauzi)
 
CAPsMANv2 | Wireless APs Controller by MikroTik
CAPsMANv2 | Wireless APs Controller by MikroTikCAPsMANv2 | Wireless APs Controller by MikroTik
CAPsMANv2 | Wireless APs Controller by MikroTik
 
BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016) BGP Security (Mum presentation 2016)
BGP Security (Mum presentation 2016)
 
MikroTik Security
MikroTik SecurityMikroTik Security
MikroTik Security
 
Mikrotik Tutorial
Mikrotik TutorialMikrotik Tutorial
Mikrotik Tutorial
 
Mikrotik advanced
Mikrotik advancedMikrotik advanced
Mikrotik advanced
 
How To Becoming SysAdmin MikroTik
How To Becoming SysAdmin MikroTikHow To Becoming SysAdmin MikroTik
How To Becoming SysAdmin MikroTik
 
Low Sost Secure VPN SSTP - MUM ID 2012
Low Sost Secure VPN SSTP - MUM ID 2012Low Sost Secure VPN SSTP - MUM ID 2012
Low Sost Secure VPN SSTP - MUM ID 2012
 
Mikrotik Hotspot User Manager
Mikrotik Hotspot User ManagerMikrotik Hotspot User Manager
Mikrotik Hotspot User Manager
 
PPPoE With Mikrotik and Radius
PPPoE With Mikrotik and RadiusPPPoE With Mikrotik and Radius
PPPoE With Mikrotik and Radius
 
Mikro tik advanced training
Mikro tik advanced trainingMikro tik advanced training
Mikro tik advanced training
 
Mtcna outline
Mtcna outlineMtcna outline
Mtcna outline
 
Mikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW ManagementMikrotik Hotspot With Queue Tree BW Management
Mikrotik Hotspot With Queue Tree BW Management
 

Viewers also liked

Zabbix 介紹
Zabbix 介紹Zabbix 介紹
Zabbix 介紹
秉軒 蔡
 
wedding
weddingwedding
wedding
sheetal4560
 
Artur shapoval inf_1semestr.pptx
Artur shapoval inf_1semestr.pptxArtur shapoval inf_1semestr.pptx
Artur shapoval inf_1semestr.pptx
Артур Шаповал
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled PresentationMili_a
 
Mms One Source
Mms One SourceMms One Source
Mms One Source
msnyder1009
 
Documentary analysis - Dispatches (Salt)
Documentary analysis - Dispatches (Salt)Documentary analysis - Dispatches (Salt)
Documentary analysis - Dispatches (Salt)
MatthewTurnbull1998
 
Những bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.com
Những bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.comNhững bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.com
Những bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.com
Nguyen Duong
 
Mothership
MothershipMothership
Mothership
nprasannamenglish
 
Termo1bab2
Termo1bab2Termo1bab2
Termo1bab2
ardhabariqf
 
ICR Composites - English edition
ICR Composites - English editionICR Composites - English edition
ICR Composites - English edition
Industria Chimica Reggiana - I.C.R. S.p.A.
 
Zabbix Smart problem detection - FISL 2015 workshop
Zabbix Smart problem detection - FISL 2015 workshopZabbix Smart problem detection - FISL 2015 workshop
Zabbix Smart problem detection - FISL 2015 workshop
Zabbix
 
Rabri
RabriRabri

Viewers also liked (18)

Zabbix 介紹
Zabbix 介紹Zabbix 介紹
Zabbix 介紹
 
wedding
weddingwedding
wedding
 
R.A.P. Communication Presentation
R.A.P. Communication PresentationR.A.P. Communication Presentation
R.A.P. Communication Presentation
 
Artur shapoval inf_1semestr.pptx
Artur shapoval inf_1semestr.pptxArtur shapoval inf_1semestr.pptx
Artur shapoval inf_1semestr.pptx
 
Perfil profesional
Perfil profesionalPerfil profesional
Perfil profesional
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Mms One Source
Mms One SourceMms One Source
Mms One Source
 
Reflexión
ReflexiónReflexión
Reflexión
 
Global KTech Corporate_3
Global KTech Corporate_3Global KTech Corporate_3
Global KTech Corporate_3
 
Documentary analysis - Dispatches (Salt)
Documentary analysis - Dispatches (Salt)Documentary analysis - Dispatches (Salt)
Documentary analysis - Dispatches (Salt)
 
Perfil profesional
Perfil profesionalPerfil profesional
Perfil profesional
 
Những bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.com
Những bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.comNhững bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.com
Những bài thuốc chữa viêm xoang mũi bằng tỏi chuabenhdongduoc.com
 
zas-agent-0.1.1
zas-agent-0.1.1zas-agent-0.1.1
zas-agent-0.1.1
 
Mothership
MothershipMothership
Mothership
 
Termo1bab2
Termo1bab2Termo1bab2
Termo1bab2
 
ICR Composites - English edition
ICR Composites - English editionICR Composites - English edition
ICR Composites - English edition
 
Zabbix Smart problem detection - FISL 2015 workshop
Zabbix Smart problem detection - FISL 2015 workshopZabbix Smart problem detection - FISL 2015 workshop
Zabbix Smart problem detection - FISL 2015 workshop
 
Rabri
RabriRabri
Rabri
 

Similar to Wireless Developing Wireless Monitoring and Control devices

Using Databases and Containers From Development to Deployment
Using Databases and Containers  From Development to DeploymentUsing Databases and Containers  From Development to Deployment
Using Databases and Containers From Development to Deployment
Aerospike, Inc.
 
Performance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerformance & Scalability Improvements in Perforce
Performance & Scalability Improvements in Perforce
Perforce
 
Automatic Undo for Cloud Management via AI Planning
Automatic Undo for Cloud Management via AI PlanningAutomatic Undo for Cloud Management via AI Planning
Automatic Undo for Cloud Management via AI Planning
Hiroshi Wada
 
F5 Meetup presentation automation 2017
F5 Meetup presentation automation 2017F5 Meetup presentation automation 2017
F5 Meetup presentation automation 2017
Guy Brown
 
Ceph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer SpotlightCeph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer Spotlight
Colleen Corrice
 
Ceph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer SpotlightCeph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer Spotlight
Red_Hat_Storage
 
How to run a bank on Apache CloudStack
How to run a bank on Apache CloudStackHow to run a bank on Apache CloudStack
How to run a bank on Apache CloudStack
gjdevos
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Andrejs Prokopjevs
 
DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...
DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...
DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...
Felipe Prado
 
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
OpenNebula Project
 
20171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v0120171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v01
Scott Miao
 
Picnic Software - Developing a flexible and scalable application
Picnic Software - Developing a flexible and scalable applicationPicnic Software - Developing a flexible and scalable application
Picnic Software - Developing a flexible and scalable application
Nick Josevski
 
BEST REST in OpenStack
BEST REST in OpenStackBEST REST in OpenStack
BEST REST in OpenStack
Vikram G Hosakote
 
Versioning for Developers
Versioning for DevelopersVersioning for Developers
Versioning for Developers
Michelangelo van Dam
 
Ceph: Low Fail Go Scale
Ceph: Low Fail Go Scale Ceph: Low Fail Go Scale
Ceph: Low Fail Go Scale
Ceph Community
 
20191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 220191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 2
makker_nl
 
Performance analysis with_ceph
Performance analysis with_cephPerformance analysis with_ceph
Performance analysis with_ceph
Alex Lau
 
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
OpenWhisk
 
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Mandi Walls
 

Similar to Wireless Developing Wireless Monitoring and Control devices (20)

SD Times - Docker v2
SD Times - Docker v2SD Times - Docker v2
SD Times - Docker v2
 
Using Databases and Containers From Development to Deployment
Using Databases and Containers  From Development to DeploymentUsing Databases and Containers  From Development to Deployment
Using Databases and Containers From Development to Deployment
 
Performance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerformance & Scalability Improvements in Perforce
Performance & Scalability Improvements in Perforce
 
Automatic Undo for Cloud Management via AI Planning
Automatic Undo for Cloud Management via AI PlanningAutomatic Undo for Cloud Management via AI Planning
Automatic Undo for Cloud Management via AI Planning
 
F5 Meetup presentation automation 2017
F5 Meetup presentation automation 2017F5 Meetup presentation automation 2017
F5 Meetup presentation automation 2017
 
Ceph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer SpotlightCeph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer Spotlight
 
Ceph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer SpotlightCeph Deployment at Target: Customer Spotlight
Ceph Deployment at Target: Customer Spotlight
 
How to run a bank on Apache CloudStack
How to run a bank on Apache CloudStackHow to run a bank on Apache CloudStack
How to run a bank on Apache CloudStack
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
 
DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...
DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...
DEF CON 27 - ORANGE TSAI and MEH CHANG - infiltrating corporate intranet like...
 
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
OpenNebulaConf 2016 - Measuring and tuning VM performance by Boyan Krosnov, S...
 
20171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v0120171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v01
 
Picnic Software - Developing a flexible and scalable application
Picnic Software - Developing a flexible and scalable applicationPicnic Software - Developing a flexible and scalable application
Picnic Software - Developing a flexible and scalable application
 
BEST REST in OpenStack
BEST REST in OpenStackBEST REST in OpenStack
BEST REST in OpenStack
 
Versioning for Developers
Versioning for DevelopersVersioning for Developers
Versioning for Developers
 
Ceph: Low Fail Go Scale
Ceph: Low Fail Go Scale Ceph: Low Fail Go Scale
Ceph: Low Fail Go Scale
 
20191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 220191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 2
 
Performance analysis with_ceph
Performance analysis with_cephPerformance analysis with_ceph
Performance analysis with_ceph
 
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
 
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
 

Wireless Developing Wireless Monitoring and Control devices

  • 2. Bio • Name: Aidan Venn • Zabbix irc & Forum: avenn • Experience: 17 years in IT - networking • Company: ObservIT Ltd
  • 3. Unique? site facts • 7 R & D sites x Various sensors & actuators • Unique In house designed Chinese Components • Concept works • Soon to come out of Beta stage v23.4
  • 4. Background – Energy Costs “The cost total has more than doubled over the last 10 years. Energy price rises have been proportionately higher for industry and have direct impacts on costs and competitiveness…” “There is little prospect of a sustained reversal in these trends. It is more likely that price increases will continue into the medium term at least.” Key Issues for the New Parliament 2010, Paul Bolton
  • 5. Background – Reduce Travel • In parallel with this was the desire to reduce/eliminate the need to reboot remote/local devices that had “frozen” with out travelling “for hours” to site. • In particular “frozen” remote routers with the obvious question - How do we reboot if the internet connection is gone?
  • 6. Overall Aims • To save energy • To save time To save Money
  • 7. General Objectives • Scalable - Zabbix – 1000s of sensors and sites • Central control as much as possible • As Plug ‘n’ Play as possible – less site time • Minimal Overhead – Network – Processing – contradictory in certain contexts • Cost Effective – Zabbix • Resilient – Zabbix proxy • Proof Of Concept – saves time & money
  • 8. Initial Results • Devices & Zabbix gave time savings for remote unmanned sites as in reboot frozen device of 99% • Temperature monitoring allowed boilers at various sites to be adjusted – come on later turn off earlier – saving energy consumption and money
  • 9. Research • A few off the shelf products • Developing own to reduce long term costs, gain Unique Selling Point and tailor to our and customer needs. Points to Note: – Initial significant higher costs – Challenging – time consuming – Rewarding knowledge – Correct decision in the medium to long term
  • 10. Brainstorm • Brainstorming led to the following devices: • Server – Store, View and Process data • Remote Hub – Collate data, send to sever • Sensors – Acquire environmental data • Actuators – Remotely switch devices on/off
  • 11. Why • Proven Track record • Continual development • Scalable, Flexible, Reliable • Professional & community support • Our previous experience ZABBIX ?
  • 12. Pi-Fi Hub • Raspberry Pi model B v2 • Zabbix 2.x Proxy & Agent • 12v or Solar Power • Encrypted Serial RF up to 2km* Pi-Fi Hub www.mvdigital.co.uk
  • 13. Sensor - PiFiMon • 3.3v, solar or 2 year lithium bat* • Encrypted Serial RF up to 2km* • temperature, humidity, light • tilt, vibration, contact • analog and digital reading etc. Sleep/Active/Sleep profile PiMon www.mvdigital.co.uk
  • 14. Actuator - PiFiKontrol • 5v or Solar • Switch 12v power • Encrypted Serial RF up to 2km* • Awake/Passive profile www.mvdigital.co.uk Pi-FiKon
  • 17. Monitoring • During the journey it became apparent that Zabbix monitoring would be in three areas: – Research and design – Infrastructure – Sensors & Actuators • 30 mins to briefly discuss each one • One challenge from each and how we are currently tackling/overcoming them.
  • 20. R & D Example • To aid R & D we needed to record various operational events including: • Receiving values from sensors (PiMon) • Sending commands to actuators (PiKontrol) • Simple reliability test example: – Send switch OFF command – TEST : Successful Coms or/and command execution
  • 21. R & D - Actuator 1. Switch OFF command sent Zabbix sender – command sent – count key = sendOFF 2. ACK as Expected - yes or no? Zabbix sender – expACK = yes – count key= expACKyes Zabbix sender – expACK = no – count key = expACKno Aim for and expect sendOFF count = expACKyes count = COMMS AND STATUS APPEARS OK
  • 22. R & D - Actuator Traceback (most recent call last): File "writeSERIALnewD.py", line 120, in <module> Ser.write(ans[0:9] + "O") NameError: name 'Ser' is not defined
  • 24. Infrastructure Example - OpenVPN ZABBIX Agent ZABBIX Server Dedicated Server running OpenVZ Containers OpenVPN Use ObservIT OpenVPN setup for example of how we monitor parts of the virtual infrastructure. 3G / ADSL Links ZABBIX Agent Remote Site
  • 25. OpenVPN • Separate Templates for Client, Server & Overall • Parse Log Files for keywords –”reset” etc • Scripts – ps aux – extract – RSS & VSZ • Zabbix Sender • Telnet! – OpenVPN Management Interface – Use Comman Names (CN) and commands such as “status”
  • 26. OpenVPN – Challenge 1 Many Physical Hosts OpenVPN Server One Zabbix Agent ZABBIX Agent ZABBIX Server Many Physical Hosts to One Agent to Many Hosts to Many Templates Host 1 Host 2 Host 3 One Zabbix Server Client Template VPN Server Server Template OpenVPN Template OpenVZ Containers
  • 27. OpenVPN – Challenge 1 Server Template ClientTemplate Double the number of items for needed values https://www.zabbix.com/forum/showthread.php?t=42265
  • 28. OpenVPN – Challenge 1 Pass a list of clients (denoted as numbers) that we want values for rather than one pass per client. Back to a one to many situation A More suitable Solution:
  • 31. Actuator - Serial RF Command aAVxxxxxxON Unique PiKon Device ID Actuator/Switch Command ON or OFF
  • 32. Actuators - PiKon • Agent on PiFiHub – Remote Command Script – allowing the sending of serial RF actuator/switch command to PiKon - on/off of CONNECTED host – Can be automated if no response in 5mins etc the send SMS etc to reboot.
  • 33. Challenge 2 • Each site may use many and different PiKon device ids in commands. • To reduce duplication we wanted to reuse actuator switch script by passing appropriate device id host level macro. • Client 1 Example: – {$DEVID} = AA – /externalscripts/writeSERIAL.py {DEVID} ON
  • 34. Challenge 2 The link for macro is the hostname /externalscripts/writeSERIAL.py {DEVID} ON Pi-Fikon: AA
  • 35. Challenge 2 • At present it appears that the passing of host level macros to the script is not possible. • HOWEVER… all is not lost… Look what Zabbix 2.2 will do: “Starting with Zabbix 2.2, user macros are supported in script commands.” • https://www.zabbix.com/documentation/2.2/manual/web_inte rface/frontend_sections/administration/scripts
  • 36. Challenge 2 • At present we store (in a text file) the unique site commands at the PiFiHub (Zabbix Agent) and have “standard” script commands with parameters Example: Script/Remote Command Line Number Line Content externalscripts/writeSERIAL.py 1 ON 1 AA externalscripts/writeSERIAL.py 1 OFF 1 AA externalscripts/writeSERIAL.py 3 ON 3 AB externalscripts/writeSERIAL.py 4 OFF 4 Etc…. • Issue: All scripts available for all host group – Which One to pick etc.
  • 37. Sensor - Serial RF Value aAVTMPA23.50 Unique Device ID Zabbix Key Value Type Sensor Number
  • 39. Sensors - PiMon • PiMon wakes up at programmed intervals and sends back values to PiFiHub • Script on PiFiHub reads every second Serial Coms and parses for keys & values • Zabbix Sender sends keys and values back to the server.
  • 40. Challenge 3 • Wanted to use host macros for: – Device ID – Type – Sensor • Then apply to PiMon/sensor template as keys for zabbix trapper items. • However: “user macros (variables) are supported in item key parameters, not as replacement for item keys themselves” https://www.zabbix.com/forum/showthread.php?t=42239&highlight=macros+keys
  • 41. Challenge 3 • In this instance we didn`t look for a workaround as time was pressing so we added each item individually.
  • 44. Future Paths • Research API Wishlist • Macros as keys
  • 45. Speak Later • If you need to speak to me after I look like this:
  • 46. References • Bolton, P. (2010) Energy price rises and fuel poverty [Internet]. House of Commons Library Research. Available from: <http://www.parliament.uk/documents/commons/lib/research/key_issues/Key%20Issues%20Ene rgy%20price%20rises%20and%20fuel%20poverty.pdf> [Accessed 3rd June 2012]. • http://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management- interface.html • http://blog.zabbix.com/multiple-servers-for-active-agent-sure/858/ • https://www.zabbix.com/documentation/2.0/manual/config/macros/usermacros • https://www.zabbix.com/documentation/2.2/manual/web_interface/frontend_sections/administrat ion/scripts