LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-13-2007, 12:46 PM   #1
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
Monitoring a server


Been looking around for monitoring software for my debian and redhat server but all i am really coming up with is these graphing system and they will not do i want something that will..

do all monitoring system for my server so that i can get an email or page(textmessage) every time a service goes down its reboots something goes really really wrong or anything else i can think of.

Can anyone recommend a system to me? Its just needs to check every few min.

Thanks
 
Old 03-13-2007, 01:37 PM   #2
roreilly
Member
 
Registered: Aug 2006
Location: Canada
Distribution: Debian, Slackware
Posts: 106

Rep: Reputation: 28
I would suggest taking a look at nagios.

Open Source, not terribly difficult to manage.

I think there are some pre-built vmware machines available, as well
as live-cd's.

R.
 
Old 03-13-2007, 02:01 PM   #3
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
I second the Nagios suggestion I've been using it for a couple of years and once you learn the config (which may take a little time) you'll have a monitoring solution that can be adjusted to just about any need.

http://nagios.org/
 
Old 03-14-2007, 04:57 AM   #4
justkeny2k
Member
 
Registered: Oct 2005
Posts: 34

Rep: Reputation: 15
I will choose opmanager
 
Old 03-15-2007, 12:28 PM   #5
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
am very happy wiht nagios quite quick and easy to setup just have to get it to send me notification.

But here are a lot of howtos on this. The docs are quite good...

Last edited by namit; 03-15-2007 at 12:30 PM.
 
Old 03-15-2007, 12:31 PM   #6
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Here's a great article about getting Nagios up and running:

http://www.onlamp.com/pub/a/onlamp/2...05/nagios.html

It covers a slightly older version, but everything is pretty close to the current stable version.
 
Old 03-16-2007, 06:40 AM   #7
mintojoseph
LQ Newbie
 
Registered: Nov 2006
Location: Kerala
Distribution: Fedora, Debian, RHEL
Posts: 29
Blog Entries: 1

Rep: Reputation: 15
If you feel Nagios configuration difficult which actually is not, you will find front end configuration generators like Fruity..
 
Old 03-16-2007, 06:53 AM   #8
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
Na sure all the confg files are just included in on each other and to add new service you just create a new one like the other. I have not looked into it a lot but its easy enough to understand.
 
Old 03-16-2007, 09:38 AM   #9
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
actually have a questions about this

So i have setup a few services and they are checking ok but i do not seam to be getting any notification when some of them go down.

My services setup is (this services is disabled) I go into the web configuration and i am getting this services in red "Connection refused"

Quote:
# Service definition
define service{
use generic-service ; Name of service template to use

host_name bandicoot
service_description POP3
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups server_admin
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_pop
}

I supposed whit notification_options i should get an email to the people in server_admin?

Quote:
define contactgroup{
contactgroup_name server_admin
alias Systems Administrators
members namit
}
and then that does to the contacts.cfg and gets the info?

I am getting no emails or pages can anyway help me?

I checked miscommands.cfg and those commands seams to the correct ones (default ones)

Also another things is when certain commands are run like shutdown and reboot can i get notified about that also?

Thanks
 
Old 03-16-2007, 09:44 AM   #10
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
What do your logs say when about the service? You should see something about notify-by-email, or however you've setup your notification. Can you send mail from the machine outside of Nagios, using sendmail, mutt, or another program?

Quote:
and then that does to the contacts.cfg and gets the info?
Yep Nagios contacts the group listed in services which needs to be setup in contactgroups.cfg which then needs the users to be setup in contacts.cfg.
 
Old 03-16-2007, 10:10 AM   #11
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
Yes i can send out email no problem

logs say
Quote:
namit@bandicoot:~$ cat /var/log/nagios/nagios.log | grep noti
[1174046810] SERVICE NOTIFICATION: namit;bandicoot;POP3;CRITICAL;notify-by-epager;Connection refused
[1174046810] SERVICE NOTIFICATION: namit;bandicoot;POP3;CRITICAL;notify-by-email;Connection refused
[1174046960] SERVICE NOTIFICATION: namit;bandicoot;SMTP;CRITICAL;notify-by-epager;Connection refused
[1174046960] SERVICE NOTIFICATION: namit;bandicoot;SMTP;CRITICAL;notify-by-email;Connection refused
[1174054010] SERVICE NOTIFICATION: namit;bandicoot;POP3;CRITICAL;notify-by-epager;Connection refused
[1174054010] SERVICE NOTIFICATION: namit;bandicoot;POP3;CRITICAL;notify-by-email;Connection refused
[1174054160] SERVICE NOTIFICATION: namit;bandicoot;SMTP;CRITICAL;notify-by-epager;Connection refused
[1174054160] SERVICE NOTIFICATION: namit;bandicoot;SMTP;CRITICAL;notify-by-email;Connection refused
But am getting no emails or pages


Contact is

Quote:
define contact{
contact_name namit
alias bob boboo
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email,notify-by-epager
host_notification_commands host-notify-by-email,host-notify-by-epager
email myemailaddressname@myemail.com
pager MY_PHONE_NUMBER@gotomobile.com
}

Last edited by namit; 03-16-2007 at 10:14 AM.
 
Old 03-16-2007, 10:14 AM   #12
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Quote:
[1174054160] SERVICE NOTIFICATION: namit;bandicoot;SMTP;CRITICAL;notify-by-email;Connection refused
The connection refused message is strange. Can the user that's running the Nagios process send mail? It looks to me like Nagios is trying to mail you, but something else along the line is preventing it. Is there anything in your mail logs about refusing connections that might be from Nagios?
 
Old 03-16-2007, 10:22 AM   #13
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
I tried to sudo su nagios but can not seam to do that so would that stop the user from sending mail

namit@bandicoot:~$ cat /etc/passwd | grep nagios
nagios:!:119:119::/var/log/nagios:/bin/false

Am just watching mail log now so nothing yet as such
 
Old 03-16-2007, 12:50 PM   #14
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Original Poster
Rep: Reputation: 30
Ok lads i am really silly because i had turned off postfix also i was getting no emails silly silly me. as for paging got that working now.

Thanks agian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Server Monitoring vaworx Linux - General 3 08-22-2005 08:27 AM
General Server Monitoring jonthelam Linux - Software 1 09-21-2004 01:03 PM
server monitoring wedgeworth Linux - Networking 11 05-06-2004 10:31 PM
Server Monitoring Manuel-H Linux - General 1 04-19-2003 11:39 PM
monitoring proftp server adrianmak Linux - Networking 4 01-04-2003 09:46 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration