Category Archives: Monitoring

Few Commands to Monitor Apache Connections

#Print connections to Apache and number of connections per IP # #Quick Count# netstat -anpt|grep httpd | wc -l ( All connections¬† count ) netstat -anpt|grep httpd|grep ESTABLISHED | wc -l ( Established count only ) #Detailed report# #List all connectiosn owned by Apache ( Dead connections as well )\ netstat -anpt|grep httpd ¬†#Now we …

Read more

Alert when file is modified in Linux

This is one of the script I used many years ago. There are many other methods now, but just thought of adding it. I had a server where few files were modified by malware. I applied all security measures and in order to alert me in case file is modified again, I created below shell …

Read more