The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
grep unix.com with google



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-24-2009
Registered User
 

Join Date: Oct 2009
Posts: 27
Create some settings

Hi,

I've installed mysql and apache servers and made it run in my company's production server. Now what I want to be done is for a notification to be sent to my mail when the servers (mysql and apache) are stopped and not running.

Please help me on doing this.

Tqs.
  #2 (permalink)  
Old 11-24-2009
chakrapani's Avatar
Registered User
 

Join Date: Sep 2009
Location: Asia
Posts: 87
ok here is the way:

1. for Mysql:
VAR=$(mysql -BNe "select 1;" -u username -p pasword)
And check if $VAR contains 1 or not

2. For apache
VAR=$(lynx -dump "http://127.0.0.1" )
and check if VAR contains data or not. Change 127.0.0.1 to other IP if you apache is not binding all the ports.

You need to have a script which will check these all the time.

Also you can checkout naigios or Big Brother or some software which will monitor for you .
  #3 (permalink)  
Old 12-04-2009
Registered User
 

Join Date: Oct 2009
Posts: 27
I followed the user guide instructions of Nagios installation and configuration.

All the steps till compiling and installing nagios plugins works, but when I want to start nagios, with the command :

[root@localhost~]#chkconfig --add nagios

I am returned with an error :-

error reading information on service nagios: No such file or directory

Pls help
  #4 (permalink)  
Old 12-04-2009
Registered User
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 618
have you followed the steps specified here: Nagios 3.0 Jumpstart Guide For Linux – Overview, Installation and Configuration
  #5 (permalink)  
Old 12-04-2009
Registered User
 

Join Date: Oct 2009
Posts: 27
Yeah I followed the exact steps, but i couldn't start nagios with the command I mentioned in my previous post.

Pls help me.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ip settings guguli Linux 1 10-18-2008 04:32 AM
DNS settings bad-ash SUN Solaris 8 09-30-2008 08:52 AM
Help with IBM 550 and HMC settings System Shock UNIX for Dummies Questions & Answers 0 06-26-2007 09:05 AM
LAN settings nickk Linux 1 02-11-2006 08:36 AM
How do I create desktop icons for the shell programs I create??? TRUEST UNIX Desktop for Dummies Questions & Answers 7 05-15-2002 12:40 PM



All times are GMT -4. The time now is 02:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0