NETWAYS / check_logstash

Icinga check plugin to check the status of Logstash
GNU General Public License v3.0
22 stars 11 forks source link

UNKNOWN - Could not determine status (*errors.errorString) #63

Closed Tontonitch closed 1 year ago

Tontonitch commented 1 year ago

logstash: 6.8.23 check_logstash: 0.8.0

# ./check_logstash_0.8.0_Linux_x86_64 health
UNKNOWN - Could not determine status (*errors.errorString)
#
martialblog commented 1 year ago

Hi, the default host is localhost port 9600 if you don't specify any parameters.

Can you confirm the Logstash API is running on that host and port?

martialblog commented 1 year ago

We haven't tested the version 0.8.0 against Logstash 6 since it is in end of support. So I assume that is the issue.

You would have to use the older version of the Check Plugin or use more current Logstash version

martialblog commented 1 year ago

Hi, I added some basic backwards compatibility in the Plugin. It should now also work with Logstash 6 after the PR is merged.

Tontonitch commented 1 year ago

Works, thanks.

[root@xxxxx]# ./check_logstash_0.8.2_Linux_x86_64 health
WARNING - Logstash may not be healthy
 \_[WARNING] Heap usage at 79.00%
 \_[OK] Open file descriptors at 2.24%
 \_[OK] CPU usage at 26.00% | status=green process.cpu.percent=26%;100;100;0;100 jvm.mem.heap_used_percent=79%;70;80;0;100 jvm.threads.count=120;;;;0 process.open_file_descriptors=367;100;100;0;16384
[root@xxxx]#