Thanks Alex, this is the final syntax I came up with after utilizing the wc command.
#!/bin/bash
count=$(awk -F: '{if ($3 < 1) print $0}' < /etc/passwd | wc -l)
if [ $count -lt 2 ] ; then
echo "OK"
exit 0
elif [ $count=2 ] ; then
echo "CRITICAL - Multiple Superusers"
exit 2
fi
done
Stefano, in regards to your question the purpose of this is purely for security. My systems only have one superuser so anything thereafter is reason for an alert.
Thanks.