NDOUtils ndo2db service not working
Posted: Wed Feb 08, 2017 10:03 am
Hello,
I have MySQL installed, now installing NDOUtils.
So far have done the following:
cd /tmp/ndoutils
./configure
make all
make install
make install-init
Initialize the database:
cd /tmp/ndoutils/db
./installdb -u 'ndoutils' -p 'ndoutils_password' -h 'localhost' -d nagios
cp /tmp/ndoutils/config/ndo2db.cfg-sample /usr/local/nagios/etc/ndo2db.cfg
sed -i 's/^db_user=.*/db_user=ndoutils/g' /usr/local/nagios/etc/ndo2db.cfg
sed -i 's/^db_pass=.*/db_pass=ndoutils_password/g' /usr/local/nagios/etc/ndo2db.cfg
chmod 664 /usr/local/nagios/etc/ndo2db.cfg
cp /tmp/ndoutils/config/ndomod.cfg-sample /usr/local/nagios/etc/ndomod.cfg
chmod 664 /usr/local/nagios/etc/ndomod.cfg
I can't seem to get this daemon working.
ndo2db is located in /usr/local/nagios/bin.
Also, ndo2db-2x,3x, and 4x are in /tmp/ndoutils/src.
I have tried chkconfig --add ndo2db and get No such file or service (ndo2db is not in /etc/init.d).
I tried moving /usr/local/nagios/bin/ndo2db to /etc/init.d, as well as the ndo2db?x to /etc/init.d and I
get the same results.
What could I be doing wrong?
Thank you,
JSpence.
I have MySQL installed, now installing NDOUtils.
So far have done the following:
cd /tmp/ndoutils
./configure
make all
make install
make install-init
Initialize the database:
cd /tmp/ndoutils/db
./installdb -u 'ndoutils' -p 'ndoutils_password' -h 'localhost' -d nagios
cp /tmp/ndoutils/config/ndo2db.cfg-sample /usr/local/nagios/etc/ndo2db.cfg
sed -i 's/^db_user=.*/db_user=ndoutils/g' /usr/local/nagios/etc/ndo2db.cfg
sed -i 's/^db_pass=.*/db_pass=ndoutils_password/g' /usr/local/nagios/etc/ndo2db.cfg
chmod 664 /usr/local/nagios/etc/ndo2db.cfg
cp /tmp/ndoutils/config/ndomod.cfg-sample /usr/local/nagios/etc/ndomod.cfg
chmod 664 /usr/local/nagios/etc/ndomod.cfg
I can't seem to get this daemon working.
ndo2db is located in /usr/local/nagios/bin.
Also, ndo2db-2x,3x, and 4x are in /tmp/ndoutils/src.
I have tried chkconfig --add ndo2db and get No such file or service (ndo2db is not in /etc/init.d).
I tried moving /usr/local/nagios/bin/ndo2db to /etc/init.d, as well as the ndo2db?x to /etc/init.d and I
get the same results.
What could I be doing wrong?
Thank you,
JSpence.