Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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!!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.