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