Page 1 of 5

Actions component

Posted: Tue Mar 05, 2013 12:15 pm
by benhank
The problem I am having is that the ACTIONS component, not actions url, isn't saving the settings i put in it. the difference I am seeing between my testbox and prod box is that:
When I set a host group and update the settings the host group disapears from the settings and the settings dont apply
also there are only two fields available and not 3.
I am running the latest version that came with xi 2012 1.6
productionJPG.JPG

as compared to the test server:
test.JPG

Re: Actions component

Posted: Tue Mar 05, 2013 12:41 pm
by lmiltchev
What is the version # of the Actions component?

Admin->Manage Components

Did you try clicking on the "Check for Updates" from the "Manage Components" page to see if there is a newer version available?

Re: Actions component

Posted: Tue Mar 05, 2013 12:58 pm
by benhank
I am running the latest version that came with xi 2012 1.6

I forgot to mention, for some reason the apply applied my settings to all of my objects and not just the one hostgroup I selected. I cant reverse this because of the issue above

Re: Actions component

Posted: Tue Mar 05, 2013 4:49 pm
by benhank
sorry about that.
Hey, I tried to delete the component and then re reinstall after the reinstall, the url and url description was still there. Is there a way to uninstall the component and the components settings? The I can reinstall it fresh and maybe that will fix it.

Re: Actions component

Posted: Tue Mar 05, 2013 4:52 pm
by scottwilkerson
the reason there is only 2 fields is because you haven't saved any more... They are added dynamically

Re: Actions component

Posted: Tue Mar 05, 2013 5:08 pm
by benhank
thanks. actually we did an apply config and we have all three ffields back. But the bigger issue, which is the settings not saving is still there.

Re: Actions component

Posted: Tue Mar 05, 2013 5:49 pm
by lmiltchev
...the settings not saving is still there...
When you click on a host, member of the "Peabody" hostgroup, do you see the "Action" link under "Quick Actions"?

Re: Actions component

Posted: Tue Mar 05, 2013 6:00 pm
by benhank
no
also I am not using the actions url (I tried it today but that also doesn't work)

I am using the actions component and no the link doesn't show up.

Re: Actions component

Posted: Tue Mar 05, 2013 6:12 pm
by scottwilkerson
If you are saying the settings aren't saving that sounds like an issue, can you tail the error_log while trying to save

Code: Select all

tail -f /var/log/httpd/error_log

Re: Actions component

Posted: Tue Mar 05, 2013 7:07 pm
by benhank
here is what I get in the putty shell:

Code: Select all

[root@LkennagiosP01 ~]# tail -f /var/log/httpd/error_log
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Notice:  Undefined index: fieldmap in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Notice:  Undefined index: fieldmap in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Notice:  Undefined index: fieldmap in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Notice:  Undefined index: fieldmap in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Notice:  Undefined index: fieldmap in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
[Tue Mar 05 18:38:24 2013] [error] [client 172.22.27.159] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/includes/dbauth.inc.php on line 372, referer: http://172.22.2.123/nagiosxi/includes/components/opscreen/opscreen.php
^C
[root@LkennagiosP01 ~]#
but when I looked at my actual error log /var/httpd/error_log it is 100mb (!)
and this line has been repeating ever since sunday:

Code: Select all

Line 223409: [Mon Mar 04 13:25:35 2013] [error] [client 172.26.68.196] PHP Notice:  Undefined variable: enabled in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php on line 364, referer: http://sherlock/nagiosxi/admin/components.php?config=actions