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
Permission denied with API call
Re: Permission denied with API call
It's happened a few times where BI just stops storing footage and I don't find out until a week or two later.