[solved] deprecated warnings

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
peper222
Posts: 4
Joined: Mon Mar 08, 2010 10:10 am

[solved] deprecated warnings

#1 Post by peper222 » Mon Mar 08, 2010 10:15 am

Hello to everyone...

At the begining I'm really sorry for my bad english, hope u will understand what do i mean:)

I'm having problems with my cacti.I am fighting with this application 5th day...after a lot of trouble i am finally able to get access to web, but i cant do any graphs.
Graph Debug Mode says :

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=0 \
--end=0 \
--title="10.5.3.90 - Traffic - 1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/srv/www/htdocs/rra/10_5_3_90_traffic_in_73.rrd":traffic_in:AVERAGE \
DEF:b="/srv/www/htdocs/rra/10_5_3_90_traffic_in_73.rrd":traffic_out:AVERAGE \
AREA:a#00CF00FF:"Inbound" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:b#002A97FF:"Outbound" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Total Out\: 0 bytes\n"

RRDTool Says:

ERROR: opening '/srv/www/htdocs/rra/10_5_3_90_traffic_in_73.rrd': No such file or directory


I know this issue has been studied hundred times and i have been trying do everething. I doesn't work at all!!

My first problem i am not to good in linux so every operation last forever:)

I have installed :
- cacti 0.8.7e-3.1.
- rrdtool 1.3.7-4.1

Privilages to rra and log looks like this :

drwxrwxrwx 2 cactiuser root 4096 Mar 8 03:47 log
drwxrwxrwx 2 cactiuser www 4096 Mar 7 10:02 rra



cacti.log :



crontab :

*/5 * * * * cactiuser php5 /srv/www/htdocs/poller.php > /dev/null 2>&1



php poller.php and cmd.php in txt files...


BTW...I am using SUSE Linxu 11.2

Could you please try to help me because i am exhausted now and have no clue what to do next...

Best regars
Attachments
captilog.txt
(14.48 KiB) Downloaded 461 times
cmd_php.txt
(16.75 KiB) Downloaded 329 times
poller_php.txt
(24.28 KiB) Downloaded 356 times

peper222
Posts: 4
Joined: Mon Mar 08, 2010 10:10 am

#2 Post by peper222 » Tue Mar 09, 2010 7:09 am

I was fighting a lot with my cacti and now what poller.php says :


PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 866
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 872
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 1183
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 1961
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3027
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3592
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3667
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3687
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/poller.php on line 77
03/09/2010 01:04:16 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '254', Max Runtime '298', Poller Runs: '1'
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/poller.php on line 178
03/09/2010 01:04:16 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/srv/www/htdocs/cmd.php" 0 0]
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 866
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 872
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 1183
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 1961
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3027
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3592
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3667
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3687
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/cmd.php on line 60
03/09/2010 01:04:16 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/srv/www/htdocs/cmd.php" 12 12]
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 866
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 872
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 1183
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 1961
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3027
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3592
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3667
PHP Deprecated: Assigning the return value of new by reference is deprecated in /srv/www/htdocs/lib/adodb/adodb.inc.php on line 3687
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/cmd.php on line 60
PHP Deprecated: Function eregi_replace() is deprecated in /srv/www/htdocs/lib/snmp.php on line 370
PHP Deprecated: Function eregi_replace() is deprecated in /srv/www/htdocs/lib/snmp.php on line 370
PHP Deprecated: Function eregi_replace() is deprecated in /srv/www/htdocs/lib/snmp.php on line 370
PHP Deprecated: Function eregi_replace() is deprecated in /srv/www/htdocs/lib/snmp.php on line 370
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/cmd.php on line 418
03/09/2010 01:04:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /srv/www/htdocs/rra/12/156.rrd --template traffic_in:traffic_out N:116374506:2700998722
PHP Deprecated: Function ereg_replace() is deprecated in /srv/www/htdocs/lib/rrd.php on line 29
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/poller.php on line 419
03/09/2010 01:04:17 PM - SYSTEM STATS: Time:0.2602 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:2 RRDsProcessed:1
ERROR: opening '/srv/www/htdocs/rra/12/156.rrd': No such file or directory
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/poller.php on line 387
Loop Time is: 0.31000208854675
Sleep Time is: 299.68746185303
Total Time is: 0.31253814697266



Can i ignore PHP Deprecated ? I have changed "error_reporting = E_ALL & ~E_DEPRECATED" in php.ini but still got this errors.

Also what should i do with this issue :

03/09/2010 01:04:16 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '254', Max Runtime '298', Poller Runs: '1'
PHP Deprecated: Function split() is deprecated in /srv/www/htdocs/poller.php on line 178
03/09/2010 01:04:16 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/srv/www/htdocs/cmd.php" 0 0]

I am sorry guys for the spam but this cacti's problem is killing me....


best regards

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#3 Post by gandalf » Tue Mar 09, 2010 4:33 pm

We will tackle that issue in 088. Until then, please suppress deprecated messages by means of php.ini settings
R.

peper222
Posts: 4
Joined: Mon Mar 08, 2010 10:10 am

#4 Post by peper222 » Wed Mar 10, 2010 4:41 am

Hi...

I suppressed deprecated messages in /etc/php5/cli/php.ini using :

error_reporting = E_ALL & ~E_DEPRECATED

still the same.

I am wondering if my problems are connected to user and user group. I am doing everything on root user, i didn't create any different users like cacti or cactigroup. Do you think it can be connected ?

User avatar
browniebraun
Developer
Posts: 788
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

#5 Post by browniebraun » Wed Mar 17, 2010 2:48 pm

For all of you using PHP 5.3:

Edit your php.ini and set error_reporting to:

Code: Select all

error_reporting = E_ALL & ~E_DEPRECATED
After that edit /cacti/include/global.php and change line 196 from

Code: Select all

error_reporting(E_ALL);
to

Code: Select all

error_reporting(E_ALL ^ E_DEPRECATED);
Do exactly the same in line 312 of file adodb-time.inc.php located in /cacti/lib/adodb

Now restart your web server and you will see that all "deprecated" messages will be successfully suppressed.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list

rts
Posts: 1
Joined: Thu Apr 29, 2010 5:14 am

#6 Post by rts » Thu Apr 29, 2010 5:56 am

hey dev guys,
i did some cacti setups in my life so i'm not a newbie (ehm, yes i am but not fully.)
but this time i got stuck. the setup with php 5.3 is a real pain in the ss...

i've done all of the supresses you mentioned above but i still have some depreceted error messages, don't have the clue why, yet. (debian 6.0)

after the buggy setup i was able to log in and change admin password but there all hope end, i got some nice "headers already sent" besides my "deprecated" friends.
i understand this is likely my very own problem so i don't want to go in details.
but i'd like to inquire, very respectfully, when 088 will come out? the easier way seems to be to wait for it and give it the next try.
thanks a lot for your work.

rt.

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#7 Post by TheWitness » Thu Apr 29, 2010 6:30 am

Yes, there have been changes in 5.3 that make things a bit more nasty. For example, you get warnings that tell you that you need to set a timezone in PHP.ini, which is new. There is no support for the Apache module in 5.3 for Windows, if you are using Net-snmp.

I think 5.3 is a transitional release. Stick with 5.2 for a time as the bugs get worked out. We are planning an 0.8.7f release to remove the deprecation warnings. However, the fact remains.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

#8 Post by zgamer » Fri Apr 30, 2010 9:44 am

An alternative for specifically the e-mail's being sent to the root account can be accomplished by adding to the end of the crontab line for the poller process: 2>&1 this will prevent the poller process from e-mailing the root account.
Current cacti install
-------------------------
Hardware: ESXi 5.1 VM
Software Load: FreeBSD 9.0 + Lighttpd + MySQL + Cacti 0.8.7
Plug-ins loaded: aggregate, flowview, monitor, realtime, rrdclean, syslog, spikekill, settings, thold, weathermap, and uptime.

Fransis
Posts: 4
Joined: Mon Sep 05, 2011 1:59 am
Contact:

Re: [solved] deprecated warnings

#9 Post by Fransis » Thu Oct 06, 2011 8:21 am

Hello,
I'm using cacti for more than 2 years, its realy a good stuff! but before 2 months i got a problem, i thout its a problem on my cacti machine, so i wait until restart it. today i restart my machine and i got the same problem!
update /home/e_hus/public_html/cacti/rra/powernoc_ping_533.rrd --template ping N:2.05
sh: update: command not found
time: 179
Notice: Undefined variable: log_data in /home/e_hus/public_html/cacti/lib/rrd.php on line 175
sh: create: command not found
command: perl /home/e_hus/public_html/cacti/scripts/unix_processes.pl, output: 129


Any HELP with this? its says the command "create and update" are no known kommands!

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: [solved] deprecated warnings

#10 Post by TheWitness » Thu Oct 06, 2011 10:51 pm

For some reason, the path for RRDtool was unset. Goto Console->Settings->Paths. Weird.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

lizasmith
Posts: 1
Joined: Tue Oct 02, 2012 2:54 am

Re: [solved] deprecated warnings

#11 Post by lizasmith » Tue Oct 02, 2012 2:59 am

I am apprehensive if my problems are affiliated to user and user group. I am accomplishing aggregate on basis user, i didn't actualize any altered users like cacti or cactigroup. Do you anticipate it can be affiliated ?
Liza smith

Nikky
Posts: 4
Joined: Mon Oct 01, 2012 2:42 am

Re: [solved] deprecated warnings

#12 Post by Nikky » Tue Oct 02, 2012 8:12 am

lizasmith wrote:I am apprehensive if my problems are affiliated to user and user group. I am accomplishing aggregate on basis user, i didn't actualize any altered users like cacti or cactigroup. Do you anticipate it can be affiliated ?
Do You have any problem?

martin123
Posts: 1
Joined: Sat Nov 03, 2012 12:26 am

Re: [solved] deprecated warnings

#13 Post by martin123 » Sat Nov 03, 2012 1:16 am

I'm application cacti for added than 2 years, its realy a acceptable stuff! but afore 2 months i got a problem, i thout its a botheration on my cacti machine, so i delay until restart it. today i restart my apparatus and i got the aforementioned problem!
update /home/e_hus/public_html/cacti/rra/powernoc_ping_533.rrd --template ping N:2.05
sh: update: command not found
time: 179
Notice: Undefined variable: log_data in /home/e_hus/public_html/cacti/lib/rrd.php on band 175
sh: create: command not found
command: perl /home/e_hus/public_html/cacti/scripts/unix_processes.pl, output: 129


Any HELP with this? its says the command "create and update" are no accepted kommands!

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: [solved] deprecated warnings

#14 Post by gandalf » Sat Nov 10, 2012 2:37 pm

Please verify Settings -> Paths -> path to rrdtool
R.

Post Reply