SUN Solaris 5.8 - need a script to monitor system remotely

I need to monitor my production system from my dev system - both solaris - to ensure the production system and oracle database are up and running - if they are down I need to get an email.  
Is there also a way to monitor for system errors?
Don't have the money for tools so am using scripts for everything.  
Would like the script to run from cron.

Thanks
LVL 1
bkreynolds48Asked:
Who is Participating?
 
arthurjbConnect With a Mentor Commented:
http://www.bb4.org/

A little more involved than a script, but it allows you to monitor individual processes from a web page and sends email if a service stops.

I like it alot for installations where there is no funding, since it is free.

If also allows you to do some predective monitoring, such as emailing you if a disk goes above a preset limit, allowing you to catch it before it fills up and maybe crashes the system.

It can be used to monitor one or many systems in most os languages...
0
 
bkreynolds48Author Commented:
I tried downloading bb but when I try to untar it I get a checksum error.
0
 
bkreynolds48Author Commented:
Is there a way to do this monitoring from a unix script?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
arthurjbCommented:
When I go to download it it is gziped, so you must use gunzip then tar.

0
 
bkreynolds48Author Commented:
Yes I figured that out a bit ago.  I still would just like a unix shell script to run to check on things.

Thanks
0
 
arthurjbCommented:
Maybe someone who is good at scripting will help, but why reinvent the wheel.

With all the things you want to do, monitor oracle, check for system errors, it is certainly going to be a major script, not just a few simple lines.

The folks who have contributed to bb have got most of the bugs out and it does everything you need.  I have mine set up to email my cellphone on erros...
0
 
bkreynolds48Author Commented:
I do not have an http program on my unix systems so do not know how to set up bb without that.
0
 
Grass-hopperCommented:
"I like it alot for installations where there is no funding, since it is free. "

I'm not sure if you are referring only for the installation but AFAIK its only the 30 day trial thats free - then you gotta pay for a server license and client licenses. (You can re-install it every 30 days right enough and just copy your backed up config files over, but obviously thats just wrong and am in no way endorsing doing this!)

With my experience with Big brother - out of the box, yes it will email if a service goes down/up such as ftp, telnet, http etc, but it only checks that these services are actually running - not for oracle instances/processes etc. You can however add plugins to support such things but they will prob need some tweaking to suit your needs. Such plugins are located at http://www.deadcat.net/browse.php.

Something like http://www.deadcat.net/viewfile.php?fileid=849 may be what your after.

It certainly helps us a lot in terms of notifications via email (you'll need a mail relay server as well and sendmail setup on the Big Brother web server to receive emails) and can also help with monitoring system errors as it emails for alerts in the /var/adm/messages file - exactly what your after by the sounds of it.

Obviously, as arthurjb noted, you would have to mess about with your thresholds/notifications etc to get it working the way you want, but in my opinion, it is well worth it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.