Error in performance-data-output

Trond Hasle Amundsen t.h.amundsen at usit.uio.no
Wed Mar 2 21:23:04 CET 2011


"Lichterfeld, Dirk" <Dirk.Lichterfeld at enercity.de> writes:

> Hi Trond,
>
> I´m sorry, at my company we use Outlook, so the highlighted text is distinctly and visibly.
>
> I will try to specify the problem I mean.
>
> If I run NSClient++ in testmode I will get the follow output:
>
> 	d NSClient++.cpp(1106) Injecting: Check_OpenManage:
> 	d NSClient++.cpp(1142) Injected Result: OK 'OK - System: 'PowerEdge R710 II', SN: 'XXXXXXX', 4 GB ra
> 	m (2 dimms), 1 logical drives, 4 physical drives'
> 	d NSClient++.cpp(1143) Injected Performance Result: 'fan_0_system_board_fan_1_rpm=3600;0;0 fan_1_sys
> 	tem_board_fan_2_rpm=3600;0;0 fan_2_system_board_fan_3_rpm=3600;0;0 fan_3_system_board_fan_4_rpm=3600
> 	;0;0 fan_4_system_board_fan_5_rpm=3600;0;0 pwr_mon_0_ps_1_current=0.4;0;0 pwr_mon_1_ps_2_current=0.4
> 	;0;0 pwr_mon_2_system_board_system_level=175;917;966 temp_0_system_board_ambient=20;42;47
> 	'
>
> You can see, the injected perfomance result beginns and ends with a '. 

Yes, but I think that NSClient++ is responsible for that, putting
everything inside single quotes. As you can see it does that for the
plugin output as well.

> 1. I mean, that every description and only the description must be inside of the signs ' 
>       our output:  fan_2_system_board_fan_3_rpm
>       must be:    'fan_2_system_board_fan_3_rpm'
> 2. At the end is no special sign approved. 
>
> You can read this in "chapter 2.6 Performance data" at http://nagiosplug.sourceforge.net/developer-guidelines.html
>
> I hope I could describe the problem well enough.

Yes, thank you, this was much clearer :) However, the quotes are not
needed according to the guidelines for performance data[1]:

  3. the single quotes for the label are optional. Required if spaces, =
     or ' are in the label

The perfdata labels don't contain any of the offending characters.

Could it be that this is a Windows issue, or perhaps NSClient++?

Any NSClient++ users here who can confirm if this is the case? I'm
thinking that perhaps the underscore character '_' is throwing off
Windows or NSClient++.

[1] http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201

Regards,
-- 
Trond H. Amundsen <t.h.amundsen at usit.uio.no>
Center for Information Technology Services, University of Oslo

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list