Home Directory Addons Notifications Lametric Clock Notification

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Lametric Clock Notification

Rating
0 votes
Favoured:
0
Current Version
1
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Hits
764
Files:
FileDescription
notify-lametric.zipHost and Service bash scripts.

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

A simple bash script to send alerts to a Lametric clock.
*Requires IP address of clock (found in app) and GUID from the developer.lametric.com site. This functions locally only.
Note: Requires IP address of clock (found in app) and GUID from the developer.lametric.com site.

This functions locally only.

Place GUID and IP's of clocks in /opt/clocks and make sure it is readable by nagios.
- touch /opt/clocks
- chown nagios.nagios /opt/clocks
- chmod g+rw /opt/clocks
Unzip notify-lametric and place files in your nagios scripts folder.

Example of /opt/clocks file:
192.168.0.2 172636176226172612736fgf71612736asgd8671g28d67g8172ge8172g38e7
192.168.0.3 hh38uy1o98yu9128379879d8a7934h1o39480a9sjdp09qj20349j12093jhjh091
192.168.0.4 1lkalkhjaksjhdlkjhgdlfag3l389hlif7ehlfih3lifuhali437hrliahklajshdfhjkjh3hk2

Notification Example:
Service
/nagios/script/location/notify-service-clock "DivisionMini" "CPU" "Usage: 25%" OK
/nagios/script/location/notify-service-clock "DivisionMini" "CPU" "Usage: 65%" WARNING
/nagios/script/location/notify-service-clock "DivisionMini" "CPU" "Usage: 95%" CRITICAL
/nagios/script/location/notify-service-clock "DivisionMini" "CPU" "Usage: ??" UNKNOWN

Host
/nagios/script/location/notify-host-clock "DivisionMini" DOWN
/nagios/script/location/notify-host-clock "DivisionMini" UNKNOWN
/nagios/script/location/notify-host-clock "DivisionMini" UP