Very strange:
I have api user, with incorrect filter:
object ApiUser "SendmailAgentd" {
  password = "pass!"
  // client_cn = ""

  permissions = [
    {
      permission = "actions/process-check-result"
      filter = {{ regex("IncorrectServiceName$", service.name)  }}
    }
  ]
}

When i sent check result with this user, i received 404 error, instead of 401.
Created ticket https://dev.icinga.org/issues/11631

20.04.2016, 11:34, "Romaneev Vasily" <[email protected]>:
> Some of our hosts starts with digtits, for example 81host.com.
> Because of host name restriction - we rename it as del_81host.com
>
> We have some active services for hosts.
> And one service, that sends results via API.
>
> All other hosts, sends result normal, only hosts, starting with numbers gave 
> an error:
>
> requests.exceptions.HTTPError: 404 Client Error: Not Found for url: 
> https://mon.localdomain:5665/v1/actions/process-check-result?service=del-81host.com!SendmailAgentd
>
> What is character restrictions for host name/service name via API ?
> What is better way to fix this ?
>
> thank you!
> ------
>  Романеев Василий
> Мобильный: +7-987-636-62-67
> skype romaneev
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users

------
 Романеев Василий
Мобильный: +7-987-636-62-67
skype romaneev
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to