Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SUN Solaris 5.8 - need a script to monitor system remotely

Posted on 2006-05-31
8
Medium Priority
?
312 Views
Last Modified: 2013-12-21
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
0
Comment
Question by:bkreynolds48
  • 4
  • 3
8 Comments
 
LVL 14

Accepted Solution

by:
arthurjb earned 1000 total points
ID: 16799455
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
 
LVL 1

Author Comment

by:bkreynolds48
ID: 16799592
I tried downloading bb but when I try to untar it I get a checksum error.
0
 
LVL 1

Author Comment

by:bkreynolds48
ID: 16800237
Is there a way to do this monitoring from a unix script?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 14

Expert Comment

by:arthurjb
ID: 16801597
When I go to download it it is gziped, so you must use gunzip then tar.

0
 
LVL 1

Author Comment

by:bkreynolds48
ID: 16801613
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
 
LVL 14

Expert Comment

by:arthurjb
ID: 16803898
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
 
LVL 1

Author Comment

by:bkreynolds48
ID: 16806734
I do not have an http program on my unix systems so do not know how to set up bb without that.
0
 

Expert Comment

by:Grass-hopper
ID: 16833671
"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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month20 days, 19 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question