Nagios Plugin service
Nagios Plugin service
Log Track Supported: Yes
Config Track Supported: No
Custom Properties Supported: None
Supported Control Actions: None
Supported Metrics:
| Name | Alias | Units | Category | Default On | Default Interval |
|---|---|---|---|---|---|
| Availability | Availability | percentage | AVAILABILITY | true | 10 min |
| Return Code | ReturnCode | none | UTILIZATION | true | 5 min |
| Execution Time | ExecutionTime | ms | THROUGHPUT | true | 5 min |
| Result Value | ResultValue | none | UTILIZATION | true | 5 min |
Configuration help:
The Nagios Plugin Service integrates existing Nagios plugins with HQ. The user running the HQ Agent must have permission to execute the plugin in order for the service to work correctly.
Nagios Plugin Service properties:
- path Absolute path to the nagios plugin.
- args Space delimited arguments passed to the plugin.
The plugin exit code is mapped to HQ availability indicators as follows:
- 0 -
(OK) - 1 -
(Warning) - 2 -
(Critical) - 3 -
(Unknown) - other -
(Unknown)
If Log Tracking is enabled, the plugin output is used as the log message and exit codes are mapped to HQ log levels as follows:
- 0 - Info (OK)
- 1 - Warn (Warning)
- 2 - Error (Critical)
- 3 - Error (Unknown)
- other - Error (Unknown)
General Log and Config Track Properties
- Enable Log Tracking - Check to enable log tracking.
- Track event log level - Only track events of level greater than or equal to this level. Order is: [Error, Warn, Info, Debug]
- Log Pattern Match - Include messages that match the given regular expression. The given pattern can be a substring to look for in log messages or a regular expression. See: java.util.regex.Pattern.
- Log Pattern Exclude - Exclude messages that match the given regular expression.