How to run nagiosxi/install.php from backend
Posted: Thu Apr 19, 2018 4:59 am
Hi,
We are doing complete installation and configuration of nagiosxi using RPMs. After first time install, when we open the gui for the first time, it redirects the page to https://<ip>/nagiosxi/install.php and asks for some basic information.
I want to do this activity from backend. I have tried using below command but in the downloaded html page, it should show Installation Complete as part of Response Body but that's not happening.
I also used the request body from browser developer options and it came up like that:
I used the same in post-data but its not working. Can anyone help me out please?
We are doing complete installation and configuration of nagiosxi using RPMs. After first time install, when we open the gui for the first time, it redirects the page to https://<ip>/nagiosxi/install.php and asks for some basic information.
I want to do this activity from backend. I have tried using below command but in the downloaded html page, it should show Installation Complete as part of Response Body but that's not happening.
Code: Select all
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/install.php --no-check-certificate --post-data 'install=1&url="https://localhost/nagiosxi"&admin_name="Nagios Administrator"&admin_email="test@localhost"&admin_name="nagiosadmin"&admin_password="nagiosadmin"&timezone="UTC"&updateButton'
Code: Select all
install=1&nsp=ec3ae1105c35c3cc413127d277818d45103c734058ae281ea0f47859aa2a1576&url=https%3A%2F%2Flocalhost%2Fnagiosxi%2F&admin_name=Nagios+Administrator&admin_email=root@localhost&admin_password=nagiosadmin&timezone=UTC&updateButton=