Re: Nagvis link returns 404 error
Posted: Thu May 14, 2015 7:33 am
[root@nagiosxi ~]# cd /tmp
[root@nagiosxi tmp]# chmod +x NagiosXI-Nagvis.sh
[root@nagiosxi tmp]# ./NagiosXI-Nagvis.sh
Loaded plugins: fastestmirror, refresh-packagekit, security
Ignored option -q, -v, -d or -e (probably due to merging: -yq != -y -q)
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.nac.net
* epel: archive.linux.duke.edu
* epel-testing: archive.linux.duke.edu
* extras: centos.mirrors.wvstateu.edu
* rpmforge: mirror.us.leaseweb.net
* rpmforge-extras: mirror.us.leaseweb.net
* rpmforge-testing: mirror.us.leaseweb.net
* updates: mirrors.advancedhosters.com
No package 2.26.0 available.
Package graphviz-gd-2.26.0-10.el6.x86_64 already installed and latest version
Package php-gd-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-mbstring-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-mysql-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-pdo-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-xml-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-40.el6_6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package graphviz.x86_64 0:2.26.0-10.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
graphviz x86_64 2.26.0-10.el6 base 1.0 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 1.0 M
Installed size: 2.7 M
Downloading Packages:
graphviz-2.26.0-10.el6.x86_64.rpm | 1.0 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 8 pre-existing rpmdb problem(s), 'yum check' output follows:
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of /usr/bin/dot
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of graphviz = ('0', '2.26.0', '10.el6')
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libcdt.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libgraph.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libgvc.so.5()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libpathplan.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libxdot.so.4()(64bit)
nagiosxi-deps-2012r2.7-1.noarch has missing requires of graphviz
Installing : graphviz-2.26.0-10.el6.x86_64 1/1
Verifying : graphviz-2.26.0-10.el6.x86_64 1/1
Installed:
graphviz.x86_64 0:2.26.0-10.el6
Complete!
tar (child): nagvis-1.5.9.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
You have new mail in /var/spool/mail/root
[root@nagiosxi tmp]#
I downloaded nagvis-1.5.9.tar.gz and copied it to the tmp dir and re-ran the .sh script successfully
When I use the Nagvis link now I am prompted for a UN and PW. I am able to use my credentials to log in and now receive the following error within Nagvis:
Invalid json response: Time:1431607796000 URL: /nagvis/server/core/ajax_handler.php?mod=Map&act=getMapObjects&show=demo2 Response: Incorrect file format 'nagios_scheduleddowntime'
---------
Javascript error occured: Uncaught SyntaxError: Unexpected identifier https://x.x.50.59/nagvis/frontend/nagvis-js/ (1)
Stacktrace -
at https://x.x.50.59/nagvis/frontend/nagvi ... d.js:1:388
at Object.printStackTrace.implementation.run (https://10.0.50.59/nagvis/frontend/nagv ... d.js:1:411)
at printStackTrace (https://x.x.50.59/nagvis/frontend/nagvi ... d.js:1:136)
at handleJSError (https://x.x.50.59/nagvis/frontend/nagvi ... d.js:522:3)
I ran a BD repair with no luck..then i ran mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_scheduleddowntime'. I can now log into and see the demo Nagvis displays
[root@nagiosxi tmp]# chmod +x NagiosXI-Nagvis.sh
[root@nagiosxi tmp]# ./NagiosXI-Nagvis.sh
Loaded plugins: fastestmirror, refresh-packagekit, security
Ignored option -q, -v, -d or -e (probably due to merging: -yq != -y -q)
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.nac.net
* epel: archive.linux.duke.edu
* epel-testing: archive.linux.duke.edu
* extras: centos.mirrors.wvstateu.edu
* rpmforge: mirror.us.leaseweb.net
* rpmforge-extras: mirror.us.leaseweb.net
* rpmforge-testing: mirror.us.leaseweb.net
* updates: mirrors.advancedhosters.com
No package 2.26.0 available.
Package graphviz-gd-2.26.0-10.el6.x86_64 already installed and latest version
Package php-gd-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-mbstring-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-mysql-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-pdo-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-xml-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-40.el6_6.x86_64 already installed and latest version
Package php-common-5.3.3-40.el6_6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package graphviz.x86_64 0:2.26.0-10.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
graphviz x86_64 2.26.0-10.el6 base 1.0 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 1.0 M
Installed size: 2.7 M
Downloading Packages:
graphviz-2.26.0-10.el6.x86_64.rpm | 1.0 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 8 pre-existing rpmdb problem(s), 'yum check' output follows:
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of /usr/bin/dot
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of graphviz = ('0', '2.26.0', '10.el6')
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libcdt.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libgraph.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libgvc.so.5()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libpathplan.so.4()(64bit)
graphviz-gd-2.26.0-10.el6.x86_64 has missing requires of libxdot.so.4()(64bit)
nagiosxi-deps-2012r2.7-1.noarch has missing requires of graphviz
Installing : graphviz-2.26.0-10.el6.x86_64 1/1
Verifying : graphviz-2.26.0-10.el6.x86_64 1/1
Installed:
graphviz.x86_64 0:2.26.0-10.el6
Complete!
tar (child): nagvis-1.5.9.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
You have new mail in /var/spool/mail/root
[root@nagiosxi tmp]#
I downloaded nagvis-1.5.9.tar.gz and copied it to the tmp dir and re-ran the .sh script successfully
When I use the Nagvis link now I am prompted for a UN and PW. I am able to use my credentials to log in and now receive the following error within Nagvis:
Invalid json response: Time:1431607796000 URL: /nagvis/server/core/ajax_handler.php?mod=Map&act=getMapObjects&show=demo2 Response: Incorrect file format 'nagios_scheduleddowntime'
---------
Javascript error occured: Uncaught SyntaxError: Unexpected identifier https://x.x.50.59/nagvis/frontend/nagvis-js/ (1)
Stacktrace -
at https://x.x.50.59/nagvis/frontend/nagvi ... d.js:1:388
at Object.printStackTrace.implementation.run (https://10.0.50.59/nagvis/frontend/nagv ... d.js:1:411)
at printStackTrace (https://x.x.50.59/nagvis/frontend/nagvi ... d.js:1:136)
at handleJSError (https://x.x.50.59/nagvis/frontend/nagvi ... d.js:522:3)
I ran a BD repair with no luck..then i ran mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_scheduleddowntime'. I can now log into and see the demo Nagvis displays