Graphing not working properly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nik.vu
Posts: 34
Joined: Tue Feb 07, 2017 4:28 pm

Graphing not working properly

Post by nik.vu »

Recently i noticed a little problem with graphs in Nagios XI, from time to time graphs show values 0Mbps, and after 1-2 hours value is ok. This is problem because i need really presize graphing.

This is how graph for this service looks when it was everything ok, and the other picture is actually state.
Perfdata LOG

Code: Select all

2017-08-28 10:25:40 [22681] [1] Found Performance Data for R2D2_NEW / GigabitEthernet6_3_C7206_MPLS_VPN_Ruter_Trunk_Drakula_-_Gi_0_2_Bandwidth (in=0Mb/s;800.0;900.0 out=0Mb/s;800.0;900.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for RU_W001-RumaSilos / FastEthernet0_23_Bandwidth (in=0Mb/s;5.00;8.00 out=0Mb/s;5.00;8.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW-2960G-Ugrinovci_za_migraciju_sa_LM_Softa / GigabitEthernet0_13_Bandwidth (in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for UE_W001-Uzice_Hotel_Zlatibor_CRS_SW / ether16-Cambium-Sektor-C_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PtP_SJ002-SJ001 / Ping (rta=24.148ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=41.137ms;;;; rtmin=19.616ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for ptp_-_Pora_-_Hotel_Zlatibor / ether1_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Cacak_DPI_Cisco / FastEthernet0_5_Tempo_i_Zatvor_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for NS_W001-BulevarOslobodjenja1 / ether5-Uplink_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PZ_W002-PozegaSilos_RB_435G / wlan5_Bandwidth (in=0Mb/s;70.0;80.0 out=0Mb/s;70.0;80.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PtP_Dudovi_-_Zvecka / wlan1_Bandwidth (in=0Mb/s;80.00;90.00 out=0Mb/s;80.00;90.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for ASR_GPON / milos.randj_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PtP_Sid_-_Mitrovica / wlan1_Bandwidth (in=0Mb/s;25.00;40.00 out=0Mb/s;25.00;40.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for R2D2 / Port_3781_Bandwidth (in=0Bb/s;; out=0Bb/s;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW_Vidikovac_Cisco_3750 / GigabitEthernet4_0_25_UPLINK_ka_ME_3600_Gandijeva_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW-2960G-Ugrinovci_za_migraciju_sa_LM_Softa / GigabitEthernet0_12_Bandwidth (in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for RO_W004-Balotici / Ping (rta=0.000ms;3000.000;5000.000;0; pl=100%;80;100;; rtmax=0.000ms;;;; rtmin=0.000ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for VS_W036-BelaCrkvaStub / ether3-RB411AH-Oresac_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for HERKUL / Port-channel20_Sox_Peering_Bandwidth (in=0Gb/s;7.00;7.50 out=0Gb/s;7.00;7.50)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for HERKUL / Vlan31_Hosting_Bandwidth (in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for ASR_GPON / effectacall_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PTP_MIslodjin_-_Vranic2 / Ping (rta=0.000ms;3000.000;5000.000;0; pl=100%;80;100;; rtmax=0.000ms;;;; rtmin=0.000ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for KO_W006-BavanisteMlin / ether4-AG-Bavaniste-Skola_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for HERKUL / Port-channel25_SBB-Peering_Bandwidth (in=0Gb/s;1.00;1.60 out=0Gb/s;1.00;1.60)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BU_W001-BujanovacZgrada_RB110AHx2 / ether10-cambiumCCR_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for NS_W002-Spens_SW_2960 / GigabitEthernet0_8_Sektor_A_Bandwidth (in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PA_W076-BanatskiKarlovac / wlan1-uplink_Bandwidth (in=0Mb/s;25.00;40.00 out=0Mb/s;25.00;40.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for CA_W004-LjubicStubVIPmobile / Ping (rta=16.936ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=21.634ms;;;; rtmin=11.557ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PA_W060-DobricaMZ / ether3-Loco_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SO_W039_-_Backi_Monostor_1 / ether3-S1_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW_IPTV_Multicast_Beogradjanka / GigabitEthernet0_9_HolidayINN-expres_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for UE_W005_-_Bajina_Basta_Dimnjak / Ping (rta=25.417ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=36.541ms;;;; rtmin=17.482ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Chewbacca / Ping (rta=0.566ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.749ms;;;; rtmin=0.497ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BG_W151-_Urovci2 / ether4-Sektor2_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Buar_Linkovi / Buar-Pozega-novi-link_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for KG_W001_-_Klinicki_Centar / Ping (rta=4.539ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=4.598ms;;;; rtmin=4.503ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for IPTV_Multicast_CISCO_4948 / GigabitEthernet1_31_HLSHI_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SJ_W006-SjenicaBrdoTominjaca / ether3-sektor-B_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SO_W031_-_Odzaci_Silos / ether2-SektorB_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SO_W039_-_Backi_Monostor_1 / ether1-S2_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW_4948_Gandijeva / GigabitEthernet1_2_Cisco_2960G_1_Gi_0_2_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BG_W081-MarkaCelebonovica / Ping (rta=0.654ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.711ms;;;; rtmin=0.575ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PTP_Pop_Lukina-Majur / wlan1_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Pirot_linkovi / Ping (rta=5.634ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=5.906ms;;;; rtmin=5.530ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Dudovi_APD_Groove_5Hn / ether1-Uplink_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BG_D055_-_Doktora_Ivana_Ribara_88 / ether2-DSLAM_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for VR_W006_-_Cukarka / ether6-SektorC_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BG_W275-Ohridska / ether4-rb433_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for ruter-ruma / GigabitEthernet0_0.4_JKP_Regionalna_deponija_Srem-Macva_Bandwidth (in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PTP_Krcedin-BO1 / ether1_Bandwidth (in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for VS_W002_-_Vinarija_podrumi / ether4-S3_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PTP_Ratari_Vodotoranj_Urovci / ether1_Bandwidth (in=0Mb/s;500.0;800.0 out=0Mb/s;500.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Chewbacca / GigabitEthernet0_1.3578_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW_CAS_-_Trg_Komnenskog / FastEthernet0_9_CDMA-jovana_ducica-novonaselje-1_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for KO_W008-BavanisteRadnja / ether6-AG-Skola_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Sid_Silos_omni / ether2-Neispravan_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW_Banjica_2_Zyxel / swp14_D@H_Crnotravska_13b_w31_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Sajlovo_-_Novo_Naselje / Ping (rta=5.961ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=9.946ms;;;; rtmin=4.505ms;;;;)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for SW_Vojvode_Stepe / FastEthernet0_15_Sektor-Jug_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Sava_Centrar_Rb1100AHx2 / ether13-Uplink_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for UE_W001-Uzice_Hotel_Zlatibor_CRS_SW / ether18-Uzice-Biznis_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Darth_Vader / GigabitEthernet9_34_VLAN-31_AG01-c4948_-_Gi1_34_Bandwidth (in=228.686058Mb/s;700.0;800.0 out=22.735283Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BG_W289-JurijaGagarina111 / ether6-D@H-JG111_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for PA_W077-Seleus / ether6-sektor5_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BG_F004-OpstinaNoviBeograd / swp00_D@H_Pariske_Komune_29_W55_Bandwidth (in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for BU_W013-HopRajince / ether2-UPLINK_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for Prokuplje_Omni / ether1_Bandwidth (in=0Mb/s;70.00;80.00 out=0Mb/s;70.00;80.00)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] Found Performance Data for HERKUL / GigabitEthernet9_1_Infostud-vlan31_ka_Terminatoru_Gi4_23_Po5_Bandwidth (in=0Mb/s;700.0;800.0 out=0Mb/s;700.0;800.0)
2017-08-28 10:25:40 [22681] [1] rrdtool update returns 0
2017-08-28 10:25:40 [22681] [1] 453 lines processed
2017-08-28 10:25:40 [22681] [1] /usr/local/nagios/var/spool/perfdata//1503908726.perfdata.service-PID-22681 deleted
2017-08-28 10:25:40 [22681] [1] PNP exiting (runtime 1.240287s) ...
NPCD LOG

Code: Select all

[08-27-2017 17:20:43] NPCD: ERROR: Executed command exits with return code '7'
[08-27-2017 17:20:43] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1503847222.perfdata.service'
[08-28-2017 02:00:40] NPCD: ERROR: Executed command exits with return code '7'
[08-28-2017 02:00:40] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1503878422.perfdata.service'
[08-28-2017 04:10:21] NPCD: ERROR: Executed command exits with return code '7'
[08-28-2017 04:10:21] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1503886206.perfdata.service'
[08-28-2017 04:10:21] NPCD: ERROR: Executed command exits with return code '7'
[08-28-2017 04:10:21] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1503886192.perfdata.service'
[08-28-2017 08:20:39] NPCD: ERROR: Executed command exits with return code '7'
[08-28-2017 08:20:39] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1503901222.perfdata.service'
You do not have the required permissions to view the files attached to this post.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Graphing not working properly

Post by tacolover101 »

it looks like you could be hitting thresholds with performance - have you thought about implementing a ramdisk for your performance data processing? it'll help with the mass amount of smaller files.

the other option is increasing the timeout - https://support.nagios.com/forum/viewto ... 742#p76165
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graphing not working properly

Post by tgriep »

If the graphs that are showing 0mbps are only wrong for bandwidth graphs, the other cause of that issue is the MRTG process that gathers the bandwidth information for XI.
To troubleshoot that, can you run the following command as root and either post or PM me the /tmp/mrtg.txt file?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
If other non-bandwidth graphs are displaying zero, then the link @tacolover101 posted should help out with them.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nik.vu
Posts: 34
Joined: Tue Feb 07, 2017 4:28 pm

Re: Graphing not working properly

Post by nik.vu »

The problem is with only bandwidth graphs, non bandwith performs normally. I tried to implement ramdisk, and increase a threshold but problem still persist.

@tgriep
Because of file limitaion in PM, i'm attaching MRTG file here as zip, because original file is about 100MB.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Graphing not working properly

Post by tgriep »

I am thinking that the time it takes to run the MRTG application is taking over 5 minutes and that they are not finishing in time so lets increase the number of processes so it will finish quicker.
Edit this file.
/etc/mrtg/mrtg.cfg and change this line from

Code: Select all

Forks: 4
to

Code: Select all

Forks: 12
Save the file and restart cron by running

Code: Select all

service crond restart
That will triple the number of processes so it will finish quicker.

Another cause it that when it runs, it opens so many files, it exceeds the open file limit.
To fix that edit this file /etc/security/limits.conf
Add or edit the following lines to the end of the file:

Code: Select all

* soft nofile 10000
* hard nofile 10000
Save the file and you may have to reboot the server for the changes to take effect.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nik.vu
Posts: 34
Joined: Tue Feb 07, 2017 4:28 pm

Re: Graphing not working properly

Post by nik.vu »

It seems that everything is ok now, thank you for explanation.

You can close this topic.
Locked