# checkmk

> check_MK is a library to monitor your application internally from the server monitoring checkmk server.

Latest version **0.3.2** (published 2022-01-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install checkmk
pnpm add checkmk
yarn add checkmk
bun add checkmk
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2022-01-21 |
| First published | 2020-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alfredo Roman Dominguez |
| Maintainers | gurunier |
| Keywords | checkmk, agent, check_mk, check_mk |

## Links

- npm: https://www.npmjs.com/package/checkmk
- Repository: https://github.com/oztar/node_checkmk
- Homepage: https://github.com/oztar/node_checkmk#readme
- Issues: https://github.com/oztar/node_checkmk/issues
- npm.io page: https://npm.io/package/checkmk

## Recent versions

- 0.3.2 (latest) — 2022-01-21
- 0.3.0 — 2020-12-06
- 0.2.4 — 2020-06-02
- 0.1.3 — 2020-04-01
- 0.1.2 — 2020-03-31
- 0.1.1 — 2020-03-31
- 0.1.0 — 2020-03-31

## README

## Check MK
check_MK is a library to monitor your application internally from the server
 monitoring checkmk server.

By default the library generates two services:
* check_ml
* status

Using function "addService" you can create more services.
see structure counter in checkmk official https://checkmk.com/cms_localchecks.html

Once the library is assembled, adding a new host in monitoring checkmk server.

## Install

...
npm install checkmk
...


## Usage example
let check = require('checkMK');

let options = {
    host:  '10.10.1.20',
    port: 6556,
    encoding : 'utf8',
    exclusive: true
}

check.createServer(options);

check.addService('test',{
    name: 'test',
    ok: 'Test- Test is OK',
    warning:  'O no, i have a problem',
    critical: ' Faltal error ',
    counter: {	
	counter1 : '9;2;3;0;10',
	counter2 : '1;2;7',
	othername : 1
    }
    
})

...
check.updateService('test',{
	counter1 : 1,
	counter2 : 2,
	othername : 0
    },' value 1 for counter1 and 2 in counter 2 ( other 0)');
...

---
_Source: https://npm.io/package/checkmk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
