Ticket #314 (closed defect: Works for me)

Opened 8 weeks ago

Last modified 7 weeks ago

perfdata not parsed when containing some special characters like /

Reported by: davidb Owned by: jmathis
Priority: minor Milestone: Centreon-2.0
Component: CentStorage Version: RC7
Keywords: perfdata Cc:

Description

Hello,

I have created a plugin that reports partition usage and allow to graph it too thanks to the performance data output.

In our windows environment, it works rather wall, displaying all partitions.

But, in our linux environment, no graph popup appears (only "graph_popup&index=xx" where xx is a numeric).

I have taken a look at the database centstorage, table metric and not data is saved.

The only difference between windows and linux perfdata output is the / (which is the common separator).

Attachments

bug-slash.JPG (190.6 kB) - added by jmathis 7 weeks ago.
graphs with /
bug-slash2.JPG (42.0 kB) - added by jmathis 7 weeks ago.
bug 2

Change History

Changed 8 weeks ago by davidb

I've just changed the perfdata output: all / are replaced by - and graphes are correctly display now

Changed 7 weeks ago by jmathis

hi,

I haven't this problem... I don't understand. cf my screenshot.

can I have output format for this services ?

Thanks

Changed 7 weeks ago by jmathis

graphs with /

Changed 7 weeks ago by jmathis

  • status changed from new to closed
  • resolution set to Works for me

Changed 7 weeks ago by davidb

  • status changed from closed to reopened
  • resolution deleted

Hi,

Here is the output:

  • The desired output with / in perfparse (the graph are not displayed in centreon gui)
    [root@supervision06-rec libexec]# ./check_snmp_storage_slash.pl -H 10.20.199.1 -C public -2 -w 95 -c 98 -R 6 -m / -k '/var/ftp|/home1/centosdistrib' -S 0 -f
    All selected storages (<95%) : OK | '/spool'=35622912B;18334522540;18913507462;0;19299497411 '/home5'=168013824B;13534277595;13961675835;0;14246607995 '/usr'=2909855744B;7374228374;7607098743;0;7762345656 '/home6'=33796096B;13823318577;14259844427;0;14550861660 '/home3'=85426176B;7374228374;7607098743;0;7762345656 '/'=619450368B;4605368513;4750801202;0;4847756329 '/tmp'=93573120B;1886934090;1946521482;0;1986246410 '/var/tmp'=17235968B;918111674;947104675;0;966433341 '/var'=512212992B;3687073952;3803507866;0;3881130476 '/home10'=619237376B;27646871249;28519930341;0;29101969736 '/home8'=113229824B;46082767720;47538013017;0;48508176548 '/ingreslog'=2132828160B;2761712660;2848924639;0;2907065958 '/home4'=311545856B;64519626174;66557088054;0;67915395973 '/home1'=654610432B;9217920803;9509013039;0;9703074529 '/home7'=14455410688B;38621053809;39840666034;0;40653740851 '/boot'=15565824B;92439016;95358143;0;97304228 '/home2'=235880448B;46082796982;47538043203;0;48508207350 '/log'=33615872B;13823347839;14259874613;0;14550892462
    
  • The output for which the graph is correctly display in centreon gui (/ are replace by -)
    [root@supervision06-rec libexec]# ./check_snmp_storage.pl -H 10.20.199.1 -C public -2 -w 95 -c 98 -R 6 -m / -k '/var/ftp|/home1/centosdistrib' -S 0 -f
    All selected storages (<95%) : OK | '-spool'=35622912B;18334522540;18913507462;0;19299497411 '-home5'=168013824B;13534277595;13961675835;0;14246607995 '-usr'=2909855744B;7374228374;7607098743;0;7762345656 '-home6'=33796096B;13823318577;14259844427;0;14550861660 '-home3'=85426176B;7374228374;7607098743;0;7762345656 '-'=619450368B;4605368513;4750801202;0;4847756329 '-tmp'=93573120B;1886934090;1946521482;0;1986246410 '-var-tmp'=17235968B;918111674;947104675;0;966433341 '-var'=512217088B;3687073952;3803507866;0;3881130476 '-home10'=619237376B;27646871249;28519930341;0;29101969736 '-home8'=113229824B;46082767720;47538013017;0;48508176548 '-ingreslog'=2132828160B;2761712660;2848924639;0;2907065958 '-home4'=311545856B;64519626174;66557088054;0;67915395973 '-home1'=654610432B;9217920803;9509013039;0;9703074529 '-home7'=14455410688B;38621053809;39840666034;0;40653740851 '-boot'=15565824B;92439016;95358143;0;97304228 '-home2'=235880448B;46082796982;47538043203;0;48508207350 '-log'=33615872B;13823347839;14259874613;0;14550892462
    

This plugin is a plugin originally written by Manu Bulon (http://nagios.manubulon.com/) and modified by me to enhanced filtering (-k ...)

Changed 7 weeks ago by jmathis

bug 2

Changed 7 weeks ago by jmathis

regarde mon graphs, sur un RC8 qui sort today, ca passe sans pb. donc on attend l'update et je pense que ca sera bon. J'ai bossé pas mal à ce niveau la.

Changed 7 weeks ago by jmathis

  • owner set to jmathis
  • status changed from reopened to assigned

Changed 7 weeks ago by jmathis

  • status changed from assigned to closed
  • resolution set to Works for me
Note: See TracTickets for help on using tickets.