Configure Remote Access in myLVS: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→mySQL) |
||
Line 18: | Line 18: | ||
(2,1,'Restart Apache','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reset_apache',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'); | (3,1,'Reboot Server','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reboot',2,'Reboot Server'); | ||
<BR><BR> | |||
Revision as of 18:04, 2 August 2015
Not all functions are implemented within the GUI, a few manual steps are required to setup remote access.
This will show how to setup the command table for nrpe commands for
- reset_iis
- reset_apache
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');
myLVS Server Command
Goto one of the nodes where the server is configured |
myLVS Service Command
Configure meners of this node, |