Subject: | Nagios-Report date out of range |
My nagios.cfg is set to date_format=us ... and when I check the
Report.pm that is generated I get
use constant EURO_DATE => ;
Should this have a value set for it??
Here is the output from make test.
[root@vanagios Nagios-Report-0.002]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-
e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/before_start....Month '21' out of range 0..11
at /root/nagios/temp/Nagios-Report-0.002/blib/lib/Nagios/Report.pm
line 1001
t/before_start....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
t/comp............ok
t/constructor.....ok
t/csv_dump........ok
t/debug_dump......ok
t/excel_dump......ok
t/max.............ok
t/mkreport........ok
t/st_et...........ok
t/t2hms...........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-----------------------------------------------------------------------
--------
t/before_start.t 255 65280 3 6 200.00% 1-3
Failed 1/10 test scripts, 90.00% okay. 3/108 subtests failed, 97.22%
okay.
make: *** [test_dynamic] Error 255
I ran this on a test machine and set the date_format in the nagios.cfg
to euro and make and make test ran without errors.
So this tells me it doesnt like date_format=us
This is perl, v5.8.5 built for x86_64-linux-thread-multi
Linux vanagios.dulles.orbital.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5
19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux