Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
Search Forums:



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-03-2010
Registered User
 

Join Date: Aug 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Monitoring services in zones with Solaris container Manager

I need to know how to Manage Solaris services (SMF) in sparse zone with Solaris container manager.
I have navigated all the documentation and I have not found any clue.
I installed the Sun management center (SMC) server on a server box and the agents on others. I can manage the SMF of the global zone by drilling down via the console GUI. But having access to the container manager, I have to go via https connection. And drilling down on the zone did not reveal that SMF can be monitored.
Please if you have any idea, share it with me.
Sponsored Links
    #2  
Old 02-03-2010
Registered User
 

Join Date: Feb 2010
Location: Canada
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Sometimes the easy way is just ssh into the zone or do a zlogin from the global and run the svc commands.

svcs shows what is currently online
svcs -a shows all of your services
svcs -x what is in maint mode
svcs -xv does the above verbosely.


You can created a quick and dirty shell script as well.

svcs -a | grep -i {service name}

svcadm enable/disable/restart {service} to manage the services

Dump the GUI.. CLI my friend is the way to go.
Sponsored Links
    #3  
Old 02-03-2010
ɹǝsn *sıɹɐlos*
 

Join Date: Dec 2007
Location: Paris
Posts: 3,712
Thanks: 11
Thanked 296 Times in 276 Posts
Quote:
Originally Posted by narbu View Post
svcs -a | grep -i {service name}
That one can be simplified (although case dependant) to:

Code:
svcs "*{service name}*"
eg:
svcs "*ftp*"

    #4  
Old 02-03-2010
Registered User
 

Join Date: Aug 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Hi All,
I am talking of continuos monitoring here. as i have to monitor sendmail service on local zones as well as the global zone. I was thinking of writing a script to check this service hourly but suppose the sendmail stops, I will not get a mail to alert me of about the problem that is why i am using SMC to do the monitoring and send me a mail for any service error.
I hope you understand my point?
Sponsored Links
    #5  
Old 02-03-2010
Registered User
 

Join Date: May 2008
Location: SINGAPORE.. The "FINE" City
Posts: 2,689
Thanks: 1
Thanked 16 Times in 16 Posts
Quote:
Originally Posted by ibroxy View Post
Hi All,
I am talking of continuos monitoring here. as i have to monitor sendmail service on local zones as well as the global zone. I was thinking of writing a script to check this service hourly but suppose the sendmail stops, I will not get a mail to alert me of about the problem that is why i am using SMC to do the monitoring and send me a mail for any service error.
I hope you understand my point?
Ya.. if you want hourly monitoring, thats the way to go..
What do you mean by continuous monitoring and check service hourly?
cannot tally...
Sponsored Links
    #6  
Old 02-04-2010
Registered User
 

Join Date: Aug 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
yes, its periodic monitoring like hourly
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 6 container support shafi2all Solaris 1 07-07-2009 08:54 AM
Solaris 8 Container Error cornsnap Solaris 0 02-23-2009 11:13 AM
Cant priocntl within solaris 10 non global container moofoo Solaris 1 05-19-2008 06:49 AM



All times are GMT -4. The time now is 05:49 AM.