Hello everybody.
I’ve just upgraded nagios to version 3.3.1 and when I load the home page of the nagios web interface I can see this:
%between%http://i.imgur.com/9ucri.png
The suspicious message is: Notice: Undefined index: link in /usr/share/nagios/htdocs/main.php on line 94
I don’t understand how to fix it and if it is a real problem. The code to define such “index” is the following:
<?php
$url="http://www.nagios.org/backend/feeds/corepromo";
$rss=fetch_rss($url);
$x=0;
foreach ($rss->items as $item){
$x++;
if($x>3)
break;
$href = $item'link'];
$title = $item'title'];
$desc = $item'description'];
//echo "<li><a href='$href' target='_blank'>$title</a></li>";
echo "<li>$desc</li>";
}
?>
The line is the following:
$href = $item’link’];
Any idea?