2011-03-18 14:23:12 +01:00
-- Pandora FMS - the Flexible Monitoring System
-- ============================================
-- Copyright (c) 2011 Artica Soluciones Tecnologicas, http://www.artica.es
-- Please see http://www.pandorafms.org for full contribution list
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation for version 2.
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-- Database Data for Pandora FMS 4.0dev
-- PLEASE NO NOT USE MULTILINE COMMENTS
-- Because Pandora Installer don't understand them
-- and fails creating database !!!
2011-03-24 17:51:49 +01:00
-- PL/SQL blocks must end with two semicolons because Pandora installer need it
2011-03-18 14:23:12 +01:00
-- Dumping data for table talert_commands
--
BEGIN
LOCK TABLE talert_commands IN EXCLUSIVE MODE ;
2012-10-31 10:58:45 +01:00
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 1 , ' eMail ' , ' Internal type ' , ' This alert send an email using internal Pandora FMS Server SMTP capabilities (defined in each server, using:
_field1_ as destination email address, and
_field2_ as subject for message. 
_field3_ as text of message. ' , 1 , ' [\"Destination address\",\"Subject\",\"Text\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 2 , ' Internal Audit ' , ' Internal type ' , ' This alert save alert in Pandora interal audit system. Fields are static and only _field1_ is used. ' , 1 , ' [\"Description\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 3 , ' Pandora FMS Event ' , ' Internal type ' , ' This alert create an special event into Pandora FMS event manager. ' , 1 , ' [\"Event text\",\"Event type\",\"Source\",\"Agent name or _agent_\",\"Event criticity\",\"ID extra\",\"Tags separated by commas\",\"Comments\",\"Not used\",\"Not used\"] ' , ' [\"\",\"alert_ceased,Alert ceased;alert_fired,Alert fired;alert_manual_validation,Alert manual validation;alert_recovered,Alert recovered;configuration_change,Configuration change ;error,Error;critical,Monitor Critical;normal,Monitor Normal;going_unknown,Monitor\",\"\",\"\",\"4,Critical;1,Informational;0,Maintenance;6,Major;5,Minor;2,Normal;3,Warning\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 4 , ' Pandora FMS Alertlog ' , ' echo _timestamp_ pandora _agent_ _data_ _field1_ _field2_ >> /var/log/pandora/pandora_alert.log ' , ' This is a default alert to write alerts in a standard ASCII  plaintext log file in /var/log/pandora/pandora_alert.log
 ' , 0 , ' [\"Log Info 1\",\"Log Info 2\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 5 , ' SNMP Trap ' , ' /usr/bin/snmptrap -v 1 -c _field1_ _field2_ _field3_ _field4_ ' , ' Send a SNMPTRAP to 192.168.0.4. Please review config and adapt to your needs, this is only a sample, not functional itself. ' , 0 , ' [\"Community\",\"Destination address\",\"OID\",\"Source address\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 6 , ' Syslog ' , ' logger -p daemon.alert Pandora Alert _agent_ _data_ _field1_ _field2_ ' , ' Uses field1 and field2 to generate Syslog alert in facility daemon with "alert" level. ' , 0 , ' [\"Log Info 1\",\"Log Info 2\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 7 , ' Sound Alert ' , ' /usr/bin/play /usr/share/sounds/alarm.wav ' , ' ' , 0 , NULL , NULL ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 8 , ' Jabber Alert ' , ' echo _field3_ | sendxmpp -r _field1_ --chatroom _field2_ ' , ' Send jabber alert to chat room in a predefined server (configure first .sendxmpprc file). Uses field3 as text message, field1 as useralias for source message, and field2 for chatroom name ' , 0 , ' [\"User alias\",\"Chatroom name\",\"Message\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 9 , ' SMS ' , ' sendsms _field1_ _field2_ ' , ' Send SMS using the Pandora FMS standard SMS device, using smstools.  Uses field2 as text message, field1 as destination phone (include international prefix!) ' , 0 , ' [\"Destination number\",\"Message\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 10 , ' Validate Event ' , ' Internal type ' , ' This alert validate the events matched with a module given the agent name (_field1_) and module name (_field2_) ' , 1 , ' [\"Agent name\",\"Module name\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
2012-05-21 11:03:25 +02:00
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table tconfig
--
BEGIN
LOCK TABLE tconfig IN EXCLUSIVE MODE ;
INSERT INTO tconfig ( token , value ) VALUES ( ' language ' , ' en_GB ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' block_size ' , ' 20 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' days_purge ' , ' 60 ' ) ;
2011-07-08 13:21:49 +02:00
INSERT INTO tconfig ( token , value ) VALUES ( ' days_delete_unknown ' , ' 0 ' ) ;
2011-03-18 14:23:12 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' days_compact ' , ' 15 ' ) ;
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_version ' , ' 4.0-dev ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' db_scheme_build ' , ' PD110122 ' ) ;
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 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' remote_config ' , ' /var/spool/pandora/data_in ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' graph_color1 ' , ' #38B800 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' graph_color2 ' , ' #42D100 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' graph_color3 ' , ' #89FF09 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' sla_period ' , ' 604800 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' trap2agent ' , ' 0 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' date_format ' , ' F j, Y, g:i a ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' event_view_hr ' , 8 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' loginhash_pwd ' , ' ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' trap2agent ' , 0 ) ;
2012-06-20 16:54:37 +02:00
INSERT INTO tconfig ( token , value ) VALUES ( ' prominent_time ' , ' comparation ' ) ;
2011-03-18 14:23:12 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' timesource ' , ' system ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' realtimestats ' , ' 1 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' stats_interval ' , ' 60 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' activate_gis ' , ' 0 ' ) ;
2011-12-21 14:09:26 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' activate_netflow ' , ' 0 ' ) ;
2011-03-18 14:23:12 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' timezone ' , ' Europe/Berlin ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' string_purge ' , 7 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' audit_purge ' , 15 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' trap_purge ' , 7 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' event_purge ' , 15 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' gis_purge ' , 15 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' sound_alert ' , ' include/sounds/air_shock_alarm.wav ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' sound_critical ' , ' include/sounds/Star_Trek_emergency_simulation.wav ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' sound_warning ' , ' include/sounds/negativebeep.wav ' ) ;
2011-03-24 17:51:49 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' integria_enabled ' , ' 0 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' integria_api_password ' , ' ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' integria_inventory ' , ' 0 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' integria_url ' , ' ' ) ;
2012-01-23 16:37:45 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' netflow_path ' , ' /var/spool/pandora/data_in/netflow ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' netflow_interval ' , ' 300 ' ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' netflow_daemon ' , ' /usr/bin/nfcapd ' ) ;
2012-02-07 19:11:12 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' event_fields ' , ' evento,id_agente,estado,timestamp ' ) ;
2012-08-02 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql, include/functions_config.php: fixed the
"list_ACL_IPs_for_API" update.
* operation/events/events_marquee.php, godmode/setup/setup.php,
godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_special_days.php,
include/functions_api.php, include/functions_ui.php,
include/functions_netflow.php, include/functions_alerts.php,
include/functions_menu.php, include/functions_messages.php: cleaned
source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-03 14:48:09 +02:00
INSERT INTO tconfig ( token , value ) VALUES ( ' list_ACL_IPs_for_API ' , ' 127.0.0.1 ' ) ;
2012-05-17 13:08:11 +02:00
INSERT INTO tconfig ( token , value ) VALUES ( ' enable_pass_policy ' , 0 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' pass_size ' , 4 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' pass_needs_numbers ' , 0 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' pass_needs_simbols ' , 0 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' pass_expire ' , 0 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' first_login ' , 0 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' mins_fail_pass ' , 5 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' number_attempts ' , 5 ) ;
2012-05-30 14:07:26 +02:00
INSERT INTO tconfig ( token , value ) VALUES ( ' enable_pass_policy_admin ' , 0 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' enable_pass_history ' , 0 ) ;
INSERT INTO tconfig ( token , value ) VALUES ( ' compare_pass ' , 3 ) ;
2012-07-03 13:58:23 +02:00
INSERT INTO tconfig ( token , value ) VALUES ( ' meta_style ' , ' meta_pandora ' ) ;
2012-08-27 16:53:46 +02:00
INSERT INTO tconfig ( token , value ) VALUES ( ' enable_refr ' , 0 ) ;
2012-12-03 15:47:27 +01:00
INSERT INTO tconfig ( token , value ) VALUES ( ' meta_num_elements ' , 100 ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tconfig_os"
--
BEGIN
LOCK TABLE tconfig_os IN EXCLUSIVE MODE ;
INSERT INTO tconfig_os VALUES ( 1 , ' Linux ' , ' Linux: All versions ' , ' so_linux.png ' ) ;
INSERT INTO tconfig_os VALUES ( 2 , ' Solaris ' , ' Sun Solaris ' , ' so_solaris.png ' ) ;
INSERT INTO tconfig_os VALUES ( 3 , ' AIX ' , ' IBM AIX ' , ' so_aix.png ' ) ;
INSERT INTO tconfig_os VALUES ( 4 , ' BSD ' , ' OpenBSD, FreeBSD and Others ' , ' so_bsd.png ' ) ;
INSERT INTO tconfig_os VALUES ( 5 , ' HP-UX ' , ' HP-UX Unix OS ' , ' so_hpux.png ' ) ;
INSERT INTO tconfig_os VALUES ( 7 , ' Cisco ' , ' CISCO IOS ' , ' so_cisco.png ' ) ;
INSERT INTO tconfig_os VALUES ( 8 , ' MacOS ' , ' MAC OS ' , ' so_mac.png ' ) ;
INSERT INTO tconfig_os VALUES ( 9 , ' Windows ' , ' Microsoft Windows OS ' , ' so_win.png ' ) ;
INSERT INTO tconfig_os VALUES ( 10 , ' Other ' , ' Other SO ' , ' so_other.png ' ) ;
INSERT INTO tconfig_os VALUES ( 11 , ' Network ' , ' Pandora FMS Network Agent ' , ' network.png ' ) ;
INSERT INTO tconfig_os VALUES ( 12 , ' Web Server ' , ' Web Server/Application ' , ' network.png ' ) ;
INSERT INTO tconfig_os VALUES ( 13 , ' Octopods ' , ' Octopods Pandora FMS Hardware Agent ' , ' network.png ' ) ;
INSERT INTO tconfig_os VALUES ( 14 , ' Embedded ' , ' Embedded device running a Pandora FMS agent ' , ' embedded.png ' ) ;
INSERT INTO tconfig_os VALUES ( 15 , ' Android ' , ' Android agent ' , ' android.png ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
2011-03-21 10:59:45 +01:00
CREATE SEQUENCE tconfig_os_s INCREMENT BY 1 START WITH 1 ;
2011-03-24 17:51:49 +01:00
CREATE OR REPLACE TRIGGER tconfig_os_inc BEFORE INSERT ON tconfig_os REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT tconfig_os_s . nextval INTO : NEW . ID_OS FROM dual ; END ; ;
2011-03-21 10:59:45 +01:00
-- PLSQL for update curr val of sequence
BEGIN
DECLARE key_max NUMBER : = 0 ;
key_currval NUMBER : = 0 ;
BEGIN
SELECT MAX ( ID_OS ) INTO key_max FROM tconfig_os ;
EXECUTE IMMEDIATE ' ALTER SEQUENCE TCONFIG_OS_S INCREMENT BY ' | | key_max ;
SELECT TCONFIG_OS_S . NEXTVAL INTO key_currval FROM dual ;
EXECUTE IMMEDIATE ' ALTER SEQUENCE TCONFIG_OS_S INCREMENT BY 1 ' ;
END ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-21 10:59:45 +01:00
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tgrupo"
--
BEGIN
LOCK TABLE tgrupo IN EXCLUSIVE MODE ;
2012-09-12 10:13:57 +02:00
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 2 , ' Servers ' , ' server_database ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 4 , ' Firewalls ' , ' firewall ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 8 , ' Databases ' , ' database_gear ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 9 , ' Network ' , ' transmit ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 10 , ' Unknown ' , ' world ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 11 , ' Workstations ' , ' computer ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 12 , ' Applications ' , ' applications ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
INSERT INTO tgrupo ( id_grupo , nombre , icon , parent , propagate , disabled , custom_id , id_skin , description ) VALUES ( 13 , ' Web ' , ' world ' , 0 , 0 , 0 , ' ' , 1 , ' ' ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tlanguage"
--
BEGIN
LOCK TABLE tlanguage IN EXCLUSIVE MODE ;
INSERT INTO tlanguage VALUES ( ' en_GB ' , ' English ' ) ;
INSERT INTO tlanguage VALUES ( ' es ' , ' Español ' ) ;
INSERT INTO tlanguage VALUES ( ' ar ' , ' العربية ' ) ;
INSERT INTO tlanguage VALUES ( ' ast ' , ' Asturianu ' ) ;
INSERT INTO tlanguage VALUES ( ' bn ' , ' বাংলা ' ) ;
INSERT INTO tlanguage VALUES ( ' ca ' , ' Catalá ' ) ;
INSERT INTO tlanguage VALUES ( ' cs ' , ' Česky ' ) ;
INSERT INTO tlanguage VALUES ( ' da ' , ' Dansk ' ) ;
INSERT INTO tlanguage VALUES ( ' de ' , ' Deutch ' ) ;
INSERT INTO tlanguage VALUES ( ' eu ' , ' Euskara ' ) ;
INSERT INTO tlanguage VALUES ( ' el ' , ' Ελληνικά ' ) ;
INSERT INTO tlanguage VALUES ( ' fi ' , ' Suomi ' ) ;
INSERT INTO tlanguage VALUES ( ' fr ' , ' Français ' ) ;
INSERT INTO tlanguage VALUES ( ' gl ' , ' Galego ' ) ;
INSERT INTO tlanguage VALUES ( ' he ' , ' עברית ' ) ;
INSERT INTO tlanguage VALUES ( ' hi ' , ' हिन्दी ' ) ;
INSERT INTO tlanguage VALUES ( ' hu ' , ' Magyar ' ) ;
INSERT INTO tlanguage VALUES ( ' it ' , ' Italiano ' ) ;
INSERT INTO tlanguage VALUES ( ' ja ' , ' 日本語 ' ) ;
INSERT INTO tlanguage VALUES ( ' ko ' , ' 한국어 ' ) ;
INSERT INTO tlanguage VALUES ( ' nl ' , ' Nederlands ' ) ;
INSERT INTO tlanguage VALUES ( ' pl ' , ' Polski ' ) ;
INSERT INTO tlanguage VALUES ( ' pt_BR ' , ' Português-Brasil ' ) ;
INSERT INTO tlanguage VALUES ( ' pt ' , ' Português ' ) ;
INSERT INTO tlanguage VALUES ( ' ro ' , ' Română ' ) ;
INSERT INTO tlanguage VALUES ( ' ru ' , ' Русский ' ) ;
INSERT INTO tlanguage VALUES ( ' sk ' , ' Slovenčina ' ) ;
INSERT INTO tlanguage VALUES ( ' sl ' , ' Slovenščina ' ) ;
INSERT INTO tlanguage VALUES ( ' sv ' , ' Svenska ' ) ;
INSERT INTO tlanguage VALUES ( ' te ' , ' తెలుగు ' ) ;
INSERT INTO tlanguage VALUES ( ' tr ' , ' Türkçe ' ) ;
INSERT INTO tlanguage VALUES ( ' uk ' , ' Українська ' ) ;
INSERT INTO tlanguage VALUES ( ' zh_CN ' , ' 简化字 ' ) ;
INSERT INTO tlanguage VALUES ( ' zh_TW ' , ' 簡化字 ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tlink"
--
BEGIN
LOCK TABLE tlink IN EXCLUSIVE MODE ;
INSERT INTO tlink VALUES ( 1 , ' Pandora FMS Manual ' , ' https://openideas.info/wiki/index.php?title=Pandora ' ) ;
INSERT INTO tlink VALUES ( 2 , ' Pandora FMS ' , ' http://pandorafms.org ' ) ;
2011-03-24 17:51:49 +01:00
INSERT INTO tlink VALUES ( 3 , ' Report a bug ' , ' {https://sourceforge.net/tracker/?func=add&group_id=155200&atid=794852} ' ) ;
INSERT INTO tlink VALUES ( 4 , ' Suggest new feature ' , ' http://sourceforge.net/tracker/?group_id=155200&atid=794855 ' ) ;
INSERT INTO tlink VALUES ( 5 , ' Module library ' , ' http://pandorafms.org/?sec=community&sec2=repository&lng=es ' ) ;
2011-03-18 14:23:12 +01:00
INSERT INTO tlink VALUES ( 6 , ' Commercial support ' , ' http://pandorafms.com ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tmodule_group"
--
BEGIN
LOCK TABLE tmodule_group IN EXCLUSIVE MODE ;
INSERT INTO tmodule_group VALUES ( 1 , ' General ' ) ;
INSERT INTO tmodule_group VALUES ( 2 , ' Networking ' ) ;
INSERT INTO tmodule_group VALUES ( 3 , ' Application ' ) ;
INSERT INTO tmodule_group VALUES ( 4 , ' System ' ) ;
INSERT INTO tmodule_group VALUES ( 5 , ' Miscellaneous ' ) ;
INSERT INTO tmodule_group VALUES ( 6 , ' Performance ' ) ;
INSERT INTO tmodule_group VALUES ( 7 , ' Database ' ) ;
INSERT INTO tmodule_group VALUES ( 8 , ' Enviromental ' ) ;
INSERT INTO tmodule_group VALUES ( 9 , ' Users ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "torigen"
--
BEGIN
LOCK TABLE torigen IN EXCLUSIVE MODE ;
INSERT INTO torigen VALUES ( ' Operating System event ' ) ;
INSERT INTO torigen VALUES ( ' Firewall records ' ) ;
INSERT INTO torigen VALUES ( ' Database event ' ) ;
INSERT INTO torigen VALUES ( ' Application data ' ) ;
INSERT INTO torigen VALUES ( ' Logfiles ' ) ;
INSERT INTO torigen VALUES ( ' Other data source ' ) ;
INSERT INTO torigen VALUES ( ' Pandora FMS Event ' ) ;
INSERT INTO torigen VALUES ( ' User report ' ) ;
INSERT INTO torigen VALUES ( ' Unknown source ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "ttipo_modulo"
--
-- Identifiers 30 and 31 are reserved for Enterprise data types
BEGIN
LOCK TABLE ttipo_modulo IN EXCLUSIVE MODE ;
2012-02-28 17:18:07 +01:00
INSERT INTO ttipo_modulo VALUES ( 1 , ' generic_data ' , 0 , ' Generic data ' , ' mod_data.png ' ) ;
2011-03-18 14:23:12 +01:00
INSERT INTO ttipo_modulo VALUES ( 2 , ' generic_proc ' , 1 , ' Generic boolean ' , ' mod_proc.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 3 , ' generic_data_string ' , 2 , ' Generic string ' , ' mod_string.png ' ) ;
2012-02-28 17:18:07 +01:00
INSERT INTO ttipo_modulo VALUES ( 4 , ' generic_data_inc ' , 0 , ' Generic data incremental ' , ' mod_data_inc.png ' ) ;
2011-03-18 14:23:12 +01:00
INSERT INTO ttipo_modulo VALUES ( 6 , ' remote_icmp_proc ' , 4 , ' Remote ICMP network agent, boolean data ' , ' mod_icmp_proc.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 7 , ' remote_icmp ' , 3 , ' Remote ICMP network agent (latency) ' , ' mod_icmp_data.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 8 , ' remote_tcp ' , 3 , ' Remote TCP network agent, numeric data ' , ' mod_tcp_data.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 9 , ' remote_tcp_proc ' , 4 , ' Remote TCP network agent, boolean data ' , ' mod_tcp_proc.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 10 , ' remote_tcp_string ' , 5 , ' Remote TCP network agent, alphanumeric data ' , ' mod_tcp_string.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 11 , ' remote_tcp_inc ' , 3 , ' Remote TCP network agent, incremental data ' , ' mod_tcp_inc.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 15 , ' remote_snmp ' , 3 , ' Remote SNMP network agent, numeric data ' , ' mod_snmp_data.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 16 , ' remote_snmp_inc ' , 3 , ' Remote SNMP network agent, incremental data ' , ' mod_snmp_inc.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 17 , ' remote_snmp_string ' , 5 , ' Remote SNMP network agent, alphanumeric data ' , ' mod_snmp_string.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 18 , ' remote_snmp_proc ' , 4 , ' Remote SNMP network agent, boolean data ' , ' mod_snmp_proc.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 21 , ' async_proc ' , 7 , ' Asyncronous proc data ' , ' mod_async_proc.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 22 , ' async_data ' , 6 , ' Asyncronous numeric data ' , ' mod_async_data.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 23 , ' async_string ' , 8 , ' Asyncronous string data ' , ' mod_async_string.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 24 , ' log4x ' , 0 , ' Log4x ' , ' mod_log4x.png ' ) ;
INSERT INTO ttipo_modulo VALUES ( 100 , ' keep_alive ' , - 1 , ' KeepAlive ' , ' mod_keepalive.png ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
-- Categoria field is used to segregate several types
-- (plugin, agents, network) on their data
-- types, could be used or could be avoided and use directly primary key (id_tipo)
--
-- Dumping data for table "tusuario"
--
BEGIN
LOCK TABLE tusuario IN EXCLUSIVE MODE ;
2012-07-05 18:50:48 +02:00
INSERT INTO tusuario ( id_user , fullname , firstname , lastname , middlename , password , comments , last_connect , registered , email , phone , is_admin , flash_chart , language , block_size , section , wizard_access ) VALUES
( ' admin ' , ' Pandora ' , ' Pandora ' , ' Admin ' , ' ' , ' 1da7ee7d45b96d0e1f45ee4ee23da560 ' , ' Admin Pandora ' , 1232642121 , 0 , ' admin@example.com ' , ' 555-555-5555 ' , 1 , - 1 , ' default ' , 0 , ' Default ' , ' all ' ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tusuario_perfil"
--
BEGIN
LOCK TABLE tusuario_perfil IN EXCLUSIVE MODE ;
2011-05-16 17:56:27 +02:00
INSERT INTO tusuario_perfil VALUES ( 1 , ' admin ' , 5 , 0 , ' admin ' , 0 ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tperfil"
--
BEGIN
LOCK TABLE tperfil IN EXCLUSIVE MODE ;
INSERT INTO tperfil VALUES ( 1 , ' Operator (Read) ' , 0 , 1 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 ) ;
INSERT INTO tperfil VALUES ( 2 , ' Operator (Write) ' , 1 , 1 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 ) ;
INSERT INTO tperfil VALUES ( 3 , ' Chief Operator ' , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 0 ) ;
INSERT INTO tperfil VALUES ( 4 , ' Group coordinator ' , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 ) ;
INSERT INTO tperfil VALUES ( 5 , ' Pandora Administrator ' , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tnews"
--
BEGIN
LOCK TABLE tnews IN EXCLUSIVE MODE ;
2011-09-08 12:07:59 +02:00
INSERT INTO tnews ( id_news , author , subject , text , timestamp ) VALUES ( 1 , ' admin ' , ' Welcome to Pandora FMS 4.0 ' , ' This is the new Pandora FMS Console. A lot of new features have been added since last version. Please read the documentation about it, and feel free to test any option.<br><br>The Pandora FMS Team. ' , current_timestamp ) ;
2011-08-23 18:43:56 +02:00
INSERT INTO tnews ( id_news , author , subject , text , timestamp ) VALUES ( 2 , ' admin ' , ' New Pandora FMS Agent Features ' , ' Feel free to test our new features for both Windows and Linux agents: Proxy and Broker modes. ' , current_timestamp ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tmodule"
--
BEGIN
LOCK TABLE tmodule IN EXCLUSIVE MODE ;
INSERT INTO tmodule VALUES ( 1 , ' Agent module ' ) ;
INSERT INTO tmodule VALUES ( 2 , ' Network module ' ) ;
INSERT INTO tmodule VALUES ( 4 , ' Plugin module ' ) ;
INSERT INTO tmodule VALUES ( 5 , ' Prediction module ' ) ;
INSERT INTO tmodule VALUES ( 6 , ' WMI module ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tnetwork_component"
--
BEGIN
LOCK TABLE tnetwork_component IN EXCLUSIVE MODE ;
2011-11-23 19:31:34 +01:00
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 1 , ' OS Total process ' , ' Total process in Operating System (UNIX MIB) ' , 13 , 15 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' HOST-RESOURCES-MIB::hrSystemProcesses.0 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 2 , ' OS CPU Load (1 min) ' , ' CPU Load in Operating System (UNIX MIB) ' , 13 , 15 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' UCD-SNMP-MIB::laLoad.1 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 3 , ' Sysname ' , ' Get name of system using SNMP standard MIB ' , 1 , 17 , 0 , 0 , 900 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.1.1.0 ' , 1 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 4 , ' OS Users ' , ' Active users in Operating System (UNIX MIB) ' , 13 , 15 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' HOST-RESOURCES-MIB::hrSystemNumUsers.0 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 11 , ' Catalyst CPU Usage (5min) ' , ' Cisco Catalyst Switches CPU Usage. Taken from ftp://ftp.cisco.com/pub/mibs/oid/OLD-CISCO-CPU-MIB.oid ' , 2 , 15 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' 1.3.6.1.4.1.9.2.1.58 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 22 , ' HSRP Status ' , ' Get status of HSRP ' , 2 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' 1.3.6.1.4.1.9.9.106.1.2.1.1.15.12.106 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 24 , ' NIC #1 status ' , ' Status of NIC#1 ' , 10 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.8.1 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 25 , ' NIC #2 status ' , ' Status of NIC #2 ' , 10 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.8.2 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 26 , ' NIC #3 status ' , ' Status of NIC #3 ' , 10 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.8.3 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 27 , ' NIC #1 outOctects ' , ' Output throughtput on Interface #1 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.16.1 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 28 , ' NIC #2 outOctects ' , ' Output troughtput on interface #2 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.16.2 ' , 1 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 29 , ' NIC #3 outOctects ' , ' Output troughtput on Interface #3 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.16.3 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 30 , ' NIC #1 inOctects ' , ' Input troughtput on Interface #1 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.10.1 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 31 , ' NIC #2 inOctects ' , ' Input throughtput for interface #2 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' NULL ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.10.2 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 32 , ' NIC #3 inOctects ' , ' Input throught on interface #3 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.10.3 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 34 , ' Host Alive ' , ' Check if host is alive using ICMP ping check. ' , 10 , 6 , 0 , 0 , 120 , 0 , ' ' , ' ' , ' ' , ' ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 36 , ' Host Latency ' , ' Get host network latency in miliseconds, using ICMP. ' , 10 , 7 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' ' , ' ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 37 , ' Check HTTP Server ' , ' Test APACHE2 HTTP service remotely (Protocol response, not only openport) ' , 10 , 9 , 0 , 0 , 300 , 80 , ' GET / HTTP/1.0^M^M ' , ' HTTP/1.1 200 OK ' , ' ' , ' ' , 3 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 38 , ' Check FTP Server ' , ' Check FTP protocol, not only check port. ' , 10 , 9 , 0 , 0 , 300 , 21 , ' QUIT ' , ' 220 ' , ' ' , ' ' , 3 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 39 , ' Check SSH Server ' , ' Checks port 22 is opened ' , 10 , 9 , 0 , 0 , 300 , 22 , ' ' , ' ' , ' ' , ' ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 40 , ' Check Telnet server ' , ' Check telnet port ' , 10 , 9 , 0 , 0 , 300 , 23 , ' ' , ' ' , ' ' , ' ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 41 , ' Check SMTP server ' , ' Check if SMTP port it's open ' , 10 , 9 , 0 , 0 , 300 , 25 , ' ' , ' ' , ' ' , ' ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 42 , ' Check POP3 server ' , ' Check POP3 port. ' , 10 , 9 , 0 , 0 , 300 , 110 , ' ' , ' ' , ' ' , ' ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 43 , ' NIC #7 outOctects ' , ' Get outcoming octects from NIC #7 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.16.7 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 44 , ' NIC #7 inOctects ' , ' Get incoming octects from NIC #7 ' , 10 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.10.7 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 45 , ' NIC #4 Status ' , ' Get status of NIC #4 ' , 10 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.8.4 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 46 , ' NIC #5 Status ' , ' Get status of NIC #5 ' , 10 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.8.5 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 47 , ' NIC #6 Status ' , ' Get status of NIC #6 ' , 10 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.8.6 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 48 , ' NIC #7 Status ' , ' Get status of NIC #7 ' , 10 , 18 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' .1.3.6.1.2.1.2.2.1.8.7 ' , 2 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 49 , ' OS CPU Load (5 min) ' , ' CPU load on a 5 min average interval. UCD-SNMP Mib (Usually for all Linux and some UNIX) ' , 13 , 15 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' UCD-SNMP-MIB::laLoad.2 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 50 , ' System Description ' , ' Get system description (all mibs). ' , 1 , 17 , 0 , 0 , 9000 , 0 , ' ' , ' ' , ' public ' , ' SNMPv2-MIB::sysDescr.0 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 51 , ' OS Raw Interrupts ' , ' Get system raw interrupts from SO ' , 13 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' UCD-SNMP-MIB::ssRawInterrupts.0 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 52 , ' OS IO Signals sent ' , ' IO Signals sent by Kernel ' , 13 , 16 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' UCD-SNMP-MIB::ssIOSent.0 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 53 , ' System Uptime ' , ' Sistem uptime in timeticks ' , 1 , 15 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' HOST-RESOURCES-MIB::hrSystemUptime.0 ' , 4 , 2 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo ) VALUES ( 176 , ' Catalyst Free Mem ' , ' Taken from ftp://ftp.cisco.com/pub/mibs/oid/OLD-CISCO-MEMORY-MIB.oid ' , 2 , 15 , 0 , 0 , 180 , 0 , ' ' , ' ' , ' public ' , ' 1.3.6.1.4.1.9.2.1.8 ' , 4 , 2 ) ;
2011-03-18 14:23:12 +01:00
-- WMI components
2011-11-23 19:31:34 +01:00
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo , plugin_user , max_timeout ) VALUES ( 200 , ' CPU load ' , ' CPU0 load average ' , 14 , 1 , 100 , 0 , 300 , 1 , ' ' , ' ' , ' ' , ' SELECT LoadPercentage from Win32_Processor WHERE DeviceID = "CPU0" ' , 1 , 6 , ' Administrator ' , 10 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo , plugin_user , max_timeout ) VALUES ( 201 , ' Free RAM ' , ' Available RAM memory in bytes ' , 14 , 1 , 0 , 0 , 300 , 0 , ' ' , ' ' , ' ' , ' SELECT AvailableBytes from Win32_PerfRawData_PerfOS_Memory ' , 1 , 6 , ' Administrator ' , 10 ) ;
INSERT INTO tnetwork_component ( id_nc , name , description , id_group , type , max , min , module_interval , tcp_port , tcp_send , tcp_rcv , snmp_community , snmp_oid , id_module_group , id_modulo , plugin_user , max_timeout ) VALUES ( 202 , ' Windows version ' , ' Operating system version ' , 14 , 3 , 0 , 0 , 300 , 1 , ' ' , ' ' , ' ' , ' SELECT Caption FROM Win32_OperatingSystem ' , 1 , 6 , ' Administrator ' , 10 ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tnetwork_component_group"
--
BEGIN
LOCK TABLE tnetwork_component_group IN EXCLUSIVE MODE ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 1 , ' General group ' , 0 ) ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 2 , ' Cisco MIBs ' , 10 ) ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 5 , ' UNIX MIBs ' , 12 ) ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 10 , ' Network Management ' , 0 ) ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 11 , ' Microsoft Windows MIB ' , 12 ) ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 12 , ' Operating Systems ' , 0 ) ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 13 , ' UCD Mibs (Linux, UCD-SNMP) ' , 12 ) ;
INSERT INTO tnetwork_component_group ( id_sg , name , parent ) VALUES ( 14 , ' WMI ' , 12 ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "Network profile"
--
BEGIN
LOCK TABLE tnetwork_profile IN EXCLUSIVE MODE ;
INSERT INTO tnetwork_profile ( id_np , name , description ) VALUES ( 1 , ' Basic Network Monitoring ' , ' This includes basic SNMP, ICMP, and TCP checks. ' ) ;
INSERT INTO tnetwork_profile ( id_np , name , description ) VALUES ( 2 , ' Basic Monitoring ' , ' Only ICMP check ' ) ;
INSERT INTO tnetwork_profile ( id_np , name , description ) VALUES ( 3 , ' Basic DMZ Server monitoring ' , ' This group of network checks, checks for default services located on DMZ servers... ' ) ;
INSERT INTO tnetwork_profile ( id_np , name , description ) VALUES ( 4 , ' Full SNMP Monitoring ' , ' ' ) ;
INSERT INTO tnetwork_profile ( id_np , name , description ) VALUES ( 5 , ' Linux Server ' , ' Full Monitoring of a Linux server services. ' ) ;
INSERT INTO tnetwork_profile ( id_np , name , description ) VALUES ( 6 , ' Basic WMI monitoring ' , ' Basic monitoring of a Windows host. ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
--
-- Dumping data for table "tnetwork_profile_component"
--
BEGIN
LOCK TABLE tnetwork_profile_component IN EXCLUSIVE MODE ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 24 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 25 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 27 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 28 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 30 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 31 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 34 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 39 , 1 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 34 , 2 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 34 , 3 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 37 , 3 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 39 , 3 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 38 , 3 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 24 , 3 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 3 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 24 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 25 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 26 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 27 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 28 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 29 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 30 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 31 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 32 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 45 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 46 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 47 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 48 , 4 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 3 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 50 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 53 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 24 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 30 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 27 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 34 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 1 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 2 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 49 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 4 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 51 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 52 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 39 , 5 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 200 , 6 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 201 , 6 ) ;
INSERT INTO tnetwork_profile_component ( id_nc , id_np ) VALUES ( 202 , 6 ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
-- GIS
BEGIN
LOCK TABLE tgis_map IN EXCLUSIVE MODE ;
INSERT INTO tgis_map VALUES ( 1 , ' Sample ' , - 3 . 708187 , 40 . 42056 , 0 , 16 , ' ' , - 3 . 708187 , 40 . 42056 , 0 , 0 , 1 ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
BEGIN
LOCK TABLE tgis_map_connection IN EXCLUSIVE MODE ;
INSERT INTO tgis_map_connection VALUES ( 1 , ' OpenStreetMap ' , ' OSM ' , ' {\"type\":\"OSM\",\"url\":\"http://tile.openstreetmap.org/${z}/${x}/${y}.png\"} ' , 19 , 16 , - 3 . 708187 , 40 . 42056 , 0 , - 3 . 708187 , 40 . 42056 , 0 , 0 ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
-- This table is commented because table name length is more 30 chars. TODO: Change it's name
- - BEGIN
- - LOCK TABLE tgis_map_has_tgis_map_connection IN EXCLUSIVE MODE ;
- - INSERT INTO tgis_map_has_tgis_map_connection VALUES ( 1 , 1 , ' 2010-03-01 09:46:48 ' , 1 ) ;
- - COMMIT ;
- - END ;
- - /
BEGIN
LOCK TABLE tgis_map_layer IN EXCLUSIVE MODE ;
INSERT INTO tgis_map_layer VALUES ( 1 , ' Group All ' , 1 , 0 , 1 , 0 ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
-- example alert template
BEGIN
LOCK TABLE talert_commands IN EXCLUSIVE MODE ;
2012-10-31 10:58:45 +01:00
INSERT INTO talert_commands ( id , name , command , description , internal , fields_descriptions , fields_values ) VALUES ( 11 , ' Remote agent control ' , ' /usr/share/pandora_server/udp_client.pl _address_ 41122 "_field1_" ' , ' This command is used to send commands to the Pandora FMS agents with the UDP server enabled. The UDP server is used to order agents (Windows and UNIX) to "refresh" the agent execution: that means, to force the agent to execute and send data ' , 0 , ' [\"Command\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' , ' [\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"] ' ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
BEGIN
LOCK TABLE talert_actions IN EXCLUSIVE MODE ;
2012-10-29 09:45:06 +01:00
INSERT INTO talert_actions ( id , name , id_alert_command , field1 , field2 , field3 , id_group , action_threshold ) VALUES ( 1 , ' Mail to XXX ' , 1 , ' yourmail@domain.es ' , ' [PANDORA] Alert from agent _agent_ on module _module_ ' , ' ' , 0 , 0 ) ;
INSERT INTO talert_actions ( id , name , id_alert_command , field1 , field2 , field3 , id_group , action_threshold ) VALUES ( 2 , ' Restart agent ' , 10 , ' REFRESH AGENT ' , ' ' , ' ' , 0 , 0 ) ;
INSERT INTO talert_actions ( id , name , id_alert_command , field1 , field2 , field3 , id_group , action_threshold ) VALUES ( 3 , ' Pandora FMS Event ' , 3 , ' ' , ' ' , ' ' , 0 , 0 ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
BEGIN
LOCK TABLE talert_templates IN EXCLUSIVE MODE ;
2012-10-29 09:45:06 +01:00
INSERT INTO talert_templates ( id , name , description , id_alert_action , field1 , field2 , field3 , type , value , matches_value , max_value , min_value , time_threshold , max_alerts , min_alerts , time_from , time_to , monday , tuesday , wednesday , thursday , friday , saturday , sunday , recovery_notify , field2_recovery , field3_recovery , priority , id_group , special_day ) VALUES ( 1 , ' Critical condition ' , ' This is a generic alert template to fire on condition CRITICAL ' , 1 , ' ' , ' ' , ' Hello, this is an automated email coming from Pandora FMS\r\n\r\nThis alert has been fired because a CRITICAL condition in one of your monitored items:\r\n\r\nAgent : _agent_\r\nModule: _module_\r\nModule description: _moduledescription_\r\nTimestamp _timestamp_\r\nCurrent value: _data_\r\n\r\nThanks for your time.\r\n\r\nBest regards\r\nPandora FMS\r\n ' , ' critical ' , ' ' , 1 , 0 . 00 , 0 . 00 , 86400 , 1 , 0 , to_date ( ' 12:00:00 ' , ' hh24:mi:ss ' ) , to_date ( ' 12:00:00 ' , ' hh24:mi:ss ' ) , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , ' [PANDORA] Alert RECOVERED for CRITICAL status on _agent_ / _module_ ' , ' Hello, this is an automated email coming from Pandora FMS\r\n\r\nThis alert has been RECOVERED from a CRITICAL condition in one of your monitored items:\r\n\r\nAgent : _agent_\r\nModule: _module_\r\nModule description: _moduledescription_\r\nTimestamp _timestamp_\r\nCurrent value: _data_\r\n\r\nThanks for your time.\r\n\r\nBest regards\r\nPandora FMS\r\n ' , 4 , 0 , 0 ) ;
INSERT INTO talert_templates ( id , name , description , id_alert_action , field1 , field2 , field3 , type , value , matches_value , max_value , min_value , time_threshold , max_alerts , min_alerts , time_from , time_to , monday , tuesday , wednesday , thursday , friday , saturday , sunday , recovery_notify , field2_recovery , field3_recovery , priority , id_group , special_day ) VALUES ( 2 , ' Manual alert ' , ' This is a template used to fire manual alerts, condition defined here never will be executed. Use this template to assign to your actions/commands used to do remote management (Agent restart, execute commands on server, etc). ' , NULL , ' ' , ' ' , ' ' , ' max_min ' , ' ' , 1 , 0 . 00 , 1 . 00 , 86400 , 1 , 0 , to_date ( ' 12:00:00 ' , ' hh24:mi:ss ' ) , to_date ( ' 12:00:00 ' , ' hh24:mi:ss ' ) , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , ' ' , ' ' , 1 , 0 , 0 ) ;
INSERT INTO talert_templates ( id , name , description , id_alert_action , field1 , field2 , field3 , type , value , matches_value , max_value , min_value , time_threshold , max_alerts , min_alerts , time_from , time_to , monday , tuesday , wednesday , thursday , friday , saturday , sunday , recovery_notify , field2_recovery , field3_recovery , priority , id_group , special_day ) VALUES ( 3 , ' Warning condition ' , ' This is a generic alert template to fire on WARNING condition. ' , 1 , ' ' , ' ' , ' Hello, this is an automated email coming from Pandora FMS

This alert has been fired because a WARNING condition in one of your monitored items:

Agent : _agent_
Module: _module_
Module description: _moduledescription_
Timestamp _timestamp_
Current value: _data_

Thanks for your time.

Best regards
Pandora FMS
 ' , ' warning ' , ' ' , 1 , 0 . 00 , 0 . 00 , 86400 , 1 , 0 , to_date ( ' 12:00:00 ' , ' hh24:mi:ss ' ) , to_date ( ' 12:00:00 ' , ' hh24:mi:ss ' ) , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , ' [PANDORA] Alert RECOVERED for WARNING status on _agent_ / _module_ ' , ' Hello, this is an automated email coming from Pandora FMS

This alert has been RECOVERED from a WARNING condition in one of your monitored items:

Agent : _agent_
Module: _module_
Module description: _moduledescription_
Timestamp _timestamp_
Current value: _data_

Thanks for your time.

Best regards
Pandora FMS
 ' , 3 , 0 , 0 ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
-- treport_custom_sql Data
BEGIN
LOCK TABLE treport_custom_sql IN EXCLUSIVE MODE ;
INSERT INTO treport_custom_sql ( id , name , sql ) VALUES ( 1 , ' Monitoring Report Agent ' , ' select direccion, nombre, comentarios, (select nombre from tgrupo where tgrupo.id_grupo = tagente.id_grupo) as "group" from tagente; ' ) ;
INSERT INTO treport_custom_sql ( id , name , sql ) VALUES ( 2 , ' Monitoring Report Modules ' , ' select (select tagente.nombre from tagente where tagente.id_agente = tagente_modulo.id_agente) as agent_name, nombre , (select tmodule_group.name from tmodule_group where tmodule_group.id_mg = tagente_modulo.id_module_group) as module_group, module_interval from tagente_modulo where delete_pending = 0 order by agent_name; ' ) ;
INSERT INTO treport_custom_sql ( id , name , sql ) VALUES ( 3 , ' Monitoring Report Alerts ' , ' select t1.nombre as agent_name, t2.nombre as module_name, (select talert_templates.name from talert_templates where talert_templates.id = t3.id_alert_template) as template, (select group_concat(t02.name) from talert_template_module_actions as t01 inner join talert_actions as t02 on t01.id_alert_action = t02.id where t01.id_alert_template_module = t3.id group by t01.id_alert_template_module) as actions from tagente as t1 inner join tagente_modulo as t2 on t1.id_agente = t2.id_agente inner join talert_template_modules as t3 on t2.id_agente_modulo = t3.id_agent_module order by agent_name, module_name; ' ) ;
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-03-18 14:23:12 +01:00
-- procedure to insert more than 4000 chars into a string
2011-04-11 19:05:20 +02:00
CREATE OR REPLACE PROCEDURE treport_custom_sql_insert ( IDX IN NUMBER , NAME IN VARCHAR2 , SQL_TXT IN VARCHAR2 , FLAG IN NUMBER ) AS g_nclob CLOB ; BEGIN if FLAG = 0 then insert into treport_custom_sql values ( IDX , NAME , empty_clob ( ) ) returning SQL into g_nclob ; dbms_lob . write ( g_nclob , length ( SQL_TXT ) , 1 , SQL_TXT ) ; else select SQL into g_nclob from treport_custom_sql where ID = IDX for update ; dbms_lob . writeappend ( g_nclob , length ( SQL_TXT ) , SQL_TXT ) ; end if ; END ; ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
BEGIN
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' select t1.nombre, (select count(t3.id_agente) from tagente t3 where t1.id_grupo = ' , 0 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  t3.id_grupo) agents, (SELECT COUNT(t4.id_agente) FROM tagente  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' t4 WHERE t4.id_grupo = t1.id_grupo AND t4.disabled = 0 AND t4.ultimo_contacto  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' < NOW() - (intervalo / ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  (1/2))) agent_unknown, (SELECT COUNT(tagente_estado.id_agente_estado) FROM tagente_estado, ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  tagente, tagente_modulo WHERE tagente.id_grupo = t1.id_grupo AND tagente.disabled = 0  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' AND tagente.id_agente = tagente_estado.id_agente AND tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo AND  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' tagente_modulo.disabled = 0 AND utimestamp > 0 AND tagente_modulo.id_tipo_modulo NOT IN(21,22,23,24,100)  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' AND (UNIX_TIMESTAMP(NOW()) - ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  tagente_estado.utimestamp) >= (tagente_estado.current_interval / ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  (1/2))) monitor_unknow, (SELECT COUNT(tagente_estado.id_agente_estado) FROM tagente_estado, tagente, ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  tagente_modulo WHERE tagente.id_grupo = t1.id_grupo AND tagente.disabled = 0 AND tagente.id_agente =  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' tagente_estado.id_agente AND tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo AND tagente_modulo.disabled = 0  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' AND tagente_modulo.id_tipo_modulo NOT IN (21,22,23,24) AND utimestamp = 0) monitor_no_init, (SELECT  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' COUNT(tagente_estado.id_agente_estado) FROM tagente_estado, tagente, tagente_modulo WHERE tagente.id_grupo = t1.id_grupo  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' AND tagente.disabled = 0 AND tagente_estado.id_agente = tagente.id_agente AND tagente_estado.id_agente_modulo = tagente_modulo. ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' id_agente_modulo AND tagente_modulo.disabled = 0 AND estado = 0 AND ((UNIX_TIMESTAMP(NOW()) - ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  tagente_estado.utimestamp) < (tagente_estado.current_interval / ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  (1/2)) OR (tagente_modulo.id_tipo_modulo IN(21,22,23,24,100))) AND (utimestamp > 0 OR  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' (tagente_modulo.id_tipo_modulo IN(21,22,23,24)))) monitor_ok, (SELECT COUNT(tagente_estado.id_agente_estado)  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' FROM tagente_estado, tagente, tagente_modulo WHERE tagente.id_grupo = t1.id_grupo AND tagente.disabled = 0 AND  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' tagente_estado.id_agente = tagente.id_agente AND tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo AND tagente_modulo.disabled& ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' #x20;= 0 AND estado = 1 AND ((UNIX_TIMESTAMP(NOW()) - ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  tagente_estado.utimestamp) < (tagente_estado.current_interval / ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , '  (1/2)) OR (tagente_modulo.id_tipo_modulo IN(21,22,23,24,100))) AND utimestamp > 0)  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' monitor_critical, (SELECT COUNT(talert_template_modules.id) FROM talert_template_modules, tagente_modulo, tagente_estado, tagente  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' WHERE tagente.id_grupo = t1.id_grupo AND tagente_modulo.id_agente = tagente.id_agente AND tagente_estado.id_agente_modulo =  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-03-24 17:51:49 +01:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' tagente_modulo.id_agente_modulo AND tagente_modulo.disabled = 0 AND tagente.disabled = 0 AND talert_template_modules.id_agent_module  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' = tagente_modulo.id_agente_modulo AND times_fired > 0) monitor_alert_fired from tgrupo t1 where 0  ' , 1 ) ;
2011-03-18 14:23:12 +01:00
2011-05-20 12:47:42 +02:00
treport_custom_sql_insert ( 4 , ' Group view ' , ' < (select count(t2.id_agente) from tagente t2 where t1.id_grupo = t2.id_grupo) ' , 1 ) ;
2011-03-18 14:23:12 +01:00
COMMIT ;
2011-03-24 17:51:49 +01:00
END ; ;
2011-07-06 13:57:27 +02:00
2012-08-16 13:23:25 +02:00
INSERT INTO trecon_script VALUES ( 1 , ' SNMP Recon Script ' , ' This script is used to automatically detect SNMP Interfaces on devices, used as Recon Custom Script in the recon task. Parameters used are:

* custom_field1 = network. i.e.: 192.168.100.0/24
* custom_field2 = several communities separated by comma. For example: snmp_community,public,private 
* custom_field3 = optative parameter to force process downed interfaces (use: '-a'). Only up interfaces are processed by default 

See documentation for more information. ' , ' /usr/share/pandora_server/util/recon_scripts/snmpdevices.pl ' ) ;
INSERT INTO trecon_script VALUES
( 2 , ' IMPI Recon ' , ' Specific Pandora FMS Intel DCM Discovery (c) Artica ST 2011 <info@artica.es> Usage: ./ipmi-recon.pl <task_id> <group_id> <create_incident_flag> <custom_field1> <custom_field2> <custom_field3> * custom_field1 = network. i.e.: 192.168.100.0/24 * custom_field2 = username * custom_fiedl3 = password ' , ' /usr/share/pandora_server/util/recon_scripts/ipmi-recon.pl ' ) ;
2012-08-20 12:42:24 +02:00
INSERT INTO tplugin ( id , name , description , max_timeout , execute , plugin_type , macros , parameters ) VALUES ( 1 , ' IPMI Plugin ' , ' Plugin to get IPMI monitors from a IPMI Device. ' , 0 , ' /usr/share/pandora_server/util/plugin/ipmi-plugin.pl ' , 0 , ' {"1":{"macro":"_field1_","desc":"Target IP","help":"","value":""},"2":{"macro":"_field2_","desc":"Username","help":"","value":""},"3":{"macro":"_field3_","desc":"Password","help":"","value":""}} ' , ' -h _field1_-u _field2_-p _field3_ ' ) , ( 2 , ' DNS Plugin ' , ' This plugin is used to check if a specific domain return a specific IP address, and to check how time (milisecs) takes the DNS to answer. Use IP address parameter to specify the IP of your domain. Use these custom parameters for the other parameters:

-d domain to check (for example pandorafms.com)
-s DNS Server to check  (for example 8.8.8.8)

Optional parameters:

-t Do a DNS time response check instead DNS resolve test

 ' , 15 , ' /usr/share/pandora_server/util/plugin/dns_plugin.sh ' , 0 , ' {"1":{"macro":"_field1_","desc":"Target IP","help":"","value":""},"2":{"macro":"_field2_","desc":"Domain to check","help":"For example pandorafms.com","value":""},"3":{"macro":"_field3_","desc":"DNS Server to check","help":"For example 8.8.8.8","value":""},"4":{"macro":"_field4_","desc":"Optional parameters","help":"","value":""}} ' , ' -i _field1_ -d _field2_ -s _field3_ _field4_ ' ) , ( 3 , ' UDP port check ' , ' Check a remote UDP port (by using NMAP). Use IP address and Port options. ' , 5 , ' /usr/share/pandora_server/util/plugin/udp_nmap_plugin.sh ' , 0 , ' {"1":{"macro":"_field1_","desc":"Target IP","help":"","value":""},"2":{"macro":"_field2_","desc":"Port","help":"","value":""}} ' , ' -t _field1_-p _field2_ ' ) , ( 4 , ' SMTP Check ' , ' This plugin is used to send a mail to a SMTP server and check if works. 

Parameters in the plugin:

IP Address - SMTP Server IP address
User - AUTH login  
Pass - AUTH password
Port - SMTP port (optional)

Optional parameters:

-d Destination email
-f Email of the sender
-a Authentication system. Could be LOGIN, PLAIN, CRAM-MD5 or DIGEST-MD ' , 10 , ' /usr/share/pandora_server/util/plugin/SMTP_check.pl ' , 0 , ' {"1":{"macro":"_field1_","desc":"Target IP","help":"","value":""},"2":{"macro":"_field2_","desc":"Port","help":"","value":""},"3":{"macro":"_field3_","desc":"Username","help":"","value":""},"4":{"macro":"_field4_","desc":"Password","help":"","value":""},"5":{"macro":"_field5_","desc":"Optional parameters","help":"","value":""}} ' , ' -h _field1_ -o _field2_ -u _field3_ -p _field4_ _field5_ ' ) ;
INSERT INTO tagent_custom_fields VALUES ( 1 , ' Serial Number ' , 0 ) , ( 2 , ' Department ' , 0 ) , ( 3 , ' Additional ID ' , 0 ) ;
INSERT INTO ttag VALUES ( 1 , ' network ' , ' Network equipment ' , ' http://artica.es ' ) , ( 2 , ' critical ' , ' Critical modules ' , ' ' ) , ( 3 , ' dmz ' , ' DMZ Network Zone ' , ' ' ) , ( 4 , ' performance ' , ' Performance anda capacity modules ' , ' ' ) , ( 5 , ' configuration ' , ' ' , ' ' ) ;
2012-10-10 12:46:19 +02:00
INSERT INTO tevent_response VALUES ( 1 , ' Ping to host ' , ' Ping to the agent host ' , ' ping -c 5 _agent_address_ ' , ' command ' , 0 , 620 , 500 , 0 , ' ' ) , ( 2 , ' SSH to host ' , ' Connect via SSH to the agent ' , ' http://192.168.70.164:8022/anyterm.html?param=_User_@_agent_address_ ' , ' url ' , 0 , 800 , 450 , 0 , ' User ' ) , ( 3 , ' Create incident from event ' , ' Create a incident from the event with the standard incidents system of Pandora FMS ' , ' index.php?sec=workspace&sec2=operation/incidents/incident_detail&insert_form&from_event=_event_id_ ' , ' url ' , 0 , 0 , 0 , 1 , ' ' ) , ( 4 , ' Create Integria IMS incident from event ' , ' Create a incident from the event with integria incidents system of Pandora FMS. 

Is necessary to enable and configure the Integria incidents in Pandora FMS setup. ' , ' index.php?sec=workspace&sec2=operation/integria_incidents/incident&tab=editor&from_event=_event_id_ ' , ' url ' , 0 , 0 , 0 , 1 , ' ' ) , ( 5 , ' Restart agent ' , ' Restart the agent with using UDP protocol.

To use this response is necessary to have installed Pandora FMS server and console in the same machine. ' , ' /usr/share/pandora_server/udp_client.pl _agent_address_ 41122 "REFRESH AGENT" ' , ' command ' , 0 , 620 , 500 , 0 , ' ' ) ;