Configure Remote Access in myLVS: Difference between revisions

From MyLVS
Jump to navigation Jump to search
No edit summary
Line 36: Line 36:
|}
|}


{| width="50%"
| valign="top" |
bla<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServerDetail.png|320px]]<br><br>
| valign="top" |
bla<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServerDetail02.png|320px]]<br><br>
|}




[[File:myLVS-ConfigureCommand.png|320px]]<br><br>
{| width="50%"
[[File:myLVS-ConfigureCommandServer.png|320px]]<br><br>
| valign="top" |  
[[File:myLVS-ConfigureCommandServerDetail.png|320px]]<br><br>
bla<br>&nbsp;<br>
[[File:myLVS-ConfigureCommandServerDetail02.png|320px]]<br><br>
[[File:myLVS-TstCommandServer.png|320px]]<br><br>
[[File:myLVS-TstCommandServer.png|320px]]<br><br>
| valign="top" |
bla<br>&nbsp;<br>
[[File:myLVS-TstService.png|320px]]<br><br>
[[File:myLVS-TstService.png|320px]]<br><br>
|}
{| width="50%"
| valign="top" |
bla<br>&nbsp;<br>
[[File:myLVS-TstServiceResponse.png|320px]]<br><br>
[[File:myLVS-TstServiceResponse.png|320px]]<br><br>
| valign="top" |
bla<br>&nbsp;<br>
[[File:myLVS-TstWindowsResponse.png|320px]]<br><br>
[[File:myLVS-TstWindowsResponse.png|320px]]<br><br>
|}

Revision as of 20:56, 11 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');


  • 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


myLVS

bla
 


bla
 


bla
 


bla
 



bla
 


bla
 



bla
 


bla