Something went wrong adding server
Posted: Thu Dec 05, 2024 5:35 pm
Hello,
I recently did some troubleshooting where I removed a Nagios XI instance from Fusion. However, when I tried to add it back to Fusion, I got an error message: "Something went wrong adding server."
The Nagios XI box is fine. Running curl -L -vvv https://<<nagios xi url>>/nagiosxi/api/v1/system/status?fusekey=<<fusekey>> from the Fusion box returns data just fine (certificate is accepted, and the JSON output looks like our other Nagios Xi boxes).
Running mysqlcheck --force --check --host=${db_host} --user=${db_user} --password=${db_pass} fusion, all the fusion tables are OK. So are the rest of the tables if I do --all-databases instead.
I generated a new fusekey for the XI box, which didn't help. I even logged in to MariaDB and looked at the fusion.servers table to see if there was any duplicate leftover cruft in there, but it looked clean with only rows for the other XI boxes I hadn't deleted.
Both Nagios XI and Fusion had upgrades available, so I got them current, but that didn't fix it either.
Finally, I cloned my Fusion VM, then deleted and reinstalled Fusion on the clone. The Nagios XI box fused in with no trouble and reported numbers within a few minutes.
I couldn't find any logs in Fusion that told me anything more specific. Any ideas what else I can look at? It's not the end of the world if I have to reconfigure Fusion from scratch, but if I can fix this one then I don't have to worry about overlooking any settings.
Thanks.
I recently did some troubleshooting where I removed a Nagios XI instance from Fusion. However, when I tried to add it back to Fusion, I got an error message: "Something went wrong adding server."
The Nagios XI box is fine. Running curl -L -vvv https://<<nagios xi url>>/nagiosxi/api/v1/system/status?fusekey=<<fusekey>> from the Fusion box returns data just fine (certificate is accepted, and the JSON output looks like our other Nagios Xi boxes).
Running mysqlcheck --force --check --host=${db_host} --user=${db_user} --password=${db_pass} fusion, all the fusion tables are OK. So are the rest of the tables if I do --all-databases instead.
I generated a new fusekey for the XI box, which didn't help. I even logged in to MariaDB and looked at the fusion.servers table to see if there was any duplicate leftover cruft in there, but it looked clean with only rows for the other XI boxes I hadn't deleted.
Both Nagios XI and Fusion had upgrades available, so I got them current, but that didn't fix it either.
Finally, I cloned my Fusion VM, then deleted and reinstalled Fusion on the clone. The Nagios XI box fused in with no trouble and reported numbers within a few minutes.
I couldn't find any logs in Fusion that told me anything more specific. Any ideas what else I can look at? It's not the end of the world if I have to reconfigure Fusion from scratch, but if I can fix this one then I don't have to worry about overlooking any settings.
Thanks.