update nagios core 3.5 to 4.0.2

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: update nagios core 3.5 to 4.0.2

Post by abrist »

Oh, one last command. You need to create the default basic auth user (nagiosadmin):

Code: Select all

htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin
And restart httpd:

Code: Select all

service httpd restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Re: update nagios core 3.5 to 4.0.2

Post by Khmerlinux »

I tried to create users. Here what I got.
#htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
htpasswd: cannot create file /usr/local/nagios/etc/htpasswd.users

What did I do wrong?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: update nagios core 3.5 to 4.0.2

Post by abrist »

Was the command run as root?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Re: update nagios core 3.5 to 4.0.2

Post by Khmerlinux »

Yes. Everything was done with root login.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: update nagios core 3.5 to 4.0.2

Post by sreinhardt »

Just to verify do you have /usr/local/nagios/etc/?

Code: Select all

ls -lvd /usr/local/nagios/etc/
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Re: update nagios core 3.5 to 4.0.2

Post by Khmerlinux »

Hello,

When I run ls -lvd /usr/local/nagios/etc/
return with: drwxrwxr - x. 3 nagios nagios 4096 Feb 25 16:46 /usr/local/nagios/etc/
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: update nagios core 3.5 to 4.0.2

Post by lmiltchev »

Is SELinux enabled?

Code: Select all

sestatus
Be sure to check out our Knowledgebase for helpful articles and solutions!
Khmerlinux
Posts: 14
Joined: Mon Feb 24, 2014 11:26 am

Re: update nagios core 3.5 to 4.0.2

Post by Khmerlinux »

it was disabled. I wiped and formatted. I will start all over again.


Thanks for your help.
Locked