Configure Remote Access in myLVS: Difference between revisions

From MyLVS
Jump to navigation Jump to search
 
(21 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
mysql> use mylvs;
 
*Insert the statements:
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'),
(3,1,'Reboot Server','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reboot',2,'Reboot Server');
 
 
 
*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'),
    ->  (3,1,'Reboot Server','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reboot',2,'Reboot Server');
Query OK, 3 rows affected (0.00 sec)
Records: 3  Duplicates: 0  Warnings: 0
 
=myLVS=




{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
Goto Setup/Setup Node and then to assign<br>&nbsp;<br>
Goto Setup/Server and then to assign<br>&nbsp;<br>
[[File:myLVS-ConfigureCommand.png|320px]]<br><br>
[[File:myLVS-ConfigureServerCommand.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
Pick any of the Server within the Node to configure<br>&nbsp;<br>
Choose the '''Rebboot''' Link<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServer.png|320px]]<br><br>
[[File:myLVS-ConfigureServerCommand01.png|380px]]<br><br>
|}
|}


{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
Set the '''Reset IIS''' command for this server/node<br>&nbsp;<br>
Goto one of the nodes where the server is configured<br>click the first aid symbol (bottom left)<br>
[[File:myLVS-ConfigureCommandServerDetail.png|320px]]<br><br>
[[File:myLVS-ServerCommand.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
Set the '''Reset Apache''' command for this server/node<br>&nbsp;<br>
Response<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServerDetail02.png|320px]]<br><br>
[[File:myLVS-ServerCommandResponse.png|380px]]<br><br>
|}
|}
==myLVS Service Command==




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


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




{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
Goto Setup/Setup Node and then to assign<br>&nbsp;<br>
Test any of the remote service <br><br>
[[File:myLVS-ConfigureServerCommand.png|320px]]<br><br>
[[File:myLVS-TstCommandServer.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
Pick any of the Server within the Node to configure<br>&nbsp;<br>
Click to restart '''IIS''' on '''web-01'''<br><br>
[[File:myLVS-ConfigureServerCommand01.png|320px]]<br><br>
[[File:myLVS-TstService.png|380px]]<br><br>
|}
|}


Line 83: Line 56:
{| width="50%"  
{| width="50%"  
| valign="top" |  
| valign="top" |  
Goto Setup/Setup Node and then to assign<br>&nbsp;<br>
Command output<br><br>
[[File:myLVS-ServerCommand.png|320px]]<br><br>
[[File:myLVS-TstServiceResponse.png|380px]]<br><br>
| valign="top" |  
| valign="top" |  
Pick any of the Server within the Node to configure<br>&nbsp;<br>
Sample Windows Event Viewer<br><br>
[[File:myLVS-ServerCommandResponse.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