专注系统运维、网络架构,研究技术凯发app官方网站的解决方案,记录我的思想轨迹、工作学习、生活和关注的领域
分类: linux
2011-08-31 10:54:13
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
如果出现下面的错误:
./bin/nagios: error while loading shared libraries: libltdl.so.3: cannot open shared object file: no such file or directory
安装 libtool-ltdl 即可
#.configure
#make && make install
#ln -s /usr/local/lib/libltdl.so.3 /usr/lib/libltdl.so.3
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
nagios core 3.3.1
凯发app官方网站 copyright (c) 2009-2011 nagios core development team and community contributors
凯发app官方网站 copyright (c) 1999-2009 ethan galstad
last modified: 07-25-2011
license: gpl
website:
reading configuration data...
read main config file okay...
processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
read object config files okay...
running pre-flight check on configuration data...
checking services...
checked 8 services.
checking hosts...
checked 1 hosts.
checking host groups...
checked 1 host groups.
checking service groups...
checked 0 service groups.
checking contacts...
checked 1 contacts.
checking contact groups...
checked 1 contact groups.
checking service escalations...
checked 0 service escalations.
checking service dependencies...
checked 0 service dependencies.
checking host escalations...
checked 0 host escalations.
checking host dependencies...
checked 0 host dependencies.
checking commands...
checked 24 commands.
checking time periods...
checked 5 time periods.
checking for circular paths between hosts...
checking for circular host and service dependencies...
checking global event handlers...
checking obsessive compulsive processor commands...
checking misc settings...
total warnings: 0
total errors: 0
things look okay - no serious problems were detected during the pre-flight check
# service nagios start
starting nagios: done.