1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Copyright 1997 Sun Microsystems, Inc.  All Rights Reserved.
23 * Use is subject to license terms.
24 */
25#pragma ident	"%Z%%M%	%I%	%E% SMI"
26
27#ifndef _AGENT_MSG_H_
28#define _AGENT_MSG_H_
29
30
31/***** TRACING MESSAGES *****/
32
33#define MSG_SIGHUP			"signal SIGHUP(%d) received"
34
35#define MSG_READING_CONFIG		"re-reading its configuration file %s..."
36#define MSG_CONFIG_READED		"...configuration re-read"
37
38
39/***** SYSTEM ERRORS ****/
40
41#define ERR_MSG_SOCKET			"socket() failed %s"
42#define ERR_MSG_BIND			"bind() failed on UDP port %d %s"
43#define ERR_MSG_SELECT			"select() failed %s"
44#define ERR_MSG_FORK			"fork() failed %s"
45#define ERR_MSG_FCLOSE			"fclose(%s) failed %s"
46#define ERR_MSG_CHDIR			"chdir(%s) failed %s"
47#define ERR_MSG_OPEN			"can't open config file %s %s"
48#define ERR_MSG_FSTAT			"can't stat config file %s %s"
49#define ERR_MSG_MMAP			"can't mmap config file %s %s"
50#define ERR_MSG_MUNMAP			"munmap() failed %s"
51#define ERR_MSG_CLOSE			"close() failed %s"
52
53
54/***** PDU RELATED ERRORS *****/
55
56#define ERR_MSG_PDU_RECEIVED		"error while receiving a pdu from %s: %s"
57#define ERR_MSG_PDU_PROCESS		"unable to process a pdu from %s"
58#define ERR_MSG_SNMP_ERROR		"SNMP error (%s, %lu) sent back to %s"
59#define ERR_MSG_PDU_SEND		"error while sending a pdu back to %s: %s"
60
61
62/***** MISCELLANEOUS *****/
63
64#define ERR_MSG_ALLOC			"cannot allocate memory"
65
66#define ERR_MSG_MANAGER_DUP		"the manager %s already exists"
67#define ERR_MSG_COMMUNITY_DUP		"the community %s already exists"
68
69#define ERR_MSG_MY_IP_ADDRESS           "unable to get my IP address: %s"
70
71#define ERR_MSG_VARBIND_LIMIT           "unable to handle SNMP request with more than 32 variables"
72
73#define ERR_MSG_UNKNOWN_FRAGMENT        "unknown PDU fragment received from agent %s (%s)"
74#define ERR_MSG_AGENT_NOT_RESPONDING    "agent %s not responding"
75
76
77#endif
78