Custom action url doesn't seem to accept macro's

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Custom action url doesn't seem to accept macro's

Post by abrist »

Does it still open a new page? If not, then you most likely have a problem in your script or in the evaluated php in the component that is causing the error.
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
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Custom action url doesn't seem to accept macro's

Post by WillemDH »

Yes, it's still opening a webpage.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Custom action url doesn't seem to accept macro's

Post by abrist »

It shouldn't. What browser are you using? I tested it here on chrome and firefox. There must be something wrong with the edit.
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
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Custom action url doesn't seem to accept macro's

Post by WillemDH »

I'm using IE10, gonna test immideatly with Firefox en review the code.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Custom action url doesn't seem to accept macro's

Post by abrist »

Let me know. We can move to a remote if necessary - should be fixable quick.
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
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Custom action url doesn't seem to accept macro's

Post by WillemDH »

Hi Andy,

Sorry but I tested again with Firefox. Also reviewed the code, but it is exactly as you specified. I'm ok with a remote, but I have only 40 minutes left.. Let me know, then I'll send you an invite (as your vpn software gets blocked by our firewall :( )

Grtz
Nagios XI 5.8.1
https://outsideit.net
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Custom action url doesn't seem to accept macro's

Post by WillemDH »

Did another tail of the error log: THe popup windows is still there and the script is still working.

Same errors as last time but also (or maybe didnt notice ) this one:

PHP Notice: Undefined variable: servicestatus_xml in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php on line 691, referer: http://server/nagiosxi/includes/compone ... &dest=auto

The php code in the component is still default:

Code: Select all

/*if((%objecttype%=='host' && '%hoststateid%'!='0') || (%objecttype%=='service' && '%servicestateid%'!='0')){$img='/nagiosxi/images/schedulecheck.png';$showlink=true;} else{$showlink=false;}*/
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Custom action url doesn't seem to accept macro's

Post by abrist »

Do me a favor. Update the component and then re-apply my changes.
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
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Custom action url doesn't seem to accept macro's

Post by WillemDH »

It's already up to date (1.4)

Should I delete it and re-import it?
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Custom action url doesn't seem to accept macro's

Post by abrist »

yeah. Download it from the exchange.
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