6 Replies - 1704 Views - Last Post: 26 February 2012 - 11:11 PM

#1 shammancer  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 110
  • Joined: 03-September 10

Online task manager.

Posted 26 February 2012 - 10:33 PM

Hello everyone. I am looking for a way to get a task manager for my server. I know this would be extremely insecure normally however I am running my server only on a LAN no one would have access to it.

I am not afraid of making my own however I need help on where to start.

The functionality I want to include is:

  • List of programs running
  • List of daemons running
  • Being able to force close open programs
  • Being able to restart my server


My favoured language is PHP, I could live with Ruby or Python if needed.

Is This A Good Question/Topic? 0
  • +

Replies To: Online task manager.

#2 no2pencil  Icon User is online

  • Dic Head
  • member icon

Reputation: 5163
  • View blog
  • Posts: 26,830
  • Joined: 10-May 07

Re: Online task manager.

Posted 26 February 2012 - 10:37 PM

Assuming this is for a windows server, I would suggest something as simple as using php to touch active flags, & have the shell issue net start/net stop to reflect those changes to the server.

I'm not aware of any such service in existence, as most admins would simply connect over a shared desktop environment & manually handle the services.
Was This Post Helpful? 0
  • +
  • -

#3 shammancer  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 110
  • Joined: 03-September 10

Re: Online task manager.

Posted 26 February 2012 - 10:42 PM

Actually it is for Ubuntu and I am trying to do it like this because I want to do it from my phone.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is online

  • Dic Head
  • member icon

Reputation: 5163
  • View blog
  • Posts: 26,830
  • Joined: 10-May 07

Re: Online task manager.

Posted 26 February 2012 - 10:44 PM

I would again use the same procedure, except with the shell you can use ps to check for running processes & report this via the web interface. Then issue the correct stop/start either through /etc/rc.d or just kill the process id with dash nine.
Was This Post Helpful? 0
  • +
  • -

#5 shammancer  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 110
  • Joined: 03-September 10

Re: Online task manager.

Posted 26 February 2012 - 10:49 PM

May you give me the basic PHP system call?
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is online

  • Dic Head
  • member icon

Reputation: 5163
  • View blog
  • Posts: 26,830
  • Joined: 10-May 07

Re: Online task manager.

Posted 26 February 2012 - 11:04 PM

I wouldn't use php system calls. I would write a shell process to create flag files that report if a service is running or not. Then have php open those flag files to determine if the service is running or not running & report this via the website. Then when you press a button to stop a service, for example, create a stop flag file. The shell process (via a crontab) sees the newly created stop request, stops the service, & updates the flag file.
Was This Post Helpful? 0
  • +
  • -

#7 shammancer  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 110
  • Joined: 03-September 10

Re: Online task manager.

Posted 26 February 2012 - 11:11 PM

Awesome thanks for the explanation. I will start on it soon.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1