需求描述:

  在安装完成nagios之后,比如有监控磁盘负载信息的,连接数的,进程数的,可以通过安装nagiosgraph软件,

  将nagios的性能数据绘制成图表,可以看到一段时间内数据的变化

环境说明:

  操作系统版本:RedHat_6.6_x64

安装过程:

1.下载,上传nagiosgraph软件

下载地址: https://sourceforge.net/projects/nagiosgraph/files/

软件版本:nagiosgraph-1.5.2.tar.gz

[root@testvm02 ~]# cd /opt/softwares/;ls -l nagiosgrap*
-rw-r--r--.  root root  Jul  : nagiosgraph-.tar.gz

2.解压软件,执行预安装检查

[root@testvm02 softwares]# .tar.gz
[root@testvm02 softwares]# cd nagiosgraph-
[root@testvm02 nagiosgraph-]# ./install.pl --check-prereq
checking required PERL modules
  Carp...1.11
  CGI... ***FAIL***             #针对这个报错,安装perl-CGI
  Data::Dumper...2.124
  Digest::MD5...2.39
  File::Basename...2.77
  File::Find...1.14
  MIME::Base64...3.08
  POSIX...1.17
  RRDs... ***FAIL***              #针对这个错误安装rrdtool,并且rrdtool,安装rrdtool-perl
  Time::HiRes... ***FAIL***       #针对这个报错,安装perl-Time-HiRes
checking optional PERL modules
  GD... ***FAIL***                #针对这个错误安装perl-GD
  Nagios::Config... ***FAIL***    #针对这个错误安装perl-Nagios-Object
checking nagios installation
  found nagios exectuable at /usr/local/nagios/bin/nagios
  found nagios init script at /etc/init.d/nagios
checking web server installation
  found apache executable at /usr/sbin/httpd
  found apache init script at /etc/init.d/httpd

*** one or more problems were detected!

3.安装需要的软件包

[root@testvm02 nagiosgraph-]# yum install perl-CGI[root@testvm02 nagiosgraph-1.5.2]# yum install perl-Time-HiRes[root@testvm02 softwares]# yum install rrdtool[root@testvm02 softwares]# rpm -Uvh rrdtool-1.3.8-10.el6.x86_64.rpm        #这个软件需要手动下载warning: rrdtool-1.3.8-10.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEYPreparing...                ########################################### [100%]   1:rrdtool                ########################################### [100%][root@testvm02 softwares]# rpm -Uvh rrdtool-perl-1.3.8-10.el6.x86_64.rpm    #这个软件需要手动下载warning: rrdtool-perl-1.3.8-10.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEYPreparing...                ########################################### [100%]   1:rrdtool-perl           ########################################### [100%][root@testvm02 softwares]# rpm -ivh perl-Nagios-Object-0.21.12-1.el6.rf.noarch.rpm   #这个软件需要手动下载warning: perl-Nagios-Object-0.21.12-1.el6.rf.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEYPreparing...                ########################################### [100%]   1:perl-Nagios-Object     ########################################### [100%]

perl模块下载地址:http://rpmfind.net/linux/RPM/index.html  (可以下载上面提到的软件)

当出现以下的配置检查结果,表示可以进行安装

[root@testvm02 nagiosgraph-]# ./install.pl --check-prereq
checking required PERL modules
  Carp...1.11
  CGI...3.51
  Data::Dumper...2.124
  Digest::MD5...2.39
  File::Basename...2.77
  File::Find...1.14
  MIME::Base64...3.08
  POSIX...1.17
  RRDs...1.3008
  Time::HiRes...1.9721
checking optional PERL modules
  GD...2.44
  Nagios::Config...
checking nagios installation
  found nagios exectuable at /usr/local/nagios/bin/nagios
  found nagios init script at /etc/init.d/nagios
checking web server installation
  found apache executable at /usr/sbin/httpd
  found apache init script at /etc/init.d/httpd

4.安装nagiosgraph软件

[root@testvm02 nagiosgraph-]# ./install.pl

备注:一路回车就可以了.

[root@testvm02 nagiosgraph-]# ./install.pl
checking required PERL modules
  Carp...1.11
  CGI...3.51
  Data::Dumper...2.124
  Digest::MD5...2.39
  File::Basename...2.77
  File::Find...1.14
  MIME::Base64...3.08
  POSIX...1.17
  RRDs...1.3008
  Time::HiRes...1.9721
checking optional PERL modules
  GD...2.44
  Nagios::Config...
checking nagios installation
  found nagios exectuable at /usr/local/nagios/bin/nagios
  found nagios init script at /etc/init.d/nagios
checking web server installation
  found apache executable at /usr/sbin/httpd
  found apache init script at /etc/init.d/httpd
Destination directory (prefix)? [/usr/local/nagiosgraph]
Location of configuration files (etc-dir)? [/usr/local/nagiosgraph/etc]
Location of executables? [/usr/local/nagiosgraph/bin]
Location of CGI scripts? [/usr/local/nagiosgraph/cgi]
Location of documentation (doc-dir)? [/usr/local/nagiosgraph/doc]
Location of examples? [/usr/local/nagiosgraph/examples]
Location of CSS and JavaScript files? [/usr/local/nagiosgraph/share]
Location of utilities? [/usr/local/nagiosgraph/util]
Location of state files (var-dir)? [/usr/local/nagiosgraph/var]
Location of RRD files? [/usr/local/nagiosgraph/var/rrd]
Location of log files (log-dir)? [/usr/local/nagiosgraph/var/log]
Path of log file? [/usr/local/nagiosgraph/var/log/nagiosgraph.log]
Path of CGI log file? [/usr/local/nagiosgraph/var/log/nagiosgraph-cgi.log]
Base URL? [/nagiosgraph]
URL of CGI scripts? [/nagiosgraph/cgi-bin]
URL of CSS file? [/nagiosgraph/nagiosgraph.css]
URL of JavaScript file? [/nagiosgraph/nagiosgraph.js]
URL of Nagios CGI scripts? [/nagios/cgi-bin]
Path of Nagios performance data file? [/tmp/perfdata.log]
username or userid of Nagios user? [nagios]
username or userid of web server user? [apache]
Modify the Nagios configuration? [n]
Modify the Apache configuration? [n]
configuration:
  ng_prefix            /usr/local/nagiosgraph
  ng_etc_dir           /usr/local/nagiosgraph/etc
  ng_bin_dir           /usr/local/nagiosgraph/bin
  ng_cgi_dir           /usr/local/nagiosgraph/cgi
  ng_doc_dir           /usr/local/nagiosgraph/doc
  ng_examples_dir      /usr/local/nagiosgraph/examples
  ng_www_dir           /usr/local/nagiosgraph/share
  ng_util_dir          /usr/local/nagiosgraph/util
  ng_var_dir           /usr/local/nagiosgraph/var
  ng_rrd_dir           /usr/local/nagiosgraph/var/rrd
  ng_log_dir           /usr/local/nagiosgraph/var/log
  ng_log_file          /usr/local/nagiosgraph/var/log/nagiosgraph.log
  ng_cgilog_file       /usr/local/nagiosgraph/var/log/nagiosgraph-cgi.log
  ng_url               /nagiosgraph
  ng_cgi_url           /nagiosgraph/cgi-bin
  ng_css_url           /nagiosgraph/nagiosgraph.css
  ng_js_url            /nagiosgraph/nagiosgraph.js
  nagios_cgi_url       /nagios/cgi-bin
  nagios_perfdata_file /tmp/perfdata.log
  nagios_user          nagios
  www_user             apache
  modify_nagios_config n
  nagios_config_file
  nagios_commands_file
  modify_apache_config n
  apache_config_dir
  apache_config_file
Continue with this configuration? [y]
mkdir /usr/local/nagiosgraph
mkdir /usr/local/nagiosgraph/etc
copy etc/access.conf to /usr/local/nagiosgraph/etc/access.conf
copy etc/hostdb.conf to /usr/local/nagiosgraph/etc/hostdb.conf
copy etc/servdb.conf to /usr/local/nagiosgraph/etc/servdb.conf
copy etc/nagiosgraph.conf to /usr/local/nagiosgraph/etc/nagiosgraph.conf
copy etc/nagiosgraph_es.conf to /usr/local/nagiosgraph/etc/nagiosgraph_es.conf
copy etc/nagiosgraph_de.conf to /usr/local/nagiosgraph/etc/nagiosgraph_de.conf
copy etc/datasetdb.conf to /usr/local/nagiosgraph/etc/datasetdb.conf
copy etc/rrdopts.conf to /usr/local/nagiosgraph/etc/rrdopts.conf
copy etc/nagiosgraph_fr.conf to /usr/local/nagiosgraph/etc/nagiosgraph_fr.conf
copy etc/labels.conf to /usr/local/nagiosgraph/etc/labels.conf
copy etc/groupdb.conf to /usr/local/nagiosgraph/etc/groupdb.conf
copy etc/map to /usr/local/nagiosgraph/etc/map
copy etc/ngshared.pm to /usr/local/nagiosgraph/etc
replace text in /usr/local/nagiosgraph/etc/nagiosgraph.conf
move /usr/local/nagiosgraph/etc/nagiosgraph.conf-bak to /usr/local/nagiosgraph/etc/nagiosgraph.conf
replace text in /usr/local/nagiosgraph/etc/nagiosgraph.conf
move /usr/local/nagiosgraph/etc/nagiosgraph.conf-bak to /usr/local/nagiosgraph/etc/nagiosgraph.conf
write stub to /usr/local/nagiosgraph/etc/nagiosgraph-nagios.cfg
write stub to /usr/local/nagiosgraph/etc/nagiosgraph-commands.cfg
write stub to /usr/local/nagiosgraph/etc/nagiosgraph-apache.conf
mkdir /usr/local/nagiosgraph/cgi
copy cgi/testcolor.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/testcolor.cgi
move /usr/local/nagiosgraph/cgi/testcolor.cgi-bak to /usr/local/nagiosgraph/cgi/testcolor.cgi
 on /usr/local/nagiosgraph/cgi/testcolor.cgi
copy cgi/showservice.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/showservice.cgi
move /usr/local/nagiosgraph/cgi/showservice.cgi-bak to /usr/local/nagiosgraph/cgi/showservice.cgi
 on /usr/local/nagiosgraph/cgi/showservice.cgi
copy cgi/show.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/show.cgi
move /usr/local/nagiosgraph/cgi/show.cgi-bak to /usr/local/nagiosgraph/cgi/show.cgi
 on /usr/local/nagiosgraph/cgi/show.cgi
copy cgi/showgroup.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/showgroup.cgi
move /usr/local/nagiosgraph/cgi/showgroup.cgi-bak to /usr/local/nagiosgraph/cgi/showgroup.cgi
 on /usr/local/nagiosgraph/cgi/showgroup.cgi
copy cgi/showconfig.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/showconfig.cgi
move /usr/local/nagiosgraph/cgi/showconfig.cgi-bak to /usr/local/nagiosgraph/cgi/showconfig.cgi
 on /usr/local/nagiosgraph/cgi/showconfig.cgi
copy cgi/export.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/export.cgi
move /usr/local/nagiosgraph/cgi/export.cgi-bak to /usr/local/nagiosgraph/cgi/export.cgi
 on /usr/local/nagiosgraph/cgi/export.cgi
copy cgi/showgraph.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/showgraph.cgi
move /usr/local/nagiosgraph/cgi/showgraph.cgi-bak to /usr/local/nagiosgraph/cgi/showgraph.cgi
 on /usr/local/nagiosgraph/cgi/showgraph.cgi
copy cgi/showhost.cgi to /usr/local/nagiosgraph/cgi
replace text in /usr/local/nagiosgraph/cgi/showhost.cgi
move /usr/local/nagiosgraph/cgi/showhost.cgi-bak to /usr/local/nagiosgraph/cgi/showhost.cgi
 on /usr/local/nagiosgraph/cgi/showhost.cgi
mkdir /usr/local/nagiosgraph/bin
copy lib/insert.pl to /usr/local/nagiosgraph/bin
replace text in /usr/local/nagiosgraph/bin/insert.pl
move /usr/local/nagiosgraph/bin/insert.pl-bak to /usr/local/nagiosgraph/bin/insert.pl
 on /usr/local/nagiosgraph/bin/insert.pl
mkdir /usr/local/nagiosgraph/share
copy share/nagiosgraph.css to /usr/local/nagiosgraph/share/nagiosgraph.css
copy share/nagiosgraph.js to /usr/local/nagiosgraph/share
mkdir /usr/local/nagiosgraph/doc
copy AUTHORS to /usr/local/nagiosgraph/doc
copy CHANGELOG to /usr/local/nagiosgraph/doc
copy INSTALL to /usr/local/nagiosgraph/doc
copy README to /usr/local/nagiosgraph/doc
copy TODO to /usr/local/nagiosgraph/doc
mkdir /usr/local/nagiosgraph/examples
copy examples/nagiosgraph-logrotate to /usr/local/nagiosgraph/examples
copy examples/nagiosgraph-apache.conf to /usr/local/nagiosgraph/examples
copy examples/map_mwall to /usr/local/nagiosgraph/examples
copy examples/map_1_4_4 to /usr/local/nagiosgraph/examples
copy examples/graphed-host.cfg to /usr/local/nagiosgraph/examples
copy examples/map_1_4_3 to /usr/local/nagiosgraph/examples
copy examples/nagiosgraph-nagios.cfg to /usr/local/nagiosgraph/examples
copy examples/nagiosgraph..css to /usr/local/nagiosgraph/examples
copy examples/nagiosgraph-commands.cfg to /usr/local/nagiosgraph/examples
copy examples/map_minimal to /usr/local/nagiosgraph/examples
copy examples/nagiosgraph..css to /usr/local/nagiosgraph/examples
copy examples/insert.sh to /usr/local/nagiosgraph/examples
copy examples/map_1_3 to /usr/local/nagiosgraph/examples
copy examples/graphed-service.cfg to /usr/local/nagiosgraph/examples
copy examples/map_examples to /usr/local/nagiosgraph/examples
copy examples/map_1_4_5 to /usr/local/nagiosgraph/examples
copy share/graph.gif to /usr/local/nagiosgraph/examples
copy share/nagiosgraph.ssi to /usr/local/nagiosgraph/examples
mkdir /usr/local/nagiosgraph/util
copy utils/testentry.pl to /usr/local/nagiosgraph/util
copy utils/flat2hier.pl to /usr/local/nagiosgraph/util
 on /usr/local/nagiosgraph/util/testentry.pl
 on /usr/local/nagiosgraph/util/flat2hier.pl
mkdir /usr/local/nagiosgraph/var/rrd
 on /usr/local/nagiosgraph/var/rrd
chown nagios,- on /usr/local/nagiosgraph/var/rrd
mkdir /usr/local/nagiosgraph/var/log
 on /usr/local/nagiosgraph/var/log
touching /usr/local/nagiosgraph/var/log/nagiosgraph.log
 on /usr/local/nagiosgraph/var/log/nagiosgraph.log
chown nagios,- on /usr/local/nagiosgraph/var/log/nagiosgraph.log
touching /usr/local/nagiosgraph/var/log/nagiosgraph-cgi.log
 on /usr/local/nagiosgraph/var/log/nagiosgraph-cgi.log
chown apache,- on /usr/local/nagiosgraph/var/log/nagiosgraph-cgi.log

  To complete the installation, do the following:

  * In the nagios configuration file (nagios.cfg),
    add these lines:

# process nagios performance data using nagiosgraph
process_performance_data=
service_perfdata_file=/tmp/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=
service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph

  * In the nagios commands file (command.cfg),
    add these lines:

# command to process nagios performance data for nagiosgraph
define command {
  command_name process-service-perfdata-for-nagiosgraph
  command_line /usr/local/nagiosgraph/bin/insert.pl
}

  * In the apache configuration file (httpd.conf),
    add this line:

include /usr/local/nagiosgraph/etc/nagiosgraph-apache.conf

  * Check the nagios configuration:

/usr/local/nagios/bin/nagios -v /path/to/nagios.cfg

  * Restart nagios to start data collection:

/etc/init.d/nagios restart

  * Restart apache to enable display of graphs:

/etc/init.d/httpd restart

  * To enable graph links and mouseovers, see README sections:
       Displaying Per-Service and Per-Host Graph Icons and Links
       Displaying Graphs in Nagios Mouseovers

5.配置nagiosgraph

  5.1 在nagios.cfg中增加以下配置(nagios.cfg文件默认位置:/usr/local/nagios/etc)

# process nagios performance data using nagiosgraph
process_performance_data=
service_perfdata_file=/tmp/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=
service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph

  5.2 在nagios的命令文件commands.cfg(默认位置:/usr/local/nagios/etc/objects)中加入以下内容

# command to process nagios performance data for nagiosgraph
define command {
  command_name process-service-perfdata-for-nagiosgraph
  command_line /usr/local/nagiosgraph/bin/insert.pl
}

  5.3 在apache的配置文件httpd.conf(文件位置:/etc/httpd/conf)加入以下内容

/usr/local/nagios/bin/nagios -v /path/to/nagios.cfg

  5.4 检查nagios配置,如果没有问题,就表示增加的配置是正确,如果配置错误,会有提示

[root@testvm02 conf]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core
Copyright (c) -present Nagios Core Development Team and Community Contributors
Copyright (c) - Ethan Galstad
Last Modified: --
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
    Checked  services.
    Checked  hosts.
    Checked  host groups.
    Checked  service groups.
    Checked  contacts.
    Checked  contact groups.
    Checked  commands.
    Checked  time periods.
    Checked  host escalations.
    Checked  service escalations.
Checking for circular paths...
    Checked  hosts
    Checked  service dependencies
    Checked  host dependencies
    Checked  timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings:
Total Errors:   

Things look okay - No serious problems were detected during the pre-flight check

  5.5 重启nagios,启动收集数据,重启httpd来显示图表

[root@testvm02 conf]# service nagios restart
Running configuration check... Stopping nagios: done.
Starting nagios: Running configuration check... done.
[root@testvm02 conf]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for testvm02
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]

6.通过以下命令,查看nagiosgraph已经运行

http://192.168.53.25/nagiosgraph/cgi-bin/showconfig.cgi

7.针对某些数据,可以看图

http://192.168.53.25/nagiosgraph/cgi-bin/show.cgi

选择对应的服务就能够查看图表:

备注:这个是在特定的页面进行特定服务的查看.

8.在nagios的template.cfg文件中增加nagiosgraph的实例信息

     define service {
       name graphed-service
       action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$+-j
       register
     }

9.针对具体的服务加上图表连接,将前面定义的graphed-service加入到具体的service定义中(以本地服务为例,localhost.cfg文件)

vi localhost.cfgdefine service {

    use                     local-service,graphed-service           ; Name of service template to use  #在每一个的service的后面都加上graphed-service    host_name               localhost    service_description     PING    check_command           check_ping!100.0,20%!500.0,60%}

10.重启nagios加载新的配置文件

service nagios restart

11.查看nagios页面的显示,在Service字段后面有了一个图片的连接,点击可以连接到具体的服务产生的图

12.可以更换这个图片

mv /usr/local/nagios/share/images/action.gif /usr/local/nagios/share/images/action.gif-orig
[root@testvm02 objects]# cd /opt/softwares/nagiosgraph-1.5.2[root@testvm02 nagiosgraph-1.5.2]# cp share/graph.gif /usr/local/nagios/share/images/action.gif

13.重新刷新页面,图标已经更换

到此,nagiosgraph已经安装完成,其他的可以在根据使用需求,查看官方文档.

文档创建时间:2018年7月31日14:55:34

linux环境安装nagiosgraph将nagios的性能数据绘制成动态图表?的更多相关文章

  1. Linux环境安装PostgreSQL-10.1

    转载自:https://www.cnblogs.com/LinBug/p/8082790.html Linux环境安装PostgreSQL-10.1   环境及资源 Linux版本:CentOS re ...

  2. Linux环境安装Nexus

    Linux环境安装Nexus Nexus可以做Maven私服,私服不是Maven的核心概念,它仅仅是一种衍生出来的特殊的Maven仓库.有三种专门的Maven仓库管理软件可以用来帮助大家建立私服: N ...

  3. Linux环境安装.NET运行环境

    Linux环境安装.NET运行环境 Linux环境安装.NET运行环境 1. 构建编译环境: (1) sudo apt-get install build-essential (2) sudo apt ...

  4. Linux环境安装xmapp(PHP-Mysql集成环境)

    xmapp是很多初学者使用的PHP环境集成包,用yum在linux安装的php和mysql版本现在都很低,xmapp可以解决这个问题,下面我们直接进入正题,安装一个php集成环境. 我使用的是vm虚拟 ...

  5. Linux 环境安装 Node、nginx、docker、vsftpd、gitlab

    Linux 环境安装 centos7 # 更新yum yum update -y 0. 防火墙 firewalld 新入的JD云服务器,发现防火墙默认是关闭的. # 查看防火墙状态 systemctl ...

  6. 在linux环境下使用icepdf或pdfbox将pdf转化成图片是乱码解决

    在linux环境下使用icepdf或pdfbox将pdf转化成图片是出现乱码,网上查发下是itextpdf生成pdf引用"STSong-Light"字体而linux环境下没有这个字 ...

  7. Linux环境安装jdk

    Linux中JDK1.6的安装和配置方法 一.安装 创建安装目录,在/usr/java下建立安装路径,并将文件考到该路径下: # mkdir /usr/java 1.jdk-6u11-linux-i5 ...

  8. .Net core Linux环境安装

    10月份的时候在自己电脑上搭了开发环境,当时跑完Welcome后就搁置了一段时间,最近有一个小项目要正式采用core来开发并部署在linux环境下,于是在Linux上也搭建一个运行环境. 虽然不经常使 ...

  9. 【NO.2】Jmeter-安装Jmeter - 在Linux环境安装Jmeter - 在Windows环境安装Jmeter

    当配置完Jmeter运行的环境之后,就可以开始安装Jmeter了. 为什么既要告诉各位"在Linux系统内安装Jmeter",又要告诉各位"在Windows系统内安装Jmeter"?因为当我们在构建1 ...

随机推荐

  1. Java设计模式12:装饰器模式

    装饰器模式 装饰器模式又称为包装(Wrapper)模式.装饰器模式以多客户端透明的方式扩展对象的功能,是继承关系的一个替代方案. 装饰器模式的结构 通常给对象添加功能,要么直接修改对象添加相应的功能, ...

  2. Cocos2dx中零散知识点

    cocos2dx中有三种定时器:schedule,scheduleUpdate,scheduleOnce.功能分别是 每隔几秒调用自定义函数.调用系统默认的update()函数.只调用一次自定义函数 ...

  3. Oracle bbed使用说明2---常用命令

    一.BBED常用命令说明 先看帮助的说明 BBED> help all SET DBA [ dba | file#, block# ] SET FILENAME 'filename' SET F ...

  4. BIOS与CMOS有什么区别

    本文介绍BIOS与CMOS区别,BIOS是什么?BIOS全称Basic Input/Output System,所以BIOS本身个是系统简称,所以我们常说的BIOS芯片确切的讲是写有BIOS系统的芯片 ...

  5. Linux crontab任务调度

    一.crontab说明 Linux crontab任务调度是在规定的时间频率内去执行相应的任务. 二.crontab文件详情 1.crontab文件在Linux中的/etc/crontab 2.查看c ...

  6. Web开发,浏览器通讯原理及流程那点事,你应该听说下

    题外话: 最近园子里,关于.net门槛的文章风风火火,不过这类事情每过段时间就会出来一次,所以酱油都懒的打了. 当然个人也是有想法的,特别是这两天碰巧和一个三四年经验的java开发者呆在一起,对方说. ...

  7. hadoop记录-如何换namenode机器

    namenode机器磁盘IO负载持续承压,造成NAMENODE切换多次及访问异常. 1 初始化新机器1.1 在新器1.1.1.3部署hadoop软件(直接复制standby1.1.1.2节点)1.2 ...

  8. ARM与FPGA通过spi通信设计1.spi基础知识

    SPI(Serial Peripheral Interface--串行外设接口)总线系统是一种同步串行外设接口,它可以使MCU与各种外围设备以串行方式进行通信以交换信息.SPI总线可直接与各个厂家生产 ...

  9. Java高级工程师面试题总结及参考答案

    一.面试题基础总结 1. JVM结构原理.GC工作机制详解 答:具体参照:JVM结构.GC工作机制详解     ,说到GC,记住两点:1.GC是负责回收所有无任何引用对象的内存空间. 注意:垃圾回收回 ...

  10. 基于C#利用ffmpeg提取视频帧

    利用ffmepg提取视频帧实际上是利用C#调用ffmepg命令行进行处理对应的视频,然后输出出视频帧 GetPicFromVideo("); static public string Get ...