Hi,
I understand I already posted quite a few questions but please bear with me.
We are planning to use PRTG on several sites, some will be free and some will be paid. There are some sites that we are not allowed to connect to so they will have their own core servers.
There are a few questions that were raised by our management that I am not sure about and could not find info on.
Because the formatting is lost I will try to put [Q] in front of the questions. If you can please answer them.
1. Rolling logs
[Q] Can PRTG File Content sensor handle rolling logs? Will data be lost when a log is rolled over during the minimal 30s interval? For example tailing file "file.log":
a. file.log had 5 lines appended. b. PRTG probes for new lines. c. 30 seconds wait... c1. 5 more lines appended. (is this gone?) c2. file.log renamed to file.log.1 and moved to ./logs/ folder. (does the sensor crash/error on missing file?) c3. new ./file.log created. c4. 5 more lines appended. d.PRTG probes for new lines.
[Q] Are the lines created in c1 lost?
2. Confirm PRTG Core (Server) migration (cloning) steps.
We will be installing core servers on different sites and they need to be configured as efficiently as possible. Minimal user intervention is key.
[Q] Is there a process to streamline the installation of the core server? Like an answer file that the Installation reads from.
Essentially we want to make a backup of an installation and restoring(configurations, logins, logs, etc.) to other machines.
[Q] If there is, is the same process applicable to Remote Probes? I understand we can install from WebGUI but at some sites that might not be possible (lack of suitable man power) and no way to remote.
3. [Q] Can sensor messages (E.g. Windows Event Logs) be used as a positional parameters for PowerShell scripts that are run by Notifications?
For example: One event detail is "Low disk space on...", can we use that sensor message as a parameter for a script/exe?
4. [Q] Does PRTG store its data (Log of sensor messages) in plain text files that we can parse (weekly) for textual information to complement PRTG reports that only shows metrics?
5. In a Sensor settings there is "Write sensor result to disk...", [Q] can PRTG include these in Reports? [Q] What exactly are "Data Files" in Report templates?
6. [Q] Can scheduled Reports run script/exe?
On a weekly basis I would like PRTG to also use a script that will send files (logs, etc.) in a separate email.
7. Custom Sensors and the limitations
[Q] Is this write-up correct? Complete?
Custom sensors comes in two flavors, single and multi channel.
A sensor has at least one channel, a channel is basically a name:value pair that the sensor displays such as "CPU:80". The name is static, only value will change.
- a. The first custom sensor only has one channel, for example if that channel were only to monitor 'Application' open ports, the return value from the script is a one line string, For example: "'Application' Open Ports:10".
The channel will exclusively show the open ports of 'Application', the channel can set threshold triggers to send notifications when certain conditions are met.
- b. The second sensor can have multiple channels, for example this is the XML output by a script/exe:
<prtg> <result> <channel>CPU Core 1</channel> <value>10</value> </result> <result> <channel>CPU Core 2</channel> <value>20</value> </result> </prtg>
Inside the Sensor view, you will see two name:value pairs that reports on the CPU usages of Core 1 and Core 2. Each core has(is) a channel and each channel can bet set a threshold trigger that can send a notification when certain conditions are met.
The limitations would be, it can only return numerical data (int, floats). This is because PRTG only reports on metrics (graph, count) and does not have a deep Analysis component (E.g. Top processes names when CPU is over 80%).
If I should make these separate questions please let me know.
Best regards,
Kusumah
Add comment