Search found 86 matches

by marcmerlin
Tue Dec 10, 2019 10:29 pm
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

Re: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php

Error 500 means that there was an internal server error and you look to the apache error log to see why. I already did and already pasted the error logged in apache.log above :) PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create() in /usr/share/cacti/site/lib/xml.php:112\...
by marcmerlin
Tue Dec 10, 2019 6:29 pm
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

Re: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php

You can check php modules for apache using browser. Make new php script with phpinfo() and open it via browser. Like this: echo '<?php phpinfo() ?>' > /usr/share/cacti/site/i.php And point your browser to https://graphs.merlins.org/graphs/i.php upd. Or you can check phpinfo via Cacti utilities. htt...
by marcmerlin
Tue Dec 10, 2019 12:43 pm
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

Re: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php

Mmmh, I spoke too soon. It works better, but now errors on this when I look at a graph: PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create() in /usr/share/cacti/site/lib/xml.php:112\nStack trace:\n#0 /usr/share/cacti/site/lib/rrd.php(2303): rrdxport2array('<?xml version=&q...
by marcmerlin
Tue Dec 10, 2019 12:42 pm
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

Re: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php

Sorry, my bad I was half asleep. I think the command is phpenmod not a2enmod. I know that you ran php -m, but debian has two different configurations for php, one for cli and one for web. Thanks for offering your help. Clearly I know nothing about how php7 is supposed to work, and sadly it looks li...
by marcmerlin
Tue Dec 10, 2019 1:59 am
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

Re: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php

No, that just confirms that the cli has it enabled. Ok, just had time to try; a2enmod is meant to enable an apache module, not a php module. gargamel:~# a2enmod Your choices are: access_compat actions alias allowmethods asis auth_basic auth_digest auth_form authn_anon authn_core authn_dbd authn_dbm...
by marcmerlin
Mon Dec 09, 2019 8:11 pm
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

Re: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php

oh, the cli and apache php7 module handle modules separately? What madness is this? I already hated php, but now even more so :-/
Ok, I'll try and learn more about how php7 works and see how a2enmod works, thanks for the tip.
by marcmerlin
Mon Dec 09, 2019 5:50 pm
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

Re: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php

I understand what you're saying, but didn't the 2 commands I posted confirm that I'm using the correct php and that the module is enabled? Repasting; gargamel:/etc/cacti# php --version PHP 7.3.12-1 (cli) (built: Nov 28 2019 07:34:08) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.12,...
by marcmerlin
Mon Dec 09, 2019 1:14 pm
Forum: Help: Linux/Unix Specific
Topic: PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)
Replies: 14
Views: 14793

PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /usr/share/cacti/site/lib/rrd.php (solved)

I've had cacti working for close to 10 years on linux/debian and upgraded it multiple times. And then the php5 to php7 upgrade from hell happened (I'm not even going to go into php 7.0 vs 7.2 vs 7.3). I can't believe how terrible php has been handled this complete incompatible upgrade and forcing a ...
by marcmerlin
Wed Apr 25, 2018 1:18 am
Forum: Help: General
Topic: upgrading cacti 0.8.8 to 1.1.36 broke time graph view
Replies: 11
Views: 2363

Re: upgrading cacti 0.8.8 to 1.1.36 broke time graph view

Sorry if I wasn't clear, but yes, I have the four different scales, as designed. This was a glitch somewhere during your upgrade, not the Cacti software. Have you tried editing the template, making no changes and saving it? Sometimes that will reset things. Thanks, camerabob. So, by "template&...
by marcmerlin
Tue Apr 24, 2018 1:21 pm
Forum: Help: General
Topic: upgrading cacti 0.8.8 to 1.1.36 broke time graph view
Replies: 11
Views: 2363

Re: upgrading cacti 0.8.8 to 1.1.36 broke time graph view

I did a 'yum update' on my test 0.8.8h box and it upgraded my cacti (and all packages) to 1.1.37. I wasn't planning on upgrading that server so I could work with the older stuff, but it is what it is. It upgraded without any errors and all worked as designed after the more than two dozen software l...
by marcmerlin
Tue Apr 24, 2018 12:38 pm
Forum: Help: General
Topic: upgrading cacti 0.8.8 to 1.1.36 broke time graph view
Replies: 11
Views: 2363

Re: upgrading cacti 0.8.8 to 1.1.36 broke time graph view

@netniV: http://graphs.merlins.org/graphs/graph.php?local_graph_id=14 used to give me 4 time based views, and now it's broken after the upgrade. @camerabob, upgrading cacti was how I got in this world of pain. I would never have upgraded it if it hadn't broken when I was forced to upgrade php due to...
by marcmerlin
Mon Apr 23, 2018 11:13 am
Forum: Help: General
Topic: upgrading cacti 0.8.8 to 1.1.36 broke time graph view
Replies: 11
Views: 2363

Re: upgrading cacti 0.8.8 to 1.1.36 broke time graph view

So, a lot of things broke when I was forced to upgrade cacti after another program (on debian) upgraded to php7, which in turn broke phh-mysql that cacti was 0.8.8 was relying on. For now, my main problem is time graph view It used to show me graphs at different time intervals with 0.8.8 Now it sho...
by marcmerlin
Tue Apr 10, 2018 12:02 am
Forum: Help: General
Topic: cacti 1.3.36 poller silently failing to gather data
Replies: 1
Views: 294

Re: cacti 1.3.36 poller silently failing to gather data (sol

Well, not sure if things moved around, if the names don't make sense (anymore?) and/or if the new interface is missing a backlink from Data Collection/Data Input Methods to Management/Data Sources where the RRD is actually defined and the data source names have to be renamed too. Why those two very ...
by marcmerlin
Mon Apr 09, 2018 1:20 pm
Forum: Help: General
Topic: cacti 1.3.36 poller silently failing to gather data
Replies: 1
Views: 294

cacti 1.3.36 poller silently failing to gather data

I renamed some fields in an RRD and I'm getting silent poll errors (i.e. all data is lost and not being updated without my getting any warning at all) on one of my data inputs: 04/09/2018 10:04:04 - POLLER: Poller[1] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/house_xpl-rfxcom_27.rrd --tem...
by marcmerlin
Mon Apr 09, 2018 12:26 am
Forum: Help: General
Topic: upgrading cacti 0.8.8 to 1.1.36 broke time graph view
Replies: 11
Views: 2363

upgrading cacti 0.8.8 to 1.1.36 broke time graph view

So, a lot of things broke when I was forced to upgrade cacti after another program (on debian) upgraded to php7, which in turn broke phh-mysql that cacti was 0.8.8 was relying on. For now, my main problem is time graph view It used to show me graphs at different time intervals with 0.8.8 Now it show...