summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-12-07 11:02:22 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-12-07 11:02:22 +0000
commitfd5f249d76f72509710ea8e70472c689057f0d4d (patch)
treea6de7b38ae29713cc67bfe8d3a606d1c2bc1109f
parent033a555046469cd87917e7580d98bb9e50b2eb8c (diff)
downloadzabbix-fd5f249d76f72509710ea8e70472c689057f0d4d.tar.gz
zabbix-fd5f249d76f72509710ea8e70472c689057f0d4d.tar.xz
zabbix-fd5f249d76f72509710ea8e70472c689057f0d4d.zip
- added copyright notice to source files (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@582 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r--ChangeLog1
-rw-r--r--TODO5
-rw-r--r--configure.in19
-rw-r--r--create/data/data.sql20
-rw-r--r--create/mysql/schema.sql20
-rw-r--r--create/postgresql/schema.sql21
-rw-r--r--frontends/php/config.php2
-rw-r--r--frontends/php/include/config.inc.php4
-rw-r--r--frontends/php/include/db.inc.php6
-rw-r--r--include/cfg.c20
-rw-r--r--include/cfg.h19
-rw-r--r--include/common.h20
-rw-r--r--include/db.c20
-rw-r--r--include/db.h20
-rw-r--r--include/expression.c20
-rw-r--r--include/expression.h20
-rw-r--r--include/functions.c20
-rw-r--r--include/functions.h20
-rw-r--r--include/log.c20
-rw-r--r--include/log.h19
-rw-r--r--include/security.c20
-rw-r--r--include/security.h19
-rwxr-xr-xmisc/pinger/pinger.pl20
-rw-r--r--src/zabbix_agent/stats.c19
-rw-r--r--src/zabbix_agent/stats.h19
-rw-r--r--src/zabbix_agent/sysinfo.c19
-rw-r--r--src/zabbix_agent/sysinfo.h20
-rw-r--r--src/zabbix_agent/zabbix_agent.c19
-rw-r--r--src/zabbix_agent/zabbix_agent.h19
-rw-r--r--src/zabbix_agent/zabbix_agentd.c19
-rw-r--r--src/zabbix_sender/zabbix_sender.c19
-rw-r--r--src/zabbix_sucker/zabbix_sucker.c19
-rw-r--r--src/zabbix_trapper/zabbix_trapper.c20
-rw-r--r--src/zabbix_trapper/zabbix_trapperd.c19
34 files changed, 576 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index b1f1f13b..5ad2a3fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
Changes for 1.0beta7:
+ - added copyright notice to source files (Alexei)
- pinger.pl will use mass-send of collected data. No unnecessary forks
anymore. (Alexei)
- all <? ?> were changed to <?php ?>. No changes in php.ini required anymore.
diff --git a/TODO b/TODO
index 7d8d88bb..70f96f99 100644
--- a/TODO
+++ b/TODO
@@ -1,11 +1,12 @@
HIGH PRIORITY:
+ - improve performance of Alarms and Alerts in PHP frontend
+ - improve speed of pinger.pl. Use built-in Perl functions.
- BUG. Agent return unsupported in case if UserParameter ends by timeout.
- monitoring of servers without Zabbix agent installed
- check Rickard's multythreaded agent
- check new Mariusz patches
- support ':','\' between [] (example, diskspace[c:])
- - add/evaluate Windows agent
- BUG. Avoid situations when PID file is not deleted.
- BUG. Map does not show host status in case of trigger based on trapper
- BUG. When ran first time, some triggers becomes TRUE (like files was changed)
@@ -16,7 +17,7 @@ HIGH PRIORITY:
- get rid of long select lists in user forms
- do not dump "Expression cannot be evaluated" in case if function.lastvalue
is NULL
- - support fo netload under other platforms
+ - support for netload under other platforms
- support for disk loads
- better monitoring of log files
- IT Helpdesk
diff --git a/configure.in b/configure.in
index da9e7fc5..9507bb29 100644
--- a/configure.in
+++ b/configure.in
@@ -1,3 +1,22 @@
+dnl
+dnl Zabbix
+dnl Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+dnl
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 2 of the License, or
+dnl (at your option) any later version.
+dnl
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+dnl GNU General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software
+dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+dnl
+
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/zabbix_sucker/zabbix_sucker.c)
diff --git a/create/data/data.sql b/create/data/data.sql
index c4f04a29..08593fd4 100644
--- a/create/data/data.sql
+++ b/create/data/data.sql
@@ -1,3 +1,23 @@
+--
+-- Zabbix
+-- Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+--
+-- 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; either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+--
+
+
--
-- Data for table config
--
diff --git a/create/mysql/schema.sql b/create/mysql/schema.sql
index 1c5e451f..d4302fb8 100644
--- a/create/mysql/schema.sql
+++ b/create/mysql/schema.sql
@@ -1,3 +1,23 @@
+--
+-- Zabbix
+-- Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+--
+-- 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; either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+--
+
+
--
-- Table structure for table 'services'
--
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index 38aa4e97..961c5a56 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -1,9 +1,28 @@
-\connect zabbix
+--
+-- Zabbix
+-- Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+--
+-- 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; either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+--
--
-- Table structure for table 'hosts'
--
+\connect zabbix
+
CREATE TABLE hosts (
hostid serial,
host varchar(64) DEFAULT '' NOT NULL,
diff --git a/frontends/php/config.php b/frontends/php/config.php
index 45aa4644..13a0ba0e 100644
--- a/frontends/php/config.php
+++ b/frontends/php/config.php
@@ -22,7 +22,7 @@
$result=update_config($HTTP_GET_VARS["smtp_server"],$HTTP_GET_VARS["smtp_helo"],
$HTTP_GET_VARS["smtp_email"],$HTTP_GET_VARS["alarm_history"],
$HTTP_GET_VARS["alert_history"]);
- show_messages($result, "Configuration updated", "Configuation was NOT updated");
+ show_messages($result, "Configuration updated", "Configuration was NOT updated");
}
?>
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 083aa2a5..1c19e876 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -522,7 +522,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
// Before str()
// if (eregi('^\{([0-9a-zA-Z[.-.]\_\.]+)\:([]\[0-9a-zA-Z\_\/\.\,]+)\.((diff)|(min)|(max)|(last)|(prev))\(([0-9\.]+)\)\}$', $expression, &$arr))
// if (eregi('^\{([0-9a-zA-Z[.-.]\_\.]+)\:([]\[0-9a-zA-Z\_\/\.\,]+)\.((diff)|(min)|(max)|(last)|(prev)|(str))\(([0-9a-zA-Z\.\_\/\,]+)\)\}$', $expression, &$arr))
- if (eregi('^\{([0-9a-zA-Z\_\.-]+)\:([]\[0-9a-zA-Z\_\/\.\,]+)\.([a-z]{3,6})\(([0-9a-zA-Z\_\/\.\,]+)\)\}$', $expression, &$arr))
+ if (eregi('^\{([0-9a-zA-Z\_\.-]+)\:([]\[0-9a-zA-Z\_\/\.\,\:]+)\.([a-z]{3,6})\(([0-9a-zA-Z\_\/\.\,]+)\)\}$', $expression, &$arr))
{
$host=$arr[1];
$key=$arr[2];
@@ -1301,7 +1301,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
continue;
}
}
- if($expression[$i] == ':')
+ if(($expression[$i] == ':') && ($state == "HOST"))
{
$state="KEY";
continue;
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index 34b9fa4c..fd6a4d1f 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -1,10 +1,10 @@
<?php
- $DB_TYPE ="POSTGRESQL";
-// $DB_TYPE ="MYSQL";
+// $DB_TYPE ="POSTGRESQL";
+ $DB_TYPE ="MYSQL";
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
- $DB_USER ="zabbix";
+ $DB_USER ="root";
$DB_PASSWORD ="";
$USER_DETAILS ="";
diff --git a/include/cfg.c b/include/cfg.c
index 63e376f0..ef6a0844 100644
--- a/include/cfg.c
+++ b/include/cfg.c
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/include/cfg.h b/include/cfg.h
index d0ea6eea..0be44565 100644
--- a/include/cfg.h
+++ b/include/cfg.h
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#ifndef ZABBIX_CFG_H
#define ZABBIX_CFG_H
diff --git a/include/common.h b/include/common.h
index 82fbc7ab..0d6047de 100644
--- a/include/common.h
+++ b/include/common.h
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
/*#define TESTTEST*/
#define IT_HELPDESK
diff --git a/include/db.c b/include/db.c
index ca38e331..315fdfff 100644
--- a/include/db.c
+++ b/include/db.c
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#include <stdlib.h>
#include <stdio.h>
diff --git a/include/db.h b/include/db.h
index 091735f2..930cf8ae 100644
--- a/include/db.h
+++ b/include/db.h
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#ifndef ZABBIX_DB_H
#define ZABBIX_DB_H
diff --git a/include/expression.c b/include/expression.c
index 9e1314de..91f3ace3 100644
--- a/include/expression.c
+++ b/include/expression.c
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/include/expression.h b/include/expression.h
index d350f78e..67b9dd7a 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#ifndef ZABBIX_EXPRESSION_H
#define ZABBIX_EXPRESSION_H
diff --git a/include/functions.c b/include/functions.c
index 95cb5325..d6a683b2 100644
--- a/include/functions.c
+++ b/include/functions.c
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/include/functions.h b/include/functions.h
index 8210986d..ae078d11 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#ifndef ZABBIX_FUNCTIONS_H
#define ZABBIX_FUNCTIONS_H
diff --git a/include/log.c b/include/log.c
index 5acb80d4..78020745 100644
--- a/include/log.c
+++ b/include/log.c
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
diff --git a/include/log.h b/include/log.h
index f00706bd..bde12ccf 100644
--- a/include/log.h
+++ b/include/log.h
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#ifndef ZABBIX_LOG_H
#define ZABBIX_LOG_H
diff --git a/include/security.c b/include/security.c
index 4ec67479..8d51e306 100644
--- a/include/security.c
+++ b/include/security.c
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
diff --git a/include/security.h b/include/security.h
index 1a53cfa1..1ecf319f 100644
--- a/include/security.h
+++ b/include/security.h
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#ifndef ZABBIX_SECURITY_H
#define ZABBIX_SECURITY_H
diff --git a/misc/pinger/pinger.pl b/misc/pinger/pinger.pl
index 9d7c7d1d..6cfbebef 100755
--- a/misc/pinger/pinger.pl
+++ b/misc/pinger/pinger.pl
@@ -1,5 +1,24 @@
#!/usr/bin/perl
+#
+# Zabbix
+# Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+#
+# 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; either version 2 of the License, or
+# (at your option) any later version.
+#
+# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+
# CONFIGURATION
$ZABBIX_SERVER="zabbix";
@@ -24,7 +43,6 @@ foreach $host (split(/\n/,$hosts))
$host=~/^((.)*) is((.)*)$/;
$cmd="echo $ZABBIX_SERVER $ZABBIX_PORT $1:alive 0 >>$TMP_FILE";
}
-# print $cmd,"\n";
system( $cmd );
}
diff --git a/src/zabbix_agent/stats.c b/src/zabbix_agent/stats.c
index ba9d55b7..ceab43a0 100644
--- a/src/zabbix_agent/stats.c
+++ b/src/zabbix_agent/stats.c
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#include "config.h"
#include <netdb.h>
diff --git a/src/zabbix_agent/stats.h b/src/zabbix_agent/stats.h
index e985cabf..4c30fee4 100644
--- a/src/zabbix_agent/stats.h
+++ b/src/zabbix_agent/stats.h
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#ifndef ZABBIX_STATS_H
#define ZABBIX_STATS_H
diff --git a/src/zabbix_agent/sysinfo.c b/src/zabbix_agent/sysinfo.c
index 7677e405..77061243 100644
--- a/src/zabbix_agent/sysinfo.c
+++ b/src/zabbix_agent/sysinfo.c
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#include "config.h"
#include <errno.h>
diff --git a/src/zabbix_agent/sysinfo.h b/src/zabbix_agent/sysinfo.h
index f0ba1220..415230f2 100644
--- a/src/zabbix_agent/sysinfo.h
+++ b/src/zabbix_agent/sysinfo.h
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#ifndef ZABBIX_SYSINFO_H
#define ZABBIX_SYSINFO_H
diff --git a/src/zabbix_agent/zabbix_agent.c b/src/zabbix_agent/zabbix_agent.c
index ae5c6058..660f392a 100644
--- a/src/zabbix_agent/zabbix_agent.c
+++ b/src/zabbix_agent/zabbix_agent.c
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#include "config.h"
#include <stdlib.h>
diff --git a/src/zabbix_agent/zabbix_agent.h b/src/zabbix_agent/zabbix_agent.h
index 6bfb19c4..b50c0800 100644
--- a/src/zabbix_agent/zabbix_agent.h
+++ b/src/zabbix_agent/zabbix_agent.h
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#ifndef ZABBIX_MONAGENT_H
#define ZABBIX_MONAGENT_H
diff --git a/src/zabbix_agent/zabbix_agentd.c b/src/zabbix_agent/zabbix_agentd.c
index b3327ebe..4de7ac7d 100644
--- a/src/zabbix_agent/zabbix_agentd.c
+++ b/src/zabbix_agent/zabbix_agentd.c
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#include "config.h"
#include <netdb.h>
diff --git a/src/zabbix_sender/zabbix_sender.c b/src/zabbix_sender/zabbix_sender.c
index 5bb1a5dd..18d43d4b 100644
--- a/src/zabbix_sender/zabbix_sender.c
+++ b/src/zabbix_sender/zabbix_sender.c
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#include "config.h"
#include <stdio.h>
diff --git a/src/zabbix_sucker/zabbix_sucker.c b/src/zabbix_sucker/zabbix_sucker.c
index 78dd297d..583b84ea 100644
--- a/src/zabbix_sucker/zabbix_sucker.c
+++ b/src/zabbix_sucker/zabbix_sucker.c
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#include "config.h"
#include <stdio.h>
diff --git a/src/zabbix_trapper/zabbix_trapper.c b/src/zabbix_trapper/zabbix_trapper.c
index e99f988d..c0553ed6 100644
--- a/src/zabbix_trapper/zabbix_trapper.c
+++ b/src/zabbix_trapper/zabbix_trapper.c
@@ -1,3 +1,23 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
+
#include <stdlib.h>
#include <stdio.h>
diff --git a/src/zabbix_trapper/zabbix_trapperd.c b/src/zabbix_trapper/zabbix_trapperd.c
index 801c327b..f64173cc 100644
--- a/src/zabbix_trapper/zabbix_trapperd.c
+++ b/src/zabbix_trapper/zabbix_trapperd.c
@@ -1,3 +1,22 @@
+/*
+** Zabbix
+** Copyright (C) 2000,2001,2002,2003 Alexei Vladishev
+**
+** 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; either version 2 of the License, or
+** (at your option) any later version.
+**
+** 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+**/
+
#include "config.h"
#include <string.h>