Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Nagios monitors the process of Sphinx

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "Nagios monitoring Sphinx process". In daily operation, I believe many people have doubts about Nagios monitoring Sphinx process. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "Nagios monitoring Sphinx process"! Next, please follow the small series to learn together!

Function:

1. Monitor a searchd process separately

2. Monitoring multiple searchd processes requires that the configuration files of each process be placed in the same directory, and certain rules can be matched. For example:

[root@chengyongxu.com ~]# ls /usr/local/sphinx/etc/

ajax.chengyongxu.com.conf acmilano.chengyongxu.com.conf cube.chengyongxu.com.conf

albums.chengyongxu.com.conf.unused

This allows you to match configuration files ending in conf, and if any configuration is no longer used, just change the name.

How to use:

#1. Log on to the server running sphinx and download the script to the libexec directory of nagios, for example: cd/usr/local/nagios/libexec/wget http://down.chengyongxu.com/check_sphinx_searchd#2. Change it to master and add execution permission chown nagios: nagios check_sphinx_searchmod 755 check_sphinx_searchd #3. Add the following line to the nrpe.cfg file, Parameters modified according to your needs #-----------------------------ec/check_sphinx_searchd-D/usr/local/sphinx/etc-q conf $#-----------------------------4. Restart nrpeservice nrpe restart #5. Add a service monitoring #---------------------------------define service{host_name 10.0.0.166service_description check_sphinx_searchdcheck_command check_nrpe! check_sphinx_searchdmax_check_attempts 3check_interval 10retry_interval 5check_period 24x7notification_interval 30notification_period 24x7notification_options w,u, c#contacts contacts (*) contact_groups sa_groups}#----------------------------The study of "Nagios monitoring Sphinx process" is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report