Operating System - Linux
1753894 Members
7509 Online
108809 Solutions
New Discussion

Linux Remote Server Disk, Memory, Kernel Monitoring Scripting

 
raqeeb
Occasional Contributor

Linux Remote Server Disk, Memory, Kernel Monitoring Scripting

Good day

I have 10+ machines on a network.
Installed with RHEL 5 operating system.

I am new to scripting ....Can any one help me on writing a script to check on all the machines for
1) Memory size
2) Diskspace
3) Dropped packets on eth0
4) Disk I/O errors
5) Kernel Versions
6) Count of mount points on each node
7) Segfault errors

if the machine passes above steps should report that the machine is OK
If any error should alert for system check or failed.


your co-opertion will be highly apprecieated.


pleasee advise
1 REPLY 1
MarkSeger
Frequent Advisor

Re: Linux Remote Server Disk, Memory, Kernel Monitoring Scripting

Just about everything you're looking for is in /proc and a lot of that with collectl. While you could always run collectl from a script it might be easier to just grab a bunch of data from the same /proc structures. http://collectl.sourceforge.net/InputFiles.htmlwill show you where collectl gets its data from. As far as other things you can get the kernel version from 'uname' and the mount poins from 'mounts'. I'm note sure where you could get segfaults, but maybe someone else knows.
-mark