Hello
I’ve got a Nagios 3.0.2 up and running on Ubuntu 8.0.4 Server. It got about 100 hosts and everything works on nagios part.
When I installed ndoutils I followed the install [http://nagios.sourceforge.net/docs/ndoutils/NDOUtils.pdf](hyperlink url)
Everything works until the ndo is going to write to mysql, the /var/log/messages says;
Oct 16 13:39:40 ubuntu-Nagios nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad ([email protected])
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Successfully connected to MySQL database
Oct 16 13:39:40 ubuntu-Nagios nagios: ndomod: Successfully connected to data sink. 0 queued items to flush.
Oct 16 13:39:40 ubuntu-Nagios nagios: Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
Oct 16 13:39:40 ubuntu-Nagios nagios: Finished daemonizing... (New PID=17169)
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/contacts\.cfg''
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/timeperiods\.cfg''
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/templates\.cfg''
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/hosts\.cfg''
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/hostgroups\.cfg''
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/services\.cfg''
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/service_groups\.cfg''
Oct 16 13:39:40 ubuntu-Nagios ndo2db-3x: Error: mysql_query() failed for 'INSERT INTO nagios_configfilevariables SET instance_id='1', configfile_id='8', varname='cfg_file', varvalue='/usr/local/nagios/etc/objects/localhost\.cfg''
When I log into the mysql server and manually add the lines I get this error:
I’m using some config files from an old groundwork installation, Nagios 2.x config files. Is this a problem?
Edit:
ps aux | egrep “nagios|ndo” shows this
nagios 14385 0.0 0.0 4452 356 ? Ss 13:21 0:00 /usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
nagios 17168 0.0 0.1 4584 1352 ? S 13:39 0:00 /usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
nagios 17169 0.1 0.1 11228 1340 ? Rsl 13:39 0:01 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 20248 0.0 0.0 11232 688 ? S 14:00 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
2x on both of them. I’ve tried to manually kill them without any luck. Also tried a reboot on server and nagios several times.
I’ve seen other posts on this subject but not any answers that helps.
I’m hoping someone else have had same problems and can help out
cheers Tommy