Chinaunix首页 | 论坛 | 博客
  • 博客访问: 482142
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: 系统运维

2013-12-09 18:08:38

今天同事找我说,pkill -g  php 后,过一会又发现进程起来了。初步怀疑是crontab搞鬼但测试后不是。然后用nentstat -altnp 无意间发现有。



然后查看该进程 monit status

然后停掉对php的监控(即使正在运行也会被杀掉)。 这样kill之后就不会再起来了。

The Monit daemon 5.3.2 uptime: 111d 2h 49m

Process 'puppet'
  status                            Running
  monitoring status                 Monitored
  pid                               20141
  parent pid                        1
  uptime                            7h 52m
  children                          0
  memory kilobytes                  54444
  memory kilobytes total            54444
  memory percent                    0.9%
  memory percent total              0.9%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  data collected                    Mon, 09 Dec 2013 18:07:25

Process 'net-snmp'
  status                            Running
  monitoring status                 Monitored
  pid                               1547
  parent pid                        1
  uptime                            111d 10h 48m
  children                          0
  memory kilobytes                  4424
  memory kilobytes total            4424
  memory percent                    0.0%
  memory percent total              0.0%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  data collected                    Mon, 09 Dec 2013 18:07:25

Process 'zabbix'
  status                            Running
  monitoring status                 Monitored
  pid                               1177
  parent pid                        1
  uptime                            32d 7h 2m
  children                          7
  memory kilobytes                  728
  memory kilobytes total            9376
  memory percent                    0.0%
  memory percent total              0.1%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  port response time                0.000s to 127.0.0.1:10050 [DEFAULT via TCP]
  data collected                    Mon, 09 Dec 2013 18:07:25

Process 'ntpd'
  status                            Running
  monitoring status                 Monitored
  pid                               1592
  parent pid                        1
  uptime                            111d 10h 48m
  children                          0
  memory kilobytes                  1600
  memory kilobytes total            1600
  memory percent                    0.0%
  memory percent total              0.0%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  data collected                    Mon, 09 Dec 2013 18:07:25

Process 'php-fpm'
  status                            Running
  monitoring status                 Monitored
  pid                               13420
  parent pid                        1
  uptime                            1h 21m
  children                          200
  memory kilobytes                  6276
  memory kilobytes total            2146736
  memory percent                    0.1%
  memory percent total              35.8%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  data collected                    Mon, 09 Dec 2013 18:07:25

Process 'nginx'
  status                            Running
  monitoring status                 Monitored
  pid                               18720
  parent pid                        1
  uptime                            111d 10h 48m
  children                          8
  memory kilobytes                  1960
  memory kilobytes total            174664
  memory percent                    0.0%
  memory percent total              2.9%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  data collected                    Mon, 09 Dec 2013 18:07:25

Process 'rsyncd'
  status                            Running
  monitoring status                 Monitored
  pid                               85617
  parent pid                        1
  uptime                            14h 34m
  children                          0
  memory kilobytes                  540
  memory kilobytes total            540
  memory percent                    0.0%
  memory percent total              0.0%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  data collected                    Mon, 09 Dec 2013 18:07:25

Process 'sshd'
  status                            Running
  monitoring status                 Monitored
  pid                               15263
  parent pid                        1
  uptime                            111d 10h 48m
  children                          16
  memory kilobytes                  1156
  memory kilobytes total            36428
  memory percent                    0.0%
  memory percent total              0.6%
  cpu percent                       0.0%
  cpu percent total                 0.0%
  data collected                    Mon, 09 Dec 2013 18:07:25

System 'system_localhost'
  status                            Running
  monitoring status                 Monitored
  load average                      [0.00] [0.00] [0.00]
  cpu                               0.0%us 0.0%sy 0.1%wa
  memory usage                      1219916 kB [20.3%]
  swap usage                        0 kB [0.0%]
  data collected                    Mon, 09 Dec 2013 18:07:25


FAQ 遇到如下的问题是因为monitrc的配置文件里需要增加如下内容:
set httpd port 30000
allow 127.0.0.1
[root@sh ~]# monit status
monit: error connecting to the monit daemon





 
阅读(907) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~