Problem with check_nagios results

I set up check_nagios to monitor the Nagios server and I’m getting the following results:

Nagios problem: located 2 processes, status log updated 1120612404 seconds ago

Any ideas why the seconds are showing like this? The strange part is this looks very similar to my timestamps in log files…

Here’s my services.cfg config for this:

    service_description     check-nagios
    check_command           check_nagios!5

And the checkcommands.cfg syntax:

define command{
command_name check_nagios
command_line $USER1$/check_nagios -e $ARG1$ -F /usr/local/nagios/var/status.dat -C /usr/local/nagios/bin/nagios
}

Thanks for any help anyone can provide.

You status log is defined as status.dat and not status.log?

It looks like time ticks and not seconds. You could view the source of the file check_nagios.c and see what commands it performs and then run them by hand. Perhaps you can find the problem that way.

Yes, it was status.dat by default. I’ve since changed the nagios.cfg to make it status.log. Can someone compare the initial contents of my status.log to theirs and see if the timestamps are in the same format:

info {
created=1120833899
version=2.0b3
}

program {
modified_host_attributes=0
modified_service_attributes=0
nagios_pid=3140
daemon_mode=1
program_start=1120833884
last_command_check=1120833898

I looked at the check_nagios.c (only in my source dir, right?) and it says ‘time_t current_time;’

Thanks

I dont use files, I use mysql db to store that info. In the database, it shows dates/times and not ticks since 1978 or whatever those numbers are.

The time (in hundredths of a second) since the
network management portion of the system was last
re-initialized.
That is what that number is. That’s my guess anyway. I use a different check_nagios, one that is a perl script. You might want to try one of the other ones also.