2.1.0-mv • Published 7 years ago

ezios v2.1.0-mv

Weekly downloads
1
License
GPL-3.0+
Repository
github
Last release
7 years ago

MonJS

A monitoring wep application tool that leverages nagios-like tools and idioms. Unlike nagios-core, this tool has a full-featured web ui to dynamically configure hosts and services.

This tool might be useful to you if you require a simple service to monitor a small set of servers and services. This tool has not been performance tested for thousands of checkers.

init

# will create the default configuration file.
monjs init 

# write default config to /etc/monjs
monjs init -c /etc/monjs

# will start the application
monjs

# start application with different config
monjs -c /etc/monjs

# launch into background
monjs > monjs.log & disown

Make sure to edit the configuration file before use; the init command will indicate where it was saved.

Using

By default, the config has the program listen on port 9001.

When hitting the index page, you should be prompted for the api key, which was set in the config.

Hosts

Hosts are just simple documents with an alias (hostname), an address (your.domain.tld or some ip) and extra variables (you can put extra information your services can use to check the health of your host).

# example host
# note that extra_vars should be lowercase only
{
    "name": "alias",
    "address": "your.domain.tld",
    "extra_vars": {
        "service_pass": "some secret"        
    }
}

Variables in a host can be accessed via the "args" of a service. To access them, use \$VAR\$ or \$_VAR\$ for extra_vars:

$NAME$          - is replaced by the host's alias name
$ADDRESS$       - is replaced by the address of the host
$_SERVICE_PASS$ - gets the service_pass variable in extra_vars

Services

Services should Ideally be nagios compatible commands. Like hosts, they have an alias which is denoted by name. A service must be associated with only one, sigular host (future versions may allow for grouping common hosts). The service must also have a command; the command is just a path to an executable on the server or a command which can be found in monjs's configured process.env.PATH (see the config file). Interval is the frequency, in miliseconds, the command is executed.

In the web ui, args is just a string which is automatically split into an array. quoted strings will be converted to a singular argument. As stated in the Hosts section, you can access host variables using the \$VAR\$ or \$_VAR\$ syntax.

Limitations

All service changes will trigger a service to fire. This includes changing service variables, renaming the service's host's name, etc.

Atom/RSS Feeds

Currently MonJS does not offer to push failure notifications and likely will not in the future. In corporate Nagios deployments, I always use RSS feeds instead of emails or other active push services. This way users can choose to listen to the alerts instead of filtering the emails to the trash if they don't care.

Screenshots

Status Page

Host Modal

Service Modal

Services

Metrics

TODO

  • full-featured command line client.
  • logo?
2.1.0-mv

7 years ago

2.1.0

7 years ago

2.0.1-RC2

7 years ago

2.0.0-RC1

7 years ago

1.1.2-nofa

7 years ago

1.1.1

7 years ago

1.1.0-case

7 years ago

1.1.0-nfa

7 years ago

1.1.0-rd

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0-RC1

7 years ago

0.3.2

7 years ago

0.2.2-b1

7 years ago

0.2.2

7 years ago

0.2.1-pf

7 years ago

0.2.0

7 years ago

0.1.0-readme1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago