Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 model
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 cacti.js
Octocat-spinner-32 config.tmp.js
Octocat-spinner-32 package.json
README.md

cacti-host-updown-gmail-notify

This is a very very very simple NodeJS code, for myself use; if u like, just use it!

What for

  • Checking cacti database, monitor host.status change; default check interval is 5 mins (can be change on config.js)
  • Send email through smtp when cacti monitor host is down.

When will send alarm email

  • One time alarm, server status not "HOST_UP"
  • One time alarm, when server go back to "HOST_UP"
  • One time alarm, when server status change

Install

$ cd /usr/share/cacti/node_modules/cacti-host-updown
$ cp config.tmp.js config.js
$ vim config.js
$ npm install
$ node cacti
Something went wrong with that request. Please try again.