cat /root/bin/countOpenFilesUser-username.sh
#!/bin/bash
mydate=`date`
num=`lsof -u username |wc -l`
echo "$mydate number of openfiles user username: $num"


#cron entry:
#openfile monitoring
*/5 * * * * /root/bin/countOpenFilesUser-username.sh >>/tmp/checkmk-username-open-files.log 2>/dev/null

computer2know :: thank you for your visit :: have a nice day :: © 2024