Page 1 of 1

"Sorry Dave" error

Posted: Tue Feb 18, 2025 11:42 am
by MattBlissett
I'm moving an existing Nagios installation to a new server, with a new OS etc.

The previous configuration has been working for years, but I can't find where to change the setting to avoid the "Sorry Dave, I can't let you do that... / It seems that you have chosen to not use the authentication functionality of the CGIs." error.

The documentation: https://assets.nagios.com/downloads/nag ... iauth.html# says to set use_authentication=0 and default_user_name=nagiosadmin (for example), but I still get this error.

There is no logging regarding authentication in Apache's error log, in Nagios' log in /var/log/nagios, or in the system journal.

cgi.cfg:

Code: Select all

action_url_target=_blank
authorized_for_all_host_commands=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_system_information=nagiosadmin
default_statuswrl_layout=4
default_user_name=nagiosadmin
escape_html_tags=1
lock_author_names=1
main_config_file=/etc/nagios4/nagios.cfg
navbar_search_for_addresses=1
navbar_search_for_aliases=1
notes_url_target=_blank
physical_html_path=/usr/share/nagios4/htdocs
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=30
result_limit=100
show_context_help=0
url_html_path=/nagios4
use_authentication=0
use_pending_states=1
use_ssl_authentication=0
What have I missed, please?

Re: "Sorry Dave" error

Posted: Thu Feb 20, 2025 5:38 pm
by lgute
Hi @MattBlissett,

Thanks for reaching out.

What Nagios product are you running and which version?

Re: "Sorry Dave" error

Posted: Fri Feb 21, 2025 3:25 am
by MattBlissett
Sorry, I forgot the critical information :)

It's Nagios installed from distribution packages on Ubuntu 24.04. The package version is 4.4.6-4ubuntu0.24.04.1.

Re: "Sorry Dave" error

Posted: Fri Feb 21, 2025 8:11 am
by MattBlissett
I have found the mistake. I need to enable authentication, and set the default username:

Code: Select all

use_authentication=1
default_user_name=nagiosadmin

Re: "Sorry Dave" error

Posted: Fri Feb 21, 2025 2:44 pm
by lgute
Hi @MattBlissett,

Thanks for the update.