Configure Remote Access in myLVS: Difference between revisions

From MyLVS
Jump to navigation Jump to search
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:


Add the nrpe commands reset_iis / reset_apache to the myLVS command table:
==myLVS Server Command GUI==


=mySQL=
*Login
root@mylvs01:/# mysql -u root -p


*Change the database
{| width="50%"
mysql> use mylvs;
| valign="top" |
 
Goto Setup/Server and then to assign<br>&nbsp;<br>
*Insert the statements:
[[File:myLVS-ConfigureServerCommand.png|380px]]<br><br>
mysql> INSERT INTO `tblCommands` (`cmdID`,`enabled`,`name`,`command`,`type`,`type-description`) VALUES
| valign="top" |
(1,1,'Reset IIS','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reset_iis',2,'Reset Service'),
Choose the '''Rebboot''' Link<br>&nbsp;<br>
(2,1,'Restart Apache','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reset_apache',2,'Reset Service');
[[File:myLVS-ConfigureServerCommand01.png|380px]]<br><br>
 
|}
 
*The Return should look:
mysql> INSERT INTO `tblCommands` (`cmdID`,`enabled`,`name`,`command`,`type`,`type-description`) VALUES
    -> (1,1,'Reset IIS','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reset_iis',2,'Reset Service'),
    -> (2,1,'Restart Apache','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reset_apache',2,'Reset Service');
Query OK, 2 rows affected (0.00 sec)
Records: 2  Duplicates: 0  Warnings: 0




{| width="50%"
| valign="top" |
Goto one of the nodes where the server is configured<br>click the first aid symbol (bottom left)<br>
[[File:myLVS-ServerCommand.png|380px]]<br><br>
| valign="top" |
Response<br>&nbsp;<br>
[[File:myLVS-ServerCommandResponse.png|380px]]<br><br>
|}


=myLVS=
==myLVS Service Command==




{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
Goto Setup/Setup Node and then to assign<br>&nbsp;<br>
Add or edit a node,<br>Goto Setup/Setup Node and then to assign<br>&nbsp;<br>
[[File:myLVS-ConfigureCommand.png|320px]]<br><br>
[[File:myLVS-ConfigureCommand.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
bla<br>&nbsp;<br>
Configure members of this node,<br>Select any of the Server within the Node to configure<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServer.png|320px]]<br><br>
[[File:myLVS-ConfigureCommandServer.png|380px]]<br><br>
|}
|}


{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
bla<br>&nbsp;<br>
Set the '''Reset IIS''' command for this server/node<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServerDetail.png|320px]]<br><br>
[[File:myLVS-ConfigureCommandServerDetail.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
bla<br>&nbsp;<br>
Set the '''Reset Apache''' command for this server/node<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServerDetail02.png|320px]]<br><br>
[[File:myLVS-ConfigureCommandServerDetail02.png|380px]]<br><br>
|}
|}


Line 48: Line 46:
{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
bla<br>&nbsp;<br>
Test any of the remote service <br><br>
[[File:myLVS-TstCommandServer.png|320px]]<br><br>
[[File:myLVS-TstCommandServer.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
bla<br>&nbsp;<br>
Click to restart '''IIS''' on '''web-01'''<br><br>
[[File:myLVS-TstService.png|320px]]<br><br>
[[File:myLVS-TstService.png|380px]]<br><br>
|}
|}


Line 58: Line 56:
{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
bla<br>&nbsp;<br>
Command output<br><br>
[[File:myLVS-TstServiceResponse.png|320px]]<br><br>
[[File:myLVS-TstServiceResponse.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
bla<br>&nbsp;<br>
Sample Windows Event Viewer<br><br>
[[File:myLVS-TstWindowsResponse.png|320px]]<br><br>
[[File:myLVS-TstWindowsResponse.png|380px]]<br><br>
|}
|}

Latest revision as of 16:22, 7 September 2015

myLVS Server Command GUI

Goto Setup/Server and then to assign
 


Choose the Rebboot Link
 



Goto one of the nodes where the server is configured
click the first aid symbol (bottom left)


Response
 


myLVS Service Command

Add or edit a node,
Goto Setup/Setup Node and then to assign
 


Configure members of this node,
Select any of the Server within the Node to configure
 


Set the Reset IIS command for this server/node
 


Set the Reset Apache command for this server/node
 



Test any of the remote service



Click to restart IIS on web-01




Command output



Sample Windows Event Viewer