04-14-2023, 10:11 PM
I added another div on the right for system information. Please redownload the archive to see it. Right now I just pasted the result of the script there, it's not dynamic.
I use a small script to generate that information and I think it would be usefull if you could include it with php exec or something. I didn't want to run the script from the template file.
<code>
#!/bin/bash
echo ""
echo "=========================================================================="
echo "Memory: used free (MB)"
free -m | grep buffers/ca | cut -d":" -f2
echo "--------------------------------------------------------------------------"
df -h -t ext3
echo "--------------------------------------------------------------------------"
uptime
echo -n " Failed auth attempts in the log: "
cat /var/log/auth.log | grep "authentication failure" | wc -l
echo "=========================================================================="
echo ""
</code>
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
I use a small script to generate that information and I think it would be usefull if you could include it with php exec or something. I didn't want to run the script from the template file.
<code>
#!/bin/bash
echo ""
echo "=========================================================================="
echo "Memory: used free (MB)"
free -m | grep buffers/ca | cut -d":" -f2
echo "--------------------------------------------------------------------------"
df -h -t ext3
echo "--------------------------------------------------------------------------"
uptime
echo -n " Failed auth attempts in the log: "
cat /var/log/auth.log | grep "authentication failure" | wc -l
echo "=========================================================================="
echo ""
</code>
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.