Month: August 2013

  • Check if latest Kernel is running on Ubuntu, with Zabbix

    First a created a bash script that return 0 – error, 1 – OK, 2 – Old Kernel is running. The script is called /usr/local/bin/last-kernel-check.sh #!/bin/bash name=”`uname -a | cut -d ‘ ‘ -f3`” new=”0″ for files in `ls /boot/config* | xargs -n 1 basename | cut -d ‘-‘ -f2-` do if [ “$files” == “$name”…