# Log exporter agent plugin
This is a agent plugin to monitor the statrus of the Check Point log exporter (`cp_log_export`).
---
### Download
* [checkpoint_log_exporter.mkp](https://thl-cmk.hopto.org/gitlab/checkmk/check-point/management/checkpoint_log_exporter/-/raw/master/checkpoint_log_exporter.mkp "Download the MKP file")
---
### Installation
You can install the package by uploading it to your CheckMK site and as site user run `mkp install checkpoint_log_exporter.mkp`.
In the Enterprise/Free edition of CheckMK you can use the GUI to install the package (_Setup_ -> _Extension Packages_ -> _Upload package_)
After you have installed the plugin you need to copy the agent plugin (`agents/plugins/checkpoint_log_exporter.sh`) to your checkmk agent plugins directory.
---
### Want to Contribute?
Nice ;-) Have a look at the [contribution guidelines](CONTRIBUTING.md "Contributing")
---
### Check Info
The plugin creates the service **_Log exporter_** with the **_name of the log exporter_** as item.
Montoring states
| State | condition | WATO |
| ------ | ------ | ------ |
| WARN | if the exporter is not running | yes |
| WARN/CRIT | if the exporter is running, but has not read the log for 60/120 seconds | yes |
Perfdata
There are no perfdata
---
### WATO
Service monitoring rule
| Section | Rule name |
| ------ | ------ |
| Networking | Check Point log exporter |
| Option | Defailt value |
| ------ | ------ |
| Maximum seconds not read | 60/120 seconds |
| State not running | WARN |
Discovery rule
There is no discovery rule.
---
### Sample Output
Sample output
![sample output](/doc/sample.png?raw=true "sample output")
Sample output details
![sample output details](/doc/sample-details.png?raw=true "sample output details")
Sample agent output
```
<<>>
name:
status: Not running
last log read at: 20 Jul 9:19:35
debug file: /opt/CPrt-R81.10/log_exporter/targets//log/log_indexer.elg
name:
status: Running (77996)
last log read at: 13 Oct 14:40:54
debug file: /opt/CPrt-R81.10/log_exporter/targets//log/log_indexer.elg
name:
status: Running (78617)
last log read at: 6 Dec 15:54:55
debug file: /opt/CPrt-R81.10/log_exporter/targets//log/log_indexer.elg
```