I am attempting to automate an offline installation of Nagios log server on a non-internet connected system. I have got the log server to install and was wondering if you could assist me in how to configure the final installation without using the browser? Is there a file that I should invoke after modifications?
Where would the browser final installation files be located?
Configure the final installation without using the browser?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configure the final installation without using the brows
This is not possibleMDK wrote:I have got the log server to install and was wondering if you could assist me in how to configure the final installation without using the browser? Is there a file that I should invoke after modifications?
Re: Configure the final installation without using the brows
Where would the browser final installation files be located?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configure the final installation without using the brows
I don't understand the questionMDK wrote:Where would the browser final installation files be located?
Re: Configure the final installation without using the brows
The final installation steps configure the license and the admin account. Where is this information stored? On a file? In a database? How can these values be changed? Is there an API? Do we use php files with arguments?
Re: Configure the final installation without using the brows
first retrieve the csrf_value:
Then POST it along with password, email, language, timzone, etc:
or for a trial:
Keep in mind that if this is to work around a problem you may be having with finishing via the web UI, that this just works around this last step and you may run into problems going forward - login, configuration changes, activation, etc....
Code: Select all
curl -XGET 'http://192.168.55.3/nagioslogserver/install' -c cookies.txt| grep csrf | grep -E "[a0-z9]{32}" -o
Code: Select all
curl -XPOST 'http://nls_ip/nagioslogserver/install' -b cookies.txt -d 'csrf_ls=csrf_value_returned_from_prevous_command&key_type=key&key=license_key&username=nagiosadmin&admin_name=Nagios+Administrator&password=password123&conf_password=password123&email=root%40localhost&language=default&timezone=America%2FChicago&type=install'
Code: Select all
curl -XPOST 'http://nls_ip/nagioslogserver/install' -b cookies.txt -d 'csrf_ls=csrf_value_returned_from_prevous_command&key_type=trial&username=nagiosadmin&admin_name=Nagios+Administrator&password=password123&conf_password=password123&email=root%40localhost&language=default&timezone=America%2FChicago&type=install'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.