1 /*
2   Copyright 2021 Northern.tech AS
3 
4   This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
5 
6   This program is free software; you can redistribute it and/or modify it
7   under the terms of the GNU General Public License as published by the
8   Free Software Foundation; version 3.
9 
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU General Public License for more details.
14 
15   You should have received a copy of the GNU General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
18 
19   To the extent this program is licensed as part of the Enterprise
20   versions of CFEngine, the applicable Commercial Open Source License
21   (COSL) may apply to this file if you as a licensee so wish it. See
22   included file COSL.txt.
23 */
24 
25 #include <cf3.defs.h>
26 
27 const char *const DAY_TEXT[] =
28 {
29     "Monday",
30     "Tuesday",
31     "Wednesday",
32     "Thursday",
33     "Friday",
34     "Saturday",
35     "Sunday",
36     NULL
37 };
38 
39 const char *const MONTH_TEXT[] =
40 {
41     "January",
42     "February",
43     "March",
44     "April",
45     "May",
46     "June",
47     "July",
48     "August",
49     "September",
50     "October",
51     "November",
52     "December",
53     NULL
54 };
55 
56 const char *const SHIFT_TEXT[] =
57 {
58     "Night",
59     "Morning",
60     "Afternoon",
61     "Evening",
62     NULL
63 };
64 
65 const char *const CF_AGENTTYPES[] =   /* see enum cfagenttype */
66 {
67     CF_COMMONC,
68     CF_AGENTC,
69     CF_SERVERC,
70     CF_MONITORC,
71     CF_EXECC,
72     CF_RUNC,
73     CF_KEYGEN,
74     CF_HUBC,
75     "<notype>",
76 };
77 
78 // Name and description pairs of all observed monitoring variables
79 const char *const OBSERVABLES[CF_OBSERVABLES][2] =
80 {
81     {"users", "Users with active processes - including system users"},
82     {"rootprocs", "Sum privileged system processes"},
83     {"otherprocs", "Sum non-privileged process"},
84     {"diskfree", "Free disk on / partition"},
85     {"loadavg", "Kernel load average utilization (sum over cores)"},
86     {"netbiosns_in", "netbios name lookups (in)"},
87     {"netbiosns_out", "netbios name lookups (out)"},
88     {"netbiosdgm_in", "netbios name datagrams (in)"},
89     {"netbiosdgm_out", "netbios name datagrams (out)"},
90     {"netbiosssn_in", "Samba/netbios name sessions (in)"},
91     {"netbiosssn_out", "Samba/netbios name sessions (out)"},
92     {"imap_in", "imap mail client sessions (in)"},
93     {"imap_out", "imap mail client sessions (out)"},
94     {"cfengine_in", "cfengine connections (in)"},
95     {"cfengine_out", "cfengine connections (out)"},
96     {"nfsd_in", "nfs connections (in)"},
97     {"nfsd_out", "nfs connections (out)"},
98     {"smtp_in", "smtp connections (in)"},
99     {"smtp_out", "smtp connections (out)"},
100     {"www_in", "www connections (in)"},
101     {"www_out", "www connections (out)"},
102     {"ftp_in", "ftp connections (in)"},
103     {"ftp_out", "ftp connections (out)"},
104     {"ssh_in", "ssh connections (in)"},
105     {"ssh_out", "ssh connections (out)"},
106     {"wwws_in", "wwws connections (in)"},
107     {"wwws_out", "wwws connections (out)"},
108     {"icmp_in", "ICMP packets (in)"},
109     {"icmp_out", "ICMP packets (out)"},
110     {"udp_in", "UDP dgrams (in)"},
111     {"udp_out", "UDP dgrams (out)"},
112     {"dns_in", "DNS requests (in)"},
113     {"dns_out", "DNS requests (out)"},
114     {"tcpsyn_in", "TCP sessions (in)"},
115     {"tcpsyn_out", "TCP sessions (out)"},
116     {"tcpack_in", "TCP acks (in)"},
117     {"tcpack_out", "TCP acks (out)"},
118     {"tcpfin_in", "TCP finish (in)"},
119     {"tcpfin_out", "TCP finish (out)"},
120     {"tcpmisc_in", "TCP misc (in)"},
121     {"tcpmisc_out", "TCP misc (out)"},
122     {"webaccess", "Webserver hits"},
123     {"weberrors", "Webserver errors"},
124     {"syslog", "New log entries (Syslog)"},
125     {"messages", "New log entries (messages)"},
126     {"temp0", "CPU Temperature 0"},
127     {"temp1", "CPU Temperature 1"},
128     {"temp2", "CPU Temperature 2"},
129     {"temp3", "CPU Temperature 3"},
130     {"cpu", "%CPU utilization (all)"},
131     {"cpu0", "%CPU utilization 0"},
132     {"cpu1", "%CPU utilization 1"},
133     {"cpu2", "%CPU utilization 2"},
134     {"cpu3", "%CPU utilization 3"},
135     {"microsoft_ds_in", "Samba/MS_ds name sessions (in)"},
136     {"microsoft_ds_out", "Samba/MS_ds name sessions (out)"},
137     {"www_alt_in", "Alternative web service connections (in)"},
138     {"www_alt_out", "Alternative web client connections (out)"},
139     {"imaps_in", "encrypted imap mail service sessions (in)"},
140     {"imaps_out", "encrypted imap mail client sessions (out)"},
141     {"ldap_in", "LDAP directory service service sessions (in)"},
142     {"ldap_out", "LDAP directory service client sessions (out)"},
143     {"ldaps_in", "LDAP directory service service sessions (in)"},
144     {"ldaps_out", "LDAP directory service client sessions (out)"},
145     {"mongo_in", "Mongo database service sessions (in)"},
146     {"mongo_out", "Mongo database client sessions (out)"},
147     {"mysql_in", "MySQL database service sessions (in)"},
148     {"mysql_out", "MySQL database client sessions (out)"},
149     {"postgres_in", "PostgreSQL database service sessions (in)"},
150     {"postgres_out", "PostgreSQL database client sessions (out)"},
151     {"ipp_in", "Internet Printer Protocol (in)"},
152     {"ipp_out", "Internet Printer Protocol (out)"},
153     {"spare", "unused"},
154     {"spare", "unused"},
155     {"spare", "unused"},
156     {"spare", "unused"},
157     {"spare", "unused"},
158     {"spare", "unused"},
159     {"spare", "unused"},
160     {"spare", "unused"},
161     {"spare", "unused"},
162     {"spare", "unused"},
163     {"spare", "unused"},
164     {"spare", "unused"},
165     {"spare", "unused"},
166     {"spare", "unused"},
167     {"spare", "unused"},
168     {"spare", "unused"},
169     {"spare", "unused"},
170     {"spare", "unused"},
171     {"spare", "unused"},
172     {"spare", "unused"},
173     {"spare", "unused"},
174     {"spare", "unused"},
175     {"spare", "unused"},
176     {"spare", "unused"},
177     {"spare", "unused"},
178     {"spare", "unused"},
179     {"spare", "unused"},
180     {"spare", "unused"},
181 };
182