Permission denied with API call

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Permission denied with API call

Post by mbeebe »

Hello,

We're running into an issue when we're trying to update a service via the API on Nagios 5.9.3 (RHEL 7.9):

config_name = disk_usage_linux
service_description = disk usage

curl command:
curl -XPUT http://{our nagios host}/nagiosxi/api/v1/config/service/disk_usage_linux/disk%20usage?apikey={our api key}&pretty=1&host_name={our host}&applyconfig=1

response:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /nagiosxi/api/v1/config/service/disk_usage_linux/disk usage
on this server.</p>
</body></html>

If we change the service description to “disk_usage” (remove the space), the PUT works without issue.

Any ideas on why we might be seeing this behavior?

Thanks,

-- Mike Beebe
Jaske09
Posts: 5
Joined: Thu Jun 15, 2023 11:35 am

Re: Permission denied with API call

Post by Jaske09 »

It's happened a few times where BI just stops storing footage and I don't find out until a week or two later.
Post Reply