1.2.1 • Published 4 years ago

monitoringcli v1.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Description

monitor cron success / fail and duration. Data is sent to my custom server.

install

$> npm -g install monitoringcli
$> which monitoringcli 
/usr/local/bin/monitoringcli	

Usage

create a checker on the monitoring server. It will give u a CHECKERID.

After that you can call this command to get & push a report

monitoringcli user:password CHECKERID cmd
monitoringcli XXX 16 ls -la

To install in crontab, put something like this :

* * * * * (cd /home/project && /usr/local/bin/monitoringcli XXX 56 ls -la) > /home/project/log/cron.log 2>&1

the special cmd : checks

monitoringcli XXX 16 checks

This command will check if there is :

  • a forgotten crontab.
  • a huge postfix queue.
  • an update to do