find ****** -type f -exec sha256sum {} ; > checksums.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# OpenBSD Memory Plugin for Nagios | |
# | |
# The original verion of ths cscript was found here: | |
# https://exchange.nagios.org/directory/Plugins/Operating-Systems/BSD/OpenBSD/OpenBSD-Memory/details | |
# | |
# Updated the way the memory values are collected since top now outputs values in gigabytes | |
# | |
# Copyright 2008 - [email protected] |
Tested on an OpenBSD system using OpenVPN LDAP authentication:
sed -n '/Virtual/,/GLOBAL/{//!p;}' /var/log/openvpn-status.log | awk -F'[,:]' '{print $3}' | while read -r r; do echo -n $r; fgrep $r /var/log/openvpn | fgrep -m 1 username | awk -F\' '{ print " - " $2}' ; done
To retrieve the Ubuntu screen sharing (VNC) password:
gsettings get org.gnome.Vino vnc-password
Note: this returns a Base64 encoded value