Unable to generate random bytes

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.
Locked
sergo
Posts: 7
Joined: Thu Jun 09, 2016 6:09 am

Unable to generate random bytes

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to generate random bytes

Post 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.
Former Nagios Employee
Locked