Here you have some documentation which you can use to check some parameters(network, mounts, disk space):
proc file system
[url=https://www.centos.org/docs/5/html/5.1/Deployment_Guide/ch-proc.htmlhttps://www.centos.org/docs/5/html/5.1/Deployment_Guide/ch-proc.html][/url]
Example of checking memory usage:
Example of checking how many and what are the names of files on '/home/ftp/':
proc file system
[url=https://www.centos.org/docs/5/html/5.1/Deployment_Guide/ch-proc.htmlhttps://www.centos.org/docs/5/html/5.1/Deployment_Guide/ch-proc.html][/url]
Example of checking memory usage:
Code:
f = assert (io.popen("cat /proc/meminfo"))
response = {}
for line in f:lines() do
table.insert(response, line)
end -- for loop
f:close()
log(response)
Example of checking how many and what are the names of files on '/home/ftp/':
Code:
f = assert (io.popen ("ls /home/apps"))
response = {}
for line in f:lines() do
table.insert(response, line)
end -- for loop
f:close()
log('There are ' .. #response .. ' files on the server.',response)