New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification time gone wrong #477

Closed
sdalu opened this Issue Nov 19, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@sdalu

sdalu commented Nov 19, 2013

When generating a notification (PUTNOTIF), with epoch timestamp, time
seems to be stuck around 1 seconde past 1970-01-01.

I'm using collectd-5.4.0 and example from:
https://collectd.org/wiki/index.php/Plain_text_protocol#Implemented_by_3

Generating notification with Exec plugin:

PUTNOTIF severity=warning time=1201094702 message="The roof is on fire!" host=idees-noires plugin=sensors type=temperature type_instance=room

Log entry:

[1970-01-01 01:00:01] Notification: severity = WARNING, host =
idees-noires, plugin = sensors, type = temperature, type_instance =
room, message = The roof is on fire!

Notification event:

Severity: WARNING
Time: 1.119
Host: idees-noires
Plugin: sensors
Type: temperature
TypeInstance: room

The roof is on fire!

amiron pushed a commit to amiron/collectd that referenced this issue Mar 8, 2014

amiron pushed a commit to amiron/collectd that referenced this issue Mar 8, 2014

amiron pushed a commit to amiron/collectd that referenced this issue Mar 10, 2014

mfournier added a commit that referenced this issue Mar 31, 2014

fix for #477: Notification time gone wrong
Sub-second time handling was added in collectd 5.0.0. This adds support
for this to the target_notification plugin, which got missed out at the
time.
@mfournier

This comment has been minimized.

Show comment
Hide comment
@mfournier

mfournier Mar 31, 2014

Contributor

Closed by 43fcfd6.

Contributor

mfournier commented Mar 31, 2014

Closed by 43fcfd6.

@mfournier mfournier closed this Mar 31, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment