LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2011, 07:46 PM   #1
linux_biao
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Rep: Reputation: 0
Smile I need your help for the system monitoring


Hey all,

Now my bbs website is in the centos5.5 system ,the server environment if in lnmp(linux nginx mysql php),and we used the nagios server to monitor their service !using the general tools of the nagios server ,we can only monitor less service such as whether it is down!So if I want to monitor more service such as whether the backup file is ok or not,I must compile some scripts for it by myself!Because of my inexperience ,so I can't think out so many detail service (the thing what should I monitor)to do it !If so ,when the service have some errors i will get the information for this errors and i can resolve it in less time!
PS:it contains many bbs site in this server!


So I need your help for it!please help me think out those thing to monitor!
Now I have thought out something as follows,but it is lack so it should be replenished by you!

The detail thing to monitor by script:

1)System security
a.if the root's password was modified by others it will alerting
b.it the system recorded the strange ip it will alerting
c.according the log file to search key to alerting
2)bakup
a.if the backup script could not work it will alerting
b.if the backup data could be not produced it will alerting
3)nginx
a.i can analyse the status of the nginx server such as "WAIT_TIME"
b.and i can monitor the current connections
c.configuration files's permission
4)php-fpm
a.i can check whether if it is listening the php-fpm port
b.and i can get the current connections ,if it gather than max_children,it will alerting

Thank you !!Regrettably my English is so bad So I hope you can understand me and give me some help!

Last edited by linux_biao; 11-24-2011 at 07:57 PM.
 
Old 11-24-2011, 08:17 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
For system security monitoring I'd advise using OSSEC ( http://ossec.net ). You can add your rules to it which will cover some of what you want like file permissions.

For availability/health monitoring you can use Zabbix ( http://www.zabbix.com ). I'm pretty sure there is Zabbix Nginx template.
 
Old 11-24-2011, 08:38 PM   #3
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 89

Rep: Reputation: 22
Hi,

Unfortunately nagios cannot do all those things you want, but you can use alternative tools.
Quote:
1)System security
a.if the root's password was modified by others it will alerting
b.it the system recorded the strange ip it will alerting
c.according the log file to search key to alerting
CSF/LFD of fail2ban are two good security tools you can use.

Quote:
2)bakup
a.if the backup script could not work it will alerting
b.if the backup data could be not produced it will alerting
The cronjon running backup script can be setup to send mail if fails.
Also if you are using backup tool like dirvish, it has it's own alerting functions.

Quote:
3)nginx
a.i can analyse the status of the nginx server such as "WAIT_TIME"
b.and i can monitor the current connections
c.configuration files's permission
netstat , find , ab commands .

Quote:
4)php-fpm
a.i can check whether if it is listening the php-fpm port
You can check custom port with nagios : http://www.skylercall.com/2010/08/mo...rts-in-nagios/

Quote:
b.and i can get the current connections ,if it gather than max_children,it will alerting
Nagios will alert you if it cannot connect to the server and after you can log to the server and check if max_children was reached.


Hopefully this will help you.
 
Old 11-24-2011, 09:33 PM   #4
linux_biao
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Original Poster
Rep: Reputation: 0
Thanks for your reply!
And I don't know why you said nagios can not do those things what i want!
It Seems that I can compile some scripts to make the nagios server do those things!
for example, if my backup script could work well, it will send the status message "CRITICAL" to nagios's page and nagios server will show it obviously!!
 
0 members found this post helpful.
Old 11-29-2011, 11:59 AM   #5
linux_biao
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Original Poster
Rep: Reputation: 0
Oh no,who can help me ?
 
0 members found this post helpful.
Old 11-29-2011, 12:40 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by linux_biao View Post
Oh no,who can help me ?
Don't bump your own threads. And what do you need help WITH?? Nagios can monitor what you want, and you said it yourself. Download it, read the instructions, and set it up.
 
  


Reply



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
/var/log file system and monitoring health of system drManhattan Red Hat 7 04-30-2011 05:15 PM
network monitoring:unable to launch nagios network monitoring system oladapo1980 Linux - Newbie 0 07-21-2009 01:45 PM
LXer: System Administrators Toolkit: Monitoring a slow system LXer Syndicated Linux News 0 06-18-2006 04:33 AM
Monitoring System Xerop Linux - Software 1 11-01-2005 10:34 AM
[Q] System Monitoring... TheEdge Linux - Software 1 03-25-2005 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration