Page 3 of 3

Re: NagiosXI Server Migration Problem

Posted: Wed Mar 21, 2012 6:12 am
by srrhd
Here is the fetch result:

Code: Select all

[root@NagiosXI]# rrdtool fetch /var/lib/mrtg/IP_ADDRESS_INT.rrd AVERAGE -s '-1d'
                            ds0                 ds1

1332241500: 1,2344694091e+06 4,0890710879e+05
1332241800: 1,1469664123e+06 3,8109984156e+05
1332242100: 1,3340894090e+06 3,9033183280e+05
1332242400: 1,4101242585e+06 3,7563857623e+05
1332242700: 1,2924345644e+06 2,9657472264e+05
1332243000: 9,5200650927e+05 2,9383633108e+05
1332243300: 9,2076316107e+05 2,9750551499e+05
1332243600: 8,9021658174e+05 2,6232750894e+05
1332243900: 9,0260208854e+05 2,7491891909e+05
1332244200: 8,8929604606e+05 2,6227259373e+05
1332244500: 9,9821070998e+05 2,8252322111e+05
1332244800: 1,1659446152e+06 2,6292106310e+05
1332245100: 1,0069961103e+06 2,8614239797e+05
1332245400: 9,9426530078e+05 2,7896716362e+05
1332245700: 9,6395140660e+05 2,5009755697e+05
1332246000: 8,9603185682e+05 2,4180389097e+05
1332246300: 6,3103932358e+05 1,7749404701e+05
1332246600: 7,6779610172e+05 1,7073678676e+05
1332246900: 8,6111239958e+05 1,7688815110e+05
1332247200: 1,2956356557e+06 4,2352973328e+05
1332247500: 1,5117821482e+06 6,5987354183e+05
1332247800: 1,4457076779e+06 6,7688768050e+05
1332248100: 1,6093826271e+06 6,9527699034e+05
1332248400: 9,9358001478e+05 3,3869835186e+05
1332248700: 9,3597711638e+05 2,7350269757e+05
1332249000: 9,7480512535e+05 3,1728646046e+05
1332249300: 9,2026604288e+05 2,9315367486e+05
1332249600: 6,1560478073e+05 2,8891811562e+05
1332249900: 4,3538418951e+05 3,0953335798e+05
1332250200: 4,5053538275e+05 3,1444452383e+05
1332250500: 4,1487298837e+05 2,2719511305e+05
1332250800: 4,6728262574e+05 2,1557661843e+05
1332251100: 5,0599134525e+05 2,3365985435e+05
1332251400: 2,7435123971e+05 1,8973308925e+05
1332251700: 3,5621223407e+05 1,8692642400e+05
1332252000: 4,0679094598e+05 2,0490040458e+05
1332252300: 2,0994855601e+05 2,1767752180e+05
1332252600: 1,9581768763e+05 2,1682065151e+05
1332252900: 1,7929363648e+05 1,8388656412e+05
1332253200: 2,2322802371e+05 1,8896015341e+05
1332253500: 2,3694934325e+05 1,7454524056e+05
1332253800: 2,5387938353e+05 3,5263969363e+05
1332254100: 2,8436939263e+05 2,3320831406e+05
1332254400: 2,2445923562e+05 1,5668286268e+05
1332254700: 2,5087037518e+05 1,5950965800e+05
1332255000: 2,1315001781e+05 1,8521433559e+05
1332255300: 3,3471378084e+05 1,4850214181e+05
1332255600: 3,8490630936e+05 1,3977393761e+05
1332255900: 2,2241386713e+05 1,3985892636e+05
1332256200: 3,2450544972e+05 1,6210622158e+05
1332256500: 3,1619674334e+05 2,0602209834e+05
1332256800: 2,5080433890e+05 2,0156108200e+05
1332257100: 2,6508686611e+05 2,0329399481e+05
1332257400: 3,0481412570e+05 2,3294952249e+05
1332257700: 2,6159175578e+05 2,0279551612e+05
1332258000: 2,8051405485e+05 1,7457933224e+05
1332258300: 3,9765516753e+05 1,6757299768e+05
1332258600: 3,9897361335e+05 1,3948853570e+05
1332258900: 5,9291307126e+05 1,6294595044e+05
1332259200: 5,6458554017e+05 1,6762802286e+05
1332259500: 3,5249812274e+05 1,7919717262e+05
1332259800: 2,9600305780e+05 2,6836752603e+05
1332260100: 3,1066595911e+05 2,8321040725e+05
1332260400: 2,6604685397e+05 2,8903793334e+05
1332260700: 2,4111196548e+05 2,8497651534e+05
1332261000: 2,3232286066e+05 2,9268469652e+05
1332261300: 2,4574494013e+05 2,6399990018e+05
1332261600: 2,6301150063e+05 2,8491690264e+05
1332261900: 2,0539451752e+05 2,7067347996e+05
1332262200: 2,1600623695e+05 2,7270867104e+05
1332262500: 2,7372810259e+05 2,9037203669e+05
1332262800: 2,0759203435e+05 2,6989318757e+05
1332263100: 2,5270551765e+05 2,9353547102e+05
1332263400: 2,3577625396e+05 1,4779643634e+05
1332263700: 1,7329056420e+05 1,3338147975e+05
1332264000: 1,7427743122e+05 1,3935376179e+05
1332264300: 1,5039941309e+05 1,4346701594e+05
1332264600: 1,7441883818e+05 1,4149456026e+05
1332264900: 1,8336953439e+05 1,2532080552e+05
1332265200: 1,5744282302e+05 1,2303114100e+05
1332265500: 1,3984777579e+05 1,1924778267e+05
1332265800: 1,5500490777e+05 1,2813011675e+05
1332266100: 3,5953723968e+05 1,3099657275e+05
1332266400: 3,4470058447e+05 1,3618423525e+05
1332266700: 3,1354304801e+05 1,3201245074e+05
1332267000: 2,7254986064e+05 1,1962018700e+05
1332267300: 3,4621971511e+05 1,3259315937e+05
1332267600: 2,6256943210e+05 1,2609715135e+05
1332267900: 2,2043224862e+05 1,4788295162e+05
1332268200: 1,9285916071e+05 1,5476864165e+05
1332268500: 2,3144938030e+05 1,6547336031e+05
1332268800: 1,6307888441e+05 1,5893106569e+05
1332269100: 9,7254362814e+04 1,1889261095e+05
1332269400: 1,5078897470e+05 1,0977200741e+05
1332269700: 2,9748269232e+05 1,1385756704e+05
1332270000: 3,5518459096e+05 1,1523630742e+05
1332270300: 2,4299112961e+05 1,1422403646e+05
1332270600: 1,7816766012e+05 1,1353603275e+05
1332270900: 1,2718236517e+05 1,1505034871e+05
1332271200: 1,2934220087e+05 1,1880904152e+05
1332271500: 1,0526268694e+05 1,1790157310e+05
1332271800: 1,0722144788e+05 1,1606535810e+05
1332272100: 1,5053122693e+05 1,1482435451e+05
1332272400: 1,1879190518e+05 1,1703106663e+05
1332272700: 1,4680547579e+05 1,2829249107e+05
1332273000: 1,5108755197e+05 1,2252122515e+05
1332273300: 3,1516760977e+05 1,2409671541e+05
1332273600: 3,7504249942e+05 1,2316584230e+05
1332273900: 2,6392755657e+05 1,2053900905e+05
1332274200: 2,5842547083e+05 1,2458862465e+05
1332274500: 3,5982002106e+05 1,2725369937e+05
1332274800: 3,5505731384e+05 1,1090372322e+05
1332275100: 1,6564345544e+05 1,1023986902e+05
1332275400: 1,1735118007e+05 1,0963026811e+05
1332275700: 1,0955883693e+05 1,1586775696e+05
1332276000: 9,6263864183e+04 1,1391718997e+05
1332276300: 9,0373748737e+04 1,1064157442e+05
1332276600: 8,7356549085e+04 1,0850073125e+05
1332276900: 2,3666239684e+05 1,1283550409e+05
1332277200: 2,8260176611e+05 1,1669435599e+05
1332277500: 1,4324206526e+05 1,3211245666e+05
1332277800: 1,2074920378e+05 1,4105772040e+05
1332278100: 1,2562922942e+05 1,3516773337e+05
1332278400: 1,2725594029e+05 1,3123171560e+05
1332278700: 1,2031694648e+05 1,1921204510e+05
1332279000: 1,2872528858e+05 1,6444496467e+05
1332279300: 1,4072063850e+05 1,5637901884e+05
1332279600: 1,2921551292e+05 1,4534650176e+05
1332279900: 1,2499124765e+05 1,1101128469e+05
1332280200: 1,0659565112e+05 1,0654405755e+05
1332280500: 2,3762845603e+05 1,1285373236e+05
1332280800: 2,7851510327e+05 1,1413702436e+05
1332281100: 1,3102417852e+05 1,0850127903e+05
1332281400: 9,9195889984e+04 1,0781722166e+05
1332281700: 1,1038838730e+05 1,1465030267e+05
1332282000: 9,9115480656e+04 1,1307684171e+05
1332282300: 1,0339261948e+05 1,1120449483e+05
1332282600: 9,6784688622e+04 1,1568016812e+05
1332282900: 1,1025762883e+05 1,0643406411e+05
1332283200: 1,6692802686e+05 1,0927096572e+05
1332283500: 2,3504010038e+05 1,1351668044e+05
1332283800: 1,3186061281e+05 1,1899201363e+05
1332284100: 2,6963404676e+05 1,1334663487e+05
1332284400: 3,3768577621e+05 1,1751289212e+05
1332284700: 2,4383221604e+05 1,1484319508e+05
1332285000: 1,3424315847e+05 1,0796314051e+05
1332285300: 1,3484152724e+05 1,1436485571e+05
1332285600: 1,2891797016e+05 1,0977268431e+05
1332285900: 1,2683585072e+05 1,0786162078e+05
1332286200: 1,1320737152e+05 1,0705752908e+05
1332286500: 1,5056306214e+05 1,0813800942e+05
1332286800: 1,0514818570e+05 1,0798565030e+05
1332287100: 1,1420601412e+05 1,0786171994e+05
1332287400: 1,1785213729e+05 1,0672951953e+05
1332287700: 2,6996030854e+05 1,1136872476e+05
1332288000: 4,0992068564e+05 1,1623306899e+05
1332288300: 2,0708250701e+05 1,1440905676e+05
1332288600: 1,4802179082e+05 1,3382527160e+05
1332288900: 1,3112677085e+05 1,3716887967e+05
1332289200: 1,0928383110e+05 1,3950238343e+05
1332289500: 9,6237357182e+04 1,4216471162e+05
1332289800: 9,7160146373e+04 1,3734256778e+05
1332290100: 1,2431685441e+05 1,1908400353e+05
1332290400: 1,1547894268e+05 1,2776708108e+05
1332290700: 1,2623020574e+05 1,1951147890e+05
1332291000: 1,1184877026e+05 1,2078702046e+05
1332291300: 2,5599175111e+05 1,3713227679e+05
1332291600: 3,0662897371e+05 1,5102703499e+05
1332291900: 1,6609023712e+05 1,4845194246e+05
1332292200: 1,3449893013e+05 1,4043881412e+05
1332292500: 1,2539667271e+05 1,4377361431e+05
1332292800: 1,2964944862e+05 1,3960729673e+05
1332293100: 1,3603859616e+05 1,4338905570e+05
1332293400: 1,9952686044e+05 1,4919583019e+05
1332293700: 1,3369394987e+05 1,4703828535e+05
1332294000: 1,3514909754e+05 1,6077166066e+05
1332294300: 1,3152826080e+05 1,5155248558e+05
1332294600: 1,2995969098e+05 1,4159575103e+05
1332294900: 2,8386052931e+05 1,7534264286e+05
1332295200: 3,4839516447e+05 1,8640808801e+05
1332295500: 2,1458367145e+05 1,9242065670e+05
1332295800: 1,8448150976e+05 1,7508799632e+05
1332296100: 5,1697981631e+05 1,8093061881e+05
1332296400: 1,4069580227e+06 1,7367497896e+05
1332296700: 7,9219235670e+05 1,6634730976e+05
1332297000: 7,1349938150e+05 1,7431837665e+05
1332297300: 2,7400601785e+05 1,6017114548e+05
1332297600: 1,7285888851e+05 1,5858175937e+05
1332297900: 2,5412934272e+05 1,6136342778e+05
1332298200: 2,0418494848e+05 1,6345178612e+05
1332298500: 3,4007124831e+05 1,5158011616e+05
1332298800: 4,1936087071e+05 1,8483099040e+05
1332299100: 3,1006035362e+05 1,7921835883e+05
1332299400: 3,6322027425e+05 1,5961642294e+05
1332299700: 3,4820816613e+05 1,6855347876e+05
1332300000: 3,4576940238e+05 1,6852380240e+05
1332300300: 4,7443948517e+05 1,8134803241e+05
1332300600: 4,7604878098e+05 3,0408987919e+05
1332300900: 6,8767723594e+05 2,2331221291e+05
1332301200: 5,5740639391e+05 2,1231844370e+05
1332301500: 5,6251089446e+05 2,0781646472e+05
1332301800: 7,1562873115e+05 1,9907543083e+05
1332302100: 9,7631917061e+05 2,4127499193e+05
1332302400: 9,2139839278e+05 2,6007924488e+05
1332302700: 8,3022750471e+05 2,6966842794e+05
1332303000: 6,3959035896e+05 2,5691650169e+05
1332303300: 6,4874817664e+05 3,4785717152e+05
1332303600: 7,6930786819e+05 3,9534331272e+05
1332303900: 7,7811191264e+05 3,0110851669e+05
1332304200: 7,8502608380e+05 3,0200436764e+05
1332304500: 7,7121440860e+05 3,0247686654e+05
1332304800: 7,9330203181e+05 1,7192748403e+05
1332305100: 7,5541931931e+05 1,4462533391e+05
1332305400: 9,3867818332e+05 2,0242472599e+05
1332305700: 8,3569739411e+05 1,2909702805e+05
1332306000: 7,1392675637e+05 1,2465281972e+05
1332306300: 7,8599116364e+05 1,9669450001e+05
1332306600: 8,9689859826e+05 1,8716879097e+05
1332306900: 9,6407364928e+05 1,7615317192e+05
1332307200: 1,1016699470e+06 1,6194386349e+05
1332307500: 9,7111958809e+05 1,6365868537e+05
1332307800: 9,8376373611e+05 1,8984319680e+05
1332308100: 1,3190553259e+06 1,8759084465e+05
1332308400: 1,1610519989e+06 2,0047218521e+05
1332308700: 1,1942379215e+06 1,6200558223e+05
1332309000: 1,1432723233e+06 1,8502795743e+05
1332309300: 1,2899236747e+06 2,8562346507e+05
1332309600: 1,3327172536e+06 1,9839752328e+05
1332309900: 1,4302387197e+06 1,6938063352e+05
1332310200: 1,4740128075e+06 1,7035048962e+05
1332310500: 1,6263640767e+06 1,8484819566e+05
1332310800: 1,6345695579e+06 2,2613723740e+05
1332311100: 1,5800293664e+06 2,3413627009e+05
1332311400: 1,4165928067e+06 2,2721844652e+05
1332311700: 1,5934755960e+06 2,4414074656e+05
1332312000: 1,7673549264e+06 2,3198176690e+05
1332312300: 3,0070424185e+06 3,0095827437e+05
1332312600: 2,3022260984e+06 3,5235144136e+05
1332312900: 1,8682215822e+06 2,5529146396e+05
1332313200: 1,5028758566e+06 2,4349958456e+05
1332313500: 1,4957351070e+06 1,9030552850e+05
1332313800: 1,3567798067e+06 2,6718131485e+05
1332314100: 1,5564266711e+06 3,1692911079e+05
1332314400: 1,3667831763e+06 2,3790950463e+05
1332314700: 1,6920752967e+06 2,2980238140e+05
1332315000: 1,8511968741e+06 1,9155828432e+05
1332315300: 1,5767892316e+06 3,1596331442e+05
1332315600: 1,4496140488e+06 2,8050753420e+05
1332315900: 1,1255786662e+06 2,3975095883e+05
1332316200: 1,1880029004e+06 2,3179274182e+05
1332316500: 1,2713904598e+06 2,5250634793e+05
1332316800: 1,2897963025e+06 2,5395176455e+05
1332317100: 1,6742452109e+06 2,5368356118e+05
1332317400: 1,6323834593e+06 2,7106266247e+05
1332317700: 1,4671695511e+06 2,4821444222e+05
1332318000: 1,6762697942e+06 2,5439603981e+05
1332318300: 1,5455531840e+06 2,4361248276e+05
1332318600: 1,3591345856e+06 2,3703161235e+05
1332318900: 1,3111520728e+06 2,3209444308e+05
1332319200: 1,3603900573e+06 2,3210102459e+05
1332319500: 1,4932890161e+06 2,5778611592e+05
1332319800: 1,4846300429e+06 2,4160545349e+05
1332320100: 1,4224558018e+06 2,3642767490e+05
1332320400: 1,4817927361e+06 2,4736529713e+05
1332320700: 1,6240530013e+06 2,9298352736e+05
1332321000: 1,3719554987e+06 3,2921590056e+05
1332321300: 1,4232943156e+06 3,1278566541e+05
1332321600: 1,2972415516e+06 3,0360418096e+05
1332321900: 1,3530228498e+06 3,2582240414e+05
1332322200: 1,5058887428e+06 3,2946416975e+05
1332322500: 1,4339929597e+06 3,1244360599e+05
1332322800: 1,2448104092e+06 2,7430069166e+05
1332323100: 1,4304166703e+06 2,7343537702e+05
1332323400: 1,7167149304e+06 3,1219086650e+05
1332323700: 1,9372943454e+06 3,2772301539e+05
1332324000: 1,4306123282e+06 3,2103108381e+05
1332324300: 1,5685593483e+06 3,1944005910e+05
1332324600: 1,8843941272e+06 4,0270706542e+05
1332324900: 1,9046720595e+06 3,9858564881e+05
1332325200: 1,8610111612e+06 3,9134642096e+05
1332325500: 1,6986025319e+06 3,7228420322e+05
1332325800: 1,4686681742e+06 3,5314820069e+05
1332326100: 1,6357523481e+06 3,7755441120e+05
1332326400: 1,5787600085e+06 4,0253018567e+05
1332326700: 1,5996268328e+06 6,0033850665e+05
1332327000: 1,7781751415e+06 5,3333058968e+05
1332327300: 1,7389281448e+06 4,1744785317e+05
1332327600: 1,7616358809e+06 3,8602998241e+05
1332327900: -nan -nan

Re: NagiosXI Server Migration Problem

Posted: Thu Mar 22, 2012 4:08 pm
by nscott
This might an issue. I see there are commas in the numbers. Are you using a localization? Can you show me the echo of the following:

echo $LANG
echo $LC_NUMERIC
echo $LC_ALL

Re: NagiosXI Server Migration Problem

Posted: Fri Mar 23, 2012 1:22 am
by srrhd
Only $LANG is defined:

Code: Select all

[root@NagiosXI ~]# echo $LANG
fr_FR.UTF-8
[root@NagiosXI ~]# echo $LC_NUMERIC

[root@NagiosXI ~]# echo $LC_ALL

What do you mean by "using a localization" ?

Re: NagiosXI Server Migration Problem

Posted: Sat Mar 24, 2012 1:04 pm
by nscott
Linux uses localization for determining how to display things like numbers. The US way of displaying decimal numbers can differ from the way some other country may display decimals. Can you try something for troubleshooting here:

Set your LANG variable to en_US.UTF-8

export LANG=en_US.UTF-8

Then run the check_rrdtraf plugin again as the nagios user. Does this resolve the tiny amount of bandwidth reported problem? It will take a while, but if it starts reporting the correct bandwidth with that check the RRD will then start getting populated with the correct data and the issues you're experiencing will dissappear.

Re: NagiosXI Server Migration Problem

Posted: Mon Mar 26, 2012 1:01 am
by srrhd
Good news !! This seems to be the problem !

The bad news is that there is still something to find out. Forcing the variable LANG to en_US.UTF-8 solve the problem when manually running the rrdtraf plugin but the web interface still prompt the bad values.

Below is the results from the manually execution fromm rrdtraf and the value fetched into the corresponding rrd file:

Code: Select all

[root@NagiosXI ~]# sudo -u nagios /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/IP_ADDRESS_INT.rrd  -w 50,50 -c 70,70 -l M
OK - Current BW in: 19.69Mbps Out: 9.25Mbps|in=19.695318Mb/s;50;70 out=9.250694Mb/s;50;70
[root@NagiosXI ~]# rrdtool fetch /var/lib/mrtg/IP_ADDRESS_INT.rrd AVERAGE -s '-1d'
                            ds0                 ds1

1332662700: 5.3104145698e+05 2.7148803670e+05
1332663000: 6.8183759261e+05 2.4367417864e+05
1332663300: 6.7278804167e+05 2.4709170207e+05
1332663600: 5.8215625620e+05 2.7072471570e+05
1332663900: 6.1777623890e+05 2.6579831697e+05
1332664200: 6.7962597357e+05 2.5035034083e+05
1332664500: 5.9603630105e+05 2.7459669464e+05
1332664800: 6.8342313420e+05 2.6490477337e+05
1332665100: 5.3445676704e+05 2.4984052570e+05
1332665400: 4.8420763890e+05 2.5169893410e+05
1332665700: 5.1262831850e+05 3.9493043083e+05
1332666000: 5.9799369043e+05 4.1566806899e+05
1332666300: 4.5724023908e+05 2.5210059598e+05
1332666600: 5.5125925136e+05 2.2780578386e+05
1332666900: 6.6724202087e+05 2.3212248503e+05
1332667200: 4.9620723357e+05 2.3888030344e+05
1332667500: 5.3658421369e+05 2.3038837998e+05
1332667800: 7.7724079144e+05 2.3859288230e+05
1332668100: 8.4474490507e+05 2.5386050654e+05
1332668400: 6.8887296147e+05 2.1916096062e+05
1332668700: 6.6602450289e+05 1.5052920111e+05
1332669000: 5.7088369927e+05 1.3715270270e+05
1332669300: 7.2799832583e+05 2.8145492587e+05
1332669600: 7.9512252687e+05 3.0536621333e+05
1332669900: 8.5296829159e+05 1.4850457052e+05
1332670200: 8.5043847625e+05 1.1619947531e+05
1332670500: 6.5837901103e+05 1.1921144557e+05
1332670800: 5.4297102617e+05 1.1354372350e+05
1332671100: 4.4949659499e+05 1.0191238672e+05
1332671400: 5.0621337661e+05 1.1764078584e+05
1332671700: 3.7814144465e+05 1.2927325488e+05
1332672000: 5.7868284956e+05 1.2557159953e+05
1332672300: 6.4417128783e+05 1.3004860820e+05
1332672600: 5.5472764496e+05 1.3483464929e+05
1332672900: 4.6927983883e+05 2.6514795190e+05
1332673200: 6.0597665259e+05 2.9334835477e+05
1332673500: 5.4972153751e+05 1.3539955844e+05
1332673800: 5.5698396666e+05 1.1379335662e+05
1332674100: 6.1243190682e+05 1.1387306864e+05
1332674400: 5.9079865491e+05 1.1161669228e+05
1332674700: 6.7625638597e+05 1.1135809808e+05
1332675000: 6.8906013794e+05 1.1309941098e+05
1332675300: 7.2228547242e+05 1.2950723720e+05
1332675600: 9.0316741710e+05 2.1151384322e+05
1332675900: 1.0313417610e+06 2.3755007807e+05
1332676200: 8.8052949510e+05 2.3160175617e+05
1332676500: 8.3232103300e+05 3.8807388950e+05
1332676800: 8.4489193790e+05 4.1049474010e+05
1332677100: 9.3566602321e+05 2.6698606425e+05
1332677400: 9.2681279925e+05 2.3525449807e+05
1332677700: 7.2220976151e+05 2.3609808347e+05
1332678000: 7.9636644602e+05 3.3027904919e+05
1332678300: 8.0686447840e+05 3.7885054512e+05
1332678600: 7.6278098432e+05 3.8025547160e+05
1332678900: 7.2287046257e+05 3.8088155433e+05
1332679200: 6.2701804905e+05 3.3158288285e+05
1332679500: 6.1213594204e+05 3.5444972429e+05
1332679800: 6.8052805644e+05 2.9613468258e+05
1332680100: 6.7380966396e+05 4.3506902742e+05
1332680400: 9.4298683034e+05 4.6487761163e+05
1332680700: 9.3171924495e+05 3.0428238644e+05
1332681000: 7.9326738338e+05 1.3567925056e+05
1332681300: 7.9605812587e+05 1.2635192453e+05
1332681600: 8.9638309662e+05 1.3305881005e+05
1332681900: 9.4835364073e+05 1.2468257697e+05
1332682200: 9.5257946307e+05 1.3862562090e+05
1332682500: 1.1540218901e+06 1.6888103895e+05
1332682800: 1.1620297359e+06 1.7531356576e+05
1332683100: 9.6391453555e+05 1.6628144791e+05
1332683400: 9.4735084741e+05 1.5821715195e+05
1332683700: 8.6467566847e+05 3.5159271284e+05
1332684000: 8.7035995081e+05 3.7887794621e+05
1332684300: 8.2079226520e+05 2.3715105592e+05
1332684600: 8.9369121865e+05 1.7358398704e+05
1332684900: 9.2177107991e+05 1.6979249138e+05
1332685200: 7.0839278227e+05 1.6412376156e+05
1332685500: 5.8477377448e+05 1.8790187717e+05
1332685800: 5.8163932462e+05 1.9111515632e+05
1332686100: 6.5059430968e+05 1.6790419918e+05
1332686400: 6.1060332558e+05 1.6709681773e+05
1332686700: 6.7885931004e+05 1.7234712797e+05
1332687000: 5.8104959937e+05 1.6417780389e+05
1332687300: 7.2800943070e+05 3.2678405493e+05
1332687600: 7.4638462041e+05 3.6612493688e+05
1332687900: 8.7278509322e+05 1.9247457428e+05
1332688200: 1.0432361532e+06 1.6522514129e+05
1332688500: 9.7163822637e+05 1.6898901312e+05
1332688800: 9.8460274039e+05 1.8163369066e+05
1332689100: 6.7802647347e+05 1.5746795213e+05
1332689400: 7.8616425893e+05 2.1788839867e+05
1332689700: 8.4114243986e+05 1.7769168752e+05
1332690000: 8.5980757411e+05 1.7097226018e+05
1332690300: 8.9076661370e+05 1.5757479847e+05
1332690600: 9.9357192359e+05 1.6010901133e+05
1332690900: 9.8036227451e+05 3.1105955302e+05
1332691200: 1.1897008495e+06 4.0623101504e+05
1332691500: 1.3834988200e+06 3.6258331826e+05
1332691800: 1.3654863941e+06 2.3574798453e+06
1332692100: 1.1666458813e+06 1.0288125926e+06
1332692400: 1.1337192218e+06 8.3059353018e+05
1332692700: 1.2167903873e+06 4.8816132817e+05
1332693000: 1.2817584724e+06 2.1899334180e+05
1332693300: 9.5058239107e+05 1.7453586583e+05
1332693600: 9.9229415077e+05 1.6866191480e+05
1332693900: 9.5778525253e+05 1.6067986793e+05
1332694200: 8.9862000885e+05 1.5508639313e+05
1332694500: 9.1191496250e+05 3.8092789777e+05
1332694800: 1.0243940087e+06 5.3559095073e+05
1332695100: 9.2259546278e+05 2.9833267344e+05
1332695400: 9.2895406538e+05 1.5818391583e+05
1332695700: 9.2498580048e+05 1.4852768702e+05
1332696000: 9.0104247216e+05 1.5810223625e+05
1332696300: 9.5960335023e+05 1.7375998502e+05
1332696600: 8.5147233987e+05 1.4863795537e+05
1332696900: 8.6358938376e+05 1.8418149369e+05
1332697200: 1.0113418863e+06 1.5658731625e+05
1332697500: 8.9777476253e+05 1.5135693276e+05
1332697800: 1.0219894236e+06 1.6009760670e+05
1332698100: 1.1356701530e+06 3.4412712257e+05
1332698400: 1.0604791363e+06 3.7944234089e+05
1332698700: 9.9953501447e+05 2.2416887614e+05
1332699000: 9.7119403472e+05 1.7586499821e+05
1332699300: 9.6256387548e+05 1.6247494086e+05
1332699600: 1.0077197475e+06 1.6093326646e+05
1332699900: 1.0508158603e+06 1.5218904447e+05
1332700200: 1.1046869836e+06 1.5796425531e+05
1332700500: 1.0511939848e+06 1.7222904841e+05
1332700800: 1.0743063272e+06 1.5453393362e+05
1332701100: 1.0392812809e+06 1.8086712670e+05
1332701400: 1.0663205034e+06 1.9128170166e+05
1332701700: 1.0810852354e+06 3.2768426954e+05
1332702000: 9.6270365150e+05 6.0721494652e+05
1332702300: 1.0415818657e+06 4.6646082117e+05
1332702600: 1.0354730558e+06 2.1525255396e+05
1332702900: 1.0383180769e+06 1.6562947673e+05
1332703200: 1.1208114331e+06 1.5869385142e+05
1332703500: 1.1605491203e+06 1.5061351044e+05
1332703800: 1.1113295136e+06 1.6601792931e+05
1332704100: 1.1172040350e+06 1.7321914685e+05
1332704400: 1.0748710947e+06 1.5298301070e+05
1332704700: 1.0465595670e+06 1.4772558680e+05
1332705000: 1.0263195106e+06 1.5841115507e+05
1332705300: 1.0084678696e+06 3.0338098532e+05
1332705600: 9.9821247691e+05 3.4484761874e+05
1332705900: 1.0209003040e+06 1.8188946890e+05
1332706200: 1.0015778620e+06 1.4919208629e+05
1332706500: 1.0659902033e+06 1.5206256934e+05
1332706800: 1.0350533422e+06 1.5593766031e+05
1332707100: 9.4702859104e+05 1.4353420542e+05
1332707400: 9.4935182311e+05 1.5006574384e+05
1332707700: 1.0391638873e+06 1.6825510747e+05
1332708000: 1.0383645408e+06 1.5037332943e+05
1332708300: 9.6239069429e+05 1.5288959910e+05
1332708600: 9.6224029842e+05 1.5841785332e+05
1332708900: 9.1270188557e+05 3.1863898701e+05
1332709200: 9.7595461229e+05 3.4120397924e+05
1332709500: 8.9431358440e+05 1.7422749219e+05
1332709800: 8.2425011450e+05 1.4129136368e+05
1332710100: 7.7839536143e+05 1.4785413623e+05
1332710400: 6.8314584417e+05 1.4504714777e+05
1332710700: 6.7030698197e+05 1.4728524437e+05
1332711000: 8.4439322033e+05 1.4532880787e+05
1332711300: 8.4515529588e+05 1.5861153090e+05
1332711600: 7.9416066352e+05 1.5961688234e+05
1332711900: 8.8050359873e+05 1.4903322838e+05
1332712200: 8.9813482621e+05 1.5067417877e+05
1332712500: 8.6119271903e+05 3.3944326450e+05
1332712800: 8.4400102144e+05 3.7217136065e+05
1332713100: 8.0365693917e+05 2.1739249352e+05
1332713400: 8.5588687153e+05 1.5395805493e+05
1332713700: 8.9640448104e+05 1.5683442586e+05
1332714000: 8.7403101708e+05 1.4577570583e+05
1332714300: 7.8257430981e+05 1.3540495477e+05
1332714600: 8.3181268160e+05 1.4246941687e+05
1332714900: 8.4681137373e+05 1.5326276866e+05
1332715200: 6.7218121126e+05 1.3307740920e+05
1332715500: 4.8709696296e+05 1.3239564003e+05
1332715800: 5.7107786249e+05 1.3948298830e+05
1332716100: 7.0119157647e+05 2.9645392731e+05
1332716400: 7.0593333560e+05 3.2006340889e+05
1332716700: 6.8243263604e+05 1.6341603902e+05
1332717000: 6.3185737335e+05 1.3657605397e+05
1332717300: 6.7448281513e+05 1.3535335017e+05
1332717600: 7.1438589020e+05 1.3426987520e+05
1332717900: 8.4374697219e+05 1.3416352223e+05
1332718200: 8.6163987530e+05 1.3931585731e+05
1332718500: 8.8222528887e+05 1.4921613957e+05
1332718800: 7.5583780231e+05 1.3589478129e+05
1332719100: 7.3654719525e+05 1.3597892759e+05
1332719400: 6.9420425415e+05 1.4008531070e+05
1332719700: 6.8646076736e+05 2.9692796674e+05
1332720000: 7.4835108094e+05 3.2764424756e+05
1332720300: 7.6827895828e+05 1.6512925103e+05
1332720600: 7.7650759300e+05 1.3575192699e+05
1332720900: 7.6580411909e+05 1.4197151514e+05
1332721200: 7.8470184041e+05 1.4478077560e+05
1332721500: 7.9050210995e+05 1.3713052975e+05
1332721800: 8.2277075050e+05 1.4128577201e+05
1332722100: 7.2388286039e+05 1.5317938946e+05
1332722400: 6.7570372582e+05 1.3573423231e+05
1332722700: 7.7950113092e+05 1.4151445577e+05
1332723000: 9.1869484688e+05 1.7992848122e+05
1332723300: 9.1871843240e+05 3.6569373546e+05
1332723600: 8.2290118959e+05 4.0217433492e+05
1332723900: 8.1757365436e+05 2.9554635118e+05
1332724200: 8.4447515366e+05 1.7609442542e+05
1332724500: 8.4098016925e+05 1.6665042587e+05
1332724800: 5.9504226053e+05 1.6011633860e+05
1332725100: 5.9752079823e+05 1.8631943813e+05
1332725400: 6.6365818454e+05 2.0026658726e+05
1332725700: 7.3558719406e+05 2.2696113517e+05
1332726000: 7.1230569219e+05 1.6566842394e+05
1332726300: 7.0024708437e+05 1.5984098670e+05
1332726600: 7.6340275050e+05 1.6751568369e+05
1332726900: 8.2699033036e+05 3.2075450016e+05
1332727200: 8.3901155139e+05 3.5100451137e+05
1332727500: 8.5057816204e+05 1.9840887521e+05
1332727800: 8.2960091770e+05 1.6132259503e+05
1332728100: 7.7482660127e+05 1.6907860183e+05
1332728400: 6.3946831043e+05 1.6368877053e+05
1332728700: 5.1338091922e+05 1.6786612095e+05
1332729000: 6.0399028941e+05 1.8218057804e+05
1332729300: 7.5887815084e+05 2.1055138712e+05
1332729600: 8.8769790472e+05 1.9369231982e+05
1332729900: 9.3541404513e+05 1.8803618606e+05
1332730200: 8.5094801614e+05 1.8990433593e+05
1332730500: 8.1849782196e+05 3.4831757396e+05
1332730800: 8.9046261515e+05 3.8097483406e+05
1332731100: 9.9426242095e+05 2.4460643693e+05
1332731400: 1.1132892626e+06 2.4925014258e+05
1332731700: 1.2158900574e+06 2.4599793381e+05
1332732000: 1.0581751860e+06 3.0445606772e+05
1332732300: 1.1429046700e+06 2.9924368366e+05
1332732600: 1.2932672456e+06 2.7799498528e+05
1332732900: 1.4546485364e+06 4.0522769974e+05
1332733200: 1.4688432627e+06 3.9353773829e+05
1332733500: 1.3697702838e+06 3.1674456937e+05
1332733800: 1.9196942619e+06 5.2742503610e+05
1332734100: 1.7476143739e+06 6.7294128675e+05
1332734400: 1.6209690073e+06 7.1895222908e+05
1332734700: 1.4807040597e+06 5.8332689668e+05
1332735000: 1.3561535953e+06 5.1626559044e+05
1332735300: 1.3737502263e+06 5.6318661891e+05
1332735600: 1.7178175924e+06 6.2201588386e+05
1332735900: 1.8583807804e+06 7.0295871866e+05
1332736200: 2.1631091980e+06 6.6984207457e+05
1332736500: 2.2619065171e+06 6.8838649500e+05
1332736800: 2.1644283749e+06 4.9452003082e+05
1332737100: 2.7548688874e+06 5.4759494819e+05
1332737400: 2.7052717288e+06 5.6838471351e+05
1332737700: 2.8573569520e+06 7.6708341400e+05
1332738000: 2.5257165426e+06 1.1982290787e+06
1332738300: 2.7929532654e+06 1.3082918194e+06
1332738600: 2.9210677776e+06 1.2970184468e+06
1332738900: 2.9171937799e+06 1.1932287474e+06
1332739200: 2.4804759007e+06 1.3112881889e+06
1332739500: 2.3797865952e+06 1.1060660363e+06
1332739800: 2.2741953574e+06 7.4654682732e+05
1332740100: 2.2979623316e+06 6.1265712332e+05
1332740400: 2.5509739516e+06 6.1970843230e+05
1332740700: 2.9786615202e+06 7.6260657203e+05
1332741000: 3.4307556697e+06 8.9660236467e+05
1332741300: 2.9457194010e+06 9.6039366570e+05
1332741600: 2.9820733320e+06 1.0451629128e+06
1332741900: 2.6720790008e+06 7.5013309478e+05
1332742200: 2.2602790014e+06 6.6845003261e+05
1332742500: 2.2894326013e+06 8.1203424532e+05
1332742800: 2.8358679232e+06 9.3924161403e+05
1332743100: 2.6153618165e+06 9.7672279179e+05
1332743400: 3.2244694966e+06 8.7374429711e+05
1332743700: 3.3236330676e+06 8.1107986023e+05
1332744000: 2.8182583053e+06 7.5299092540e+05
1332744300: 2.5239614973e+06 8.1251055721e+05
1332744600: 2.7394698775e+06 7.3462618378e+05
1332744900: 2.8110630476e+06 9.3062492289e+05
1332745200: 2.7342778656e+06 8.9887687379e+05
1332745500: 2.5411859586e+06 7.4383643986e+05
1332745800: 2.5861992635e+06 6.9615534365e+05
1332746100: 3.0557289056e+06 7.5497117632e+05
1332746400: 2.5755836529e+06 8.6475202593e+05
1332746700: 2.6578649288e+06 8.8698851699e+05
1332747000: 2.4518008639e+06 7.3047021220e+05
1332747300: 2.3289084634e+06 7.3461454601e+05
1332747600: 2.3725672886e+06 7.1828844462e+05
1332747900: 2.3305970509e+06 8.5604405267e+05
1332748200: 2.4066382976e+06 8.7959824721e+05
1332748500: 2.5686625273e+06 1.0639966058e+06
1332748800: 2.4619147916e+06 1.1563368029e+06
1332749100: -nan -nan
I tryied to restart the performance grapher and apache but nothing change. Maybe we need to pass the LANG variable to Apache or Perl somehow or set also LC_NUMERIC or LC_ALL. Is setting those variables not risky for the system ?

Aurélien.

Re: NagiosXI Server Migration Problem

Posted: Mon Mar 26, 2012 5:05 pm
by mguthrie
So just out of curiousity, what happens if you add:

Code: Select all

LC_ALL="en_US.UTF-8"
to line 140 of the check_rrdtraf plugin.

Re: NagiosXI Server Migration Problem

Posted: Tue Mar 27, 2012 2:47 am
by srrhd
Nothing, it behaves the same.

Manually running the check provides the right data but the web interface still provides the very low values.

Re: NagiosXI Server Migration Problem

Posted: Tue Mar 27, 2012 9:27 am
by mguthrie
The below command consists of your environment variables related to language and location. I'm guessing apache and perl are pulling from these values.

Code: Select all

[root@DEV59 sysconfig]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
I did some looking around to see if you could set the environment variables for the apache and nagios users, but so far the only way I'm finding to do that is by setting it in .bashrc, which won't work for those users since they are set as "nologin".

Re: NagiosXI Server Migration Problem

Posted: Wed Mar 28, 2012 6:35 am
by srrhd
Ok so i change the system locale to have evrything in english.

If someone have the same problem on CentOS, just edit /etc/sysconfig/i18n and replace the line

Code: Select all

LANG="fr_FR.UTF-8"
by

Code: Select all

LANG="en_US.UTF-8"
After a reboot... :cry: The locale command provide only en_US.UTF-8 values. NagiosXI gets back into english, (too bad, it was nice with some french) At least the values are now corrects, and the graphs start to looks normal.

I guess we better reserved french for teasing girls than monitoring routers.

Anyway, thanks again for your supports guys !

Aurélien.

Re: NagiosXI Server Migration Problem

Posted: Wed Mar 28, 2012 9:19 am
by scottwilkerson
Glad it is resolved even if you have to reserve your french for teasing girls...

These numbers have constant calculations done on them and the comma just doesn't play well with the RRD calculations.