Create the following scripts in a file and call the file in crontab at desired intervals
echo “……………………. SERVER MONITORING REPORT ……………………..” > /scripts/report.txt
echo “APACHE SERVER:-” >> /scripts/report.txt
/sbin/service httpd status >> /scripts/report.txt
echo “MYSQL SERVER:-” >> /scripts/report.txt
/sbin/service mysqld status >> /scripts/report.txt
echo “SSH/SFTP:-” >> /scripts/report.txt
/sbin/service sshd status >> /scripts/report.txt
echo “SENDMAIL:-” >> /scripts/report.txt
/etc/init.d/sendmail status [...]
Archive for the ‘crontab’ Category
linux server status monitoring simple script
December 17th, 2010
Aneesh Show all cron jobs in linux
November 27th, 2009
Aneesh If you need to show all cron tasks in a linux machine go to /var/spool/cron and run the following command
cat * > crones.txt
Now , you can find all cron details in the above file (crones.txt)



Posted in

