Adagios installation problem


(Michele Bortolotto) #1

hi,
I’m trying to install adagios ( http://adagios.org/ ) on nethserver , following this guide https://github.com/opinkerfi/adagios/wiki/Install-guide …but i’ve this issue

yum update -y ok-release
Loaded plugins: fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
http://opensource.is/repo/rhel6.5/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ok. Please verify its path and try again

it seems that opensource.is redirect to https://github.com/opinkerfi


(Nicola) #2

Hi @AbsyntH

I think you have to change url inside ok.repo file, in particular the distribution reference fragment.
Try this:

sed -i ‘s/rhel$releasever/rhel6/’ /etc/yum.repos.d/ok.repo

then you should be able to go on with Adagios installation.

Let me know if everything works!


(Michele Bortolotto) #3

ok it works tnx nrauso


(Michele Bortolotto) #4

it seems to be up and runnin’, but it’s asking an user and psw… which parameter i must pass to htpasswd ?


(Alessio Fattorini) #5

@nrauso can you take a look?


(Giacomo Sanchietti) #6

You can quickly disable (just for tests) the password request by editing this file: /etc/httpd/conf.d/adagios.conf


(Michele Bortolotto) #7

so the correct command to set nagios’s password is " htpasswd -c -b /etc/nagios/htpasswd.users User Paassword " but it doesn’t work probably for the peculiar configuration of nethserver…


(Michele Bortolotto) #8

ok it works!

these are the steps i’ve followed:

chown nagios:apache /etc/nagios/htpasswd.users
chmod 670 /etc/nagios/htpasswd.users

and then edit /etc/httpd/conf.d/adagios.conf

AuthName "Nagios Access"
AuthType Basic

AuthUserFile /etc/nagios/passwd

AuthUserFile /etc/nagios/htpasswd.users
Require valid-user

Redirect /adagios to /adagios

restart httpd and nagios services …

all done well done…now i’ll take a look to the adagios webpage


(Alessio Fattorini) #9

@AbsyntH when you’re done, what do you think to write down an howto about your efforts?


(Michele Bortolotto) #10

yessir !!! :smiley:


(Nicola) #11

Good job, @AbsyntH!

Just for information: Adagios already has its file to store usernames and password for basic authentication of HTTP users (/etc/nagios/passwd)

You should be able to add a new user using the syntax:

htpasswd /etc/nagios/passwd myusername

You can enable Adagios access control too: you have to add some directives into /etc/adagios/adagios.conf file (https://github.com/opinkerfi/adagios/wiki/Users-guide).
Eventually remember to add your new user among admins!


(Alessio Fattorini) #12

I moved a post to a new topic: Adagios installation on NethServer


(Alessio Fattorini) #13

I moved 3 posts to a new topic: Howto section or wiki area?