"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "pandora_agent.conf":
7.0NG.770_vs_7.0NG.771.
1 # Base config file for Pandora FMS agents
2 # Version 7.0NG.771, FreeBSD Version
3 # Licensed under GPL license v2,
4 # Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
5 # http://www.pandorafms.com
6
7 # General Parameters
8 # ==================
9
10 server_ip localhost
11 server_path /var/spool/pandora/data_in
12 temporal /tmp
13 logfile /var/log/pandora/pandora_agent.log
14
15 #include /etc/pandora/pandora_agent_alt.conf
16 #broker_agent name_agent
17
18 # Interval in seconds, 300 by default
19 interval 300
20
21 # Debug mode renames XML in the temp folder and continues running
22 debug 0
23
24 # Optional. UDP Server to receive orders from outside
25 # By default is disabled, set 1 to enable
26 # Set port (41122 by default)
27 # Set address to restrict who can order a agent restart (0.0.0.0 = anybody)
28 #
29 udp_server 0
30 udp_server_port 41122
31 udp_server_auth_address 0.0.0.0
32
33 #process_xeyes_start xeyes
34 #process_xeyes_stop killall xeyes
35
36 # By default, agent takes machine name
37 #agent_name adama
38
39 # To define agent name by specific command, define 'agent_name_cmd'.
40 # (In the following example, agent name is 'hostname_IP')
41 # If set to __rand__ the agent will generate a random name.
42 #agent_name_cmd LANG=C; /bin/echo -n `hostname`; /bin/echo -n "_"; /bin/echo `/sbin/ifconfig eth0 | /bin/grep 'inet addr' | /usr/bin/awk '{print $2;}' | /usr/bin/cut -d: -f2`
43 agent_name_cmd __rand__
44
45 #Parent agent_name
46 #parent_agent_name parent_name
47
48 # Agent description
49 #description Demo agent
50
51 # Group assigned for this agent (descriptive, p.e: Servers)
52 group Servers
53
54 # Group password (if defined).
55 #group_password
56
57 # address: Enforce to server a ip address to this agent
58 # You can also try to detect the first IP using "auto", for example
59 address auto
60 # or setting a fixed IP address, like for example:
61 #address 192.168.36.73
62
63 # Autotime: Enforce to server to ignore timestamp coming from this
64 # agent, used when agents has no timer or it's inestable. 1 to enable
65 # this feature
66 #autotime 1
67
68 # Timezone offset: Difference with the server timezone
69 #timezone_offset 0
70
71 # Agent position paramters
72 # Those parameters define the geographical position of the agent
73
74 # gis_exec: Call a script that returns a string with a fixed
75 # format of latitude,longitude,altitude
76 # i.e.: 41.377,-5.105,2.365
77
78 #gis_exec /tmp/gis.sh
79
80 # This sets the GIS coordinates as fixed values:
81 # latitude
82 #latitude 0
83 # longitude
84 #longitude 0
85 # altitude
86 #altitude 0
87
88 #GPS Position description
89 #position_description Madrid, centro
90
91 # By default agent try to take default encoding defined in host.
92 #encoding UTF-8
93
94 # Listening TCP port for remote server. By default is 41121 (for tentacle)
95 # if you want to use SSH use 22, and FTP uses 21.
96 server_port 41121
97
98 # Transfer mode: tentacle, ftp, ssh or local
99 transfer_mode tentacle
100
101 # Transfer mode user: Owner of files copied on local transfer mode (default apache)
102 #transfer_mode_user apache
103
104 # timeout in seconds for file transfer programs execution (30 by default)
105 #transfer_timeout 30
106
107 # Server password (Tentacle or FTP). Leave empty for no password (default).
108 #server_pwd mypassword
109
110 # Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
111 #server_ssl no
112
113 # Extra options for the Tentacle client (for example: server_opts -v -r 5).
114 #server_opts
115
116 # delayed_startup defines number of seconds before start execution
117 # for first time when startup Pandora FMS Agent
118 #delayed_startup 10
119
120 # Pandora nice defines priority of execution. Less priority means more intensive execution
121 # A recommended value is 10. 0 priority means no Pandora CPU protection enabled (default)
122 #pandora_nice 0
123
124 # Cron mode replace Pandora FMS own task schedule each XX interval seconds by the use
125 # of old style cron. You should add to crontab Pandora FMS agent script to use this mode.
126 # This is disabled by default, and is not recommended. Use Pandora FMS internal scheduler
127 # is much more safe.
128 #cron_mode
129
130 # If set to 1 allows the agent to be configured via the web console (Only Enterprise version)
131 remote_config 0
132
133 # Default 0, set to 1 to avoid module executions and report to server
134 # standby 1
135
136 # If set to 1 start Drone Agent's Proxy Mode
137 #proxy_mode 1
138
139 # Max number of simmultaneus connection for proxy (by default 10)
140 #proxy_max_connection 10
141
142 # Proxy timeout (by default 1s)
143 #proxy_timeout 1
144
145 # Address the proxy will listen on.
146 #proxy_address 0.0.0.0
147
148 # Port the proxy will listen on.
149 #proxy_port 41121
150
151 # Number of threads to execute modules in parallel
152 #agent_threads 1
153
154 # User the agent will run as
155 #pandora_user pandora
156
157 # Enable or disable XML buffer.
158 # If you are in a secured environment and want to enable the XML buffer you
159 # should consider changing the temporal directory, since /tmp is world writable.
160 xml_buffer 1
161
162 # Minimum available bytes in the temporal directory to enable the XML buffer
163 temporal_min_size 1024
164
165 # Secondary groups. You can select several groups separated by comma.
166 # secondary_groups Group1,Group2
167
168 #Secondary server configuration
169 #==============================
170
171 # If secondary_mode is set to on_error, data files are copied to the secondary
172 # server only if the primary server fails. If set to always, data files are
173 # always copied to the secondary server.
174 #secondary_mode on_error
175 #secondary_server_ip localhost
176 #secondary_server_path /var/spool/pandora/data_in
177 #secondary_server_port 41121
178 #secondary_transfer_mode tentacle
179 #secondary_transfer_timeout 30
180 #secondary_server_pwd mypassword
181 #secondary_server_ssl no
182 #secondary_server_opts
183
184 # Module Definition
185 # =================
186
187 # System information
188
189 # vmstat syntax depends on system configuration, please check before use it
190 module_begin
191 module_name cpu_user
192 module_type generic_data
193 module_interval 1
194 module_exec vmstat -n0 1 2 | tail -1 | awk '{ print $15 }'
195 module_max 100
196 module_min 0
197 module_description User CPU Usage (%)
198 module_end
199
200 module_begin
201 module_name cpu_system
202 module_type generic_data
203 module_interval 1
204 module_exec vmstat -n0 1 2 | tail -1 | awk '{ print $16 }'
205 module_max 100
206 module_min 0
207 module_description System CPU Usage (%)
208 module_end
209
210 module_begin
211 module_name cpu_idle
212 module_type generic_data
213 module_interval 1
214 module_exec vmstat -n0 1 2 | tail -1 | awk '{ print $17 }'
215 module_max 100
216 module_min 0
217 module_description CPU Idle (%)
218 module_end
219
220 module_begin
221 module_name Load Average
222 module_type generic_data
223 module_exec uptime | cut -d "," -f 4 | cut -d ":" -f 2 | sed "s/ //g"
224 module_description Average process in CPU (Last minute)
225 module_end
226
227 module_begin
228 module_name disk_root_free
229 module_type generic_data
230 module_exec df -kh / | tail -1 | awk '{ print 100-$5 }'
231 module_max 100
232 module_min 0
233 module_description Free disk Percentage of root partition
234 module_end
235
236 module_begin
237 module_name memfree
238 module_type generic_data
239 module_exec vmstat -H 1 2 | tail -1 | awk '{print $5}'
240 module_description Unused RAM memory
241 module_end
242
243 module_begin
244 module_name proctotal
245 module_type generic_data
246 module_exec ps -A | wc -l | sed "s/ //g"
247 module_end
248
249 # Process information
250
251 module_begin
252 module_name sshDaemon
253 module_type generic_proc
254 module_exec ps -Af | grep sshd | grep -v "grep" | wc -l | sed "s/ //g"
255 module_end
256
257 # Async data example
258
259 module_begin
260 module_name LastLogin
261 module_type async_string
262 module_exec last | head -1
263 module_end
264
265
266 # This plugin detects all disk and report free space (%)
267
268 module_plugin pandora_df_free
269
270 # This parses /var/log/auth.log file, under the module name "syslog"
271 # And search for "sshd" string into it, sending only that information.
272
273 module_plugin grep_log /var/log/auth.log Syslog sshd
274
275 # Plugin for inventory on the agent.
276 # module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users route
277
278 # Log collection modules. Only for enterprise version, this will collect log files for forensic analysis.
279 # This is for LOG monitoring, only on enterprise version
280 #module_plugin grep_log_module /var/log/messages Syslog \.\*