When I enable the 'rawlog' option in the smokeping configuration file I
see the following error in syslog:

Usage: POSIX::strftime(fmt, sec, min, hour, mday, mon, year, wday = -1,
yday = -1, isdst = -1) at /usr/local/smokeping/lib/Smokeping.pm line
1705.

Line 1705 of 'Smokeping.pm' shows:

  my $file =  POSIX::strftime $tree->{rawlog},$update->[1];

This is in error, I believe the correct code should be:

  my $file =  POSIX::strftime $tree->{rawlog},localtime $update->[1];

After making this change the rawlog option is now working.  Can someone
please confirm this error?  Thanks.

Kent Kuriyama, 808-472-4125, 315-472-4125
SPAWAR Systems Center San Diego, Code 5242
[EMAIL PROTECTED]/mil

_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to