Page 1 of 1

Unable to generate random bytes

Posted: Thu Jun 09, 2016 7:25 am
by sergo
Hi, I have some problem with nagios settings. I`ve installed nagios to computer with SPARC architecture using Buildroot. As it is written here (https://assets.nagios.com/downloads/nag ... buntu.html) I tried to create a nagiosadmin account for logging into the Nagios web interface by passing

Code: Select all

htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
in my terminal.

Then I get this error:

Code: Select all

htpasswd: Unable to generate random bytes: No such file or directory
The htpasswd.users file is created but it is empty.

p.s.: configuration files have been installed by this /etc/nagios/ directory. I tried to create /usr/local/nagios/etc/ directory and copy this files here. And I tried to execute

Code: Select all

htpasswd -c /etc/nagios/htpasswd.users nagiosadmin
In both cases the empty htpasswd.users file is created and appears the same error.

What I`m doing wrong?

Re: Unable to generate random bytes

Posted: Thu Jun 09, 2016 10:37 am
by rkennedy
You might be missing something on your machine with that architecture, try building the .htpasswd file manually using a site like this which should work - http://www.htaccesstools.com/htpasswd-generator/

You'll want to input what it gives you into the htpasswd.users file.