Hello,
since we last upgrade from 20.10 to 22.04 we have a couple of perl script that fail. It seems as if the URL for the API changed and the authentication token could no be retreive.
This is the request in the script, which worked before the upgrade:
my $resauth = $ua->request(POST "https://${hostname}/centreon/api/index.php?action=authenticate", username => "$username", password => "$password"]);
Â
And the error is:
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE HTML PUBLI...") at /opt/clapi/ExportCentreonServices.pl line 75.
Â
What can be wrong?
Regards,
Enrique