Articles of monit

有没有办法testing一个单独的Monit控制文件?

我创build了一个Monit控制文件,但似乎没有工作。 有一种方法可以testingMonitor控制文件,而不是让它们运行并查看它们是否工作。 任何人都有办法做到这一点?

Apache和monit继续崩溃

我在Ubuntu 10.10上使用VPS来为我的私人网站提供服务,Apache 2.2.16一直在崩溃。 服务器负载很轻,每天约有300次访问。 为了解决这个问题,我设置了monit来定期检查apache,但是这个问题一直在崩溃。 我检查了我的资源消耗,我远低于临界水平: 我检查了/etc/apache2/errors.log和/ var / log / syslog,但找不到错误的踪迹。 我几乎在我的智慧结束。 我怎样才能debugging这个问题? 我正在使用一个相当便宜的VPS。 他们能成为片状的原因吗?

监测悬挂过程

我需要监视ps -ef | grem GMC输出中的挂起进程 ps -ef | grem GMC … 如果不手动运行这个命令并且整天被卡在命令行前面,那么最好的办法是什么? 我希望我们的开发团队能够在这些进程挂起时收到一封电子邮件,以便我们可以进行调查,或者更好地自动杀死死亡进程。 SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 1 LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64" Novell Open Enterprise Server 2 (x86_64) VERSION = 2 BUILD = FCS

小型networking服务器pipe理工​​具

什么是我的networking正确的pipe理工具? 我看看仙人掌,Nagios,OpenNMS,Munin&Monit ……但我不确定哪个是最好的方向。 我更喜欢那些能够尽可能地提供开箱即用的东西。 我需要监视: 路由器SNMP 交换SNMP 30服务器IPMI / SNMP 服务如:nginx,独angular兽,Tomcat,Jetty,MySQL,Elasticsearch,Hadoop,PHP,Comet 很高兴有:graphics带宽使用,Nginx请求/秒 任何build议?

如何将exec命令的输出redirect到monit日志?

是否有可能将exec命令的输出redirect到monit日志? check host example.org with address example.org if failed port 80 protocol http for 2 cycles then exec "/root/cloudflare.py >> /var/log/monit.log" 这似乎不工作: [EST Mar 6 16:02:19] error : 'example.org' failed, cannot open a connection to INET[example.org:80] via TCP [EST Mar 6 16:02:24] info : 'example.org' exec: /root/cloudflare.py [EST Mar 6 16:02:24] error : 'nginx' process […]

configurationMonit以在CentOS6.5机器突然关机后删除/var/lib/mysql/mysql.sock

我有Monit监控Mysql。 当机器突然closures时(例如断电),除非删除了/var/lib/mysql/mysql.sock ,否则mysqld不能被重新启动,这是由于错误。 另一个MySQL守护程序已经在相同的unix套接字下运行 。 什么是Monit在启动时删除文件的正确configuration?

Monit:ping一个url然后重启应用服务器

我正在使用这个configuration来监视apache2(ubuntu): /etc/monit/conf.d/apache2 : check process apache with pidfile /var/run/apache2/apache2.pid start program = "/etc/init.d/apache2 start" with timeout 60 seconds stop program = "/etc/init.d/apache2 stop" alert [email protected] with mail-format { from: [email protected] subject: monit alert: $SERVICE $EVENT $DATE message: $DESCRIPTION } if failed port 80 protocol HTTP request / with timeout 7 seconds then restart 访问'request /'会导致ubuntu-apache的默认页面:如果你可以访问它,那么Apache正在工作。 […]

语法错误:在monit中使用“check program”时

check program raid-md127 with path "/sbin/mdadm –misc –test /dev/md127" if status != 0 then alert 当重启monit时: root@NAS2:/etc/apt/sources.list.d# /etc/init.d/monit restart Stopping daemon monitor: monit. Starting daemon monitor: Syntax error: /etc/monit/monitrc:29: Error: syntax error 'raid-md127'

用Monit监控Ubuntu 16.0.4上的solr服务

我试图找出为什么我的Monit( https://mmonit.com/monit/ )不想要监视我的Solr服务。 我已经为其余的服务工作: 但由于某些原因,Solr不想正确监控。 我在这里跟着例子: https://www.webfoobar.com/node/61 对于我的服务器我调整了一点,所以服务是正确的,还有一些path: ## Solr monitoring. ## Test the solr service. check process solr with pidfile /var/solr/solr-8983.pid group solr start program = "/etc/init.d/solr start" stop program = "/etc/init.d/solr stop" restart program = "/etc/init.d/solr restart" if failed port 8983 then restart if 3 restarts within 5 cycles then timeout depends on […]

捕捉无响应/高负载MySQL,也许与监视?

我有间歇性的发生的MySQL造成高负荷的机器,使Web应用程序不可用。 我正在使用monit来监视它,但它不能解决问题,显然是因为它仍然可以连接到mysql。 这是我的monit脚本为mysql: check process mysqld with pidfile /var/run/mysqld/mysqld.pid group database start program = "/etc/init.d/mysql start" stop program = "/etc/init.d/mysql stop" if failed port 3306 protocol mysql then restart if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql then restart if 5 restarts within 5 cycles then timeout 当问题发生在机器上的负载是很高,用MySQL几乎所有的CPU。 您仍然可以使用mysql命令行工具“login”到mysql,但是任何select/更新都不会响应。 当这个问题出现时,我应该用什么来捕捉?