Configure Remote Access in myLVS: Difference between revisions
Jump to navigation
Jump to search
Line 53: | Line 53: | ||
{| width="50%" | {| width="50%" | ||
| valign="top" | | | valign="top" | | ||
Add a new node,<br> | Add a new node,<br>Goto Setup/Setup Node and then to assign<br> <br> | ||
[[File:myLVS-ConfigureCommand.png|320px]]<br><br> | [[File:myLVS-ConfigureCommand.png|320px]]<br><br> | ||
| valign="top" | | | valign="top" | | ||
Configure meners of this node,<br> | Configure meners of this node,<br>Select any of the Server within the Node to configure<br> <br> | ||
[[File:myLVS-ConfigureCommandServer.png|320px]]<br><br> | [[File:myLVS-ConfigureCommandServer.png|320px]]<br><br> | ||
|} | |} |
Revision as of 17:53, 2 August 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 one of the nodes where the server is configured |
myLVS Service Command
Configure meners of this node, |