标签:
首先查看服务是否启动
<pre name="code" class="html">[root@mode etc]# ps -ef | grep nagios nagios 3256 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3258 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3261 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3264 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3265 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3266 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3270 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3276 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3355 1 0 Mar21 ? 00:00:06 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 9952 1 0 00:37 ? 00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
杀掉进程前:查看ps -ef|grep nagios 来记住里面的启动命令
<pre name="code" class="html">[root@mode etc]# ps -ef | grep nagios nagios 3256 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3258 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3261 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3264 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3265 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3266 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3270 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3276 3197 0 Mar21 ? 00:00:00 /usr/sbin/httpd nagios 3355 1 0 Mar21 ? 00:00:06 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 9952 1 0 00:37 ? 00:00:00<span style="color:#ff0000;"> /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d</span>
pkill nrpe
标签:
原文地址:http://blog.csdn.net/u014236541/article/details/44516863