"Sorry Dave" error

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
MattBlissett
Posts: 3
Joined: Tue Feb 18, 2025 11:37 am

"Sorry Dave" error

Post 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?
User avatar
lgute
Posts: 415
Joined: Mon Apr 06, 2020 2:49 pm

Re: "Sorry Dave" error

Post by lgute »

Hi @MattBlissett,

Thanks for reaching out.

What Nagios product are you running and which version?
Please let us know if you have any other questions or concerns.

-Laura
MattBlissett
Posts: 3
Joined: Tue Feb 18, 2025 11:37 am

Re: "Sorry Dave" error

Post 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.
MattBlissett
Posts: 3
Joined: Tue Feb 18, 2025 11:37 am

Re: "Sorry Dave" error

Post 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
User avatar
lgute
Posts: 415
Joined: Mon Apr 06, 2020 2:49 pm

Re: "Sorry Dave" error

Post by lgute »

Hi @MattBlissett,

Thanks for the update.
Please let us know if you have any other questions or concerns.

-Laura
Locked