Nagios XI installation.
Nagios XI installation.
nagiosxi page is showing db corrupted. Running the repair script would not fix the issue. postgresql is showing no nagios db. Could someone help me in fixing this? Thanks.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios XI installation.
Is this a fresh installation? If so you should probably just redownload and start from scratch. The install process is near foolproof.
We can look at your install.log for issues if you attach it, however in the time you wait for us to analyse the log you probably could have reinstalled it and had it working.
We can look at your install.log for issues if you attach it, however in the time you wait for us to analyse the log you probably could have reinstalled it and had it working.
Re: Nagios XI installation.
Initial installation failed many times due to not finding "optional RHN channel." Even if I bypassed 0-yum step it was giving me error. So, for every step it gave me error, I bypassed by creating that file to bypass a particular step.
I did have optional channel enabled.
# rhn-channel -l
lab-ss-rhel6-custom-x86_64-server
lab-ss-rhel6-rhn-tools-server
lab-ss-rhel6-x86_64-server
lab-ss-rhel6-x86_64-server-optional
I did have optional channel enabled.
# rhn-channel -l
lab-ss-rhel6-custom-x86_64-server
lab-ss-rhel6-rhn-tools-server
lab-ss-rhel6-x86_64-server
lab-ss-rhel6-x86_64-server-optional
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios XI installation.
That's a pretty reliable way to cause a fullinstall to fail. Since you appear to be using local repos, you might be best services using the offline installation. It's also important that your mirrors are kept fairly current.dtuser wrote:Initial installation failed many times due to not finding "optional RHN channel." Even if I bypassed 0-yum step it was giving me error. So, for every step it gave me error, I bypassed by creating that file to bypass a particular step.
https://assets.nagios.com/downloads/nag ... onment.pdf
If I'm wrong and those are public mirrors - I recommend starting over and instead of bypassing installation steps, post the install.log when it fails and we can try to help you troubleshoot.
Re: Nagios XI installation.
Installing : nagiosxi-4-2.7.el6.x86_64 57/57
Enter password:
What should be the password at this step?
Enter password:
What should be the password at this step?
Re: Nagios XI installation.
Installing : nagiosxi-4-2.7.el6.x86_64 57/57
Enter password:
Enter password:
Enter password:
No log handling enabled - turning on stderr logging
Created directory: /var/lib/net-snmp/mib_indexes
Password failed.
Password failed.
Password failed.
Verifying : nagiosxi-ajaxterm-4-2.7.el6.x86_64
Enter password:
Enter password:
Enter password:
No log handling enabled - turning on stderr logging
Created directory: /var/lib/net-snmp/mib_indexes
Password failed.
Password failed.
Password failed.
Verifying : nagiosxi-ajaxterm-4-2.7.el6.x86_64
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios XI installation.
No idea. We don't require any passwords to install Nagios, you simply need root access. Anywhere that you're getting a password prompt is specific to your environment. Do you have an authenticating http proxy that your yum is potentially trying to use?dtuser wrote:Installing : nagiosxi-4-2.7.el6.x86_64 57/57
Enter password:
What should be the password at this step?
Re: Nagios XI installation.
I'm not sure.
It prompted for password after installing a few packages. After failed attempts of passwords, it continued as -
Installing : nagiosxi-nagiosmobile-4-2.7.el6.x86_64 56/57
Installing : nagiosxi-4-2.7.el6.x86_64 57/57
Enter password:
Enter password:
Enter password:
No log handling enabled - turning on stderr logging
Created directory: /var/lib/net-snmp/mib_indexes
Password failed.
Password failed.
Password failed.
Verifying : nagiosxi-ajaxterm-4-2.7.el6.x86_64 1/57
Verifying : graphviz-2.26.0-10.el6.x86_64 2/57
Verifying : nagiosxi-nagiosmobile-4-2.7.el6.x86_64
then after a few more packages, it showed completed -
python-rrdtool.x86_64 0:1.4.7-1.el6.rfx unixODBC.x86_64 0:2.2.14-14.el6
Complete!
I restarted httpd. http://<server>/nagiosxi still showed corrupted database. I'm getting a new server image. Will do a clean install afterwards. Thanks.
It prompted for password after installing a few packages. After failed attempts of passwords, it continued as -
Installing : nagiosxi-nagiosmobile-4-2.7.el6.x86_64 56/57
Installing : nagiosxi-4-2.7.el6.x86_64 57/57
Enter password:
Enter password:
Enter password:
No log handling enabled - turning on stderr logging
Created directory: /var/lib/net-snmp/mib_indexes
Password failed.
Password failed.
Password failed.
Verifying : nagiosxi-ajaxterm-4-2.7.el6.x86_64 1/57
Verifying : graphviz-2.26.0-10.el6.x86_64 2/57
Verifying : nagiosxi-nagiosmobile-4-2.7.el6.x86_64
then after a few more packages, it showed completed -
python-rrdtool.x86_64 0:1.4.7-1.el6.rfx unixODBC.x86_64 0:2.2.14-14.el6
Complete!
I restarted httpd. http://<server>/nagiosxi still showed corrupted database. I'm getting a new server image. Will do a clean install afterwards. Thanks.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios XI installation.
That's probably best, the install process truly is a no brainer.
./fullinstall
walk away for 15 minutes and get coffee
come back to XI installed.
It sounds like you are offline, is that true? If so then definitely go the route suggested with the offline installer. Also, are your RHEL images custom deployed? If so they may have some proxy settings we need to fiddle with.
Check this out:
https://support.nagios.com/wiki/index.p ... th_Proxies
If you haven't already blasted it, the install log may have some useful data. For offline installs it has some sensible name like xi_install.log or something and is in the /tmp directory. For online installs it's just install.log in the untarred install directory.
./fullinstall
walk away for 15 minutes and get coffee
come back to XI installed.
It sounds like you are offline, is that true? If so then definitely go the route suggested with the offline installer. Also, are your RHEL images custom deployed? If so they may have some proxy settings we need to fiddle with.
Check this out:
https://support.nagios.com/wiki/index.p ... th_Proxies
If you haven't already blasted it, the install log may have some useful data. For offline installs it has some sensible name like xi_install.log or something and is in the /tmp directory. For online installs it's just install.log in the untarred install directory.
Re: Nagios XI installation.
I did an offline install on a clean image. It's working now. Thanks for your help.
http://repo.nagios.com/
http://repo.nagios.com/