Nagvis backend not working

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
ThomasB
Posts: 2
Joined: Tue Aug 05, 2025 6:59 am

Nagvis backend not working

Post by ThomasB »

Hello,

I'm installing Nagios 4 with Nagvis 1.9.40. I'm having a problem with Nagvis and I'm at a loss as to where the problem might be coming from.

When I access Nagvis, I get the following error: The backend with the ID "backend_ndomy_1" is not defined.
I'm sharing my configuration for the nagvis.ini.php file.

-------------------------------------
[defaults]
backend="backend_ndomy_1"

[backend_ndomy_1]
backendtype="ndomy"
dbhost="localhost"
dbport=3306
dbname="nagios"
dbuser="ndoutils"
dbpass="mypassword"
dbprefix="nagios_"
dbinstancename="default"
maxtimewithoutupdate=180
htmlcgi="/nagios/cgi-bin"
;dbcharset="utf8"
--------------------------------------

I have a MariaDB database and I use NDOUtils. I tested my ndoutils account and it is functional.

-------------------------------------------------------------------------------------------
root@Nagios:/home/NagiosVM# mysql -u ndoutils -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 94
Server version: 10.11.13-MariaDB-0ubuntu0.24.04.1 Ubuntu 24.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
-------------------------------------------------------------------------------------------

If anyone has any ideas, I'm all ears. Thank you very much.
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: Nagvis backend not working

Post by gwesterman »

Hi ThomasB,

Try changing:

backend="backend_ndomy_1"

to:

backend="ndomy_1"

Let us know if that works. Thank you!
ThomasB
Posts: 2
Joined: Tue Aug 05, 2025 6:59 am

Re: Nagvis backend not working

Post by ThomasB »

Hi gwesterman,

It works! Thank you very much for your answer and the solution.
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: Nagvis backend not working

Post by gwesterman »

You are welcome!

Glad I could help.
Locked