I recently upgraded from centos5.7 32bit to centos6.2 64bit , full disk wipe and new install.
At the same time I upgraded from Nagios.2.4 to 3.2, new install on centos6.2 64bit
We moved all of my backup's and perfdata from the rebuilt server prior to the rebuilds.
Prior to the rebuild the server had no problem with performance graphs.
After the rebuild and reinstall I login with the nagios admin acct.
I am experiencing the following:
Device related issue:
I am using Localhost as an example
Overview tab:
The devices are stuck as "Host check is pending..." .
Performance graphs tab:
Performance graphs are missing. No graph no data.
or
You are not authorized to access this feature. Contact your Nagios XI administrator for more information, or to obtain access to this feature.
Advanced tab:
Active Checks [Disabled] [Enable]
Passive Checks [Disabled] [Enable]
Notifications [Disabled] [Enable]
Flap Detection [Disabled] [Enable]
Event Handler [Disabled] [Enable]
Performance Data [Disabled]
Obsession [Disabled] [Enable]
However Admin >Monitoring Process> process info:
monitoring engine process:
Is configured correctly:
External Commands [Enabled]
Active Service Checks [Enabled] [Disable]
Passive Service Checks [Disabled] [Enable]
Active Host Checks [Enabled] [Disable]
Passive Host Checks [Disabled] [Enable]
Notifications [Disabled] [Enable]
Event Handlers [Enabled] [Disable]
Flap Detection [Enabled] [Disable]
Performance Data [Enabled] [Disable]
Service Obsession [Enabled] [Disable]
Host Obsession [Enabled] [Disable]
When I open the device in CCM : Localhost >Advanced> More Options>See this host in Nagios Core:
Active Checks: ENABLED
Passive Checks: ENABLED
Obsessing: ENABLED
Notifications: ENABLED
Event Handler: ENABLED
Flap Detection: ENABLED
user related issues
my list of users has dropped from 15 to just the nagios admin acct.
the nagios admin account is set to admin with all boxes checked except read only access.
my contacts and contact groups are the same.
Configuration issues
I can run nagios -v nagios.cfg from the command line with 0 (zero) errors or warnings.
cannot apply configuration from web interface.
I get a config error, but when I look at the snapshot list, I see a snapshot, but it is not red.
I have:
rebooted the server, stopped and started all of the nagios related services successfully.
did all of the steps listed in the Nagios FAQ related to performance graph issues.
looked at the perfdata, from the command line which nagios seems to be building
wondered if they were laughing at me when I took this job ...
Permissions and performance graphs.
-
- Posts: 1264
- Joined: Tue Apr 12, 2011 12:29 pm
Permissions and performance graphs.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
- Posts: 1264
- Joined: Tue Apr 12, 2011 12:29 pm
Re: Permissions and performance graphs.
Good news!
we ran:
cd /usr/local/nagios/share/perfdata
ls
rm -Rf *
ls
ls /var/lib/mrtg
service npcd restart
service rrdcached restart
service nagios restart.
all of the issues went away except:
user related issues
my list of users has dropped from 15 to just the nagios admin acct.
the nagios admin account is set to admin with all boxes checked except read only access.
my contacts and contact groups are the same.
Configuration issues
I can run nagios -v nagios.cfg from the command line with 0 (zero) errors or warnings.
cannot apply configuration from web interface.
I get a config error, but when I look at the snapshot list, I see a snapshot, but it is not red.
we ran:
cd /usr/local/nagios/share/perfdata
ls
rm -Rf *
ls
ls /var/lib/mrtg
service npcd restart
service rrdcached restart
service nagios restart.
all of the issues went away except:
user related issues
my list of users has dropped from 15 to just the nagios admin acct.
the nagios admin account is set to admin with all boxes checked except read only access.
my contacts and contact groups are the same.
Configuration issues
I can run nagios -v nagios.cfg from the command line with 0 (zero) errors or warnings.
cannot apply configuration from web interface.
I get a config error, but when I look at the snapshot list, I see a snapshot, but it is not red.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Permissions and performance graphs.
Some of these issues sound permissions based.
Can you run this procedure
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Also, did you restore a backup you made in the previous version?
Being you changed Architecture you may also need to run the following to recompile the binaries
Can you run this procedure
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Also, did you restore a backup you made in the previous version?
Being you changed Architecture you may also need to run the following to recompile the binaries
Code: Select all
cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi
rm -f installed.subcomponents
touch installed.mrtg
./A-subcomponents
-
- Posts: 1264
- Joined: Tue Apr 12, 2011 12:29 pm
Re: Permissions and performance graphs.
yes I did restore from the previous version i will try the steps you laid out here.
um before I do, what order should i do these solutions?
um before I do, what order should i do these solutions?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Permissions and performance graphs.
In the order presented.
You can copy/paste
You can copy/paste
-
- Posts: 1264
- Joined: Tue Apr 12, 2011 12:29 pm
Re: Permissions and performance graphs.
issue persists .
I ran the instructions in the pdf with zero errors.
when I ran the 2nd solution this is the only part that failed:
*** Configuration summary for ndoutils 1.5.1 05-15-2012 ***:
General Options:
-------------------------
NDO2DB user: nagios
NDO2DB group: nagios
Review the options above for accuracy. If they look okay, type 'make' to compile the NDO utilities.
cd ./src && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o io.o io.c gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o utils.o utils.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o file2sock file2sock.c io.o u tils.o -lm -lnsl
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o log2ndo log2ndo.c io.o utils .o -lm -lnsl
make ndo2db-2x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhand lers-2x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo2db-2 x queue.c ndo2db.c dbhandlers-2x.o io.o utils.o db.o -lnsl -rdynamic -L/usr/l ib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
make ndo2db-3x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -c -o dbhand lers-3x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndo2db-3 x queue.c ndo2db.c dbhandlers-3x.o io.o utils.o db.o -lnsl -rdynamic -L/usr/l ib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
make ndomod-2x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo mod-2x.o ndomod.c io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
make ndomod-3x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndo mod-3x.o ndomod.c io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o sockdebug sockdebug.c io.o u tils.o -lm -lnsl
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d /usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/ndo2db NDOUTILS-POST
NOTE: If prompted, enter the MySQL root password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y ES)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
I ran the instructions in the pdf with zero errors.
when I ran the 2nd solution this is the only part that failed:
*** Configuration summary for ndoutils 1.5.1 05-15-2012 ***:
General Options:
-------------------------
NDO2DB user: nagios
NDO2DB group: nagios
Review the options above for accuracy. If they look okay, type 'make' to compile the NDO utilities.
cd ./src && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o io.o io.c gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o utils.o utils.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o file2sock file2sock.c io.o u tils.o -lm -lnsl
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o log2ndo log2ndo.c io.o utils .o -lm -lnsl
make ndo2db-2x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhand lers-2x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo2db-2 x queue.c ndo2db.c dbhandlers-2x.o io.o utils.o db.o -lnsl -rdynamic -L/usr/l ib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
make ndo2db-3x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -c -o dbhand lers-3x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndo2db-3 x queue.c ndo2db.c dbhandlers-3x.o io.o utils.o db.o -lnsl -rdynamic -L/usr/l ib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
make ndomod-2x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo mod-2x.o ndomod.c io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
make ndomod-3x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1 /src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndo mod-3x.o ndomod.c io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o sockdebug sockdebug.c io.o u tils.o -lm -lnsl
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/ src'
/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d /usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/ndo2db NDOUTILS-POST
NOTE: If prompted, enter the MySQL root password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y ES)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
- Posts: 1264
- Joined: Tue Apr 12, 2011 12:29 pm
Re: Permissions and performance graphs.
ok so it seems that the password is the problem:
NOTE: If prompted, enter the MySQL root password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y ES)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
but how do I fix it?
NOTE: If prompted, enter the MySQL root password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y ES)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
but how do I fix it?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Permissions and performance graphs.
If you have changed the root mysql password you will need to edit /tmp/nagiosxi/xi-sys.cfg file and modify the value for mysqlpass
Then run
Then run
Code: Select all
cd /tmp/nagiosxi
rm -f installed.subcomponents
touch installed.mrtg
./A-subcomponents
-
- Posts: 1264
- Joined: Tue Apr 12, 2011 12:29 pm
Re: Permissions and performance graphs.
the install was successful, but The problem persists.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Permissions and performance graphs.
Please open a support ticket by sending an email to xisupport@nagios.com and we can schedule a remote session