Actions component

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Actions component

Post by scottwilkerson »

While somewhat weird can you try installing this modified component
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Actions component

Post by scottwilkerson »

This is an error from yesterday... And is about opscreen, not the actions component
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Actions component

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post 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 ~]#
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Actions component

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post 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 ~]#
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Actions component

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked