daimh / daimon

the simplest monitoring tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Daimon, the simplest but powerful and flexible monitoring tool

Tired of running commands every month, day, hour, or minute to check your system's health? Or are you debugging a random system failure, which is always the hardest? Daimon is for you. We have been using it to monitor the IT infrastructure at the Michigan Neuroscience Institute, University of Michigan, for decades.

"Daimon" runs a sub-command specified in crontab, compares its output with the standard file(s) under the TASK directory in var/, records the difference, logs it with a timestamp, marks known critical alerts, and sends out email alerts if specified by the user in /etc/daimon.conf.

"dm-check" prints a summary report or checks for abnormal tasks. Users can choose to confirm whether the status is abnormal or a new normal.

"dm-linux" prints storage usage, CPU load percentage, internal temperature, drive SMART attributes, file changes, directory permissions, LSI RAID, and Areca RAID. It also supports custom commands.

"dm-ups" prints UPS status; it supports two APC UPS models. Feel free to add new models and send me a pull request.

"dm-scp" copies a local file or directory to mutiple nodes in parallel.

"dm-ssh" is a unique parallel SSH/SCP tool based on GNU parallel. It merges the output of all SSH commands as much as possible to save your precious eyes and fingers, as well as your useless mouse.

Installation

cd /opt
git clone https://github.com/daimh/daimon.git
ln -s /opt/daimon/etc/daimon.conf /etc

Then check out file etc/crontab.example, and add /opt/daimon/bin to your PATH

Usage

dm-linux localhost -d 99P
dm-linux localhost -d 1P:/
daimon -t test/localhost -- dm-linux localhost -d 99P
daimon -t test/localhost -- dm-linux localhost -d 1P:/
dm-check -ar	#print summary report for all
dm-check -a		#check abnormal task

Help

use '-h' with each command

Contribute

Contributions are always welcome!

Acknowledgment

Fan Meng, Ph.D., Research Associate Professor, Psychiatry, UMICH

Ruth Freedman, MPH, former administrator of MNI, UMICH

Julie Gales, Administrative Director, MNI, UMICH

Andy Lin, MNI, UMICH

Huda Akil, Ph.D., Director of MNI, UMICH

Stanley J. Watson, M.D., Ph.D., Director of MNI, UMICH

Prashanth Thinakaran

Developer

Manhong Dai

License

MIT License

Copyright © 2002-2023 University of Michigan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

the simplest monitoring tool


Languages

Language:Python 62.1%Language:Shell 37.9%