/*
	This is the main configuration file; it defines module behavior such as which policy-statments to
	apply to the module and other module specific parameters.

	Note to VIM users: this file should have syntax highlighting; enable with (:syntax on).
*/

#include "@resolved_sysconfdir@/policy-statements.conf"
#include "@resolved_sysconfdir@/policy.d"

discovery {
   icmp {
		prefix {
			10.0.0.0/8;
		}
	}
	snmp {
		community		[ public ];
      variable {
         system;
         interfaces.ifTable.ifEntry.ifIndex;
         interfaces.ifTable.ifEntry.ifDescr;
         interfaces.ifTable.ifEntry.ifMtu;
         interfaces.ifTable.ifEntry.ifAdminStatus;
         interfaces.ifTable.ifEntry.ifOperStatus;
         interfaces.ifTable.ifEntry.ifType;
         interfaces.ifTable.ifEntry.ifSpeed;
         ip.ipAddrTable.ipAddrEntry.ipAdEntAddr;
         ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex;
         ip.ipAddrTable.ipAddrEntry.ipAdEntNetMask;
         ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias;
      }
   }
   topology {
		policy {
			input	[ IGNORE_LOOPBACK ]; /* IGNORE_RFC_1918 */
		}
   }
}
monitor {
	icmp {
		policy {
			input		[ IGNORE_LOOPBACK ]; /* IGNORE_RFC_1918 */
			output	[ PACKET_LOSS ];
		}
	}
	snmptrap {
		policy {
			input	[ IGNORE_AUTHENTICATION_FAILURE_TRAP ];
			output	[ OSPF_TRAP BGP_TRAP JUNIPER_MPLS_TRAP JUNIPER_CHASSIS_TRAP NETSNMP_TRAP GENERIC_TRAP TRANSLATE_BGP_ERROR ];
		}
	}
	syslog {
		policy {
			input	[ IGNORE_GENERIC_SYSLOG IGNORE_GENERIC_JUNIPER_SYSLOG IGNORE_GENERIC_CISCO_SYSLOG IGNORE_GENERIC_EXTREME_SYSLOG IGNORE_GENERIC_NETSCREEN_SYSLOG ];
			output	[ JUNIPER_HEALTH_SYSLOG JUNIPER_BGP_SYSLOG JUNIPER_VPN_SYSLOG CISCO_GENERIC_SYSLOG CISCO_BGP_SYSLOG CISCO_7500_HEALTH_SYSLOG CISCO_7200_HEALTH_SYSLOG ];
		}
	}
	state {
		policy {
			output [ DETERMINE_STATE ];
		}
	}
}
output {
	gui {
		policy {
			output [ GUI_EVENT GUI_EXPIRE ];
		}
	}
	email {
		policy {
			output [ EMAIL_NOTIFICATION ];
		}
	}
}

/*
	This portion of the configuration defines variables related to the daemon and
   dynamic library modules that are to be loaded by the daemon.  It also defines
   scheduling information.  This section should remain fairly static on a system
	after initial configuration.
*/

system {
	storage {
		primary {
			driver 	mysql;
			server 	@sella_nms_server@;
			port		@sella_nms_port@;
			database @sella_nms_database@;
			username @sella_nms_username@;
			password @sella_nms_password@;
		}
	}
	snmp-mib {
		@resolved_datadir@/mibs;
		@resolved_datadir@/mibs/rfc;
		@resolved_datadir@/mibs/juniper;
		@resolved_datadir@/mibs/cisco;
		@resolved_datadir@/mibs/extreme;
		@resolved_datadir@/mibs/netscreen;
		@resolved_datadir@/mibs/arbor;
	}
	library {
		@resolved_libexecdir@/libcommon.so;
		@resolved_libexecdir@/libstorage.so;
		@resolved_libexecdir@/libpolicy.so;
		@resolved_libexecdir@/libstate.so;
	}
	module {
		default {
			nice 5;
			restart;
			user nobody;
			config "@resolved_sysconfdir@/sella_nms.conf";
			directory "@resolved_sbindir@";
			facility	local0;
		}
		discovery {
			no-restart;
			schedule {
				startup;
				hour 4;
				minute 0;
				second 0;
			}
			icmp;
			snmp;
			topology;
		}
		monitor {
			icmp;
			snmptrap;
			syslog;
			state;
		}
		output {
			gui;
			email;
		}
	}
}

/*
** Local Variables:
** c-basic-offset: 3
** tab-width: 3
** End:
** vim600: fdm=marker
** vim: noet ts=3 sw=3
** vim: syntax=sella_nms
*/
