Fatal error: Call to a member function on a non-object in /usr/local/oreon/class/Log.class.php on line 94
Et voici Log.class.php autour de la ligne 94
function loadLogs(&$oreon)
{
....
// Create hash table
if (isset($oreon->hosts))
foreach ($oreon->hosts as $h){
$host[$h->get_name()] = $h->get_id();
$host_services[$h->get_name()] = array();
if (isset($h->services))
foreach ($h->services as $s) {
//ligne 94 $host_services[$h->get_name()][$s->get_des
cription()] = $s->get_id();
unset($s);
}
....
C'est arrive apres que j'execute ses lignes pour enlever sendmail de ma redhat9:
# cd /usr/sbin
# mv sendmail sendmail.OFF
# ./sendmail.OFF -q
# mv /usr/bin/newaliases /usr/bin/newaliases.OFF
# mv /usr/bin/mailq /usr/bin/mailq.OFF
# chmod 0 /usr/sbin/sendmail.OFF /usr/bin/newaliases.OFF \
/usr/bin/mailq.OFF
# ln -s /usr/local/sbin/sendmail /usr/sbin/sendmail
# ln -s /usr/local/sbin/sendmail /usr/bin/mailq
# ln -s /usr/local/sbin/sendmail /usr/bin/newaliases
Et voici Log.class.php autour de la ligne 94
function loadLogs(&$oreon)
{
....
// Create hash table
if (isset($oreon->hosts))
foreach ($oreon->hosts as $h){
$host[$h->get_name()] = $h->get_id();
$host_services[$h->get_name()] = array();
if (isset($h->services))
foreach ($h->services as $s) {
//ligne 94 $host_services[$h->get_name()][$s->get_des
cription()] = $s->get_id();
unset($s);
}
....
C'est arrive apres que j'execute ses lignes pour enlever sendmail de ma redhat9:
# cd /usr/sbin
# mv sendmail sendmail.OFF
# ./sendmail.OFF -q
# mv /usr/bin/newaliases /usr/bin/newaliases.OFF
# mv /usr/bin/mailq /usr/bin/mailq.OFF
# chmod 0 /usr/sbin/sendmail.OFF /usr/bin/newaliases.OFF \
/usr/bin/mailq.OFF
# ln -s /usr/local/sbin/sendmail /usr/sbin/sendmail
# ln -s /usr/local/sbin/sendmail /usr/bin/mailq
# ln -s /usr/local/sbin/sendmail /usr/bin/newaliases
Comment