Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Different timezones and pnp4nagios
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Tue Sep 22, 2009 1:42 am    Post subject: Different timezones and pnp4nagios Reply with quote

Does anyone know how to specify a different timezone in a php template? I am monitoring CPU across 3 timezones and want the graphs to reflect locatime. Is this possible?
_________________
Brent Weaver
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Mon Sep 28, 2009 10:55 pm    Post subject: Reply with quote

iirc this isn't possible with pnp right now, as timestamps are generated on the monitoring box itself.
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Tue Sep 29, 2009 1:16 am    Post subject: Reply with quote

there has got to be a way - perhaps a little math on the timestamp?
_________________
Brent Weaver
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Tue Sep 29, 2009 8:47 am    Post subject: Reply with quote

Might work if you add a timezone to the plugin output and do your math in that template ... sounds like a hack ;)
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Tue Sep 29, 2009 10:49 am    Post subject: Reply with quote

Hack due to a fundamental limitation in the software! The time stamps should be GMT and then apply the offset when you write out!
_________________
Brent Weaver
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Tue Sep 29, 2009 12:06 pm    Post subject: Reply with quote

brent_weaver wrote:
Hack due to a fundamental limitation in the software! The time stamps should be GMT and then apply the offset when you write out!

Well, talk with the upstream developers about that ;)
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Tue Sep 29, 2009 2:05 pm    Post subject: Reply with quote

Hey there - it seems that there is a way to deal with this...

http://nagios.sourceforge.net/docs/3_0/configmain.html#host_perfdata_file_mode

Search for timezones. Looks like u need to have different instances of nagios running for this to work. Have u any experience with multiple instances?
_________________
Brent Weaver
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Wed Sep 30, 2009 11:09 am    Post subject: Reply with quote

unfort when enabling this feature nagios seg faults..... damn!
_________________
Brent Weaver
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum