mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
233 stars 91 forks source link

Can't login web console #793

Open jriker1 opened 1 year ago

jriker1 commented 1 year ago

I can not login to the web console on the server or on a remote workstation. Comes up but login just keeps returning to the same initial page.

OS is Windows 2022 with Hyper-V Role NSClient is 0.5.3.4 installed from NSCP-0.5.3.4-x64 installer

I ran

nscp web -- password --display

Confirmed password matches what I'm entering.

If I enter the right password screen just refreshes with the sign in screen again. If I type in the wrong password, I get a 403 Invalid password on the screen.

Here is my nsclient.ini:

; in flight - TODO [/settings/default]

; Undocumented key password =

; Undocumented key allowed hosts = 127.0.0.1,192.168.0.0/24

; in flight - TODO [/modules]

; Undocumented key CheckExternalScripts = enabled

; Undocumented key CheckHelpers = enabled

; Undocumented key CheckEventLog = disabled

; Undocumented key CheckNSCP = disabled

; Undocumented key CheckDisk = enabled

; Undocumented key CheckSystem = enabled

CheckNet = enabled

; Undocumented key WEBServer = enabled

[/settings/WEB/server] allowed hosts = 127.0.0.1,192.168.0.0/24

; PORT NUMBER - Port to use for WEB server. port = 9999 password =

; Script wrappings - A list of templates for defining script commands. Enter any command line here and they will be expanded by scripts placed under the wrapped scripts section. %SCRIPT% will be replaced by the actual script an %ARGS% will be replaced by any given arguments. [/settings/external scripts/wrappings]

; Batch file - Command used for executing wrapped batch files bat = scripts\%SCRIPT% %ARGS%

; Visual basic script - Command line used for wrapped vbs scripts vbs = cscript.exe //T:30 //NoLogo scripts\lib\wrapper.vbs %SCRIPT% %ARGS%

; POWERSHELL WRAPPING - Command line used for executing wrapped ps1 (powershell) scripts ps1 = cmd /c echo If (-Not (Test-Path "scripts\%SCRIPT%") ) { Write-Host "UNKNOWN: Script "%SCRIPT%" not found."; exit(3) }; scripts\%SCRIPT% $ARGS$; exit($lastexitcode) | powershell.exe /noprofile -command -

jhuber99 commented 1 year ago

I have the same problem windows 10 pro machine NSClient++ Version 0.5.2.41-Win32

jeanbruder commented 1 year ago

Same issue here ... We planned to use the HTTPS Rest API instead of the native NRPE protocol, but as we are not able to login/configure the client from the WEB interface, we cannot go on on this project. Any help would be greatly appreciated :+1:

jhuber99 commented 9 months ago

I have this same problem on a Win-10 Home 32bit machine with install from NSCP-0.5.3.4-Win32.msi

Has anyone got any resolution ?

JudikaelNedev commented 6 months ago

I have the same issue with Centreon's build 😢 Any new ?

mickem commented 6 months ago

As I have plans to make a new webui for the newer versions (as the old one uses an old version of vue) I would say it is likely not meaningful to look into in the old version....

zoltix commented 5 months ago

same issue, no news ?