1748156 Members
3826 Online
108758 Solutions
New Discussion юеВ

system checks

 
Ravinder Singh Gill
Regular Advisor

system checks

What regular checks should I do on servers ie on a daily basis.
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: system checks

Wide open question.

1) Quick look through /var/adm/syslog.log for strange stuff.
2) dmesg for hardware issues.
3) bdf for filesysems getting full.

I recommend you write a script to scan these results and send you a daily email report. I had over 100 tools for various tasks in this area. Its based on what your server does.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: system checks

You need to check your file systems (bdf), your log files for unusual events (syslog, mail log, diagnostics, last, lastb), your hardware itself for warning lights, etc.

That's a pretty simplistic list, but it's a start.


Pete

Pete
Pat Lieberg
Valued Contributor

Re: system checks

If your server is a DB or application server, you should work with whomever supports the DB or app and find out if there are specific things they would like or need monitored (e.g. filesystems, memory, daemons). Sometimes, there is no one but you and in that case, you can check with the company that made the application.
Kent Ostby
Honored Contributor

Re: system checks

uptime and check your "load average".

Check root email for messages from cron about possible failures.

bdf to check disk usage

look through dmesg and syslog

The other way to go is to run EMS and have it monitor a lot of your resources for you and send you an email if something is out of line.

Best regards,

Oz
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
MarkSyder
Honored Contributor

Re: system checks

/var/adm/btmp
/var/adm/sulog
/var/adm/wtmp
/var/adm/cron/log
/var/adm/lp/log
/var/adm/syslog/syslog.log
/var/adm/syslog/mail.log

Check they don't get too large (trim in SAM) and check the contents of btmp and syslog.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Ravinder Singh Gill
Regular Advisor

Re: system checks

How would I know if the disks were failing/about to fail, before they actually failed? What should I be looking for and where?
Pedro Cirne
Esteemed Contributor

Re: system checks

Hi,

HW is monitored by EMS, usually a mail is sent to root with alamars and they are also registered in /var/adm/syslog/syslog.log

You may configure EMS using SAM.

Enjoy :)

Pedro
Torsten.
Acclaimed Contributor

Re: system checks

hardware malfunction will be recognized by the diagnostic and event monitoring system. check, if root got mails from ems.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: system checks

Install an utility like cfg2html:

http://come.to/cfg2html

or sysinfo (attached).

Run from cron:

# Run the sysinfo script
0 6 1 * * /usr/local/sysinfo/sysinfo -a -b -o /usr/tmp/`hostname`.sysinfo >/tmp/sysinfo.cron 2>&1
#
#Run the cfg2html scripts
35 6 1 * * cd /opt/cfg2html ; /opt/cfg2html/cfg2html_hpux.sh >/dev/null 2>&1
#



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.