Add ezfind monitoring in the systemstatus
You need to be logged in to post messages in the forums. New users may register here.
|
SEBBANE Alexandre
Member since: 09 January 2008
Posts: 16
|
Wednesday 15 September 2010 1: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';
}
|
|
|
Gaetano Giunta
Member since: 09 January 2008
Posts: 152
|
Wednesday 15 September 2010 1: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 :-)
|
|
You need to be logged in to post messages in the forums. New users may register here.