Portál AbcLinuxu, 5. května 2025 18:50
Ahoj mám problem s mrtg se s tim stvu uz par hodin a zkousim různé konfigurace i z tohoto fora a pořád všechny grafy mám prázdné, ale přitom cas posledniho updatu se meni .V čem by mohl být problém?
WorkDir: /var/www/clients/client1/web2/web/mrtg
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@127.0.0.1+ ssCpuRawSystem.0&ssCpuRawSystem.0:public@127.0.0.1+ ssCpuRawNice.0&ssCpuRawNice.0:public@127.0.0.1
RouterUptime[localhost.cpu]: public@127.0.0.1
MaxBytes[localhost.cpu]: 100
Title[localhost.cpu]: CPU Load
PageTop[localhost.cpu]: <H1>Active CPU Load %</H1>
Unscaled[localhost.cpu]: ymwd
ShortLegend[localhost.cpu]: %
YLegend[localhost.cpu]: CPU Utilization
Legend1[localhost.cpu]: Active CPU in % (Load)
Legend2[localhost.cpu]:
Legend3[localhost.cpu]:
Legend4[localhost.cpu]:
LegendI[localhost.cpu]: Active
LegendO[localhost.cpu]:
Options[localhost.cpu]: growright,nopercent
Zkoušel sem tuto konfiguraci a po hodine se krom času nic nezměnilo. Pak sem zkusil jinou konfiguraci
# System: Load
#-----------------------------
WorkDir: /var/www/clients/client1/web2/web/mrtg
Target[system-load]: `/usr/bin/mrtg-load -m 100`
Title[system-load]: System Load
PageTop[system-load]: <H1>System Load</H1>
MaxBytes[system-load]: 100
Options[system-load]: unknaszero gauge
ShortLegend[system-load]:
YLegend[system-load]: 100x Load
ale při kontrole cesty u target[system-load] se uvedeny skript nenasel takže se mi neco nedoinstalovalo ? U první konfigurace všechny cesty souhlasí . Omlouvám se ale snažím se pracovat s mrtg prvně v životě...
http://lury.badgateway.cz/mrtg/
http://lury.badgateway.cz/mrtg/cpu.cfg
lury:/usr/local/mrtg-2/bin# env LANG=C ./mrtg \/var\/www\/clients\/client1\/web2\/web\/mrtg\/cpu.cfg
Can't exec "/usr/bin/mrtg-load": No such file or directory at ./mrtg line 2030.
2009-06-01 14:55:43: WARNING: Running '/usr/bin/mrtg-load -m 100': No such file or directory
2009-06-01 14:55:43: WARNING: Could not get any data from external command '/usr/bin/mrtg-load -m 100'
Maybe the external command did not even start. (No such file or directory)
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/bin/mrtg-load -m 100':
Expected a Number for 'in' but nothing'
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/bin/mrtg-load -m 100':
Expected a Number for 'out' but nothing'
Can't exec "/usr/bin/mrtg-ip-acct": No such file or directory at ./mrtg line 2030.
2009-06-01 14:55:43: WARNING: Running '/usr/bin/mrtg-ip-acct eth0': No such file or directory
2009-06-01 14:55:43: WARNING: Could not get any data from external command '/usr/bin/mrtg-ip-acct eth0'
Maybe the external command did not even start. (No such file or directory)
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/bin/mrtg-ip-acct eth0':
Expected a Number for 'in' but nothing'
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/bin/mrtg-ip-acct eth0':
Expected a Number for 'out' but nothing'
sh: /usr/bin/mrtg-sensors: No such file or directory
2009-06-01 14:55:43: WARNING: Could not get any data from external command 'sleep 2 ; /usr/bin/mrtg-sensors vt1211-isa-6000 'Proc Temp' vt1211-isa-6000 'Proc Temp''
Maybe the external command did not even start. (Illegal seek)
2009-06-01 14:55:43: WARNING: Problem with External get 'sleep 2 ; /usr/bin/mrtg-sensors vt1211-isa-6000 'Proc Temp' vt1211-isa-6000 'Proc Temp'':
Expected a Number for 'in' but nothing'
2009-06-01 14:55:43: WARNING: Problem with External get 'sleep 2 ; /usr/bin/mrtg-sensors vt1211-isa-6000 'Proc Temp' vt1211-isa-6000 'Proc Temp'':
Expected a Number for 'out' but nothing'
sh: /usr/bin/mrtg-sensors: No such file or directory
2009-06-01 14:55:43: WARNING: Could not get any data from external command '/usr/bin/mrtg-sensors vt1211-isa-6000 'fan2' vt1211-isa-6000 'fan2''
Maybe the external command did not even start. (Illegal seek)
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/bin/mrtg-sensors vt1211-isa-6000 'fan2' vt1211-isa-6000 'fan2'':
Expected a Number for 'in' but nothing'
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/bin/mrtg-sensors vt1211-isa-6000 'fan2' vt1211-isa-6000 'fan2'':
Expected a Number for 'out' but nothing'
Can't exec "/usr/local/bin/mrtg-disk-io": No such file or directory at ./mrtg line 2030.
2009-06-01 14:55:43: WARNING: Running '/usr/local/bin/mrtg-disk-io hda 512': No such file or directory
2009-06-01 14:55:43: WARNING: Could not get any data from external command '/usr/local/bin/mrtg-disk-io hda 512'
Maybe the external command did not even start. (No such file or directory)
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/local/bin/mrtg-disk-io hda 512':
Expected a Number for 'in' but nothing'
2009-06-01 14:55:43: WARNING: Problem with External get '/usr/local/bin/mrtg-disk-io hda 512':
Expected a Number for 'out' but nothing'
2009-06-01 14:55:45: ERROR: Target[system-load][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[system-load][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[eth0][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[eth0][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[sensors-temp][_IN_] ' $target->[2]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[sensors-temp][_OUT_] ' $target->[2]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[sensors-fan][_IN_] ' $target->[3]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[sensors-fan][_OUT_] ' $target->[3]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[hda][_IN_] ' $target->[4]{$mode} ' did not eval into defined data
2009-06-01 14:55:45: ERROR: Target[hda][_OUT_] ' $target->[4]{$mode} ' did not eval into defined data
lury:/usr/local/mrtg-2/bin#
snmp sem nastavil podle toho článku, asi mi neco v mrtg chybí ani jeden graf se nehnul
vcera sem videl mrtg poprve tak se do toho teprv dostavam tak se omlouvam asi mam celej config spatne :D jinak je to na stroj Dell PowerEdge
Vyřešeno měl sem chybný skript pro sber dat chodí to jen občas začne zlobit snmp s chybou
lury:/etc# env LANG=C /usr/bin/mrtg /var/www/clients/client1/web1/web/mrtg/webmin.cfg SNMP Error: no response received SNMPv1_Session (remote host: "localhost" [127.0.0.1].161) community: "public" request ID: 904119326 PDU bufsize: 8000 bytes timeout: 2s retries: 5 backoff: 1) at /usr/share/perl5/SNMP_util.pm line 492 SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public@localhost::::::v4only at /usr/bin/mrtg line 2207 2009-06-04 00:39:17: WARNING: skipping because at least the query for ifInOctets.2 on localhost did not succeed 2009-06-04 00:39:17: WARNING: no data for ifInOctets&ifOutOctets:public@localhost. Skipping further queries for Host localhost in this round. 2009-06-04 00:39:27: ERROR: Target[localhost_2][_IN_] ' $target->[0]{$mode} ' did not eval into defined data 2009-06-04 00:39:27: ERROR: Target[localhost_2][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data 2009-06-04 00:39:27: ERROR: Target[server.memory][_IN_] ' $target->[1]{$mode} ' did not eval into defined data 2009-06-04 00:39:27: ERROR: Target[server.memory][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data 2009-06-04 00:39:27: ERROR: Target[server.cpu][_IN_] ' $target->[2]{$mode} + $target->[3]{$mode} + $target->[4]{$mode} ' (warn): Use of uninitialized value in addition (+) at (eval 3889) line 1. 2009-06-04 00:39:27: ERROR: Target[server.cpu][_OUT_] ' $target->[2]{$mode} + $target->[3]{$mode} + $target->[4]{$mode} ' (warn): Use of uninitialized value in addition (+) at (eval 3890) line 1.
na důvod sem nepřišel nicméně po restartu systému to opět beží jak má
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.