<?php
  /**************************************************************************\
  * phpGroupWare - Setup                                                     *
  * http://www.phpgroupware.org                                              *
  * --------------------------------------------                             *
  *  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.                                              *
  \**************************************************************************/
  /* $Id: default_records.inc.php,v 1.4 2001/09/04 20:52:50 bettina Exp $ */

	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_tcp','" . addslashes('$USER1$/check_tcp $HOSTADDRESS$ -p $ARG1$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_udp','" . addslashes('$USER1$/check_udp $HOSTADDRESS$ -p $ARG1$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_ftp','" . addslashes('$USER1$/check_ftp $HOSTADDRESS$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_pop','" . addslashes('$USER1$/check_pop $HOSTADDRESS$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_smtp','" . addslashes('$USER1$/check_smtp $HOSTADDRESS$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_nntp','" . addslashes('$USER1$/check_nntp $HOSTADDRESS$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_http','" . addslashes('$USER1$/check_http $HOSTADDRESS$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_telnet','" . addslashes('$USER1$/check_tcp $HOSTADDRESS$ -p 23') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_ping','" . addslashes('$USER1$/check_ping $HOSTADDRESS$ 20 60 10.0 100.0 -p 5') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_disk','" . addslashes('$USER1$/check_disk 85 95 $ARG1$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_users','" . addslashes('$USER1$/check_users $ARG1$ $ARG2$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_procs','" . addslashes('$USER1$/check_procs $ARG1$ $ARG2$ $ARG3$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_http2','" . addslashes('$USER1$/check_http $ARG1$ $ARG2$ $ARG3$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_dns','" . addslashes('$USER1$/check_dns www.yahoo.com $HOSTADDRESS$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_hpjd','" . addslashes('$USER1$/check_hpjd $HOSTADDRESS$ public') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_mrtg','" . addslashes('$USER1$/check_mrtg $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','traffic_average','" . addslashes('$USER1$/check_mrtgtraf $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check_load','" . addslashes('$USER1$/check_load $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check-host-alive','" . addslashes('$USER1$/check_ping $HOSTADDRESS$ 100 100 5000.0 5000.0 -p 1') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check-printer-alive','" . addslashes('$USER1$/check_ping $HOSTADDRESS$ 100 100 5000.0 5000.0 -p 1') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check-switch-alive','" . addslashes('$USER1$/check_ping $HOSTADDRESS$ 100 100 5000.0 5000.0 -p 1') . "','0','com')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','check-router-alive','" . addslashes('$USER1$/check_ping $HOSTADDRESS$ 100 100 5000.0 5000.0 -p 1') . "','0','com')");

	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','notify-by-email','" . addslashes('bin/echo -e \'***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$\' | /bin/mail -s \'** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **\' $CONTACTEMAIL$') . "','0','snot')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','notify-by-epager','" . addslashes('/bin/echo -e "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /bin/mail -s \'$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\' $CONTACTPAGER$') . "','0','snot')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','host-notify-by-email','" . addslashes('/bin/echo -e "***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s \'Host $HOSTSTATE$ alert for $HOSTNAME$!\' $CONTACTEMAIL$') . "','0','hnot')");
	$oProc->query("INSERT INTO phpgw_ns_comand (co_date,co_name,co_line,co_enabled,co_type) VALUES ('" . time() . "','host-notify-by-epager','" . addslashes('/bin/echo -e "Host \'$HOSTALIAS$\' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /bin/mail -s \'$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\' $CONTACTPAGER$') . "','0','hnot')");
?>
