On 27 Oct 2009, at 06:16, Mark Maas-Martin wrote:

Today Opsview stopped functioning... I rebooted the server, did /etc/ init.d/opsview restart, /etc/init.d/opsview-web restart, and similar actions. But to no avail, all I'm seeing is "Opsview is not running" in the webbrowser.

in the logs I'm seeing:
[2009/10/26 15:02:47] [Catalyst] [ERROR] Caught exception in Opsview::Web::Controller::Root->end "Can't call method "status_update_time" on an undefined value at /usr/local/opsview-web/ script/../lib/Opsview/Web/Controller/Root.pm line 457." [2009/10/27 06:49:27] [Opsview.Web.Controller.Admin.Reload] [INFO] Running asynchronous reload

This looks like a bug in Opsview. The database has not got a row in the nagios_programstatus table. Usually this is always there. Is there a problem with mysql? Maybe the table is crashed?

Try this patch, to ignore that information so you won't get this error:

Index: opsview-web/lib/Opsview/Web/Controller/Root.pm
===================================================================
--- opsview-web/lib/Opsview/Web/Controller/Root.pm      (revision 3451)
+++ opsview-web/lib/Opsview/Web/Controller/Root.pm      (working copy)
@@ -454,8 +454,10 @@
my $output = defined $c->stash->{output} ? $c->stash->{output} : ( $c->req->param("output") ? $c->req->param("output") : "" );

     if ( $output eq "ajax" || $output eq "json" ) {
- my $server_status = $c- >model("RuntimeSchema::NagiosProgramstatus")->first- >status_update_time; - $c->res->header( "X-Opsview-Server-Status" => $c->stash- >{dt_formatter}->($server_status) ); + my $server_status = $c- >model("RuntimeSchema::NagiosProgramstatus")->first;
+       if ($server_status) {
+ $c->res->header( "X-Opsview-Server-Status" => $c->stash- >{dt_formatter}->($server_status->status_update_time) );
+       }
     }

     # If json output, stop here




A lot of these as well:
[2009/10/27 06:50:41] [import_ndologsd] [INFO] Ignore 1256603567.214967 as size 0 [2009/10/27 06:50:41] [import_ndologsd] [INFO] Ignore 1256603572.258430 as size 0
[snipped]
[2009/10/27 06:50:41] [import_ndologsd] [INFO] Ignore 1256603652.211023 as size 0

This can occur if the filesystem where the ndologs are written to is 100% full.

So my guess is you had a full filesystem where /usr/local/nagios/var/ ndologs resides.

Ton

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to