I was able to use it like expected and added over 90, that's why I think it has something to do with what is contained in the actions.
If it stops working again or if you have a backup of the actions from when it was broken we need that SQL query run in order to import it and figure out why it's breaking.
An issue that you might run into would be the PHP max_input_vars value default is 1000 so you might want to bump that up to 3000 otherwise that could cause problems as well.
Edit this file:
Code: Select all
/etc/php.iniCode: Select all
max_input_vars = 3000
suhosin.post.max_vars = 3000
suhosin.request.max_vars = 3000I can give you a temporary workaround that might fix the issue by placing the new one at the top:
*** If you upgrade Nagios XI or update your actions component this will get reverted.
Edit this file:
Code: Select all
/usr/local/nagiosxi/html/includes/components/actions/actions.inc.phpCode: Select all
// Add an empty row at the end ...
$settings["actions"][] = array(
"enabled" => 0,
"type" => "any",
"host" => "",
"service" => "",
"hostgroup" => "",
"servicegroup" => "",
"action_type" => "url",
"url" => "",
"target" => "_blank",
"text" => "",
"code" => "",
);
Code: Select all
// Add an empty row at the end ...
array_unshift($settings["actions"], array(
"enabled" => 0,
"type" => "any",
"host" => "",
"service" => "",
"hostgroup" => "",
"servicegroup" => "",
"action_type" => "url",
"url" => "",
"target" => "_blank",
"text" => "",
"code" => "",
));