Prepare for myLVS Monitoring: Difference between revisions

From MyLVS
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
  (3,2,2,1,'Reset Apache'),
  (3,2,2,1,'Reset Apache'),
  (4,2,3,2,'Reset Apache');
  (4,2,3,2,'Reset Apache');
*Messaging:
INSERT INTO `tblMessaging` (`mid`,`type`,`mailfrom`,`server`,`mailto`,`mailcc`,`mailbcc`,`title`) VALUES
(1,1,'mylvs@yourdomain.com','smtp.yourdomain.com','you@yourdomain.com',NULL,NULL,'IT-Group');

Revision as of 18:45, 25 July 2015

A new command record is required initiating monitor requests. The monitoring ID will be 1 which means that this record is offered to be used for monitoring purposes.


INSERT INTO `tblCommands` (`cmdID`,`enabled`,`name`,`command`,`type`,`type-description`) VALUES 
(4,1,'Check HTTP','/usr/lib/nagios/plugins/check_http -H %HOST%',1,'Check IIS');


  • tblRecover
INSERT INTO `tblRecover` (`recID`,`enabled`,`name`,`command`) VALUES 
(1,1,'Reset IIS','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reset_iis'),
(2,1,'Reset Apache','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reset_apache'),
(3,1,'Reboot','/usr/lib/nagios/plugins/check_nrpe -H %HOST% -p 5666 -c reboot');
  • tblRecoverTasks
INSERT INTO `tblRecoverTasks` (`TaskID`,`recTaskID`,`recID`,`recClock`,`title`) VALUES 
(1,1,1,2,'Reset IIS'),
(2,1,3,5,'Reset IIS'),
(3,2,2,1,'Reset Apache'),
(4,2,3,2,'Reset Apache');


  • Messaging:
INSERT INTO `tblMessaging` (`mid`,`type`,`mailfrom`,`server`,`mailto`,`mailcc`,`mailbcc`,`title`) VALUES 
(1,1,'mylvs@yourdomain.com','smtp.yourdomain.com','you@yourdomain.com',NULL,NULL,'IT-Group');