|
|
|
@ -66,7 +66,7 @@ INSERT INTO tconfig (token, value) VALUES ('graph_res','5');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('step_compact','1');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('db_scheme_first_version','6.0orc');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES('db_scheme_version','NG_BETA');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES('db_scheme_build','PD170302');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES('db_scheme_build','PD170308');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('show_unknown','0');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('show_lastalerts','1');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('style','pandora');
|
|
|
|
@ -138,6 +138,7 @@ INSERT INTO tconfig (token, value) VALUES ('custom_report_front_footer', '');
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('identification_reminder', 1);
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('identification_reminder_timestamp', 0);
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('MR', 0);
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('current_package_enterprise', 700);
|
|
|
|
|
INSERT INTO tconfig (token, value) VALUES ('post_process_custom_values', '{"0.00000038580247":"Seconds to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.0009765625":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}');
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
@ -1442,3 +1443,378 @@ INSERT INTO tupdate_settings VALUES ('proxy_pass', '');
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tmodule IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tmodule_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule VALUES (7, 'Web module');
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tmodule', 'id_module');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tmodule_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE ttipo_modulo IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER ttipo_modulo_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO ttipo_modulo VALUES (30,'web_data',9,'Remote HTTP module to check latency','mod_web_data.png');
|
|
|
|
|
INSERT INTO ttipo_modulo VALUES (31,'web_proc',9,'Remote HTTP module to check server response','mod_web_proc.png');
|
|
|
|
|
INSERT INTO ttipo_modulo VALUES (32,'web_content_data',9,'Remote HTTP module to retrieve numeric data','mod_web_data.png');
|
|
|
|
|
INSERT INTO ttipo_modulo VALUES (33,'web_content_string',9,'Remote HTTP module to retrieve string data','mod_web_data.png');
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('ttipo_modulo', 'id_tipo');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER ttipo_modulo_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
-- Some inserts to this table are divided cause oracle cannot perform an insert of a string with a length above the 4000 characters
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tmodule_inventory IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tmodule_inventory_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (1,1,'CPU','CPU','/usr/bin/perl','Model;Company;Speed','IyEvdXNyL2Jpbi9wZXJsDQojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIw0KIyBwYW5kb3JhX2NwdS5wbA0KIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMNCiMgQ29weXJpZ2h0IChjKSAyMDA4IFJhbW9uIE5vdm9hLCBybm92b2FAYXJ0aWNhLmVzDQojICAgICAgICAgICAoYykgMjAwOCBBcnRpY2EgU29sdWNpb25lcyBUZWNub2xvZ2ljYXMgUy5MDQojDQojIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOyB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3INCiMgbW9kaWZ5IGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UNCiMgYXMgcHVibGlzaGVkIGJ5IHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb247IHZlcnNpb24gMi4NCiMNCiMgVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsDQojIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mDQojIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGUNCiMgR05VIEdlbm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GluZSAoQGNwdV9pbmZvKSB7DQoJaWYgKCRsaW5lID1+IC9tb2RlbCBuYW1lXHMrOlxzKyguKikvKSB7DQoJCSRtb2RlbCA9ICQxOw0KCX0gZWxzaWYgKCRsaW5lID1+IC92ZW5kb3JfaWRccys6XHMrKC4qKS8pIHsNCgkJJHZlbmRvciA9ICQxOw0KCX0gZWxzaWYgKCRsaW5lID1+IC9jcHUgTUh6XHMrOlxzKyguKikvKSB7DQoJCSRzcGVlZCA9ICQxOw0KCX0NCn0NCiANCnJldHVybiAxIGlmICgkbW9kZWwgZXEgJycgfHwgJHZlbmRvciBlcSAnJyB8fCAkc3BlZWQgZXEgJycpOw0KcHJpbnQgIiRtb2RlbDskdmVuZG9yOyIgLiBzcHJpbnRmICgiJS4wZiIsICRzcGVlZCkgLiAiIE1IelxuIjsNCg0KZXhpdCAwOw0K',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (2,9,'CPU','CPU','/usr/bin/perl','Name;Speed;Description','IyEvdXNyL2Jpbi9wZXJsDQojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIw0KIyBwYW5kb3JhX2NwdS5wbA0KIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMNCiMgQ29weXJpZ2h0IChjKSAyMDA4IFJhbW9uIE5vdm9hLCBybm92b2FAYXJ0aWNhLmVzDQojICAgICAgICAgICAoYykgMjAwOCBBcnRpY2EgU29sdWNpb25lcyBUZWNub2xvZ2ljYXMgUy5MDQojDQojIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOyB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IN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0KCQlpZiAoZGVmaW5lZCgkZWxlbWVudC0+eyRtb2R1bGVfZGVzY3JpcHRpb259KSkgew0KCQkJJHJlc3VsdCAuPSAkZWxlbWVudC0+eyRtb2R1bGVfZGVzY3JpcHRpb259IC4gIjsiOw0KCQl9DQoNCgkJcHJpbnQgJHJlc3VsdCAuICJcbiI7CQ0KCX0NCn0NCg0KIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMNCiMgTWFpbg0KIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMNCg0KbXkgQHJlc3VsdCA9IHJ1bl9xdWVyeSgiU0VMRUNUIE5hbWUsIE1heENsb2NrU3BlZWQsIERlc2NyaXB0aW9uIEZST00gV2luMzJfUHJvY2Vzc29yIik7DQpwcmludF9tb2R1bGVkYXRhICgiTmFtZSIsICJNYXhDbG9ja1NwZWVkIiwgIkRlc2NyaXB0aW9uIiwgXEByZXN1bHQpOw0KZXhpdCAwOw0K' WHERE id_module_inventory = 2;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (3,1,'RAM','Memory modules','','Model;Size','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (4,9,'RAM','Memory modules','/usr/bin/perl','Tag;Capacity;Name','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV9yYW0ucGwKIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjI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QlpZiAoZGVmaW5lZCgkZWxlbWVudC0+eyRtb2R1bGVfZGF0YX0pKSB7CgkJCSRyZXN1bHQgLj0g JyAnIC4gc3ByaW50ZigiJS4xZiIsICRlbGVtZW50LT57JG1vZHVsZV9kYXRhfSAvIDEwNDg1NzYp IC4gIiBNQnl0ZXM7IjsKCQl9CgoJCSMgRGVzY3JpcHRpb24KCQlpZiAoZGVmaW5lZCgkZWxlbWVu dC0+eyRtb2R1bGVfZGVzY3JpcHRpb259KSkgewoJCQkkcmVzdWx0IC49ICRlbGVtZW50LT57JG1v ZHVsZV9kZXNjcmlwdGlvbn07CgkJfQoKCQlwcmludCAkcmVzdWx0IC4gIlxuIjsJCgl9Cn0KCiMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjCiMgTWFpbgojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwoKbXkgQHJlc3VsdCA9IHJ1 bl9xdWVyeSgiU0VMRUNUIFRhZywgQ2FwYWNpdHksIE5hbWUgRlJPTSBXaW4zMl9QaHlzaWNhbE1l bW9yeSIpOwpwcmludF9tb2R1bGVkYXRhICgiVGFnIiwgIkNhcGFjaXR5IiwgIk5hbWUiLCBcQHJl c3VsdCk7CmV4aXQgMDsK' WHERE id_module_inventory = 4;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (5,1,'Video','Video cards','','Controller;Model;Company','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (6,9,'Video','Video cards','/usr/bin/perl','Caption;AdapterRAM;VideoProcessor','IyEvdXNyL2Jpbi9wZXJsCiMjI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1lbnQtPnskbW9kdWxlX2l0ZW19KSkgewoJ CQkkcmVzdWx0IC49ICRlbGVtZW50LT57JG1vZHVsZV9pdGVtfSAuICc7JzsKCQl9CgoJCSMgRGF0 YQoJCWlmIChkZWZpbmVkKCRlbGVtZW50LT57JG1vZHVsZV9kYXRhfSkpIHsKCQkJJHJlc3VsdCAu PSAnICcgLiBzcHJpbnRmKCIlLjFmIiwgJGVsZW1lbnQtPnskbW9kdWxlX2RhdGF9IC8gMTA0ODU3 NikgLiAiIE1CeXRlczsiOwoJCX0KCgkJIyBEZXNjcmlwdGlvbgoJCWlmIChkZWZpbmVkKCRlbGVt ZW50LT57JG1vZHVsZV9kZXNjcmlwdGlvbn0pKSB7CgkJCSRyZXN1bHQgLj0gJyAnIC4gJGVsZW1l bnQtPnskbW9kdWxlX2Rlc2NyaXB0aW9ufTsKCQl9CgoJCXByaW50ICRyZXN1bHQgLiAiXG4iOwkK CX0KfQoKIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMKIyBNYWluCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCgpteSBAcmVz dWx0ID0gcnVuX3F1ZXJ5KCJTRUxFQ1QgQ2FwdGlvbiwgQWRhcHRlclJBTSwgVmlkZW9Qcm9jZXNz b3IgRlJPTSBXaW4zMl9WaWRlb0NvbnRyb2xsZXIiKTsKcHJpbnRfbW9kdWxlZGF0YSAoIkNhcHRp b24iLCAiQWRhcHRlclJBTSIsICJWaWRlb1Byb2Nlc3NvciIsIFxAcmVzdWx0KTsKZXhpdCAwOwo=' WHERE id_module_inventory = 6;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (7,1,'NIC','Network Interface Cards','','Device;Model;Company;MACAddress','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (8,9,'NIC','Network Interface Cards','/usr/bin/perl','Caption;MACAddress;IPAddress','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV9uaWMucGwKIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMKIyBDb3B5cmlnaHQgKGMpIDIwMDggUmFtb24gTm92b2EsIHJub3ZvYUBhcnRp Y2EuZXMKIyAgICAgICAgICAgKGMpIDIwMDggQXJ0aWNhIFNvbHVjaW9uZXMgVGVjbm9sb2dpY2Fz IFMuTAojCiMgVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmli dXRlIGl0IGFuZC9vcgojIG1vZGlmeSBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5l cmFsIFB1YmxpYyBMaWNlbnNlCiMgYXMgcHVibGlzaGVkIGJ5IHRoZSBGcmVlIFNvZnR3YXJlIEZv dW5kYXRpb247IHZlcnNpb24gMi4KIwojIFRoaXMgcHJvZ3JhbSBpcyBkaXN0cmlidXRlZCBpbiB0 aGUgaG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNlZnVsLAojIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5U WTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mCiMgTUVSQ0hBTlRBQklMSVRZ IG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiA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IiwgIk1BQ0FkZHJlc3MiLCAiSVBBZGRyZXNzIiwgXEByZXN1bHQp OwpleGl0IDA7Cg==' WHERE id_module_inventory = 8;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (9,1,'HD','Hard drives','','Type;Model;Size','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (10,9,'HD','Hard drives','/usr/bin/perl','Model;Size;SystemName','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV9oZC5wbAojIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIwojIENvcHlyaWdodCAoYykgMjAwOCBSYW1vbiBOb3ZvYSwgcm5vdm9hQGFydGlj YS5lcwojICAgICAgICAgICAoYykgMjAwOCBBcnRpY2EgU29sdWNpb25lcyBUZWNub2xvZ2ljYXMg Uy5MCiMKIyBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3RyaWJ1 dGUgaXQgYW5kL29yCiMgbW9kaWZ5IGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVy YWwgUHVibGljIExpY2Vuc2UKIyBhcyBwdWJsaXNoZWQgYnkgdGhlIEZyZWUgU29mdHdhcmUgRm91 bmRhdGlvbjsgdmVyc2lvbiAyLgojCiMgVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRo ZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsCiMgYnV0IFdJVEhPVVQgQU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woK bXkgQHJlc3VsdCA9IHJ1bl9xdWVyeSgiU0VMRUNUIE1vZGVsLCBTaXplLCBTeXN0ZW1OYW1lIEZS T00gV2luMzJfRGlza0RyaXZlIik7CnByaW50X21vZHVsZWRhdGEgKCJNb2RlbCIsICJTaXplIiwg IlN5c3RlbU5hbWUiLCBcQHJlc3VsdCk7CQpleGl0IDA7Cg==' WHERE id_module_inventory = 10;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (11,1,'CDROM','CD-ROM drives','','Type;Model;Features','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (12,9,'CDROM','CD-ROM drives','/usr/bin/perl','Name;Description;Drive','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV9jZHJvbS5wbAojIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIwojIENvcHlyaWdodCAoYykgMjAwOCBSYW1vbiBOb3ZvYSwgcm5vdm9hQGFy dGljYS5lcwojICAgICAgICAgICAoYykgMjAwOCBBcnRpY2EgU29sdWNpb25lcyBUZWNub2xvZ2lj YXMgUy5MCiMKIyBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3Ry aWJ1dGUgaXQgYW5kL29yCiMgbW9kaWZ5IGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdl bmVyYWwgUHVibGljIExpY2Vuc2UKIyBhcyBwdWJsaXNoZWQgYnkgdGhlIEZyZWUgU29mdHdhcmUg R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MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMKCm15IEByZXN1bHQgPSBydW5fcXVlcnkoIlNFTEVDVCBOYW1lLCBEZXNjcmlwdGlvbiwgRHJp dmUgRlJPTSBXaW4zMl9DRFJPTURyaXZlIik7CnByaW50X21vZHVsZWRhdGEgKCJOYW1lIiwgIkRl c2NyaXB0aW9uIiwgIkRyaXZlIiwgXEByZXN1bHQpOwpleGl0IDA7Cg==' WHERE id_module_inventory = 12;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (13,1,'Software','Installed software packages','','Name;Version;Description','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (14,9,'Software','Installed software packages','/usr/bin/perl','Name;Version;InstallDate;Size','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV9zb2Z0d2FyZS5wbAoj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIwojIENvcHlyaWdodCAoYykgMjAwOCBSYW1vbiBOb3ZvYSwgcm5vdm9h QGFydGljYS5lcwojICAgICAgICAgICAoYykgMjAwOCBBcnRpY2EgU29sdWNpb25lcyBUZWNub2xv Z2ljYXMgUy5MCiMKIyBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRp c3RyaWJ1dGUgaXQgYW5kL29yCiMgbW9kaWZ5IGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05V IEdlbmVyYWwg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VyeSgiU0VMRUNUIE5hbWUsIFZlcnNpb24gRlJPTSBXaW4zMl9Qcm9k dWN0Iik7CnByaW50X21vZHVsZWRhdGEgKCJOYW1lIiwgIlZlcnNpb24iLCAiIiwgXEByZXN1bHQp OwpleGl0IDA7Cg==' WHERE id_module_inventory = 14;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (15,9,'Patches','Installed patches','/usr/bin/perl','HotFixID;Description;FixComments;ServicePackInEffect','IyEvdXNyL2Jpbi9wZXJsDQojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIw0KIyBwYW5kb3JhX3BhdGNoLnBsDQojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIw0KIyBDb3B5cmlnaHQgKGMpIDIwMDggUmFtb24gTm92b2EsIHJub3ZvYUBhcnRpY2EuZXMNCiMgICAgICAgICAgIChjKSAyMDA4IEFydGljYSBTb2x1Y2lvbmVzIFRlY25vbG9naWNhcyBTLkwNCiMNCiMgVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vcg0KIyBtb2RpZnkgaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZQ0KIyBhcyBwdWJsaXNoZWQgYnkgdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgdmVyc2lvbiAyLg0KIw0KIyBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCwNCiMgYnV0IFdJVEh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G1vZHVsZV9zZXJ2aWNlcGFja30pKSB7DQoJCQkkcmVzdWx0IC49ICRlbGVtZW50LT57JG1vZHVsZV9zZXJ2aWNlcGFja307DQoJCX0NCg0KCQlwcmludCAkcmVzdWx0IC4gIlxuIjsJDQoJfQ0KfQ0KDQojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIw0KIyBNYWluDQojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIw0KDQpteSBAcmVzdWx0ID0gcnVuX3F1ZXJ5KCJTRUxFQ1QgSG90Rml4SUQsIERlc2NyaXB0aW9uLCBGaXhDb21tZW50cywgU2VydmljZVBhY2tJbkVmZmVjdCBGUk9NIFdpbjMyX1F1aWNrRml4RW5naW5lZXJpbmciKTsNCnByaW50X21vZHVsZWRhdGEgKCJIb3RGaXhJRCIsICJEZXNjcmlwdGlvbiIsICJGaXhDb21tZW50cyIsICJTZXJ2aWNlUGFja0luRWZmZWN0IiwgXEByZXN1bHQpOw0KZXhpdCAwOw0K' WHERE id_module_inventory = 15;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (16,1,'Init services','Services programmed to lauch in Unix','','Service','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (17,9,'Init services','Windows services','/usr/bin/perl','Name;PathName;State','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV9zZXJ2aWNlcy5wbAo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pbmVkKCRlbGVtZW50LT57JG1vZHVsZV9kYXRhfSkpIHsKCQkJJHJlc3Vs dCAuPSAkZWxlbWVudC0+eyRtb2R1bGVfZGF0YX0gLiAnOyc7CgkJfQoKCQkjIERlc2NyaXB0aW9u CgkJaWYgKGRlZmluZWQoJGVsZW1lbnQtPnskbW9kdWxlX2Rlc2NyaXB0aW9ufSkpIHsKCQkJJHJl c3VsdCAuPSAkZWxlbWVudC0+eyRtb2R1bGVfZGVzY3JpcHRpb259OwoJCX0KCgkJcHJpbnQgJHJl c3VsdCAuICJcbiI7CQoJfQp9CgojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwojIE1haW4KIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMKCm15IEByZXN1bHQgPSBydW5fcXVlcnkoIlNFTEVDVCBOYW1lLCBQYXRoTmFtZSwgU3Rh dGUgRlJPTSBXaW4zMl9TZXJ2aWNlIik7CnByaW50X21vZHVsZWRhdGEgKCJOYW1lIiwgIlBhdGhO YW1lIiwgIlN0YXRlIiwgXEByZXN1bHQpOwpleGl0IDA7Cg==' WHERE id_module_inventory = 17;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (18,1,'File system','UNIX filesystem mounted on system','','Device;Free size;Total size;Mount point','',0);
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (19,9,'File system','Disk drives','','Device;Total size;Free size;Mount point','',0);
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (20,1,'Process','Process running on system','','Process output from ps','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (21,9,'Process','Process running on system','/usr/bin/perl','Name;PathName;State','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV9wcm9jZXNzZXMucGwK IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMKIyBDb3B5cmlnaHQgKGMpIDIwMDggUmFtb24gTm92b2EsIHJub3Zv YUBhcnRpY2EuZXMKIyAgICAgICAgICAgKGMpIDIwMDggQXJ0aWNhIFNvbHVjaW9uZXMgVGVjbm9s b2dpY2FzIFMuTAojCiMgVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVk aXN0cmlidXRlIGl0IGFuZC9vcgojIG1vZGlmeSBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdO VSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlCiMgYXMgcHVibGlzaGVkIGJ5IHRoZSBGcmVlIFNvZnR3 YXJlIEZvdW5kYXRpb247IHZlcnNpb24gMi4KIwojIFRoaXMgcHJvZ3JhbSBpcyBkaXN0cmlidXRl ZCBpbiB0aGUgaG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNlZnVsLAojIGJ1dCBXSVRIT1VUIEFOWSBX QVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mCiMgTUVSQ0hBTlRB QklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiAgU2VlIHRoZQojIEdO VSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlI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INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (22,1,'Users','User list','','Username','',0);
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (23,9,'Users','User list','/usr/bin/perl','Name;FullName;Status','IyEvdXNyL2Jpbi9wZXJsCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCiMgcGFuZG9yYV91c2Vycy5wbAojIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIwojIENvcHlyaWdodCAoYykgMjAwOCBSYW1vbiBOb3ZvYSwgcm5vdm9hQGFy dGljYS5lcwojICAgICAgICAgICAoYykgMjAwOCBBcnRpY2EgU29sdWNpb25lcyBUZWNub2xvZ2lj YXMgUy5MCiMKIyBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3Ry aWJ1dGUgaXQgYW5kL29yCiMgbW9kaWZ5IGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdl bmVyYWwgUHVibGljIExpY2Vuc2UKIyBhcyBwdWJsaXNoZWQgYnkgdGhlIEZyZWUgU29mdHdhcmUg Rm91bmRhdGlvbjsgdmVyc2lvbiAyLgojCiMgVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGlu IHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsCiMgYnV0IFdJVEhPVVQgQU5ZIFdBUlJB TlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2YKIyBNRVJDSEFOVEFCSUxJ VFkgb3IgRklUTkVTUyBGT1IgQSBQQVJ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==' WHERE id_module_inventory = 23;
|
|
|
|
|
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (24,9,'Services','Services installed','','Name;Command;Status','',0);
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (25,15,'Software','Installed software applications','','Name;Version;Description','',0);
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (26,7,'Cisco Interface Remote Inventory','Remote inventory module to get all cards in a Cisco','/usr/bin/perl','Name;Card Name;ID/Serial','IyEvdXNyL2Jpbi9wZXJsDQojSW52ZW50YXJpbyBkZSBUYXJqZXRhcw0KI1Nsb3Q7UGFydE51bWJlcjtTZXJpYWxOdW1iZXINCg0KIyEvdXNyL2Jpbi9wZXJsIC13DQoNCm15ICR0YXJnZXRfaXAgPSAkQVJHVlswXTsNCm15ICRjb21tdW5pdHkgPSAkQVJHVlsxXTsNCg0KI34gRXhlY3V0ZSBjb21tYW5kDQokY29tbWFuZCA9IGBzbm1wd2FsayAtdjJjIC1jICRjb21tdW5pdHkgJHRhcmdldF9pcCBtaWItMi40Ny4xLjEuMS4xLjJgOw0KDQojfiBTcGxpdCB0aGUgb3V0cHV0IGluIGxpbmVzDQpAdGVtcCA9IHNwbGl0ICgiXG4iLCAkY29tbWFuZCk7DQpteSBAdmFsdWVzOw0KDQojfiBFYWNoIGxpbmUNCmZvcmVhY2ggKEB0ZW1wKSB7DQoJI34gc3dhcCBkb3RzIGJ5IHNwYWNlcw0KCSRfID1+IHMvXC4vIC9nOw0KCSN+IHNwbGl0IHRoZSBsaW5lIGJ5IHNwYWNlcw0KCUBsaW5lID0gc3BsaXQgKC8gLywgJF8pOw0KCSN+IHNhdmUgdGhlIDd0aCB2YWx1ZQ0KCXB1c2ggKEB2YWx1ZXMsICRsaW5lWzddKTsNCn0NCg0KZm9yZWFjaCAoQHZhbH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SERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (27,7,'Cisco Inventory','Get remote device information about the cisco device','/usr/bin/perl','IP;Hardware;SerialNumber;IOS','IyEvdXNyL2Jpbi9wZXJsDQoNCiNJbmZvcm1hY2lvbiBkZWwgRXF1aXBvDQojSVA7SGFyZHdhcmU7U2VyaWFsTnVtYmVyO0lPUw0KDQpteSAkdGFyZ2V0X2lwID0gJEFSR1ZbMF07DQpteSAkY29tbXVuaXR5ID0gJEFSR1ZbMV07DQoNCiRyZXN1bHQgPSAnJzsNCiMkcmVzdWx0IC49IGBzbm1wZ2V0IC12MmMgLWMgJGNvbW11bml0eSAtT3ZxICR0YXJnZXRfaXAgc3lzTmFtZS4wYCAuICc7JzsNCiRyZXN1bHQgLj0gJHRhcmdldF9pcCAuICc7JzsNCiRlcnJvciA9ICcnOw0KJGVycm9yIC49IGBzbm1wZ2V0IC12MmMgLWMgJGNvbW11bml0eSAtT3ZxICR0YXJnZXRfaXAgbWliLTIuNDcuMS4xLjEuMS4yLjEgfCBncmVwIGV4aXN0c2A7DQokc2VyaWFsID0gJyc7DQokc2VyaWFsIC49IGBzbm1wZ2V0IC12MmMgLWMgJGNvbW11bml0eSAtT3ZxICR0YXJnZXRfaXAgbWliLTIuNDcuMS4xLjEuMS4xMS4xYDsNCiRzZXJpYWwgPX4gcy9cInxcbnxcPHxcPnxcJnxcW3xcXS8vZzsNCg0KaWYgKCRlcnJvciBlcSAiIiAmJiAkc2VyaWFsIG5lICIiKXsNCiAgICAkcmVzdWx0IC49IGBzbm1wZ2V0IC12MmMgLWMgJGNvbW11bml0eSAtT3ZxICR0YXJnZXRfaXAgbWliLTIuNDcuMS4xLjEuMS4yLjFgIC4gJzsnOw0KICAgICRyZXN1bHQgLj0gYHNubXBnZXQgLXYyYyAtYyAkY29tbXVuaXR5IC1PdnEgJHRhcmdldF9pcCBtaWItMi40Ny4xLjEuMS4xLjExLjFgIC4gJzsnOw0KDQp9IGVsc2Ugew0KICAgICRWU1MgPSAnJzsNCiAgICAkVlNTIC49IGBzbm1wZ2V0IC12MmMgLWMgJGNvbW11bml0eSAtT3ZxICR0YXJnZXRfaXAgbWliLTIuNDcuMS4xLjEuMS4yLjEgfCBncmVwIFZpcnR1YWxgOw0KICAgIGlmICgkVlNTIGVxICIiKSB7DQogICAgICAgICRyZXN1bHQgLj0gYHNubXBnZXQgLXYyYyAtYyAkY29tbXVuaXR5IC1PdnEgJHRhcmdldF9pcCBtaWItMi40Ny4xLjEuMS4xLjIuMTAwMWAgLiAnOyc7DQogICAgICAgICRyZXN1bHQgLj0gYHNubXBnZXQgLXYyYyAtYyAkY29tbXVuaXR5IC1PdnEgJHRhcmdldF9pcCBtaWItMi40Ny4xLjEuMS4xLjExLjEwMDFgIC4gJzsnOw0KICAgIH0gZWxzZSB7DQogICAgICAgICRyZXN1bHQgLj0gYHNubXBnZXQgLXYyYyAtYyAkY29tbXVuaXR5IC1PdnEgJHRhcmdldF9pcCBtaWItMi40Ny4xLjEuMS4xLjIuMWAgLiAnOyc7DQogICAgICAgICRyZXN1bHQgLj0gYHNubXBnZXQgLXYyYyAtYyAkY29tbXVuaXR5IC1PdnEgJHRhcmdldF9pcCBtaWItMi40Ny4xLjEuMS4xLjExLjJgIC4gJzsnOw0KICAgIH0NCn0NCg0KJHJlc3VsdCAuPSBgc25tcGdldCAtdjJjIC1jICRjb21tdW5pdHkgLU92cSAkdGFyZ2V0X2lwIHN5c0Rlc2NyLjAgfCBncmVwIElPU2A7DQokcmVzdWx0ID1+IHMvXCJ8XG58XDx8XD58XCZ8XFt8XF0vL2c7DQpwcmludCAkcmVzdWx0IC4gIlxuIjsNCmV4aXQgMDsNCg==',0);
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (28,1,'IP','IP address','','Interface;Address','',0);
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (29,1,'Routes','Routes table','','Destination;Gateway;Mask;Flags;Metric;Use;Interface','',0);
|
|
|
|
|
INSERT INTO tmodule_inventory (id_module_inventory, id_os, name, description, interpreter, data_format, code, block_mode) VALUES (30,7,'Cisco Configuration','This script will collect a remote CISCO configuration','/usr/bin/perl','Configuration dump','IyEvdXNyL2Jpbi9wZXJsIAojCiMgKGMpIEFydGljYSAyMDE0CiMgVGhpcyBpcyBhbiBFbnRlcnByaXNlIGludmVudG9yeSBzY3JpcHQgZm9yIFBhbmRvcmEgRk1TIDUKIyBUaGlzIHNjcmlwdCB3aWxsIGNvbGxlY3QgYSByZW1vdGUgQ0lTQ08gY29uZmlndXJhdGlvbgojIFJFTUVNQkVSIFRPIEFDVElWQVRFIElUIEFTIEJMT0NLIE1PREUgISEhCgp1c2Ugd2FybmluZ3M7CnVzZSBzdHJpY3Q7CnVzZSBOZXQ6OlRlbG5ldDsKCm15ICR0YXJnZXQgPSAiIjsKbXkgJGxvZ2luX3Bhc3MgPSAiIjsKbXkgJGVuYWJsZV9wYXNzID0gIiI7Cm15ICRvdXRwdXRfZmlsZSA9ICIvdG1wL2Npc2NvIi4kJDsKbXkgJFRJTUVPVVQ9NTsKCiMgTG9hZCBjb25maWcgZmlsZSBmcm9tIGNvbW1hbmQgbGluZQppZiAoJCNBUkdWIDwgMiAgKXsKICAgICAgICBwcmludCAiSSBuZWVkIHNldmVyYWwgcGFyYW1ldGVycyBpbiB0aGlzIGZvcm1hdDogXG5cbiI7CglwcmludCAiICAgICAgZ2V0X2NvbmZpZy5wbCA8aXBfYWRkcmVzcz4gPGxvZ2luX3Bhc3M+IDxlbmFibGVfcGFzcz4gXG5cbiI7CiAgICAgICAgZXhpdDsKfQoKJHRhcmdldCA9ICRBUkdWWzBdOwokbG9naW5fcGFzcyA9ICRBUkdWWzFdOwokZW5hYmxlX3Bhc3MgPSAkQVJHVlsyXTsKCm15ICR0ZWxuZXQgPSBuZXcgTmV0OjpUZWxuZXQgKCBUaW1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IGGER tmodule_inventory_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
-- PLSQL for update curr val of sequence
|
|
|
|
|
-- BEGIN
|
|
|
|
|
-- DECLARE key_max NUMBER := 0;
|
|
|
|
|
-- key_currval NUMBER := 0;
|
|
|
|
|
-- BEGIN
|
|
|
|
|
-- SELECT MAX(ID_SG) INTO key_max FROM tnetwork_component_group;
|
|
|
|
|
-- EXECUTE IMMEDIATE 'ALTER SEQUENCE TNETWORK_COMPONENT_GROUP_S INCREMENT BY ' || key_max;
|
|
|
|
|
-- SELECT TNETWORK_COMPONENT_GROUP_S.NEXTVAL INTO key_currval FROM dual;
|
|
|
|
|
-- EXECUTE IMMEDIATE 'ALTER SEQUENCE TNETWORK_COMPONENT_GROUP_S INCREMENT BY 1';
|
|
|
|
|
-- END;
|
|
|
|
|
-- END;;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `tlocal_component`
|
|
|
|
|
--
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tlocal_component IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tlocal_component_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (1,'Event 1000','module_begin\r\nmodule_name Event_1000-Citrix\r\nmodule_description\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source application\r\nmodule_eventtype\r\nmodule_eventcode 1000\r\nmodule_application\r\nmodule_end ','',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (2,'Event 1004','module_begin\r\nmodule_name Event_1004-Citrix\r\nmodule_description\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source application\r\nmodule_eventtype\r\nmodule_eventcode 1004\r\nmodule_application\r\nmodule_end ','',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (3,'Event 1202','module_begin\r\nmodule_name Event_1202-Citrix\r\nmodule_description\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source application\r\nmodule_eventtype\r\nmodule_eventcode 1202\r\nmodule_application\r\nmodule_end\r\nn ','',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (4,'Event 3621','module_begin\r\nmodule_name Event_3621\nr\nmodule_description Citrix cannot connect SQL server\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source application\r\nmodule_eventtype Error\r\nmodule_eventcode 3621\r\nmodule_application\r\nmodule_end ','Citrix cannot connect SQL server',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (5,'Event 9014','module_begin\r\nmodule_name Event_9014\nr\nmodule_description Invalid licence\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source system\r\nmodule_eventtype Error\r\nmodule_eventcode 9014\r\nmodule_application MetaFrame\r\nmodule_end ','Invalid licence',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (6,'Event 5774','module_begin\r\nmodule_name Event_5774\nr\nmodule_description Server goes to grace period (Not enough licences)\r\ndurante 96hr).\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source system\r\nmodule_eventtype Error\r\n\nmodule_eventcode 5774\r\nmodule_application MetaFrame\r\nmodule_end ','Server goes to grace period (Not enough licences)',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (7,'Event 1388','module_begin\r\nmodule_name Event_1388\nr\nmodule_description Citrix internal monitoring\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source application\r\nmodule_eventtype\r\nmodule_eventcode 1388\r\nmodule_application HCAService\r\nmodule_end ','Citrix internal monitoring',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (8,'Event 3961','module_begin\r\nmodule_name Event_3961\nr\nmodule_description The Data Collector is out of memory, and the Dynamic Store data might be out of sync. Please elect a new Data Collector and make sure you have enough memory on the new Data Collector\r\nmodule_type async_string\r\nmodule_logevent\r\nmodule_source System\r\nmodule_eventtype\r\nmodule_eventcode 3961\r\nmodule_application\r\nmodule_end ','The Data Collector is out of memory, and the Dynamic Store data might be out of sync. Please elect a new Data Collector and make sure you have enough memory on the new Data Collector',9,'',25,23,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (9,'Serv_HCA','module_begin\r\nmodule_name Serv_HCA\r\nmodule_description\r\nmodule_type generic_proc\r\nmodule_service HCAService\r\nmodule_end ','',9,'',25,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (10,'Serv_CTXcpusvnc','module_begin\r\nmodule_name Serv_CTXcpusvnc\r\nmodule_description\r\nmodule_type generic_proc\r\nmodule_service CTXCpuusync\r\n\nmodule_end ','',9,'',25,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (11,'Serv_IMA','module_begin\r\nmodule_name Serv_IMA\r\n\nmodule_description\r\nmodule_type generic_proc\r\nmodule_service IMAService\r\nmodule_end ','',9,'',25,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (13,'Serv_CTXSMA','module_begin\r\nmodule_name Serv_CTXSMA\r\nmodule_description\r\nmodule_type generic_proc\r\nmodule_service Citrix SMA Service\r\nmodule_end','',9,'',25,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (14,'Citrix_Sessions','module_begin\r\nmodule_name Citrix_Sessions\r\nmodule_description Opened active sessions on server\r\nmodule_type generic_data\r\nmodule_exec query session | grep Active | wc -l\r\nmodule_end ','Opened active sessions on server',9,'',25,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (15,'Users_Connected','module_begin\r\nmodule_name Users_Connected\r\nmodule_description Users connected to this server\r\nmodule_type generic_data\r\nmodule_exec quser | grep Active | wc -l\r\nmodule_interval 2\r\nmodule_end\r\n ','Users connected to this server',9,'',25,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (16,'Busy XML Threads','module_begin\r\nmodule_name Busy XML Threads\r\nmodule_description Total threads in the manager who manage the sessions. If there are more than XX, service fails. NOTE: Run this module only in managers\r\nmodule_type generic_data\r\nmodule_exec Typeperf '\\MAQUINA\Citrix Metaframe Presentation Server\Number of busy XML threads' -sc 1\r\nmodule_end\r\n','Total threads in the manager who manage the sessions. If there are more than XX, service fails. NOTE: Run this module only in managers',9,'',25,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (17,'CPU Load','module_begin
module_name CPU Load
module_type generic_data
module_wmiquery SELECT LoadPercentage FROM Win32_Processor
module_wmicolumn LoadPercentage
module_description CPU Load (%)
module_min_warning 80
module_max_warning 90
module_min_critical 91
module_max_critical 100
module_end','CPU Load (using WMI)',9,'',11,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (18,'FreeMemory','# Free Memory
module_begin
module_name FreeMemory
module_type generic_data
module_freepercentmemory
module_description Free memory (%).
module_min_warning 21
module_max_warning 30
module_min_critical 0
module_max_critical 20
module_end','Free memory (%).',9,'',11,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (19,'Microsoft Antivirus','module_begin
module_name Microsoft Antivirus
module_type generic_proc
module_service MsMpSvc
module_description Check if microsoft antivirus/malware service is running
module_end','Check if microsoft antivirus/malware service is running',9,'',11,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (21,'Microsoft Firewall','module_begin
module_name Microsoft Firewall
module_type generic_proc
module_service MpsSvc
module_description Microsoft windows firewall status.
module_end','Microsoft windows firewall status.',9,'',11,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (22,'Kaspersky Antivirus','module_begin
module_name Kaspersky Antivirus
module_type generic_proc
module_service AVP
module_description Kaspersky Antivirus
module_end','Checks Karspersky Antivirus service status',9,'',11,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (23,'CPU Free','module_begin 
module_name  CPU Free
module_type generic_data
module_exec echo $(( 100-vmstat 1 2 | tail -1 | awk '{ print $15 }'))
module_max 100
module_min 0
module_description Percentage CPU Free
module_end','Percentage of free CPU',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (24,'Load Average','module_begin
module_name Load Average
module_type generic_data
module_exec uptime | awk -F "," '{print $3}' | awk '{print $3}' | tr ­d "\n"
module_description Average load last minute
module_end
','Load average for last minute',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (25,'Memory Free','module_begin
module_name Memory Free
module_type generic_data
module_freepercentmemory
module_description Percentage Mem Free
module_end
','Percentage of free memory',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (26,'Disk Free','module_begin
module_name Disk Free
module_type generic_data
module_freepercentdisk /
module_description  Percentage Free Disk
module_end
','Percentage of free disk',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (27,'SSH Status','module_begin
module_name SSH Status
module_type generic_proc
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
module_description Check ssh service
module_end','Monitors SSH server status',1,'',43,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (28,'Free i-nodes','module_begin
module_name Free i-nodes
module_type generic_data
module_exec df -i | grep -E "/$" | tail -1 | awk '{print 100-(($3/$2)*100)}'
module_max 100
module_min 0
module_description Percentage Free i-nodes
module_end
','Percentage of free i-nodes',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (29,'FreeDiskC','module_begin
module_name FreeDiskC
module_type generic_data
module_freepercentdisk C:
module_description Free space on drive C: (%)
module_min_warning 31
module_max_warning 40
module_min_critical 0
module_max_critical 30
module_end
','Free space on disk C: (%)',9,'',11,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (30,'Windows_Update_LastRun','module_begin
module_name Windows_Update_LastRun
module_type generic_data_string
module_exec getreg LM "SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" SetupWizardLaunchTime
module_description Last date and time user launch microsoft Windows update
module_end','Last date and time user launch microsoft Windows update',9,'',11,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (31,'cpu_user','module_begin
module_name cpu_user
module_type generic_data
module_interval 1
module_exec vmstat -n0 1 2 | tail -1 | awk '{ print $15 }'
module_max 100
module_min 0
module_description User CPU Usage (%)
module_end','User CPU Usage (%)',4,'',47,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (32,'cpu_system','module_begin
module_name cpu_system
module_type generic_data
module_interval 1
module_exec vmstat -n0 1 2 | tail -1 | awk '{ print $16 }'
module_max 100
module_min 0
module_description System CPU Usage (%)
module_end','System CPU Usage (%)',4,'',47,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (33,'Load Average','module_begin
module_name Load Average
module_type generic_data
module_exec uptime | cut -d "," -f 4 | cut -d ":" -f 2 | sed "s/ //g"
module_description Average process in CPU (Last minute)
module_end
','Average process in CPU (Last minute)',4,'',47,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (34,'disk_root_free','module_begin
module_name disk_root_free
module_type generic_data
module_exec df -kh / | tail -1 | awk '{ print 100-$5 }'
module_max 100
module_min 0
module_description Free disk Percentage of root partition
module_end','Free disk Percentage of root partition',4,'',47,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (35,'memfree','module_begin
module_name memfree
module_type generic_data
module_exec vmstat -H 1 2 | tail -1 | awk '{print $5}'
module_description Unused RAM memory
module_end
','Free memory on system',4,'',47,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (36,'sshDaemon','module_begin
module_name sshDaemon
module_type generic_proc
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l | sed "s/ //g"
module_end
','Check if SSH daemon is running',4,'',47,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (37,'cpu_user','module_begin
module_name cpu_user
module_type generic_data
module_interval 1
module_exec sar 1 2 | tail -1 | awk '{ print $2 }'
module_max 100
module_min 0
module_description User CPU Usage (%)
module_min_warning 70
module_max_warning 90
module_min_critical 91
module_max_critical 100
module_end','User CPU Usage (%)',8,'',48,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (38,'Load Average','module_begin
module_name Load Average
module_type generic_data
module_exec uptime | sed 's/.*load averages: //'|awk '{print $1}'
module_description Average process in CPU (Last minute)
module_end
','Average process in CPU (Last minute)',8,'',48,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (39,'Cache mem free','module_begin
module_name Cache mem free
module_type generic_data
module_exec vm_stat | grep 'Pages free'| awk '{print $3/256}'
module_description Free cache memory in MB
module_min_warning 500
module_max_warning 600
module_min_critical 100
module_max_critical 499
module_end
','Free cache memory in MB',8,'',48,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (40,'Free disk Percentage of root partition','module_begin
module_name disk_root_free
module_type generic_data
module_exec df -kh / | tail -1 | awk '{ print 100-$5 }'
module_max 100
module_min 0
module_description Free disk Percentage of root partition
module_min_warning 70
module_max_warning 90
module_min_critical 91
module_max_critical 100
module_end','Free disk Percentage of root partition',8,'',48,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (41,'disk_usage_/','module_begin
module_name disk_usage_/
module_type generic_data
module_exec df -P | grep -e "/$" | awk '{print $5}' | tr -d %
module_description  Disk usage on / (%)
module_end','Disk usage on / (%)',5,'',44,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (42,'Swap_Free','module_begin
module_name Swap_Free
module_type generic_data
module_exec /usr/sbin/swapinfo -t | grep memory | tr -d "%" | awk '{ print 100-$5 }'
module_description Unused swap memory
module_end
','Unused swap memory',5,'',44,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (43,'RAM_Free','module_begin
module_name RAM_Free
module_type generic_data
module_exec /usr/sbin/swapinfo -t | grep memory | awk '{print $4}'
module_description Unused RAM memory
module_end
','Unused RAM memory',5,'',44,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (44,'CPU_User','module_begin
module_name CPU_User
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $16 }'
module_description % of USER CPU
module_end','% of USER CPU',5,'',44,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (45,'CPU_System','module_begin
module_name CPU_System
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $17 }'
module_description % of system CPU
module_end
','% of system CPU',5,'',44,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (46,'disk_root_free','module_begin
module_name disk_root_free
module_type generic_data
module_exec df -k / | tail -1 | tr -d "%" | awk '{ print 100-$5 }'
module_max 100
module_min 0
module_description Free disk Percentage of root partition
module_end','Free disk Percentage of root partition',2,'',45,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (47,'Swap_Free','module_begin
module_name Swap_Free
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $4 }'
module_description Unused swap memory
module_end','Unused swap memory',2,'',45,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (48,'RAM_Free','module_begin
module_name RAM_Free
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $5 }'
module_description Unused RAM memory
module_end','Unused RAM memory',2,'',45,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (49,'CPU_System','module_begin
module_name CPU_System
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $21 }'
module_description % of system CPU
module_end','% of system CPU',2,'',45,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (50,'Disk_Seek_Operations','module_begin
module_name Disk_Seek_Operations
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $14 }'
module_description Disk Seek operations
module_end','Disk Seek operations',2,'',45,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (51,'Pandora_Agent_RAM','module_begin
module_name Pandora_Agent_RAM
module_type generic_data
module_exec ps -Afly | grep perl | grep -v grep | awk '{ print $9 }'
module_description Return size in KB of memory used by process Pandora
module_end
','Return size in KB of memory used by process Pandora',2,'',45,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (52,'InetdDaemon','module_begin
module_name InetdDaemon
module_type generic_proc
module_exec ps -Af | grep inetd | grep -v "grep" | wc -l |  awk '{ print $1 }'
module_end','Check inetd daemon running',2,'',45,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (53,'Pandora_Agent_RAM','module_begin
module_name Pandora_Agent_RAM
module_type generic_data
module_exec ps axu | grep perl | grep -v grep | awk '{ print $4 }' | tr "," "."
module_end
','Return RAM used by pandora fms agent.',3,'',46,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (54,'InetdDaemon','module_begin
module_name InetdDaemon
module_type generic_proc
module_exec ps -Af | grep inetd | grep -v "grep" | wc -l |  awk '{ print $1 }'
module_end
','Check inetddaemon running in system',3,'',46,2,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (55,'disk_root_free','module_begin
module_name disk_root_free
module_type generic_data
module_exec df -k / | tail -1 | awk '{ print 100-$4 }'
module_max 100
module_min 0
module_description Free disk Percentage of root partition
module_end','Free disk Percentage of root partition',3,'',46,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (56,'OpenedFiles ','module_begin 
module_name OpenedFiles 
module_type generic_data 
module_exec lsof | wc -l 
module_description Total files opened in system 
module_end ','Total files opened in system ',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (57,'Zombie processes','module_begin 
module_name Zombie processes 
module_type generic_data 
module_exec ps ­eos | grep Z | wc ­l | tr ­d “\n” 
module_description Number of zombie processes 
module_end ','Number of zombie processes ',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tlocal_component (id, name, data, description, id_os, os_version, id_network_component_group, type, max, min, module_interval, id_module_group, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, post_process, unit, wizard_level, macros, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, tags, disabled_types_event, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (58,'Disk_IO_Wait','module_begin 
module_name Disk_IO_Wait 
module_type generic_data 
module_exec top -n 3 -c | grep "Cpu" | awk '{ print $6 }' | grep -o "[0-9]*" | tail -1 
module_description Simple approach to IO/Wait monitoring. 
module_end ','Simple approach to IO/Wait monitoring. ',1,'',43,1,0,0,0,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,0.000000000000000,NULL,'basic',NULL,'','','',0,0,0,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tlocal_component', 'id');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tlocal_component_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `tskin`
|
|
|
|
|
--
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tskin IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tskin_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tskin VALUES (1, 'skin default', 'skin_default', 'Default skin for Pandora FMS web console', 1);
|
|
|
|
|
INSERT INTO tskin VALUES (2,'Legacy', 'legacy', 'Skin of the visual style of Pandora FMS 4.x and previous versions', 1);
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tskin', 'id');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tskin_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
--- Dumping data for table `tcollection`
|
|
|
|
|
---
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tcollection IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tcollection_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tcollection VALUES (1,'Apache Enterprise Plugin','apache_plugin',0,'Apache Enterprise Plugin to monitor Apache web server using a Perl script.',0);
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tcollection', 'id');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tcollection_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
--- Example policies
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tpolicies IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tpolicies_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tpolicies VALUES (1,'Basic Web Checks','Basic checks to monitoring webs',13,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (2,'Basic Windows Local Monitoring','Basic checks to monitoring Windows Systems',2,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (3,'Basic Centos/RedHat Local Monitoring','Basic local checks to monitoring Centos/RedHat systems',2,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (4,'Basic SuSe Local Monitoring','Basic local checks to monitoring SuSe systems',2,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (5,'Basic Debian/Ubuntu Local Monitoring','Basic local checks to monitoring Debian/Ubuntu systems',2,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (6,'Basic AIX Local Monitoring','Basic local checks to monitoring AIX systems',2,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (7,'Basic HP-UX Local Monitoring','Basic local checks to monitoring HP/UX systems',2,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (8,'Basic Solaris Local Monitoring','Basic local checks to monitoring Solaris systems',2,0);
|
|
|
|
|
INSERT INTO tpolicies VALUES (9,'Basic Remote Checks','Basic Remote Checks (ping, latency, ports..)',2,0);
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tpolicies', 'id');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tpolicies_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tpolicy_modules IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tpolicy_modules_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (1, 1,'',9,'','Check 80 port','',0,0,300,80,'','','public','',1,1,2,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'',NULL,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (2, 1,'',9,'','Check 443 port','',0,0,300,80,'','','public','',1,1,2,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'',NULL,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (3, 1,'',30,'','Check Web Latency','',0,0,0,0,'','','public','',1,1,7,0,0,'Pandora FMS 3.0 / Webcheck','1','task_begin
get http://www.google.com
check_string iGoogle
task_end',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'',NULL,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (4, 1,'',31,'','Check Web Content','',0,0,0,0,'','','public','',1,1,7,0,0,'Pandora FMS 3.0 / Webcheck','1','task_begin
get http://www.google.com
check_string iGoogle
task_end',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'',NULL,'','',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (5, 2,'module_begin
module_name WMI Service
module_type generic_proc
module_service winmgmt
module_description WMI Service enabled
module_end
',2,'','WMI Service','',0,0,1,0,'','','','',3,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (6, 2,'module_begin 
module_name Account deleted
module_type async_string
module_logevent
module_source Security
module_eventcode 4726
module_description Account deleted
module_end
',23,'','Account deleted','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (7, 8,'module_begin
module_name CPU %
module_type generic_data
module_exec vmstat 1 1 | tail -1| awk '{print (100-$NF)}'
module_description CPU usage %
module_unit %
module_end',1,'','CPU %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (8, 8,'module_begin
module_name CPU User
module_type generic_data
module_exec vmstat 1 1 | tail -1| awk '{print $(NF-2)}'
module_description CPU user usage %
module_unit %
module_end


',1,'','CPU User','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (9, 8,'module_begin
module_name Load Average
module_type generic_data
module_exec uptime | awk '{print $(NF-2)}' | tr -d ','
module_description Load average
module_end',1,'','Load Average','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (10, 8,'module_begin
module_name Memory Free %
module_type generic_data
module_freepercentmemory
module_description Percentage Mem Free
module_end



',1,'','Memory Free %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,8.00,15.00,'0',0.00,7.00,'0',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (11, 8,'module_begin
module_name Total processes
module_type generic_data
module_exec ps -A | wc -l | awk '{print $1}'
module_description Total processes
module_end




',1,'','Total processes','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (12, 8,'module_begin
module_name Uptime
module_type generic_data_string
module_exec uptime |sed s/us\.*$//g | sed s/,\.*$//g
module_description Host Up time
module_end
',1,'','Uptime','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (13, 8,'module_begin
module_name Swap Free %
module_type generic_data
module_exec swap -l |tail -1 | awk '{print $NF / $(NF-1) * 100}'
module_unit %
module_description Swap memory available in %
module_end
',1,'','Swap Free %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (14, 8,'module_begin
module_name Service sshd status
module_type generic_proc
module_exec netstat -anu | grep LISTEN  | grep sshd | wc -l | awk '{print $1}'
module_end',2,'','Service sshd status','',0,0,1,0,'','','','',3,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (15, 9,'',6,'','Host Alive','',0,0,300,0,'','','','',2,1,2,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (16, 9,'',9,'','Check HTTP Server','',0,0,300,80,'','','','',3,1,2,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (17, 9,'',9,'','Check SSH Server','',0,0,300,22,'','','','',2,1,2,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (18, 9,'',7,'','Host Latency','',0,0,300,0,'','','','',2,1,2,0,0,'','','',0,0.000000000000000,0,0,0,'',1,80.00,149.00,'',150.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (19, 2,'module_begin
module_name Free percent disk C:
module_type generic_data
module_freepercentdisk C:
module_end


',1,'','Free percent disk C:','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (20, 2,'module_begin
module_name Memory Free %
module_type generic_data
module_freepercentmemory
module_description Percentage Mem Free
module_end



',1,'','Memory Free %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,8.00,15.00,'0',0.00,7.00,'0',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (21, 2,'module_begin
module_name CPU %
module_type generic_data
module_cpuusage all
module_unit %
module_end


',1,'','CPU %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,80.00,90.00,'',91.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (22, 2,'module_begin
module_name Processor User Time %
module_type generic_data
module_perfcounter \Processor Information(_Total)\% User Time
module_cooked 1
module_description Processor_User_Time (%)
module_end




',1,'','Processor User Time %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.001000000000000,0,0,0,'',1,75.00,84.00,'',85.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (23, 2,'module_begin
module_name Total processes
module_type generic_data
module_exec tasklist | wc -l | gawk "{print $1}"
module_end


',1,'','Total processes','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (24, 2,'module_begin
module_name Load Average
module_type generic_data
module_perfcounter \System(_Total)\Processor Queue Length
module_end
',1,'','Load Average','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (25, 2,'module_begin
module_name Uptime
module_type generic_data_string
module_exec net statistics server | grep since | gawk "{print \"Up since \"$3\" \"$4\" \"$5}"
module_end


',1,'','Uptime','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (26, 7,'module_begin
module_name Memory Free %
module_type generic_data
module_exec echo "" > /tmp/hpvm_toptest; top -d 1 -f /tmp/hpvm_toptest 2>/dev/null 1>/dev/null; cat /tmp/hpvm_toptest | grep -i Memory | head -1 | awk '{print $8/($2+$5) * 100}'
module_end


',1,'','Memory Free %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (27, 7,'module_begin
module_name CPU %
module_type generic_data
module_cpuusage all
module_unit %
module_end
',1,'','CPU %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (28, 7,'module_begin
module_name CPU User
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $(16) }'
module_description % of User CPU
module_unit %
module_end

',1,'','CPU User','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (29, 7,'module_begin
module_name Total processes
module_type generic_data
module_exec echo $(((ps -e | wc -l)-1)) | tr -d “\n”
module_description Total processes
module_end

',1,'','Total processes','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (30, 7,'module_begin
module_name Zombie processes
module_type generic_data
module_exec ps -­elf | awk '$2~/'Z'/{print $2}' | wc -l | tr -d "\n"
module_description Zombie processes
module_end
',1,'','Zombie processes','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (31, 7,'module_begin
module_name  Service sshd status
module_type generic_proc
module_exec ps -ef | grep  -v grep | grep "/opt/ssh/sbin/sshd" | wc -l
module_description SSH running
module_end

',2,'','Service sshd status','',0,0,1,0,'','','','',3,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (32, 6,'module_begin
module_name CPU %
module_type generic_data
module_exec sar 1 | tail -1 | awk '{print 100 - $5}'
module_description CPU usage in %
module_unit %
module_end',1,'','CPU %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (33, 6,'module_begin
module_name Memory Free %
module_type generic_data
module_exec svmon -G|grep memory | awk '{print (1- $3/$2 )*100}'
module_description Percentage Mem Free
module_end
',1,'','Memory Free %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (34, 6,'module_begin
module_name CPU User
module_type generic_data
module_exec sar 1 | tail -1 | awk '{print $2}'
module_description CPU usage in %
module_unit %
module_end',1,'','CPU User','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (35, 6,'module_begin 
module_name Load Average
module_type generic_data
module_exec uptime | awk '{print $(NF-2)*1}' 
module_description Average process in CPU (Last minute) 
module_end',1,'','Load Average','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (36, 6,'module_begin
module_name Uptime
module_type generic_data_string
module_exec uptime |sed "s/us\.*$//g" | sed "s/,\.*$//g"
module_description Host Up time
module_end
',1,'','Uptime','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (37, 6,'module_begin
module_name Pagination use
module_type generic_data
module_exec  lsps -s | tail -1 | awk '{print $2+0}'
module_end',1,'','Pagination use','',0,0,1,0,'','','','',1,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (38, 6,'module_begin
module_name Service sshd status
module_type generic_proc
module_exec lssrc -a | grep ssh | grep active
module_end',2,'','Service sshd status','',0,0,1,0,'','','','',3,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (39, 4,'module_begin
module_name Blocks in
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $9}'
module_description Blocks in. i.e blocks received from device
module_end',1,'','Blocks in','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (40, 4,'module_begin
module_name Blocks out
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $(10)}'
module_description Blocks out. i.e blocks sent from device
module_end',1,'','Blocks out','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (41, 4,'module_begin
module_name CPU %
module_type generic_data
module_cpuusage all
module_unit %
module_end',1,'','CPU %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (42, 4,'module_begin
module_name Memory Free %
module_type generic_data
module_exec free | grep -i mem | awk '{print ($4+$NF)/$2 * 100}'
module_description Percentage Mem Free
module_end',1,'','Memory Free %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (43, 4,'module_begin
module_name I/O Lock
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $(16)}'
module_description I/O Wait Disk
module_end',1,'','I/O Lock','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (44, 4,'module_begin
module_name Total processes
module_type generic_data
module_exec  ps ax | tail -n +2 | wc -l
module_description Total processes
module_end',1,'','Total processes','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (45, 4,'module_begin 
module_name Load Average
module_type generic_data
module_exec uptime | awk '{print $(NF-2)*1}'
module_description Average process in CPU (Last minute) 
module_end',1,'','Load Average','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (46, 4,'module_begin
module_name Service sshd status
module_type generic_proc
module_exec rcsshd status | grep running | wc -l
module_end',2,'','Service sshd status','',0,0,1,0,'','','','',3,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (47, 7,'module_begin
module_name Load Average
module_type generic_data
module_exec uptime | awk '{print $(NF-2)}' | tr -d ','
module_description System load average
module_end
',1,'','Load Average','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (48, 7,'module_begin
module_name Uptime
module_type generic_data_string
module_exec uptime |sed s/us\.*$//g | sed s/,\.*$//g
module_description Host Up time
module_end
',3,'','Uptime','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (49, 4,'module_begin
module_name Uptime
module_type generic_data_string
module_exec uptime |sed s/us\.*$//g | sed s/,\.*$//g
module_description Host Up time
module_end',3,'','Uptime','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (50, 5,'module_begin
module_name Blocks in
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $9}'
module_description Blocks in. i.e blocks received from device
module_end
',1,'','Blocks in','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (51, 5,'module_begin
module_name Blocks out
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $(10)}'
module_description Blocks out. i.e blocks sent from device
module_end',1,'','Blocks out','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (52, 5,'module_begin
module_name CPU %
module_type generic_data
module_cpuusage all
module_unit %
module_end',1,'','CPU %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (53, 5,'module_begin
module_name Memory Free %
module_type generic_data
module_exec free | grep -i mem | awk '{print ($4+$NF)/$2 * 100}'
module_description Percentage Mem Free
module_unit %
module_end',1,'','Memory Free %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (54, 5,'module_begin
module_name I/O Lock
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $(16)}'
module_description I/O Wait Disk
module_end',1,'','I/O Lock','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (55, 5,'module_begin
module_name Total processes
module_type generic_data
module_exec ps ax | tail -n +2 | wc -l
module_description Total processes
module_end',1,'','Total processes','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (56, 5,'module_begin
module_name Uptime
module_type generic_data_string
module_exec uptime |sed s/us\.*$//g | sed s/,\.*$//g
module_description Host Up time
module_end',3,'','Uptime','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (57, 5,'module_begin 
module_name Load Average
module_type generic_data
module_exec uptime | awk '{print $(NF-2)*1}'
module_description Average process in CPU (Last minute) 
module_end',1,'','Load Average','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (58, 5,'module_begin
module_name Service sshd status
module_type generic_proc
module_exec netstat -lptn | grep sshd | wc -l
module_end
',2,'','Service sshd status','',0,0,1,0,'','','','',3,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (59, 3,'module_begin
module_name Blocks in
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $9}'
module_description Blocks in. i.e blocks received from device
module_end',1,'','Blocks in','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (60, 3,'module_begin
module_name Blocks out
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $(10)}'
module_description Blocks out. i.e blocks sent from device
module_end',1,'','Blocks out','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (61, 3,'module_begin
module_name CPU %
module_type generic_data
module_cpuusage all
module_unit %
module_end',1,'','CPU %','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (62, 3,'module_begin
module_name Memory Free %
module_type generic_data
module_exec free | grep -i mem | awk '{print ($4+$NF)/$2 * 100}'
module_description Percentage Mem Free
module_unit %
module_end',1,'','Memory Free %','%',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (63, 3,'module_begin
module_name I/O Lock
module_type generic_data
module_exec vmstat 1 1 | tail -1 | awk '{print $(16)}'
module_description I/O Wait Disk
module_end',1,'','I/O Lock','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (64, 3,'module_begin
module_name Total processes
module_type generic_data
module_exec ps ax | tail -n +2 | wc -l
module_description Total processes
module_end',1,'','Total processes','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (65, 3,'module_begin
module_name Uptime
module_type generic_data_string
module_exec uptime |sed s/us\.*$//g | sed s/,\.*$//g
module_description Host Up time
module_end',3,'','Uptime','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (66, 3,'module_begin 
module_name Load Average
module_type generic_data
module_exec uptime | awk '{print $(NF-2)*1}'
module_description Average process in CPU (Last minute) 
module_end',1,'','Load Average','',0,0,1,0,'','','','',4,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_modules (id, id_policy, configuration_data, id_tipo_modulo, description, name, unit, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, id_module_group, flag, id_module, disabled, id_export, plugin_user, plugin_pass, plugin_parameter, id_plugin, post_process, prediction_module, max_timeout, max_retries, custom_id, history_data, min_warning, max_warning, str_warning, min_critical, max_critical, str_critical, min_ff_event, custom_string_1, custom_string_2, custom_string_3, custom_integer_1, custom_integer_2, pending_delete, critical_instructions, warning_instructions, unknown_instructions, critical_inverse, warning_inverse, id_category, module_ff_interval, quiet, cron_interval, macros, disabled_types_event, module_macros, min_ff_event_normal, min_ff_event_warning, min_ff_event_critical, each_ff, ff_timeout, dynamic_interval, dynamic_max, dynamic_min, prediction_sample_window, prediction_samples, prediction_threshold) VALUES (67, 3,'module_begin
module_name Service sshd status
module_type generic_proc
module_exec netstat -lptn | grep sshd | wc -l
module_end',2,'','Service sshd status','',0,0,1,0,'','','','',3,1,1,0,0,'','','',0,0.000000000000000,0,0,0,'',1,0.00,0.00,'',0.00,0.00,'',0,NULL,NULL,NULL,0,0,0,'','','',0,0,0,0,0,'* * * * *','','{\"going_unknown\":0}','W10=',0,0,0,0,0,0,0,0,0,0,0);
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tpolicy_modules', 'id');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tpolicy_modules_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tpolicy_alerts IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tpolicy_alerts_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tpolicy_alerts VALUES (1,1,2,1,'',0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_alerts VALUES (2,1,1,1,'',0,0,0);
|
|
|
|
|
INSERT INTO tpolicy_alerts VALUES (3,1,4,1,'',0,0,0);
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tpolicy_alerts', 'id');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tpolicy_alerts_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `tprofile_view`
|
|
|
|
|
--
|
|
|
|
|
BEGIN
|
|
|
|
|
LOCK TABLE tpolicy_alerts IN EXCLUSIVE MODE;
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tprofile_view_inc DISABLE';
|
|
|
|
|
|
|
|
|
|
INSERT INTO tprofile_view (id, id_profile, sec, sec2, sec3) VALUES (1, 5, '*', '*', '*');
|
|
|
|
|
|
|
|
|
|
-- Update curr val of sequence
|
|
|
|
|
update_currval('tprofile_view', 'id');
|
|
|
|
|
|
|
|
|
|
EXECUTE IMMEDIATE 'ALTER TRIGGER tprofile_view_inc ENABLE';
|
|
|
|
|
|
|
|
|
|
COMMIT;
|
|
|
|
|
END;;
|