[NSClient++] Topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/topic/1014
<p>
Graphite protocol
</p>
en-usNSClient++/trac/nswide.png
http://nsclient.org/nscp/discussion/topic/1014
Trac 1.0beta1 - DiscussionPluginluther.rFri, 29 Jun 2012 17:25:21 GMTTopic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/topic/1014#topic
http://nsclient.org/nscp/discussion/topic/1014#topic
<p>
Howdy,
I see in the blog that Graphite is supported now, but I can't find any documentation for how it works. Does Nagios have to send a check, then NSC++ sends the same data to Graphite as well as Nagios? How do I point NSC++ to the Graphite server?
</p>
<p>
thanks
</p>
TopicmickemWed, 01 Aug 2012 07:45:21 GMTReply #2716 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2716#message2716
http://nsclient.org/nscp/discussion/message/2716#message2716
<p>
Just to clearify this would be: NSCP-0.4.1.24, I haven tested this though :)
</p>
MessagemickemWed, 01 Aug 2012 05:17:12 GMTReply #2715 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2715#message2715
http://nsclient.org/nscp/discussion/message/2715#message2715
<p>
Sorry, compleatly forgot about you...
</p>
<p>
New build from today has the change...
</p>
<p>
<em> Michael Medin
</em></p>
Messageluther.rTue, 31 Jul 2012 14:35:05 GMTReply #2712 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2712#message2712
http://nsclient.org/nscp/discussion/message/2712#message2712
<p>
Hi,
is the new code in your 7/31 nightly builds?
thanks
</p>
MessagemickemFri, 13 Jul 2012 05:19:11 GMTReply #2692 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2692#message2692
http://nsclient.org/nscp/discussion/message/2692#message2692
<p>
Yes, I convert to epoc already but alas "unix time" does not have a timezone attached to it (as I understand it).
</p>
<p>
Well, let me try to change it to use utc by default instead and add a flag to override it so timezone can be configured...
</p>
<p>
<em> Michael Medin
</em></p>
Messageluther.rThu, 12 Jul 2012 22:08:55 GMTReply #2691 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2691#message2691
http://nsclient.org/nscp/discussion/message/2691#message2691
<p>
According to <a class="ext-link" href="http://graphite.wikidot.com/getting-your-data-into-graphite/"><span class="icon"></span>this</a>, Graphite expects UNIX epoch time. I assume you're converting from Windows time to UNIX time already? It would make sense as I'm in CDT which is GMT -5.
</p>
MessagemickemThu, 12 Jul 2012 19:52:55 GMTReply #2687 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2687#message2687
http://nsclient.org/nscp/discussion/message/2687#message2687
<p>
Any timezone which might affect things?
Currently I am sending "the local time, second level resolution, based on the time zone settings of the computer." perhaps graphite expects (or live in) utc or some such?
</p>
<p>
unfortunately the graphite protocol docs (at least the ones I have found) are a bit vague as they just say "timestamp" so not sure what timezone and such is used...
</p>
<p>
<em> Michael Medin
</em></p>
Messageluther.rThu, 12 Jul 2012 19:09:02 GMTReply #2686 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2686#message2686
http://nsclient.org/nscp/discussion/message/2686#message2686
<p>
I installed today's 0.4.1 build and things are graphing on the proper day now, but they're still 5 hours behind. Example:
</p>
<p>
11:26:39.187797 system.vm-01.cpu.30s.0.1342092390.
(which is 'Thu Jul 12 06:26:30 2012')
</p>
<p>
Any ideas?
thanks
</p>
Messageluther.rTue, 10 Jul 2012 22:02:18 GMTReply #2684 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2684#message2684
http://nsclient.org/nscp/discussion/message/2684#message2684
<p>
Excellent, thanks. I suppose I should have looked through the changelog.
</p>
MessagemickemTue, 10 Jul 2012 21:55:47 GMTReply #2683 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2683#message2683
http://nsclient.org/nscp/discussion/message/2683#message2683
<p>
Sorry, should have mentioned but I forgot.
</p>
<p>
This has been fixed in later builds...
</p>
<pre class="wiki">2012-06-18 MickeM
...
* Fixed Graphite client using wrong time for datestamp
</pre><p>
Check if any of the builds 0.4.1 or 0.4.0 (under nightly) is after that date. I shall update (release) 0.4.0 tomorrow as well as make some new nightly builds of 0.4.1 and 0.4.2...
</p>
<p>
<em> Michael Medin
</em></p>
Messageluther.rTue, 10 Jul 2012 21:04:40 GMTReply #2682 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2682#message2682
http://nsclient.org/nscp/discussion/message/2682#message2682
<p>
I've successfully set up the ini file with your suggestion, and it's sending data to Graphite, but not graphing anything.
</p>
<p>
I did a tcp dump, and it looks like the date stamp on the data being sent is in 2030, which would explain why Graphite isn't graphing it.
Example:
</p>
<p>
4E..system.vm-01.cpu.1m.100.190612775
6.system.vm-01.cpu.30s.100.1906127756.
</p>
<p>
The system time on my VM is set properly. Any other idea why it would be sending an incorrect date/time?
</p>
<p>
thanks
</p>
MessagemickemTue, 03 Jul 2012 06:24:35 GMTReply #2680 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2680#message2680
http://nsclient.org/nscp/discussion/message/2680#message2680
<p>
Sorry...
</p>
<p>
the /.../ are not folders they are section in the nsclient.ini file...
</p>
<p>
So essentially open nsclient.ini and add in the above snippet (with some modifications)...
</p>
Messageluther.rMon, 02 Jul 2012 17:44:08 GMTReply #2679 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2679#message2679
http://nsclient.org/nscp/discussion/message/2679#message2679
<p>
Thanks for your reply.
</p>
<p>
I'm somewhat new to this so bear with me. I enabled the module in the nsclient.ini file.
I installed NSCP from the msi, and it did not create a /settings directory. I looked in the reference manual and didn't see any reference to this directory either. Should I be creating it manually? Or do I install a different way to get it to create that directory tree?
</p>
<p>
thanks
</p>
MessagemickemMon, 02 Jul 2012 09:50:40 GMTReply #2670 to topic #1014 - Graphite protocol
http://nsclient.org/nscp/discussion/message/2670#message2670
http://nsclient.org/nscp/discussion/message/2670#message2670
<p>
Don't recall the details off the top of my head buuut...
</p>
<ol><li>enable the <a class="wiki" href="/nscp/wiki/GraphiteClient">GraphiteClient</a> module (/modules)
</li><li>Setup a default target (/settings/graphite/client/targets/default) pointing to your graphite server
</li><li>setup passive check (/settings/scheduler/schedules/foobar) which send data on the graphite channel.
</li></ol><p>
A short configuration snippet which does this:
</p>
<pre class="wiki">[/modules]
CheckSystem = 1
Scheduler = 1
GraphiteClient = 1
CheckExternalScripts = 1
[/settings/scheduler/schedules/foobar]
command=alias_cpu
interval=10s
channel=graphite
[/settings/graphite/client/targets/default]
address=192.168.0.1
</pre><p>
There is a lot of other things which can be configured as well this is just a "minimum configuration required" sort of thing...
</p>
<p>
In around a week or so the documentation for 0.4.0 will be updated in regards to configuration. And hopefully during summer for commands and such (but they are usually the same as for 0.3.9). I am currently writing scripts to create this for me...
</p>
<p>
<em> Michael Medin
</em></p>
Message