url hostname

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: url hostname

Post by ssax »

You are passing command line arguments, it is not a post or get. I assumed you were calling another server by URL.

Use $argv:

Code: Select all

var_dump($argv)
http://php.net/manual/en/reserved.variables.argv.php
http://php.net/manual/en/function.getopt.php
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: url hostname

Post by tmcdonald »

What page are you using to test? I see MyForm.php and test.php mentioned. Are you trying to enter this code into the "Code" field in the Actions component, or is this in the .php files you mention?
Former Nagios employee
monitoreo1
Posts: 124
Joined: Wed Feb 18, 2015 10:41 am

Re: url hostname

Post by monitoreo1 »

You can close the topic.
Thanks
Locked