Configure Remote Access in myLVS: Difference between revisions

From MyLVS
Jump to navigation Jump to search
No edit summary
Line 25: Line 25:
  Records: 3  Duplicates: 0  Warnings: 0
  Records: 3  Duplicates: 0  Warnings: 0


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




Line 64: Line 87:
Windows Event Viewer<br><br>
Windows Event Viewer<br><br>
[[File:myLVS-TstWindowsResponse.png|320px]]<br><br>
[[File:myLVS-TstWindowsResponse.png|320px]]<br><br>
|}
=myLVS Server Command=
{| width="50%"
| valign="top" |
Goto Setup/Setup Node and then to assign<br>&nbsp;<br>
[[File:myLVS-ConfigureServerCommand.png|320px]]<br><br>
| valign="top" |
Pick any of the Server within the Node to configure<br>&nbsp;<br>
[[File:myLVS-ConfigureServerCommand01.png|320px]]<br><br>
|}
{| width="50%"
| valign="top" |
Goto Setup/Setup Node and then to assign<br>&nbsp;<br>
[[File:myLVS-ServerCommand.png|320px]]<br><br>
| valign="top" |
Pick any of the Server within the Node to configure<br>&nbsp;<br>
[[File:myLVS-ServerCommandResponse.png|320px]]<br><br>
|}
|}

Revision as of 18:29, 13 July 2015

Add the nrpe commands reset_iis / reset_apache to the myLVS command table:

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 Server Command

Goto Setup/Setup Node and then to assign
 


Pick any of the Server within the Node to configure
 



Goto Setup/Setup Node and then to assign
 


Pick any of the Server within the Node to configure
 


myLVS

Goto Setup/Setup Node and then to assign
 


Pick 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



Windows Event Viewer