Page 3 of 4

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

Posted: Wed Oct 23, 2013 3:11 pm
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.

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

Posted: Wed Oct 23, 2013 3:22 pm
by WillemDH
Yes, it's still opening a webpage.

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

Posted: Wed Oct 23, 2013 3:25 pm
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.

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

Posted: Wed Oct 23, 2013 3:27 pm
by WillemDH
I'm using IE10, gonna test immideatly with Firefox en review the code.

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

Posted: Wed Oct 23, 2013 3:36 pm
by abrist
Let me know. We can move to a remote if necessary - should be fixable quick.

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

Posted: Wed Oct 23, 2013 3:39 pm
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

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

Posted: Wed Oct 23, 2013 3:41 pm
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;}*/

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

Posted: Wed Oct 23, 2013 3:51 pm
by abrist
Do me a favor. Update the component and then re-apply my changes.

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

Posted: Wed Oct 23, 2013 4:04 pm
by WillemDH
It's already up to date (1.4)

Should I delete it and re-import it?

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

Posted: Wed Oct 23, 2013 4:14 pm
by abrist
yeah. Download it from the exchange.