in reply to Re: cgi script to retrieve disk space of unix servers
in thread cgi script to retrieve disk space of unix servers

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.
  • Comment on Re^2: cgi script to retrieve disk space of unix servers

Replies are listed 'Best First'.
Re^3: cgi script to retrieve disk space of unix servers
by osbosb (Monk) on Aug 04, 2011 at 13:24 UTC
    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.