could not open input file: php mod_trial.php

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pumagaju
Posts: 3
Joined: Fri Feb 08, 2013 1:12 pm

could not open input file: php mod_trial.php

Post by pumagaju »

Hello,

I am trying to extend my trial period, but when I do I get the following error:
could not open input file: php mod_trial.php --key=<snip>
My nagios server is CentOS release 6.3 (Final)
Kernel 2.6.32-279.11.1.e16.x86_64

I'm green to both nagios and linux so any help would be great appreciated.

Thanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: could not open input file: php mod_trial.php

Post by scottwilkerson »

you need to be sure you are in the same directory that you uploaded the file to

for example, if you uploaded it to /tmp

Code: Select all

cd /tmp
php mod_trial.php --key=<snip>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
pumagaju
Posts: 3
Joined: Fri Feb 08, 2013 1:12 pm

Re: could not open input file: php mod_trial.php

Post by pumagaju »

Yes, I have confirmed I am in the proper directory. In this case it is: /usr/local/nagiosxi/tools

Thanks,
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: could not open input file: php mod_trial.php

Post by abrist »

What is the output of:

Code: Select all

$ ls -la /usr/local/nagiosxi/tools
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.
pumagaju
Posts: 3
Joined: Fri Feb 08, 2013 1:12 pm

Re: could not open input file: php mod_trial.php

Post by pumagaju »

When I run that I get this:

-bash: $: command not found
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: could not open input file: php mod_trial.php

Post by lmiltchev »

Run the command without the "$":

Code: Select all

ls -la /usr/local/nagiosxi/tools
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked