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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-07-2014, 05:12 AM
|
#1
|
LQ Newbie
Registered: Jul 2013
Posts: 11
Rep:
|
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?
|
|
|
02-07-2014, 05:47 AM
|
#2
|
Member
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90
Rep:
|
I use OmniVM engine to manage my vm's. Quite happy with it I am
|
|
|
02-07-2014, 06:02 AM
|
#3
|
LQ Newbie
Registered: Jul 2013
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by pingwinowiewc
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.
|
|
|
02-07-2014, 06:26 AM
|
#4
|
Member
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90
Rep:
|
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
|
|
|
02-07-2014, 10:17 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,423
|
Quote:
Originally Posted by pingwinowiewc
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.
|
|
|
02-10-2014, 07:09 AM
|
#6
|
LQ Newbie
Registered: Jul 2013
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
02-10-2014, 09:34 AM
|
#7
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,423
|
Quote:
Originally Posted by h4rri
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.
|
|
|
All times are GMT -5. The time now is 12:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|