NSClient++ Help (#1) - NSCA Error - Dropping packet with future timestamp (#333) - Message List
Hi, I'm useing an Nagios Server Version 3.0.6 with NSCA Deamon V. 2.6 and a NSClient++-Win32-0.3.5 on an W2K3 Server.
I use the passive mode to transfer the datas. I got the error message from the nsca server in the /var/log/syslog file.
Dropping packet with future timestamp
At all servers we have NTP configured and the difference should be 1 or 2 seconds. When I configure the time of the NSCA Server some sec. ahead, all the connections will be accepted. The timezones are the same.
I saw also the following post at: http://trac.nakednuns.org/nscp/discussion/1/118/359#359
Do you have a usefull solution for this problem? Could I disable this future timestamp check?
Thanks .... waiting for reply.
grooveminister
-
Message #1000
The checking is done in NSCA server which I dont controll so I dont know how to "disable it" it is possible you can do so in NSCA if you want to be able to add/remove from the time add a ticket and I shall see about adding it...
MickeM
mickem01/22/09 17:41:44 (3 years ago)-
Message #1022
Hi, I found a solution for this problem.
I changed on thing in the source code of the nsca deamon. When you donwload the sourc from nagios.org you see in the src folder the nsca.c file.
Remove the lines from 1027 to 1050 and add the following:
/* check the timestamp in the packet */ packet_time=(time_t)ntohl(receive_packet.timestamp); time(¤t_time);
packet_age= abs ( (unsigned long)(current_time-packet_time) ); syslog(LOG_ERR,"Time diff: %lu seconds", packet_age); if(max_packet_age>0 && (packet_age>max_packet_age)){
syslog(LOG_ERR,"Dropping packet with stale timestamp - packet was %lu seconds old or new.",packet_age); /*return;*/ close(sock); if(mode==SINGLE_PROCESS_DAEMON)
return;
else
do_exit(STATE_OK);
}
Compile the source and take a look into the syslog and you see the Time Diff.
I found the solution at: http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg19792.html
bye grooveminister
grooveminister01/26/09 08:59:38 (3 years ago)
-







