转自:http://blog.chinaunix.net/uid-17268883-id-3233849.html
今天启动nagios的时候发现如下问题:
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.
解决办法:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
看里边有什么报错信息,这个可以用来检测问题在哪里
ndoutils,make时的问题:
../include/config.h:261:25: error: mysql/mysql.h: No such file or directory
../include/config.h:262:26: error: mysql/errmsg.h: No such file or directory
../include/config.h:262:26: error: mysql/errmsg.h: No such file or directory
解决办法:
把include.h里边#include<mysql/mysql.h>和inclu.de<mysql/errmsg.h> 改成
文件实际所在的文件夹就可以了
简单的查看网络流量的方法:
ifconfig net_card_name |grep -i "bytes"