Path

ez projects / ggsysinfo / forum / general / add ezfind monitoring in th...


Add ezfind monitoring in the systemstatus

You need to be logged in to post messages in the forums. New users may register here.

Alexandre SEBBANE

Member since:
08 September 2007

Posts: 19

Wednesday 15 September 2010 10:02:55 am

i create the ezfind monitor ...
you have to had : 'ezfind' => '0', to the array $status_tests

and this snippet in the runtests() methode


if ( in_array( 'ezfind', eZExtension::activeExtensions()) ){
$ini = eZINI::instance( 'solr.ini' );
$ezfinpingurl = $ini->variable( 'SolrBase', 'SearchServerURI' )."/admin/ping";
$data = eZHTTPTool::getDataByURL( $ezfinpingurl, false );
$pos2 = stripos($data, '<str name="status">OK</str>');
if ($pos2 !== false)
{
$status_tests['ezfind'] = '1';
}else{
$status_tests['ezfind'] = '0';
}
}
else
{
$status_tests['ezfind'] = 'X';
}

Paris, France

Up

Gaetano Giunta

Member since:
30 November 1999

Posts: 269

Wednesday 15 September 2010 10:30:24 am

Great, beat me on time!
I was actually thinking about adding this to ezsnmpd instead, but a welcome addition nevertheless.
Btw, if you wanna join the project as developer, please apply :-)

Principal Consultant International Business
Member of the Community Project Board

Up

You need to be logged in to post messages in the forums. New users may register here.