Configurating Quick Actions ( Action Component )

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Configurating Quick Actions ( Action Component )

Post 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" => "",
            ));
monitoreo1
Posts: 124
Joined: Wed Feb 18, 2015 10:41 am

Re: Configurating Quick Actions ( Action Component )

Post 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 : )
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Configurating Quick Actions ( Action Component )

Post by lmiltchev »

monitoreo1, let us know if upgrading the component fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
monitoreo1
Posts: 124
Joined: Wed Feb 18, 2015 10:41 am

Re: Configurating Quick Actions ( Action Component )

Post 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 !!!!
Locked