What files should I be editing, according to slide 11 of your presentation? (By the way, I really like this presentation... Thanks!)
http://www.slideshare.net/nagiosinc/spe ... ios-server
Code: Select all
[root@nagiosxidev-00-ah conf.d]# ls
https.conf nagiosql.conf nrdp.conf ssl.conf.nagiosxibackup
mrtg.conf nagiosxi.conf php.conf welcome.conf
nagios.conf nagiosxi.conf.original README
nagiosmobile.conf nagvis.conf ssl.conf
automysqlbackup fails (same error if password is set to mysql Nagios XI default or new password)
Code: Select all
###### WARNING ######
Errors reported during AutoMySQLBackup execution.. Backup failed
Error log below..
-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
What does this mean?
On slide 13, there is a reference to a mysqlpass variable in the backup_xi.sh script. It isn't there and the script appears to be working anyway (I need to confirm).
On slide 14, is there a typo? Should "mysqladmin" be "mysql" instead? Is this a duplicate step of changing the mysql root password above or something different? I'm confused by the introduction of 'ndoutils' in the username. Can you clarify?
For slide 15-16, I assume I should replace n@gweb with my password. Is this password supposed to be the ndoutils password in the earlier slide, the mysql root or is this account account?
On slide 17, I'm not sure how/if this needs changing in restore_xi.sh
Code: Select all
echo "Restoring PostgresQL databases..."
psql -U nagiosxi nagiosxi < pgsql/nagiosxi.sql
Which username/password combo is n@gweb referring to?
What's the impact of changing the postgressql root password? I didn't see that covered in this presentation.
Edit: Edit: I didn't see the following question answered in the linked presentation...
What is the "Nagios XI Subsystem Account" account listed in the "Configure/CCM/Manage Config Access"? What is it's default password and what's the impact of changing it?
Edit: The software upgrade failed after I assigned the self signed certificates. Do you have any advise on how to resolve this?
Code: Select all
[root@nagiosxidev-00-ah nagiosxi]# ./upgrade
OLD VERSION: 319
no crontab for nagios
no crontab for root
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 432 in Unknown on line 0
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Copying over new XI directory...
Building latest perms binary...
Updating NagiosQL...
NAGIOSQL-POST
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 432 in Unknown on line 0
Patching NDOUtils...
NDOUtils already patched at level 103
Updating sequences...
Nagios XI Postgres Database Sequence Information
OLD VALUES
--------------
xi_commands_command_id_seq = 11
xi_events_event_id_seq = 1
xi_meta_meta_id_seq = 5
xi_options_option_id_seq = 136
xi_sysstat_sysstat_id_seq = 100
xi_usermeta_usermeta_id_seq = 414
xi_users_user_id_seq = 49
NEW VALUES
--------------
xi_commands_command_id_seq = 11
xi_events_event_id_seq = 1
xi_meta_meta_id_seq = 5
xi_options_option_id_seq = 136
xi_sysstat_sysstat_id_seq = 100
xi_usermeta_usermeta_id_seq = 414
xi_users_user_id_seq = 49
Installing new PNP templates...
Updating init script...
Enabling large install tweaks...
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 432 in Unknown on line 0
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2014-02-19 19:37:08-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://localhost/nagiosql/index.php [following]
--2014-02-19 19:37:08-- https://localhost/nagiosql/index.php
Connecting to localhost|::1|:443... connected.
WARNING: cannot verify localhost’s certificate, issued by “/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/[email protected]”:
Self-signed certificate encountered.
WARNING: certificate common name “localhost.localdomain” doesn’t match requested host name “localhost”.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: “nagiosql.login”
100%[===========================================================================>] 5,259 --.-K/s in 0s
2014-02-19 19:37:08 (173 MB/s) - “nagiosql.login” saved [5259/5259]
NAGIOSQL LOGIN FAILED!
Edit: I rolled back the SSL changes in /etc/httpd/conf/https.conf and the upgrade worked. I suspect I haven't made the following changes in the right file/place....
Code: Select all
[root@nagiosxidev-00-ah conf.d]# more https.conf
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
#<VirtualHost *.443>
# SSL Engine on
# SSL Protocol all-SSLv2
# SSL CipherSuite DHE-RSA-AES256-SHA:ALL:!ADH:!EXPPORT:!SSLv2:!RC2:!CAMELLIA256:!3DES:!DES-CB3-SHA:!RC4:+HIGH:!
MEDIUM:!LOW
# SSL CertificateFile /etc/pki/tls/certs/ca.cert
# SSL CertificateKeyFile /etc/pki/tls/private.ca.key
# <DIRECTORY "/usr/local/nagiosxi/html">
# AllowOverride All
# </DIRECTORY>
#</VirtualHost>
Edit: Okay... sorry for the trouble. Obviously, I've done something wrong (probably stupid). I've reset the mysql database password back to default and supposedly rolled back all of the changes I mean from the presentation link. Within the <url>/nagiosxi, when I click on hosts or services, I get an endless spinning icon, however I can see all the hosts/services in the CCM and in the <url>/nagios, so I suspect that there is some database password for XI that is still not in sync. I will continue to debug this. Can you point me in the right direction? If I resolve it before you read this, I will update the ticket, so you don't spend time on something I've already resolved. Thanks!
Edit: As far as the spinning wheel and no hosts showing up under nagios XI, I found the problem in a mod_security module/setting. I"ll reapply carefully and see if I can avoid this mistake next time. Thanks!
Mod Note - Merged your six posts, please do not double post as that will bump you lower on our "to be replied to" list, it also severely increases page clutter, don't forget to code wrap your code! Warning 1.