Page 2 of 5

Re: Actions component

Posted: Tue Mar 05, 2013 11:21 pm
by scottwilkerson
While somewhat weird can you try installing this modified component

Re: Actions component

Posted: Wed Mar 06, 2013 10:58 am
by benhank
no good
ant this is what I get when I run the command:

Code: Select all

[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
I hit enter on the tail command, that immediately pops up. then I save my actions settings. and no new info is displayed.

then I save my actions settings and then run the command and that's all I get.

Re: Actions component

Posted: Wed Mar 06, 2013 11:59 am
by scottwilkerson
This is an error from yesterday... And is about opscreen, not the actions component

Re: Actions component

Posted: Wed Mar 06, 2013 1:29 pm
by benhank
that's the crazy thing I don't get any errors for actions.

scott is there a way to uninstall the component and clear wherever it saves its configuration? that way I can reinstall it "clean" maybe that will do it, the file coulda got corrupt or something.

Re: Actions component

Posted: Wed Mar 06, 2013 3:06 pm
by scottwilkerson
yes.

Remove the action component from Admin -> Manage Components (red X)

then run this from the command line

Code: Select all

echo "delete from xi_options where name ='actions_component_options';"|psql nagiosxi nagiosxi
Finally, you can reinstall the component

Re: Actions component

Posted: Wed Mar 06, 2013 4:15 pm
by benhank
my server is haunted man...

Code: Select all

[root@LkennagiosP01 ~]# echo "delete from xi_options where name ='actions_component_options';"|psql nagiosxi nagiosxi
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
[root@LkennagiosP01 ~]#

Re: Actions component

Posted: Wed Mar 06, 2013 5:10 pm
by benhank
Scott I dont know if it makes a difference, but when I save the settings without designating anything, then the change is applied globally. it's only when I try to select something and save that it fails.

Re: Actions component

Posted: Thu Mar 07, 2013 8:30 am
by scottwilkerson
benhank wrote:my server is haunted man...

Code: Select all

[root@LkennagiosP01 ~]# echo "delete from xi_options where name ='actions_component_options';"|psql nagiosxi nagiosxi
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
[root@LkennagiosP01 ~]#
Is postgresql running?

Code: Select all

service postgresql status
can you tail this log looking for errors

Code: Select all

tail /var/lib/pgsql/data/pg_log

Re: Actions component

Posted: Thu Mar 07, 2013 10:54 am
by benhank

Code: Select all

[root@LkennagiosP01 ~]# tail /var/lib/pgsql/data/pg_log
tail: error reading `/var/lib/pgsql/data/pg_log': Is a directory
[root@LkennagiosP01 ~]#

Re: Actions component

Posted: Thu Mar 07, 2013 11:29 am
by sreinhardt
ok, lets go for the logs denoted by day of the week. Since today is thurs, /var/lib/pgsql/data/pg_log/postgresql-Thu.log. If you have not used it today, choose another day when you have.