nagios

Linux监控平台介绍zabbix监控介绍安装zabbix

∥☆過路亽.° 提交于 2019-12-02 18:39:45
Linux监控平台介绍 监控存在的原因 站点出了问题,没有人知道,等用户发现了,才提醒供应商;对公司影响很大 常见开源监控软件 cacti、nagios、zabbix、smokeping、open-falcon等等,其中nagios、zabbix流行度非常高 cacti、smokeping偏向于基础监控,成图非常漂亮,适合监控网络设备 cacti监控网络的设备 cacti、nagios、zabbix服务端监控中心,需要php环境支持(用Apache的php,用nginx的php都可以),其中zabbix和cacti都需要mysql作为数据存储,nagios不用存储历史数据,注重服务或者监控项的状态,zabbix会获取服务或者监控项目的数据,会把数据记录到数据库里,从而可以成图 因为zabbix配置简单,优势明显,早起使用nagios的企业,慢慢的转向使用zabbix nagios,需要更改配置文件,并不支持web界面一键执行,nagios和zabbix相比, nagios 更注重的是某一个监控的状态,不关注历史; zabbix,则是把每一次监控的数值反馈出来,数值存到数据库里面,方便后期数据图去分析监控整个状态; nagios不需要mysql的支持,不能成图,若需要画图,得安装插件以后才支持web界面; ccti 也需要mysql的支持,也可以成图,可以记录历史数据 zabbix

Monitor jenkins jobs health using nagios GUI

馋奶兔 提交于 2019-12-02 02:22:15
问题 I am using check_http plugin for discovering jenkins service(Winstone hosted and Apache hosted) is running or not on hosts on which check_mk_agent is installed. And its been monitored on single ui that is nagios GUI, using following command. ./check_http -H Host_Name -u /api/xml?depth=0 -p 8080 Next step is to parse the jobs on specific jenkins master server using jenkins REST api and monitor each job's health in nagios GUI . Could someone please give me any idea on this so that I can monitor

Monitor jenkins jobs health using nagios GUI

陌路散爱 提交于 2019-12-01 22:59:05
I am using check_http plugin for discovering jenkins service(Winstone hosted and Apache hosted) is running or not on hosts on which check_mk_agent is installed. And its been monitored on single ui that is nagios GUI, using following command. ./check_http -H Host_Name -u /api/xml?depth=0 -p 8080 Next step is to parse the jobs on specific jenkins master server using jenkins REST api and monitor each job's health in nagios GUI . Could someone please give me any idea on this so that I can monitor the jenkins jobs on single GUI. Any script or plugin much appreciated. #!/usr/bin/perl use strict; use

Modifying regex match in nagios logwarn which matches against string, to not match if followed by another string

倾然丶 夕夏残阳落幕 提交于 2019-12-01 11:06:28
Considering the following error log, in a log file, which I am using as an input for nagios logwarn command - [19910:7f88e07ff700:559445:000001] [] \nFatal error: File not found: ./postGetAds.php in /var/cake_1.2.0.6311-beta/app/webroot/openx/www/delivery/androidGetAd.php on line 302 The following regex works perfect, to detect if a "Fatal" string is present - /^.*Fatal*/g Here is the complete nagios logwarn command where I am using the above regex - /usr/local/nagios/libexec/check_logwarn -d /tmp/logwarn_hiphop_error -p /mnt/log/hiphop/error_`(date +'%Y%m%d')`.log "^.*Fatal*" And here is the

Change process name when launched as batch file

依然范特西╮ 提交于 2019-12-01 05:16:30
I'm working on a monitoring system called "Nagios" which monitors services for UNIX and WINDOWS servers. Problem is WINDOWS services that are launched by batch files are named in task manager as "cmd.exe", so system can't distinguish between these services when monitoring. How can I change a process name on task manager when launching it so each one has a unique name rather than "cmd.exe"? Thank you in advance. You can run batch file as windows service to make a process name. You can set what to happen on start and on stop. You can kill the service using its PID. C# Tutorial to create batch

Change process name when launched as batch file

独自空忆成欢 提交于 2019-12-01 02:52:58
问题 I'm working on a monitoring system called "Nagios" which monitors services for UNIX and WINDOWS servers. Problem is WINDOWS services that are launched by batch files are named in task manager as "cmd.exe", so system can't distinguish between these services when monitoring. How can I change a process name on task manager when launching it so each one has a unique name rather than "cmd.exe"? Thank you in advance. 回答1: You can run batch file as windows service to make a process name. You can set

Linux 运维入门到跑路书单推荐

。_饼干妹妹 提交于 2019-11-29 21:39:12
一、基础入门 《鸟哥的Linux私房菜基础学习篇》 :最具知名度的Linux入门书《鸟哥的Linux私房菜基础学习篇》,全面而详细地介绍了Linux操作系统。 https://book.douban.com/subject/4889838 《鸟哥的Linux私房菜服务器篇》 :从系统基础以及网络基础讲起,再谈到网络攻击与防火墙防护主机后,才进入服务器的架设。全面了解如何维护与管理您的服务器。 https://book.douban.com/subject/10794788/ 《Linux命令行与shell脚本编程大全》 :非常适合Linux小白的入门教程,内容通俗易懂、深入浅出,除了日常工作中用的基础命令之外,像正则表达式、sed、awk 这样的高级命令也有介绍,书上还配有大量的实例,如果你想精通 shell 编程,那么这本书就是为你准备的。 https://book.douban.com/subject/26854226/ 《UNIX/Linux 系统管理技术手册》 :三大部分内容:第一部分全面介绍了运行单机Linux系统涉及的各种管理知识和技术;第二部分从详细讲解TCP/IP协议基本原理开始,深入讨论了网络的两大基本应用——域名系统和路由技术,然后逐章讲解Linux上的各种Internet关键应用;第三部分包括了多种不容忽视的重要主题。 https://book.douban

How to parse nagios status.dat file?

给你一囗甜甜゛ 提交于 2019-11-29 14:50:36
I'd like to parse status.dat file for nagios3 and output as xml with a python script. The xml part is the easy one but how do I go about parsing the file? Use multi line regex? It's possible the file will be large as many hosts and services are monitored, will loading the whole file in memory be wise? I only need to extract services that have critical state and host they belong to. Any help and pointing in the right direction will be highly appreciated. LE Here's how the file looks: ######################################## # NAGIOS STATUS FILE # # THIS FILE IS AUTOMATICALLY GENERATED # BY

开源监控软件之争

吃可爱长大的小学妹 提交于 2019-11-29 00:36:26
开源监控软件 Zabbix 和 Nagios 究竟哪个更好?Zabbix 可视化更好?Nagios 更轻量?作为产品经理程默的一名默默无闻的小粉丝,觉得很有义务把他的回答编辑整理出来让大家看到。下面是程默在知乎上的回答,经本人同意转载。 首先,提醒一下大家。下面的内容,有可能会被认为是广告,因为我推荐的是我自己做的一款产品:Cloud Insight. 但是,在对比 Zabbix 和 Nagios 的时候,我觉得有些东西还是值得拿出来讨论一下的。第一个就是上文 Wenx 提到的:没有更好,只有更适合吧。是否需要使用 Zabbix 或者 Nagios 都是可以拿出来讨论讨论的。在人员不够、经验不足、时间很紧的情况下,有必要使用 Zabbix 或 Nagios 这样很重的解决方案吗?Zabbix 和 Nagios 相继出现在 1998 年和 1999 年,经过历史的发展和迭代,以及社区中很多程序员的贡献,已经发展得很强大了。我们 OneAPM 公司初期也是使用 Zabbix 来做所有云主机和物理主机的监控。但是后期遇到了很多大的麻烦: 用 Zabbix 和 Nagios 真的很依赖运维工程师的实际水平和 Docker Mesos 这些新技术的支持。 需要自己去找脚本来试验,真的很麻烦。 数据是只读的,运维工程师真的就只是看看,出啥问题了,最后还是重启