in reply to cgi script to retrieve disk space of unix servers

There are 2 things you might need to check: You also might want to add an "<br>" to the string to be printed.
  • Comment on Re: cgi script to retrieve disk space of unix servers

Replies are listed 'Best First'.
Re^2: cgi script to retrieve disk space of unix servers
by mojo-jojo (Novice) on Aug 04, 2011 at 10:10 UTC
    Hey thx a lot .. The webserver was running with the user id apache which did not have keys to ssh to the machine. I have put the .ssh folder in the home of user apache and it is working now. Thanks again.
      You really should not be letting the apache user have root keys to machines. That's a huge security risk. You should be doing it as a non root user that has limited access to the machine. Also, SNMP works very well for this and you could easily hack something together that does an SNMP walk on the host via cgi. TMTOWTDI.