Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

34
Newb to Nagios (Now What Shall I Do With It???) Sally Reich Beekeeper And Doer of Other Stuff [email protected]

description

Sally Reich's presentation on From Newb to Nagios in 90 Days. The presentation was given during the Nagios World Conference North America held Oct 13th - Oct 16th, 2014 in Saint Paul, MN. For more information on the conference (including photos and videos), visit: http://go.nagios.com/conference

Transcript of Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Page 1: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Newb to Nagios(Now What Shall I Do With It???)

Sally ReichBeekeeper

AndDoer of Other Stuff

[email protected]

Page 2: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Introduction & Agenda• Who am I?

• A former IT professional• Left the IT world (not really my thing) to work more

with bees and other things, go back to school• I am not a programmer or sys admin or “Unix

geek”

• What is this all about?• How to go from nothing to Nagios• How can I apply this to a beehive?

• Why did you do this?• Funny you should ask…

Page 3: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Why Learn Nagios ?Just one of those things

• Came with Eric Loyd, my SO, to #NagiosCon12• He was presenting that year

• Presenting tomorrow @10:30: Nagios on AWS–Live Install & More!

• Met Ethan at reception, said • ‘Don’t know Nagios, just here to hang-out while Eric is at

conference.’• ‘Everyone here is so excited about it; maybe I should learn?’• Later, met Nagios enthusiasts who asked ‘why are you here?’ and

talk came up on monitoring a beehive

• Did not make it to #NagiosCon13

• Here I am at #NagiosCon14 with thoughts on:• A newb installing Nagios• How a beekeeper might use Nagios

Page 4: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Learning Nagios

• Eric became my sys admin• Got a CentOS VM from him• Started with Instant Nagios Starter by Michael Guthrie• Read it as complete newbie knowing

nothing• 384 highlights and notes• Notes show what could be added for a

total newb

Page 5: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Highlights & Notes Sample

Page 6: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Core

• Followed Guthrie’s book• Somewhat out of date for versions,

locations, etc.• SA had to help in spots

• Went to Nagios Core Quickstart from http://nagios.sourceforge.net/docs/3_0/quickstart.html

• Followed Fedora Quickstart• Had its own ‘learning opportunities’ for a

newb (level of expertise, assumptions about prior software, etc.)

Page 7: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Core

• Followed “Monitoring Publicly Available Services” Quickstart fromhttp://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html

• vi editor hard to use• Installed pico instead to edit config

files

• Added a host and HTTP service on that host – YAY!

Page 8: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

YAY! My first host and service check!

Page 9: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Easier Way???

• What about XI?

Page 10: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Nagios XI to the Rescue• ./fullinstall and it was installed!• Logged into web interface

• Used configuration wizard• Added host• Added http service (and others)

• Bam! And I’m monitoring here!!!

Page 11: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Nagios XI to the Rescue

• Added notifications• Uh-oh – I wasn’t emailed

notifications??• Oh, default is NOT to notify• Weird – wouldn’t default be to have

notifications enabled?

Page 12: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Some tips for a newb withouta Unix background

- wget often not installed in a base operating system yum install wget

- vi editor kinda hard, use pico yum install pico

- Use a virtual machine if possible and take snapshots after completing major milestones can go back to a previous snapshot if something gets messed up or you want to retry something

- ‘Getting started’ documentation contains info (download locations, version numbers, etc.) current at time of writing always start with latest info from Nagios.com

- Nagios Core comes default with a file called /usr/local/nagios/etc/localhost.cfg that can be used for all additions to the base configuration (for monitoring your hosts and services). Unless you want to, there is no need to add additional configuration files to the main configuration file

- Tired of configuring separate commands, services, hosts, contacts, and escalations for Nagios Core? It's time....INSTALL NAGIOS XI!!! one command installs it and free to use to monitor up to seven hosts, AWESOME for the small shop or hobbyist looking to learn it

- In XI, default notifications are DISABLED for the nagiosadmin go to “Configure,” “My Account Settings,” “Notification Preferences,” to enable

-No "check web server port" XI wizard use “TCP/UDP Port Monitoring Wizard" and select "HTTP" as service to monitor- Have a friend who can act as your SA? Use him/her!

-If you get stuck, ask someone for help! http://support.nagios.com/forum

Page 13: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

So Now What?

• So now I have an XI box AND I can monitor up to seven hosts for free!!!

• Ch. 1, 2nd paragraph of says “…you can use it to monitor virtually anything.” So…

• How can I use Nagios to monitor a beehive?• A thought experiment…

Page 14: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Most hobbyist beekeeperskeep bees for the honey

Page 15: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Collecting Nectar

David Cappaert, Michigan State University, Bugwood.org

Page 16: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Collecting Nectar

Suzanne DeJohn, http://www.gardeners.com/backyard-beekeeping/8529,default,pg.html

Page 17: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Storing Nectar

http://gardenplotter.com/rospo/blog/2007/06/bees-setting-up-house.html

Page 18: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Stored Nectar in honeycomb

http://v-fork-to-fork.blogspot.com/

Page 19: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Capped Nectar = HONEY!!!

Page 20: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Capped Nectar = HONEY!!!

Obvious thing to monitor: weight of the hive –how much honey is being stored?

Page 21: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

No Swarms!

2 honey supers and 2 brood chambers

Page 22: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

What Else?

• Outside the hive:• Temp, humidity, % sunlight, wind speed,

rainfall, pressure, power to fence, etc.

• Inside the hive:• Temp in multiple locations, water in the

bottom, humidity, sound level, continuity on the bottom, light levels, formic acid, etc.

• The hive itself:• Tip sensors, motion sensors, etc.

• Monitor the monitoring devices/sensors

Page 23: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Specifically:

• Nagios could send an alert when:• It’s cold for a long time – insulate hive• It’s hot for a long time – shade hive• There’s a hurricane/tornado/flood coming – batten down hive,

run!• “Climate” in hive is not correct (temp, humidity, etc) – try to fix it• Continuity on bottom board is broken or motion sensor is tripped

– check for mice, skunks, raccoons• There’s condensation on bottom board – ventilate• There’s light in hive – top blew off or was removed, get it back on• If sound is too high – intruders? Or too low – bees died?• Formic acid sensor triggers – ants in hive• Hive weight changes – time to add a honey super? Or bees left?• Fence has no electricity – see if bear got through, fix it• Tip sensors are triggered – ne’er-do-well tipped hive or bear got

at it

Page 24: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

There’s More to Possibly Monitor…

Varroa destructor

https://www.flickr.com/photos/sanmartin/5048103407/in/photostream/

Page 25: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Varroa destructor

http://www.clickonwales.org/2011/07/a-crisis-amongst-welsh-bees/

http://coronaapicultores.blogspot.com/2013/04/varroa-transmisor-de-patogenos.html

Page 26: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Threshold?

Page 27: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Hmmm….

What might a -ified hivelook like?

Page 28: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

NagioHive™

Temp Sensors

Tilt Sensors

Arduino

Light Sensor

Humidity Sensors

Scale

Data Pi

Pi

Sound Sensors

Webcam

Weather Station

Water Sensor Mouse Sensor

Formic Acid Sensors?

The interwebs

Happy beekeeper

Page 29: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

NagioHive Live?• It would be “sweet” to actually put together a

NagioHive!

• Kickstarter for sensors, scale, Arduinos, Raspberry Pis, peripherals, weatherproofing, outsourcing electrical and other help, etc. ?

• Created a Pinterest board listing possible equipment

Page 30: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Thanks for Listening!

Going from Newb to Nagios was pretty easy, especially if you have a SA to answer Qs! Still A LOT for me to learn…

Nagios XI made things so much easier! Still A LOT for me to learn…

Updating the quickstart guides as if a newbie were reading them might be nice (may not be necessary, but it would be nice)

Page 31: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Advice, Anyone?

If anyone has tips/advice for NagioHive,

please see me during the conference!

Page 32: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Check out:

Trevor McDonald - Support Tech @ Nagios Enterprises

Wednesday 11:30am – 12:20pm “Monitoring the Physical World With

Nagios and Arduino”

There are many things in the physical world you might want to monitor: room temperature, opened doors, motion, etc. While some solutions exist, they are generally either standalone closed-source systems, or they are limited in scope and extensibility. Arduino systems allow you to build your own solution that is customized your needs while maintaining complete control over the hardware and software, all at a fraction of the cost of other solutions. In this talk I will show a few examples of physical environment monitoring, reported passively to Nagios.

Page 33: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

Questions? Answers?

Want to know more aboutkeeping honeybees?

?

Page 34: Nagios Conference 2014 - Sally Reich - From Newb to Nagios in 90 Days

The EndSally Reich

NAGIOS [email protected]