Logstash/Elasticsearch self monitoring

This commit is contained in:
fbsanchez 2017-09-04 20:07:14 +02:00
parent c6d216df07
commit ae8ef93191
1 changed files with 3 additions and 0 deletions

View File

@ -4629,6 +4629,8 @@ sub pandora_self_monitoring ($$) {
FROM tconfig
WHERE token = 'db_maintance' AND value > UNIX_TIMESTAMP() - 86400");
}
$xml_output .= enterprise_hook("elasticsearch_performance", [$pa_config, $dbh]);
$xml_output .=" <module>";
$xml_output .=" <name>Database Maintenance</name>";
@ -5414,3 +5416,4 @@ L<DBI>, L<XML::Simple>, L<HTML::Entities>, L<Time::Local>, L<POSIX>, L<PandoraFM
Copyright (c) 2005-2011 Artica Soluciones Tecnologicas S.L
=cut