Could anyone help me with shell script witch is analysing errors on server
dimitar.dk
0
Newbie Poster
Recommended Answers
Jump to PostWell the first question is what errors are you trying to analyze (httpd, login, email, etc.)?
Then what do you want to look for and what do you want the script to do with errors it finds (email them to you, post to a file, etc.)?
Jump to PostThere are already logs for httpd (Apache) for both successful access and errors. Normally they are kept in the /var/log/httpd directory but this can be changed in your httpd.conf file.
<VirtualHost 10.1.2.3> ServerAdmin webmaster@host.foo.com DocumentRoot /www/docs/host.foo.com ServerName host.foo.com ErrorLog logs/host.foo.com-error_log TransferLog logs/host.foo.com-access_log </VirtualHost>
I use separate sets …
Jump to Postit depends on what errors you are looking for. If there are 1000s of errors, are you going to send all 1000 ++ errors to your email?? you have to describe clearly your specs.
All 9 Replies
rch1231
169
Posting Shark
dimitar.dk
0
Newbie Poster
rch1231
169
Posting Shark
dimitar.dk
0
Newbie Poster
ghostdog74
57
Junior Poster
dimitar.dk
0
Newbie Poster
JeoSaurus
32
Posting Whiz in Training
dimitar.dk
0
Newbie Poster
JeoSaurus
32
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.