Actions component

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post by benhank »

The actions URL does not work for single hosts.

The Actions component does not work for single hosts either. Since the Actions component only allows for 3 actions, I would prefer to just work on the actions URL, because it has way more flexibility. So, forgetabout the Actions component and let's get the Actions URL working =D
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 »

out to kill me eh? ok here I go, but let it be known you a bad man abrist...
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 »

No, not working in IE iether.
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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Actions component

Post by abrist »

Hmmm. Both of the components work fine over here (just not hostgroup action urls).
Do you get any errors in /var/log/httpd/error_log when you click one of those links?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post by benhank »

Code: Select all

[root@LkennagiosP01 ~]# /var/log/httpd/error_log
-bash: /var/log/httpd/error_log: Permission denied
[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
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:The Actions component does not work for single hosts either. Since the Actions component only allows for 3 actions
Both statements not true... When you configure a host what are you putting in the field for Host: ?

as for the component only allowing 3 actions, this also isn't true, it just won't add more than 3 if you do not have them enabled...
benhank wrote:

Code: Select all

[root@LkennagiosP01 ~]# /var/log/httpd/error_log
-bash: /var/log/httpd/error_log: Permission denied
[root@LkennagiosP01 ~]#

try

Code: Select all

tail -f /var/log/httpd/error_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

[Mon Mar 11 14:08:42 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

is 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Actions component

Post by abrist »

hmmmm. Nothing there (it is just a warning pertaining to the opscreen component)
Do me a favor and try to run the vacuum commands from the following link to make sure the postgres database is a-ok:
http://support.nagios.com/wiki/index.ph ... .22_in_log
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Actions component

Post by benhank »

Code: Select all

[root@LkennagiosP01 ~]# psql nagiosxi nagiosxi
psql (8.4.12)
Type "help" for help.

nagiosxi=> VACUUM;
WARNING:  skipping "pg_authid" --- only superuser can vacuum it
WARNING:  skipping "pg_database" --- only superuser can vacuum it
WARNING:  skipping "pg_tablespace" --- only superuser can vacuum it
WARNING:  skipping "pg_pltemplate" --- only superuser can vacuum it
WARNING:  skipping "pg_shdepend" --- only superuser can vacuum it
WARNING:  skipping "pg_shdescription" --- only superuser can vacuum it
WARNING:  skipping "pg_auth_members" --- only superuser can vacuum it
VACUUM
nagiosxi=> VACUUM ANALYZE;
WARNING:  skipping "pg_authid" --- only superuser can vacuum it
WARNING:  skipping "pg_database" --- only superuser can vacuum it
WARNING:  skipping "pg_tablespace" --- only superuser can vacuum it
WARNING:  skipping "pg_pltemplate" --- only superuser can vacuum it
WARNING:  skipping "pg_shdepend" --- only superuser can vacuum it
WARNING:  skipping "pg_shdescription" --- only superuser can vacuum it
WARNING:  skipping "pg_auth_members" --- only superuser can vacuum it
VACUUM
nagiosxi=> VACUUM FULL;
WARNING:  skipping "pg_authid" --- only superuser can vacuum it
WARNING:  skipping "pg_database" --- only superuser can vacuum it
WARNING:  skipping "pg_tablespace" --- only superuser can vacuum it
WARNING:  skipping "pg_pltemplate" --- only superuser can vacuum it
WARNING:  skipping "pg_shdepend" --- only superuser can vacuum it
WARNING:  skipping "pg_shdescription" --- only superuser can vacuum it
WARNING:  skipping "pg_auth_members" --- only superuser can vacuum it
VACUUM
nagiosxi=>  \q
[root@LkennagiosP01 ~]# psql postgres postgres
psql (8.4.12)
Type "help" for help.

postgres=# VACUUM;
VACUUM
postgres=# VACUUM ANALYZE;
VACUUM
postgres=# VACUUM FULL;
VACUUM
postgres=# \q
[root@LkennagiosP01 ~]# tail -f /var/log/httpd/error_log                        [Mon Mar 11 16:05:27 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
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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Actions component

Post by abrist »

No change in the actions behavior I presume good sir?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked