ca y est corrigé
j'ai mis #!/bin/bash en entete mais j'ai ça
debian-ibm:/var/www/cacti/scripts# ./xdslbox.sh
./xdslbox.sh: line 26: curl: command not found
tail: Ne peut ouvrir `/var/www/cacti/scripts//myOutput.txt' en lecture: Aucun fichier ou répertoire de ce type
./xdslbox.sh: line 38: curl: command not found
./xdslbox.sh: line 39: curl: command not found
./xdslbox.sh: line 40: curl: command not found
./xdslbox.sh: line 46: curl: command not found
rm: ne peut enlever `/var/www/cacti/scripts//myCookies.txt': Aucun fichier ou répertoire de ce type
rm: ne peut enlever `/var/www/cacti/scripts//myOutput.txt': Aucun fichier ou répertoire de ce type
./xdslbox.sh: line 68: -: syntax error: operand expected (error token is "-")
./xdslbox.sh: line 69: -: syntax error: operand expected (error token is "-")
ReceiveBlocks: TransmitBlocks: ReceiveBlocksReal: TransmitBlocksReal: ErroredSecs: SeverelyErroredSecs: FECErrors: ATUCFECErrors: HECErrors: ATUCHECErrors: CRCErrors: ATUCCRCErrors: Uptime: UpstreamCurrRate: DownstreamCurrRate: UpstreamMaxRate: DownstreamMaxRate: UpstreamNoiseMargin: DownstreamNoiseMargin: UpstreamNoiseAtten: DownstreamNoiseAtten:
Hors ligne
C'est mieux.
La première erreur avec Curl engendré les suivantes puisque les fichiers ne sont pas générés.
Curl: command not found est claire. Cette commande n'existe pas sur votre installation.
Il faut l'ajouter. Il existe un package qui permet de l'ajouter. Sur mon Syno, j'utilise apt-get. Il y a un équivalent pour Debian.
Sur le site officiel, ce doit être mentionné quelque part .
dans la variable myBashDir, il semble y avoir un / à la fin. Il faudrait le retirer car Debian en ajoute un aussi. Du coup, le chemin est erroné.
Hors ligne
voilà j'ai plein de fichiers txt qui arrivent now.
debian-ibm:/var/www/cacti/scripts# ls -ail *.txt
394137 -rw-r--r-- 1 root root 1 jan 30 18:43 DSLStats.txt
394139 -rw-r--r-- 1 root root 1 jan 30 18:43 MIBS.txt
394132 -rw-r--r-- 1 root root 1 jan 30 18:43 ReceiveBlocksCurrent.txt
394135 -rw-r--r-- 1 root root 1 jan 30 18:43 ReceiveBlocksLast.txt
394134 -rw-r--r-- 1 root root 1 jan 30 18:43 TransmitBlocksCurrent.txt
394136 -rw-r--r-- 1 root root 1 jan 30 18:43 TransmitBlocksLast.txt
394138 -rw-r--r-- 1 root root 1 jan 30 18:43 WANStatuts.txt
mais c'est vide
Hors ligne
bon ca se complique
j'ai une debian 5.0 ( oui c'est vieux ); impossible d'avoir les paquets pour Curl avec cette version ggggggggrrhh
Hors ligne
je pense que va falloir y passer
j'ai plein de truc a reinstaller Cacti, Nagios etc etc ....
a+
Hors ligne
rebonjour
voilà j'ai réinstallé une distri EON ( il y a cacti inside , je l'ai mis à jour .
Mais j'ai toujours rien dans les graphs:
voici ce qu'il y a dans les fichiers txt
cat DSLStats.txt
{"result":{"status":null,"errors":[{"error":13,"description":"Permission denied","info":"NeMo/Intf/dsl0"}]}}
[[email protected] scripts]# cat MIBS.txt
{"result":{"status":null,"errors":[{"error":13,"description":"Permission denied","info":"NeMo/Intf/data"}]}}
[[email protected] scripts]# cat ReceiveBlocksCurrent.txt
[{"error"
[[email protected] scripts]# cat ReceiveBlocksLast.txt
[{"error"
[[email protected] scripts]# cat TransmitBlocksCurrent.txt
13
[[email protected] scripts]# cat TransmitBlocksLast.txt
13
cat WANStatuts.txt
{"result":{"status":true,"data":{"WanState":"up","LinkType":"dsl","LinkState":"up","MACAddress":"B4:A5:EF:80:FE:F4","Protocol":"ppp","ConnectionState":"Connected","LastConnectionError":"ERROR_NONE","IPAddress":"x.x.x.x","RemoteGateway":"x.x.x.x","DNSServers":"x.x.x.x,x.x.x.x","IPv6Address":""}}}
dans Wan j'ai juste mis des XXX à la place de l'@IP réelle.
Les fichiers RRD s'incrémentent bien toutes les 5mn mais sont vides !!!!
execution du script en manuel: xdslbox.sh
./xdslbox.sh
rm: ne peut enlever `/srv/eyesofnetwork/cacti-0.8.8h/scripts//myCookies.txt': Aucun fichier ou répertoire de ce type
./xdslbox.sh: line 68: [{"error"-[{"error": syntax error: operand expected (error token is "[{"error"-[{"error"")
ReceiveBlocks:[{"error" TransmitBlocks:13 ReceiveBlocksReal:0 TransmitBlocksReal: ErroredSecs: SeverelyErroredSecs: FECErrors: ATUCFECErrors: HECErrors: ATUCHECErrors: CRCErrors: ATUCCRCErrors: Uptime: UpstreamCurrRate: DownstreamCurrRate: UpstreamMaxRate: DownstreamMaxRate: UpstreamNoiseMargin: DownstreamNoiseMargin: UpstreamNoiseAtten: DownstreamNoiseAtten:
voilà
Salinois
Dernière modification par salinois (03-02-2017 19:01:59)
Hors ligne
j'ai enlevé le "/"
./xdslbox.sh
rm: ne peut enlever `/srv/eyesofnetwork/cacti-0.8.8h/scripts/myCookies.txt': Aucun fichier ou répertoire de ce type
./xdslbox.sh: line 68: [{"error"-[{"error": syntax error: operand expected (error token is "[{"error"-[{"error"")
ReceiveBlocks:[{"error" TransmitBlocks:13 ReceiveBlocksReal:0 TransmitBlocksReal: ErroredSecs: SeverelyErroredSecs: FECErrors: ATUCFECErrors: HECErrors: ATUCHECErrors: CRCErrors: ATUCCRCErrors: Uptime: UpstreamCurrRate: DownstreamCurrRate: UpstreamMaxRate: DownstreamMaxRate: UpstreamNoiseMargin: DownstreamNoiseMargin: UpstreamNoiseAtten: DownstreamNoiseAtten:
Hors ligne
Bonjour,
Désolé de t'avoir fait attendre.
Dans le script, ligne 47, place un # devant rm "$myCookies" "$myOutput".
Ensuite, lances le script manuellement via terminal, est-ce que tu retrouves avec le script, 5 fichiers TXT (DSLStats.txt, WANStatus.txt, MIBS.txt, myOutput.txt et myCookies.txt) ?
Si oui, que contiennent-ils ?
Hors ligne
bonjour,
pas grave
voilà apres la modif:
[[email protected] scripts]# ./xdslbox.sh
./xdslbox.sh: line 68: [{"error"-[{"error": syntax error: operand expected (error token is "[{"error"-[{"error"")
ReceiveBlocks:[{"error" TransmitBlocks:13 ReceiveBlocksReal:0 TransmitBlocksReal: ErroredSecs: SeverelyErroredSecs: FECErrors: ATUCFECErrors: HECErrors: ATUCHECErrors: CRCErrors: ATUCCRCErrors: Uptime: UpstreamCurrRate: DownstreamCurrRate: UpstreamMaxRate: DownstreamMaxRate: UpstreamNoiseMargin: DownstreamNoiseMargin: UpstreamNoiseAtten: DownstreamNoiseAtten:
voici les fichiers txt
[[email protected] scripts]# ls -ail *.txt
12419387 -rw-r--r-- 1 cacti eyesofnetwork 109 févr. 4 11:10 DSLStats.txt
12419389 -rw-r--r-- 1 cacti eyesofnetwork 109 févr. 4 11:10 MIBS.txt
12419392 -rw-r--r-- 1 root root 167 févr. 4 11:10 myOutput.txt
12419383 -rw-r--r-- 1 cacti eyesofnetwork 10 févr. 4 11:10 ReceiveBlocksCurrent.txt
12419385 -rw-r--r-- 1 cacti eyesofnetwork 10 févr. 4 11:10 ReceiveBlocksLast.txt
12419384 -rw-r--r-- 1 cacti eyesofnetwork 3 févr. 4 11:10 TransmitBlocksCurrent.txt
12419386 -rw-r--r-- 1 cacti eyesofnetwork 3 févr. 4 11:10 TransmitBlocksLast.txt
12419388 -rw-r--r-- 1 cacti eyesofnetwork 317 févr. 4 11:10 WANStatuts.txt
cat DSLStats.txt
{"result":{"status":null,"errors":[{"error":13,"description":"Permission denied","info":"NeMo/Intf/dsl0"}]}}
cat MIBS.txt
{"result":{"status":null,"errors":[{"error":13,"description":"Permission denied","info":"NeMo/Intf/data"}]}}
cat myOutput.txt
HTTP/1.1 401 Unauthorized
Cache-Control: no-cache
Pragma: no-cache
TE: chunked
Transfer-Encoding: chunked
Content-Type: application/json
cat WANStatuts.txt
{"result":{"status":true,"data":{"WanState":"up","LinkType":"dsl","LinkState":"up","MACAddress":"B4:A5:EF:80:FE:F4","Protocol":"ppp","ConnectionState":"Connected","LastConnectionError":"ERROR_NONE","IPAddress":"x.x.x.x","RemoteGateway":"x.x.x.x","DNSServers":"x.x.x.x,x.x.x.x","IPv6Address":""}}}
voilà on dirait que c'est pareil sauf qu'il y a eu creation de myoutput.txt
salinois
Hors ligne
La je ne comprend pas mais tu as un problème d'authentification et le WANStatus.txt correspond plus à la nouvelle version de firmware que le nouveau.
Utilise le second script que j'ai mis à dispo à la find du premier post. Même principe que tout à l'heure :
corrige la variable myPassword
corrige la variable myBashDir
place un # au début de la ligne 37.
lance le via terminal et dit moi ce que tu trouves dans DSLStats.txt, MIBs.txt, myOutput.txt et myCookies.txt.
Hors ligne
ok je fais cela
par contre dans le wanstatut, il y a bien les bonnes adresses IP de la LB, donc il y a bien dialogue !!!
Hors ligne
voilà avec le new fichier
[[email protected] scripts]# ./xdslbox_new.sh
<html><head><title>OK</title></head><body><h1>200 - OK</h1></body></html>
ReceiveBlocks:20758816 TransmitBlocks:0 ErroredSecs:0 SeverelyErroredSecs:0 FECErrors:0 ATUCFECErrors:0 HECErrors:0 ATUCHECErrors:0 CRCErrors:31514 ATUCCRCErrors:0 Uptime:"" UpstreamCurrRate:"permanent" DownstreamCurrRate:"global"}} UpstreamMaxRate:{"dyn12" DownstreamMaxRate:{"Enable" UpstreamNoiseMargin:"link" DownstreamNoiseMargin:"kernel"
Hors ligne
contenu des fichiers:
cat DSLStats.txt
{"status":{"ReceiveBlocks":35993012,"TransmitBlocks":20758816,"CellDelin":0,"LinkRetrain":0,"InitErrors":0,"InitTimeouts":0,"LossOfFraming":0,"ErroredSecs":0,"SeverelyErroredSecs":0,"FECErrors":31514,"ATUCFECErrors":0,"HECErrors":0,"ATUCHECErrors":0,"CRCErrors":0,"ATUCCRCErrors":0}}
cat MIBs.txt
{"status":{"base":{"data":{"Name":"data","Enable":true,"Status":true,"Flags":"up nat-config enabled","ULIntf":{},"LLIntf":{"primdata":{"Name":"primdata"}}},"primdata":{"ULIntf":{"data":{}},"LLIntf":{"ppp_data":{}}},"ppp_data":{"Name":"ppp_data","Enable":true,"Status":true,"Flags":"ppp netdev logical ipv4 nat-enabled enabled netdev-bound up netdev-up ipv4-up","ULIntf":{"primdata":{"Name":"primdata"}},"LLIntf":{"atm_data":{"Name":"atm_data"}}},"atm_data":{"Name":"atm_data","Enable":true,"Status":true,"Flags":"atm netdev ipv4 enabled up netdev-bound netdev-up","ULIntf":{"ppp_data":{"Name":"ppp_data"}},"LLIntf":{"dsl0":{"Name":"dsl0"}}},"dsl0":{"Name":"dsl0","Enable":true,"Status":true,"Flags":"dsl dslline physical enabled up","ULIntf":{"ptm0":{"Name":"ptm0"},"atm_data":{"Name":"atm_data"},"atm_multi":{"Name":"atm_multi"},"atm_voip":{"Name":"atm_voip"},"atm_iptv1":{"Name":"atm_iptv1"},"atm_iptv2":{"Name":"atm_iptv2"},"atm_iptv3":{"Name":"atm_iptv3"},"atm_iptv4":{"Name":"atm_iptv4"}},"LLIntf":{}}},"6rd":{},"alias":{"data":{"Alias":"cpe-data"},"primdata":{},"ppp_data":{"Alias":"cpe-ppp_data"},"atm_data":{"Alias":"cpe-atm_data"},"dsl0":{"Alias":"cpe-dsl0"}},"atm":{"atm_data":{"LastChangeTime":90,"LastChange":1261735,"LinkType":"EoA","LinkStatus":"Up","DestinationAddress":"8/35","Encapsulation":"LLC","FCSPreserved":false,"QoSClass":"UBR","PeakCellRate":7500,"MaximumBurstSize":0,"SustainableCellRate":0}},"bridge":{},"copy":{"data":{},"primdata":{},"ppp_data":{},"atm_data":{},"dsl0":{}},"dhcp-api":{"data":{},"primdata":{},"ppp_data":{},"atm_data":{},"dsl0":{}},"dhcp":{},"dhcpv6":{},"dhcpv6impl":{},"dop-slave":{},"dsl":{"dsl0":{"LastChangeTime":90,"LastChange":1261735,"UpstreamCurrRate":1023,"DownstreamCurrRate":15525,"LinkStatus":"Up","UpstreamMaxRate":1177,"DownstreamMaxRate":16146,"UpstreamAttenuation":139,"DownstreamAttenuation":399,"DownstreamLineAttenuation":0,"UpstreamLineAttenuation":0,"UpstreamNoiseMargin":70,"DownstreamNoiseMargin":61,"UpstreamPower":121,"DownstreamPower":194,"FirmwareVersion":"41327076624830343267332e64323600","StandardsSupported":"G.992.1_Annex_A, G.992.1_Annex_B, G.992.1_Annex_C,T1.413, T1.413i2,ETSI_101_388, G.992.2,G.992.3_Annex_A, G.992.3_Annex_B, G.992.3_Annex_C, G.992.3_Annex_I, G.992.3_Annex_J,G.992.3_Annex_M, G.992.4,G.992.5_Annex_A, G.992.5_Annex_B, G.992.5_Annex_C, G.992.5_Annex_I, G.992.5_Annex_J, G.992.5_Annex_M, G.993.1,G.993.1_Annex_A, G.993.2_Annex_A, G.993.2_Annex_B","StandardUsed":"G.992.5_Annex_A","DataPath":"Interleaved","InterleaveDepth":0,"ModulationType":"ADSL","ChannelEncapsulationType":"G.992.3_Annex_K_ATM","ModulationHint":"ADSL","CurrentProfile":"","UPBOKLE":396}},"dslbonding":{},"dslite":{},"dslline":{"dsl0":{"Line_LastChangeTime":90,"Line_LastChange":1261735,"LineStatus":"Up","Line_UpstreamCurrRate":1023,"Line_DownstreamCurrRate":15525,"Line_UpstreamMaxRate":1177,"Line_DownstreamMaxRate":16146,"Line_UpstreamNoiseMargin":70,"Line_DownstreamNoiseMargin":61,"Line_UpstreamAttenuation":139,"Line_DownstreamLineAttenuation":0,"Line_UpstreamLineAttenuation":0,"Line_DownstreamAttenuation":399,"Line_UpstreamPower":121,"Line_DownstreamPower":194,"Line_DataPath":"Interleaved","Line_InterleaveDepth":0,"Line_ActualInterleavingDelay":0,"Line_ACTINP":600,"Line_INPREPORT":false,"Line_ModulationType":"ADSL","Line_ModulationHint":"Auto","Line_FirmwareVersion":"41327076624830343267332e64323600","Line_StandardsSupported":"G.992.1_Annex_A, G.992.1_Annex_B, G.992.1_Annex_C,T1.413, T1.413i2,ETSI_101_388, G.992.2,G.992.3_Annex_A, G.992.3_Annex_B, G.992.3_Annex_C, G.992.3_Annex_I, G.992.3_Annex_J,G.992.3_Annex_M, G.992.4,G.992.5_Annex_A, G.992.5_Annex_B, G.992.5_Annex_C, G.992.5_Annex_I, G.992.5_Annex_J, G.992.5_Annex_M, G.993.1,G.993.1_Annex_A, G.993.2_Annex_A, G.993.2_Annex_B","Line_StandardUsed":"G.992.5_Annex_A","Line_CurrentProfile":"","Line_UPBOKLE":396,"Line_TRELLISds":true,"Line_TRELLISus":true,"Line_LATNpbds":"0,0,0,0","Line_LATNpbus":"0,0,0,0,0","Line_SATNpbds":"0,0,0,0","Line_SATNpbus":"0,0,0,0,0","Line_SNRMpbds":"0,0,0,0","Line_SNRMpbus":"0,0,0,0,0","Line_XTURVendor":"fe005352434d0000","Line_XTUCVendor":"b5004244434da473"}},"eth":{},"gre":{},"nat":{"ppp_data":{"NATEnabled":true},"atm_data":{"NATEnabled":false}},"netdev-api":{"data":{},"primdata":{},"ppp_data":{},"atm_data":{},"dsl0":{}},"netdev":{"ppp_data":{"NetDevIndex":33,"NetDevType":"ppp","NetDevFlags":"up pointopoint noarp multicast","NetDevName":"ppp_data","LLAddress":"","TxQueueLen":3,"MTU":1492,"NetDevState":"unknown","IPv4Forwarding":true,"IPv4ForceIGMPVersion":0,"IPv4AcceptSourceRoute":true,"IPv4AcceptRedirects":false,"IPv6AcceptRA":true,"IPv6ActAsRouter":true,"IPv6AutoConf":true,"IPv6MaxRtrSolicitations":3,"IPv6RtrSolicitationInterval":4000,"IPv6AcceptSourceRoute":false,"IPv6AcceptRedirects":true,"IPv6OptimisticDAD":false,"IPv6Disable":true,"RtTable":0,"IPv6AddrDelegate":"","IPv4Addr":{"dyn9":{"Enable":true,"Status":"dynamic","Address":"x.x.x.x","Peer":"x.x.x.x","PrefixLen":32,"Flags":"permanent","Scope":"global"}},"IPv6Addr":{},"IPv4Route":{"dyn12":{"Enable":true,"Status":"dynamic","DstLen":32,"Table":"main","Scope":"link","Protocol":"kernel","Type":"unicast","Dst":"x.x.x.x","Priority":0,"Gateway":""},"route":{"Enable":true,"Status":"bound","DstLen":0,"Table":"main","Scope":"global","Protocol":"boot","Type":"unicast","Dst":"0.0.0.0","Priority":0,"Gateway":""}},"IPv6Route":{}},"atm_data":{"NetDevIndex":29,"NetDevType":"ether","NetDevFlags":"up broadcast multicast","NetDevName":"atm_data","LLAddress":"B4:A5:EF:80:FE:F4","TxQueueLen":1000,"MTU":1500,"NetDevState":"unknown","IPv4Forwarding":true,"IPv4ForceIGMPVersion":0,"IPv4AcceptSourceRoute":true,"IPv4AcceptRedirects":false,"IPv6AcceptRA":true,"IPv6ActAsRouter":true,"IPv6AutoConf":true,"IPv6MaxRtrSolicitations":3,"IPv6RtrSolicitationInterval":4000,"IPv6AcceptSourceRoute":false,"IPv6AcceptRedirects":true,"IPv6OptimisticDAD":false,"IPv6Disable":true,"RtTable":0,"IPv6AddrDelegate":"","IPv4Addr":{},"IPv6Addr":{},"IPv4Route":{},"IPv6Route":{}}},"penable":{},"ppp":{"ppp_data":{"Username":"fti/qceetzy","ConnectionStatus":"Connected","LastConnectionError":"ERROR_NONE","MaxMRUSize":1492,"PPPoESessionID":4299,"PPPoEACName":"BSMSO554-B226439094309A","PPPoEServiceName":"","RemoteIPAddress":"x.x.x.x","LocalIPAddress":"x.x.x.x","LastChangeTime":1209739,"LastChange":52086,"DNSServers":"x.x.x.x,x.x.x.x","TransportType":"PPPoE","LCPEcho":30,"LCPEchoRetry":3,"IPCPEnable":true,"IPv6CPEnable":false,"IPv6CPLocalInterfaceIdentifier":"0000:0000:0000:0000","IPv6CPRemoteInterfaceIdentifier":"0000:0000:0000:0000","ConnectionTrigger":"AlwaysOn","IdleDisconnectTime":0}},"ptm":{},"ra-api":{"data":{},"primdata":{},"ppp_data":{},"atm_data":{},"dsl0":{}},"ra":{},"sfp":{},"switch":{},"vlan":{},"wlanconfig":{},"wlanendpoint":{},"wlanradio":{},"wlanvap":{},"wwan":{}}}
cat myCookies.txt
# Netscape HTTP Cookie File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.
192.168.0.254 FALSE / FALSE 0 394562cf/sessid ft8lDdBpIif1WoIacPkHV2OT
cat myOutput.txt
{"status":0,"data":{"contextID":"OjVHuD6KRhFdp1bRjnxXZqDPvrSYAZ2d9LItcE2TLxUYlVDs81fUfIzyXgno6cp3","groups":"http,admin"}}[[email protected] scripts]#
on dirait qu'il y a du mieux
salinois
Dernière modification par salinois (04-02-2017 13:35:10)
Hors ligne
maintenant je vais le mettre en auto dans cacti
Hors ligne
y a encore un truc qui me gene
logs de cacti !!!!!
02/04/2017 02:11:57 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT id FROM graph_tree WHERE id IN (SELECT item_id FROM user_auth_perms WHERE type=2 AND user_id=) ORDER BY id LIMIT 1"
02/04/2017 02:11:57 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM user_auth WHERE id="
Hors ligne
je verifie
Hors ligne
hello si pas trop tard
bon j'ai reinstallé une new distri sous debian 8.0
cacti etc etc, j'ai mis le xdsl_new.sh
lancé en manuel cela a créé ces 4 files
[email protected]:/var/www/html/cacti/scripts# ls -ail *.txt
2884533 -rw-r--r-- 1 root root 284 févr. 4 21:10 DSLStats.txt
2884534 -rw-r--r-- 1 root root 6842 févr. 4 21:10 MIBs.txt
2884532 -rw-r--r-- 1 root root 206 févr. 4 21:10 myCookies.txt
2884531 -rw-r--r-- 1 root root 122 févr. 4 21:10 myOutput.txt
a l'execution du prog
./xdslbox.sh
<html><head><title>OK</title></head><body><h1>200 - OK</h1></body></html>
ReceiveBlocks:22642481 TransmitBlocks:0 ErroredSecs:0 SeverelyErroredSecs:0 FECErrors:0 ATUCFECErrors:0 HECErrors:0 ATUCHECErrors:0 CRCErrors:32390 ATUCCRCErrors:0 Uptime:"" UpstreamCurrRate:"permanent" DownstreamCurrRate:"global"}} UpstreamMaxRate:{"dyn12" DownstreamMaxRate:{"Enable" UpstreamNoiseMargin:"link" DownstreamNoiseMargin:"kernel"
mais de WANstat.txt !!!aussi les files rrd ne se créent pas !!
logs de cacti ( plus d'erreurs avec Mysql )
02/04/2017 09:45:10 PM - SYSTEM STATS: Time:8.8686 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:13 RRDsProcessed:5
02/04/2017 09:45:10 PM - CMDPHP: Poller[0] Host[3] DS[17] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:09 PM - CMDPHP: Poller[0] Host[3] DS[16] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:08 PM - CMDPHP: Poller[0] Host[3] DS[18] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:07 PM - CMDPHP: Poller[0] Host[3] DS[19] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:07 PM - CMDPHP: Poller[0] Host[3] DS[20] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:06 PM - CMDPHP: Poller[0] Host[3] DS[21] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:05 PM - CMDPHP: Poller[0] Host[3] DS[22] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:04 PM - CMDPHP: Poller[0] Host[3] DS[23] WARNING: Result from CMD not valid. Partial Result: <html><head><title>O
02/04/2017 09:45:02 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: 1min: 5min: 10
02/04/2017 09:45:01 PM - POLLER: Poller[0] WARNING: Poller Output Table not Empty. Issues Found: 8, Data Sources: (DS[16]), (DS[17]), (DS[18]), (DS[19]), (DS[20]), (DS[21]), (DS[22]), (DS[23])
a+
Dernière modification par salinois (04-02-2017 21:47:57)
Hors ligne
j'ai essayé en relançant à la main le script origine cela a pu créer le fichier WANstat.txt bizarre non ainsi que les autres files txt
2884579 -rw-r--r-- 1 root root 9 févr. 4 21:55 ReceiveBlocksCurrent.txt
2884581 -rw-r--r-- 1 root root 9 févr. 4 21:55 ReceiveBlocksLast.txt
2884580 -rw-r--r-- 1 root root 9 févr. 4 21:55 TransmitBlocksCurrent.txt
2884582 -rw-r--r-- 1 root root 9 févr. 4 21:55 TransmitBlocksLast.txt
Dernière modification par salinois (05-02-2017 09:54:40)
Hors ligne
bon j'ai remis le script origine dans cacti
maintenant les fichiers rrd se créent et s'incrémentent toutes les 5 mn mais un trait se dessine et reste à 0.0
2884600 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 16.rrd
2884601 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 17.rrd
2884599 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 18.rrd
2884598 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 19.rrd
2884597 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 20.rrd
2884596 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 21.rrd
2884595 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 22.rrd
2884594 -rw-r--r-- 1 cacti cacti 984320 févr. 4 22:40 23.rrd
pour info j'ai créé un autre device , un switch HP et j'ai bien des graphs qui s'affichent bien.
Donc le 1er script a l'ai de mieux fonctionner quand même...
a+
Salinois
Hors ligne
bonjour,
comme j'avais l'impression que les fichiers txt ne changeaient pas j'ai mis le script dans le crontab toutes les 5 mn
mais toujours vides les graphs
a+
salinois
Hors ligne
Bonjour,
Le message dans le log "ReceiveBlocks:22642481 TransmitBlocks:0 ErroredSecs:0 SeverelyErroredSecs:0 FECErrors:0 ATUCFECErrors:0 HECErrors:0 ATUCHECErrors:0 CRCErrors:32390 ATUCCRCErrors:0 Uptime:"" UpstreamCurrRate:"permanent" DownstreamCurrRate:"global"}} UpstreamMaxRate:{"dyn12" DownstreamMaxRate:{"Enable" UpstreamNoiseMargin:"link" DownstreamNoiseMargin:"kernel""confirme que le script interroge bien la box et que celle-ci répond. Le problème entre les différentes versions de LB, c'est que les infos ne sont pas forcément à la même position. Même d'un firmware à un autre, la position peut évoluer.
Il faut corriger le script pour lui indiquer les positions. Les commandes se situent dans la rubrique "Extraction des informations. A commenter ou decommenter selon les besoins".
Par exemple, avec la commande ReceiveBlocks=`echo $getDSLStats | cut -d":" -f4 | cut -d"," -f1` tu demandes au script d'extraire dans le fichier getDSLStats.txt la valeur situé en 4ème position. Une position étant délimitée par un double point.
Pour corriger/vérifier chaque commande, tu dois comparer le fichier txt et le résultat de la commande CMD dans le log de Cacti.
Utilise DownstreamNoiseMargin:"kernel" comme point de repère et il suffit de compter de combien est le décalage et corriger toutes les lignes.
C'est pour ca que le script enregistre les données dans des fichiers TXT et non directement dans des variables. Plus pratique pour un debug.
Le plus sure avant toute manip est de désactiver le poller dans Cacti -> Console -> Cacti Settings -> Onglet Poller et tu décoche Enabled tout en haut.
Une fois que toutes les lignes sont corrigées, pense a effectuer cette dernière commande dans Cacti -> Console -> Utilities -> rebuild poller cache.
Puis tu réactives le poller. Ensuite il faut attendre.
Hors ligne