LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2014, 05:12 AM   #1
h4rri
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Rep: Reputation: Disabled
Debian 7: Host / service web status page


Hi,

I run a number of VM's and use Cacti to monitor the general health and traffic of these. I am looking to have a 'quick view' page which gives me a red, amber or [hopefully all] green status of the boxes or services on them and is available externally [web page].

Ideally for example I would like to offer my Plex shared users a page which shows the status of the Plex server and allow a custom message [upcoming downtime etc].

Can anyone recommend a suitable application? Thoughts?
 
Old 02-07-2014, 05:47 AM   #2
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
I use OmniVM engine to manage my vm's. Quite happy with it I am
 
Old 02-07-2014, 06:02 AM   #3
h4rri
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pingwinowiewc View Post
I use OmniVM engine to manage my vm's. Quite happy with it I am
The VM's are managed through the ESXi hypervisor client. I am more looking at checking the status of the Plex service and using this information to build a status page.
 
Old 02-07-2014, 06:26 AM   #4
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
Id use smart php-based script and some checks done via $_GET command. Treat your vm's as forms and try to get specific info from them in this way. Should do the trick
 
Old 02-07-2014, 10:17 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,423

Rep: Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111
Quote:
Originally Posted by pingwinowiewc View Post
I use OmniVM engine to manage my vm's. Quite happy with it I am
The OP isn't asking for VM management...they want to display status of a VM server to an end-user.
Quote:
Originally Posted by pingwinowiewc
Id use smart php-based script and some checks done via $_GET command. Treat your vm's as forms and try to get specific info from them in this way. Should do the trick
Oh? How would this 'do the trick'? How would you treat a SERVER as a 'form'??? Got some code you can post that shows how you'd do this? Again, please don't post incomplete/misleading/bad advice.

OP, since you already have cacti in place, have you considered using the built-in user management functions to create a read-only user for one server/server-group, and then only let them view the server preview page? That would give them up/down statistics, network IO, disk IO, etc., from one page, for their one server. No need to re-invent the wheel.

That being said, if the user management control in cacti isn't granular enough for you, you could just view the page source for that one VM server, and shove out a VERY simple web page for them. If you've got your Apache server set up to handle symbolic links, you can just have the web page in a user-accessible directory, with links to the graphs pointing back to the cacti directory. They'll update, but that one user would then only be able to view that ONE page, with their graphs...nothing else. And you can do it with a simple "save page as" when you view the source, and only have to modify the image path name for the symlink.
 
Old 02-10-2014, 07:09 AM   #6
h4rri
LQ Newbie
 
Registered: Jul 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks TB0ne.

I did consider Cacti and it's graphs but it gives too much information in this instance.

I am currently looking at polling the applicable service status and writing this to a file on a shared folder on the monitoring server, the server can then poll the local file and return the results.

Code:
service plex status > /mnt/svclog/plex.txt
This should allow me to achieve the required results with limited interaction between the 'status' machine and the rest of the hosts.
 
Old 02-10-2014, 09:34 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,423

Rep: Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111
Quote:
Originally Posted by h4rri View Post
Thanks TB0ne.
I did consider Cacti and it's graphs but it gives too much information in this instance.

I am currently looking at polling the applicable service status and writing this to a file on a shared folder on the monitoring server, the server can then poll the local file and return the results.
Code:
service plex status > /mnt/svclog/plex.txt
This should allow me to achieve the required results with limited interaction between the 'status' machine and the rest of the hosts.
Well, if that meets your needs that's great. Personally, I'd just get whatever graphs that Cacti was already generating, and put them on a page...since you could just get ONE (or two, or whatever) of them for whatever user, making a very simple 'subset' of the graphs would be easy. Granted, it's a manual step to be taken for each host, but if you come up with a template of graphs you want to see, it should be easy to script the implementation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
executing linux commands from web page and outputing it back to the web page ashes_sheldon Programming 9 02-28-2015 01:07 AM
Debian can't load web page - Kubuntu can Azizcoos Debian 23 10-27-2012 02:49 PM
There doesn't appear to be any service status information in the status log parthipan Linux - Server 1 06-25-2012 06:53 PM
Insert "show interface status" output to a client side web page nimnull22 Linux - Server 2 11-16-2010 03:15 PM
Self Refreshing Web Page for Status Monitoring markjuggles General 7 05-19-2008 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration