Installations
npm install elasticman
Releases
Unable to fetch releases
Developer
gurbaj5124871
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
8.11.1
NPM Version
5.6.0
Statistics
14 Commits
7 Branches
1 Contributors
Updated on 08 May 2021
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
1,002
Last day
200%
3
Compared to previous day
Last week
-57.1%
6
Compared to previous week
Last month
300%
28
Compared to previous month
Last year
35.1%
177
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Elasticman: An elasticsearch monitoring and alerting tool
The elastiman constantly monitors the your elasticsearch cluster's health by checking the following:
-
It checks the overall clusters health as if any of the node left the cluster or any shard is not avaliable.
-
It checks over all the nodes present in the cluster following parameters:
• CPU usage Alert
• Memory usage alert
• Disk space usage for all mounts on perticular node
• Swap Memory alert
• Open File Descriptors alert
• Heap usage alert
Currenty Elasticman supports mail and slack integrations.
Usage:
Install the package npm:
1npm i elasticman -g
Then, create a file called config.js
and paste the following inside it:
1module.exports = { 2 // Elasticsearch Cluster Nodes uri's 3 nodes: [ 4 'http://localhost:9200' 5 ], 6 // Number of seconds to wait in between health checks 7 interval: 30, 8 // Alerting CPU usage in percent 9 maxCpuUsage: 50, 10 // Cutoff Nodes memory in percentage 11 maxAvailableMemoryInUse: 60, 12 // Alerting data space in percentage (will calculate for all the mount storages) 13 maxDataSpaceInUse: 80, 14 // alerting OS swap memory in percentage 15 maxSwapMemory: 50, 16 // alerting open file descriptors in percentage 17 maxOpenFileDescriptors: 80, 18 // Alerting jvm heap size in percentage 19 maxHeapUsed: 80, 20 // SMTP configuration for sending alert e-mails (delete to disable) 21 smtp: { 22 host: 'smtp.gmail.com', 23 port: 465, 24 secure: true, 25 auth: { 26 user: 'username@gmail.com', 27 pass: 'password' 28 }, 29 address: 'username@gmail.com' 30 }, 31 // Slack configuration for sending alert messages through webhook (delete to disable) 32 slack: { 33 channelUrl: 'https://hooks.slack.com/services/xxx/xxx/xxx', 34 notifyMembers: ['gurbaj', 'singh'] // enter slack user names here 35 } 36};
Modify the configuration file according to your need:
• smtp
(optional) - the SMTP e-mail configuration for sending alerts (using Gmail, AWS SES, etc)
• slack
(optional) - the Slack webhook configuration for sending alert messages
Test the SMTP configuration by running:
1elasticman --test-email
Test the Slack configuration by running:
1elasticman --test-slack
Finally run elasticman
from the same directory as your config.js
or you can also provide the confing file's path by running the command elasticman -c <path to the config file>
If you want to keep your process running uninterrupted (recommended), it is advisable to use a process manager like PM2 or forever.
License
Apache 2.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 10 are checked with a SAST tool
Reason
28 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25
- Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99
- Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x
- Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q
- Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4
- Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g
- Warn: Project is vulnerable to: GHSA-56x4-j7p9-fcf9
- Warn: Project is vulnerable to: GHSA-v78c-4p63-2j6c
- Warn: Project is vulnerable to: GHSA-48ww-j4fc-435p
- Warn: Project is vulnerable to: GHSA-hwqf-gcqm-7353
- Warn: Project is vulnerable to: GHSA-9h6g-pr28-7cqp
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
1.7
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More