CMDPHP WARNING Backtrace: (/settings.php[254]:email_test()

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

CMDPHP WARNING Backtrace: (/settings.php[254]:email_test()

Post by zuka1337 »

Hello Guys,

Before I create an issue on Github I'll try to ask for your help here.
Cacti 1.2.7
Centos 7
PHP 5.4.16
This is my Prod Env and yesterday was working fine, no complaint, but today I have this issue below.
Can't Send any report or Test mails.

Logs:

Code: Select all

2021/03/16 18:10:23 - MAILER INFO: Mail successfully sent via SMTP from 'cacti2os@dc.nos.pt <cacti2os@dc.nos.pt>', to 'Jhonatan.Magalhaes@parceiros.nos.pt', cc '', Subject 'Cacti Test Message'
2021/03/16 18:07:04 - MAILER INFO: Mail successfully sent via SMTP from 'examples@example.com <examples@example.com>', to 'examples@example.com', cc '', Subject 'Cacti Test Message'
  • When I send a Test Email I got "Sucess Note"
emailtest.png
emailtest.png (10.04 KiB) Viewed 899 times
  • But If I enable Ping Before sending the mail I got this:
mailtestyes.png
mailtestyes.png (8.45 KiB) Viewed 899 times
The result above is not coerent with my server..
  • But is not realy true:
ping.png
ping.png (13.65 KiB) Viewed 899 times
Also, I did all the PHPMailer troubleshooting Guide, all the examples applied to me is working fine.
https://github.com/PHPMailer/PHPMailer/ ... leshooting


Well I have a workaround for my Dev (docker) Env and I discuss a little bit about it here: https://github.com/Cacti/cacti/issues/4024
But unfortunately did not work in this case.
Last edited by zuka1337 on Tue Mar 16, 2021 1:36 pm, edited 2 times in total.
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

Re: CMDPHP WARNING Backtrace: (/settings.php[254]:email_test()

Post by zuka1337 »

TCPDUMP - Send Email Test

Code: Select all

[size=50]18:10:23.006736 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [S], seq 2522365076, win 29200, options [mss 1460,sackOK,TS val 894017581 ecr 0,nop,wscale 7], length 0
18:10:23.007939 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [S.], seq 2480692037, ack 2522365077, win 28960, options [mss 1460,sackOK,TS val 1352821006 ecr 894017581,nop,wscale 7], length 0
18:10:23.007965 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [.], ack 1, win 229, options [nop,nop,TS val 894017582 ecr 1352821006], length 0
18:10:23.012139 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 1:47, ack 1, win 227, options [nop,nop,TS val 1352821011 ecr 894017582], length 46
18:10:23.012159 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [.], ack 47, win 229, options [nop,nop,TS val 894017586 ecr 1352821011], length 0
18:10:23.012348 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 1:31, ack 47, win 229, options [nop,nop,TS val 894017586 ecr 1352821011], length 30
18:10:23.012781 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [.], ack 31, win 227, options [nop,nop,TS val 1352821011 ecr 894017586], length 0
18:10:23.013823 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 47:185, ack 31, win 227, options [nop,nop,TS val 1352821012 ecr 894017586], length 138
18:10:23.014115 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 31:41, ack 185, win 237, options [nop,nop,TS val 894017588 ecr 1352821012], length 10
18:10:23.014608 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 185:200, ack 41, win 227, options [nop,nop,TS val 1352821013 ecr 894017588], length 15
18:10:23.015079 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 41:246, ack 200, win 237, options [nop,nop,TS val 894017589 ecr 1352821013], length 205
18:10:23.015602 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 200:1282, ack 246, win 235, options [nop,nop,TS val 1352821014 ecr 894017589], length 1082
18:10:23.016285 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 246:584, ack 1282, win 254, options [nop,nop,TS val 894017590 ecr 1352821014], length 338
18:10:23.018496 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 1282:1532, ack 584, win 243, options [nop,nop,TS val 1352821017 ecr 894017590], length 250
18:10:23.018697 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 584:690, ack 1532, win 271, options [nop,nop,TS val 894017593 ecr 1352821017], length 106
18:10:23.019944 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 1532:1750, ack 690, win 243, options [nop,nop,TS val 1352821018 ecr 894017593], length 218
18:10:23.020140 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 690:780, ack 1750, win 288, options [nop,nop,TS val 894017594 ecr 1352821018], length 90
18:10:23.020620 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 1750:1840, ack 780, win 243, options [nop,nop,TS val 1352821019 ecr 894017594], length 90
18:10:23.020778 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 780:870, ack 1840, win 288, options [nop,nop,TS val 894017595 ecr 1352821019], length 90
18:10:23.021287 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 1840:1930, ack 870, win 243, options [nop,nop,TS val 1352821020 ecr 894017595], length 90
18:10:23.021403 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 870:960, ack 1930, win 288, options [nop,nop,TS val 894017595 ecr 1352821020], length 90
18:10:23.025844 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 1930:2036, ack 960, win 243, options [nop,nop,TS val 1352821024 ecr 894017595], length 106
18:10:23.026031 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 960:1066, ack 2036, win 288, options [nop,nop,TS val 894017600 ecr 1352821024], length 106
18:10:23.031681 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 2036:2142, ack 1066, win 243, options [nop,nop,TS val 1352821030 ecr 894017600], length 106
18:10:23.031986 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 1066:1188, ack 2142, win 288, options [nop,nop,TS val 894017606 ecr 1352821030], length 122
18:10:23.036424 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 2142:2264, ack 1188, win 243, options [nop,nop,TS val 1352821035 ecr 894017606], length 122
18:10:23.036663 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 1188:1262, ack 2264, win 288, options [nop,nop,TS val 894017611 ecr 1352821035], length 74
18:10:23.040760 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 2264:2354, ack 1262, win 243, options [nop,nop,TS val 1352821039 ecr 894017611], length 90
18:10:23.041273 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 1262:1368, ack 2354, win 288, options [nop,nop,TS val 894017615 ecr 1352821039], length 106
18:10:23.041402 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [.], seq 1368:2816, ack 2354, win 288, options [nop,nop,TS val 894017615 ecr 1352821039], length 1448
18:10:23.041506 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [.], seq 2816:4264, ack 2354, win 288, options [nop,nop,TS val 894017615 ecr 1352821039], length 1448
18:10:23.041778 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [.], seq 4264:5712, ack 2354, win 288, options [nop,nop,TS val 894017616 ecr 1352821039], length 1448
18:10:23.044783 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [.], ack 2816, win 266, options [nop,nop,TS val 1352821043 ecr 894017615], length 0
18:10:23.044805 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 5712:6030, ack 2354, win 288, options [nop,nop,TS val 894017619 ecr 1352821043], length 318
18:10:23.045045 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [.], ack 5712, win 311, options [nop,nop,TS val 1352821043 ecr 894017615], length 0
18:10:23.088081 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [.], ack 6030, win 334, options [nop,nop,TS val 1352821087 ecr 894017619], length 0
18:10:23.153649 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 2354:2492, ack 6030, win 334, options [nop,nop,TS val 1352821152 ecr 894017619], length 138
18:10:23.153980 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 6030:6104, ack 2492, win 305, options [nop,nop,TS val 894017728 ecr 1352821152], length 74
18:10:23.154307 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [.], ack 6104, win 334, options [nop,nop,TS val 1352821153 ecr 894017728], length 0
18:10:23.154408 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 2492:2630, ack 6104, win 334, options [nop,nop,TS val 1352821153 ecr 894017728], length 138
18:10:23.154513 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [P.], seq 6104:6141, ack 2630, win 322, options [nop,nop,TS val 894017728 ecr 1352821153], length 37
18:10:23.154611 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [F.], seq 6141, ack 2630, win 322, options [nop,nop,TS val 894017729 ecr 1352821153], length 0
18:10:23.154811 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [P.], seq 2630:2667, ack 6141, win 334, options [nop,nop,TS val 1352821153 ecr 894017728], length 37
18:10:23.154860 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [R], seq 2522371217, win 0, length 0
18:10:23.154870 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [F.], seq 2667, ack 6141, win 334, options [nop,nop,TS val 1352821153 ecr 894017728], length 0
18:10:23.154895 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [R], seq 2522371217, win 0, length 0
18:10:23.154905 IP exampleSMTPSERVER.com.submission > exampleCACTI.com.36980: Flags [.], ack 6142, win 334, options [nop,nop,TS val 1352821153 ecr 894017729], length 0
18:10:23.154909 IP exampleCACTI.com.36980 > exampleSMTPSERVER.com.submission: Flags [R], seq 2522371218, win 0, length 0[/size]
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests