1. First please check that the ndo2db process is not a two
nagios 16825 0.0 0.1 6784 396? Ss 19:05 0:00/usr/local/nagios/bin/ndo2db-c/usr/l
Nagios 17032 0.0 0.3 6784 1268? S 19:09 0:00/usr/local/nagios/bin/ndo2db-c
2, check nagios.log log to see if there is at the end;
could not safely copy module '/ USR/LOCAL/NAGIOS/BIN/NDOMOD-3X.O ' ERROR ,
If the following is the correct
Ndomod:ndomod 1.4b7 (10-31-2007) Copyright (c ) 2005-2007 Ethan Galstad ([email protected] )
[1272020945] ndomod:successfully connected to data sink. 4897 Queued Items to FLUSH.&N Bsp
[1272020951] ndomod:successfully flushed 4897 queued items to data sink.
[1272020951] Event broker module '/ USR/LOCAL/NAGIOS/BIN/NDOMOD-3X.O ' initialized successfully.
The above is just the inspection work, the solution is as follows
1. Install nagios3.0 If 2.9 of friends can upgrade the installation, upgrade the installation method is simple
#cd/usr/local/
#cp-R nagios/nagios2.9
#cd/etc/init.d/
#cd Nagios nagios2.9
#cp Nagios nagios2.9
#tar-zvxf nagios-3.0.3.tar.gz
#cd nagios-3.0.3
#./configure-- with-command-group=nagios
#make all
#make install
#/usr/local/nagios/bin/nagios-v/usr /local/nagios/etc/nagios.cfg
may report an error critical comments downtime warning message;
vi/usr/local/nagios/etc/ nagios.cfg
#comment_file =/usr/local/nagios/var/comments.dat plus #
#downtime_file =/usr/local/ Nagios/var/downtime.dat Plus #
/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg does not report in execution;
and then under execution;
cd/usr/ local/nagios/var/
Cat Comments.dat >>retention.dat
Cat Downtime.dat >>retention.dat
Critical Error resolution  
check_result_buffer_slots=4096 plus #
service Nagios restart
2. Ndoutils-1.4b7 install this section, other versions may have a program problem, the installation method is as follows
Tar zxvf ndoutils-1.4b7.tar.gz
CD ndoutils-1.4b7
./configure--with-mysql-lib=/usr/lib/mysql/--with-mysql-inc=/usr/include/mysql/
CP ndomod-3x.o/usr /local/nagios/bin/ndomod-3x.o
CP ndo2db-3x/usr/local/nagios/bin/ndo2db
CP ndo2db.cfg/usr/local /nagios/etc/
CP ndomod.cfg/usr/local/nagios/etc/
Enter the copied directory to add the file to the Nagios user group
Chown Nagios: Nagios ndo2db.cfg ndomod.cfg
chown Nagios:nagios ndomod-3x.o ndo2db
Then modify the ndo2db.cfg ndomod.cfg configuration file
cat/usr/local/nagios/etc/ndo2db.cfg |grep-v ' ^# ' |sed/^$/d
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=tcp
socket_name=/usr/local/ nagios/var/ndo.sock
tcp_port=5668
db_servertype=mysql
db_host=127.0.0.1
DB _port=3306
db_name=cacti
db_prefix=npc_
db_user=cactiuer
Db_pass=cactiuser
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640
debug_level=1
Debug_ verbosity=1
debug_file=/usr/local/nagios/var/ndo2db.debug
max_debug_file_size=1000000
Cat/usr/local/nagios/etc/ndomod.cfg |grep-v ' ^# ' |sed/^$/d
Instance_name=default
Output_type=tcpsocket
output=127.0.0.1
tcp_port=5668
output_buffer_items=5000
Buffer_file=/usr/local/nagios/var/ndomod.tmp
file_rotation_interval=14400
File_rotation_timeout=60
Reconnect_interval=15
Reconnect_warning_interval=15
Data_processing_options=-1
config_output_options=2
Finally see Nagios.cfg the last line of configuration file is correct
BROKER_MODULE=/USR/LOCAL/NAGIOS/BIN/NDOMOD-3X.O config_file=/usr/local/nagios/etc/ndomod.cfg
This line should correspond with the file and path (= = = I am in this case = = =)
Restart ndo2db After the modification is complete
Kill ndo2db Running the process
/usr/local/nagios/bin/ndo2db-c/usr/local/nagios/etc/ndo2db.cfg then perform a reboot
PS aux
Nagios 16825 0.0 0.1 6784 396? Ss 19:05 0:00/usr/local/nagios/bin/ndo2db-c
Nagios 17032 0.0 0.3 6784 1268? S 19:09 0:00/usr/local/nagios/bin/ndo2db-c
Reference: http://blog.sina.com.cn/s/blog_645e2f0b010135tf.html
CACI and Nagios Some summary of "one"