Hello,
Trying to get a list of services which have notification disabled using curl GET but no success.
This is for all services irrespective of host names.
Please advise
Thanks
Hello,
Trying to get a list of services which have notification disabled using curl GET but no success.
This is for all services irrespective of host names.
Please advise
Thanks
Would it be enough to get this list via icingaweb/Dashboard/Muted?
I want to get the list of services from an API call. I tried to get it from IcingaWeb2 UI and export it to Excel/CSV, I got this error –
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 13805140 bytes) in /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Controller.php on line 43
Icingaweb2 version is 2.3.0
Thanks
This is CURL I used which didn’t work at the begining but after a few attempts to my surprise it worked. So sometimes it does work and won’t work in the very next attempt. Probably because of data size I guess. I probably should try to filter to get only the service “__name”.
curl -s -k -u xxxxx:xxxxxx -H 'Accept:application/json' -H 'X-HTTP-Method-Override: GET' -X POST 'https://<host>:5666/v1/objects/services?filter=!service.enable_notifications' | python -m json.tool
Maybe it’s a good idea to upgrade icingaweb2 to a newer version. Most current is 2.12.1.
Would you have a ulimit of 128MB for memory allocation defined for the user running Icingaweb/httpd, or for the Icingaweb/http process?
Seems the 128M limit is related to PHP.
# cat /etc/php.ini | grep mem
; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M