Page 3 of 3

Re: Configurating Quick Actions ( Action Component )

Posted: Tue Apr 28, 2015 1:38 pm
by ssax
I did not find any differences in yours when compared to mine.

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.ini
Add or modify:

Code: Select all

max_input_vars = 3000
suhosin.post.max_vars = 3000
suhosin.request.max_vars = 3000

I 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.php
Change this code (around line 472) from:

Code: 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" => "",
            );
To:

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" => "",
            ));

Re: Configurating Quick Actions ( Action Component )

Posted: Tue Apr 28, 2015 6:06 pm
by monitoreo1
ok thanks a lot for your support !!!!

we are closing the day with 78 "quick actions" !!!!

in the short time we will shared you news !!!

thanks again : )

Re: Configurating Quick Actions ( Action Component )

Posted: Wed Apr 29, 2015 9:52 am
by lmiltchev
monitoreo1, let us know if upgrading the component fixed your issue.

Re: Configurating Quick Actions ( Action Component )

Posted: Wed Jul 08, 2015 12:05 pm
by monitoreo1
Hi Again !!!!

Yesterday, we experimented the issue reported, and it was resolved, with the editing of the variables:

max_input_vars = 10000
suhosin.post.max_vars = 10000
suhosin.request.max_vars = 10000

Thanks for your help !!!!