check-lastlog

command module
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 10 Imported by: 0

README

check-lastlog

check recently unlogged in users

usage

$ ./check-lastlog -h 
Usage:
  check-lastlog [OPTIONS]

Application Options:
      --before=           [Deprecated] Check for users whose login is older than DAYS
  -w, --warning=          warning if users whose login is older than DAYS (default: 60)
  -c, --critical=         critical if users whose login is older than DAYS (default: 85)
      --min-uid=          min uid to check lastlog (default: 500)
      --max-uid=          max uid to check lastlog (default: 60000)
      --white-user-names= comma separeted user names that white
  -v, --version           Show version

Help Options:
  -h, --help              Show this help message

sample

$ ./check-lastlog --white-user-names boofy,pages
CRITICAL: Found users who have not logged in recently: testuser(129 days), sampleuser(106 days)
$ echo $?
2

Install

$ mkr plugin install kazeburo/check-lastlog

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL