help with cacti

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

Moderators: Developers, Moderators

Post Reply
TCA
Posts: 9
Joined: Mon Nov 07, 2022 10:22 am

help with cacti

Post by TCA »

Hello everybody
I have an error in the logs of the version of cacti 1.2.16.
Can you help me??
This is logs error:



2022-11-07 16:23:43 - CMDPHP PHP ERROR WARNING Backtrace: (/index.php[124]:bottom_footer(), /lib/functions.php[3267]:include_once(), /include/global_session.php[135]:csrf_get_tokens(), /include/vendor/csrf/csrf-magic.php[140]:csrf_hash(), /include/vendor/csrf/csrf-magic.php[423]:csrf_get_secret(), /include/vendor/csrf/csrf-magic.php[366]:csrf_writable(), /include/vendor/csrf/csrf-magic.php[490]:fopen(), CactiErrorHandler())
2022-11-07 16:23:43 - ERROR PHP WARNING: fopen(/var/www/cacti-1.2.16/include/vendor/csrf/csrf-secret.php): Failed to open stream: Permission denied in file: /var/www/cacti-1.2.16/include/vendor/csrf/csrf-magic.php on line: 490
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: help with cacti

Post by cigamit »

ERROR PHP WARNING: fopen(/var/www/cacti-1.2.16/include/vendor/csrf/csrf-secret.php): Failed to open stream: Permission denied
Fix the permission on that file so the webserver has write access to it.
TCA
Posts: 9
Joined: Mon Nov 07, 2022 10:22 am

Re: help with cacti

Post by TCA »

Hello, forgive my ignorance, I don't know how to give permission.
can you help me??
I've googled, but I'm not sure how to do it
TCA
Posts: 9
Joined: Mon Nov 07, 2022 10:22 am

Re: help with cacti

Post by TCA »

thanks cigamit, i managed to fix the problem.
now this comes out:

2022-11-11 10:15:02 - SPINE: Poller[Main Poller] PID[99243] Device[Cisco_6500] DS[Cisco_6500 -] Graphs[Cisco_6500 -] ERROR: Problems parsing Multi SNMP OID! (oid: ), Set MAX_OIDS to 1 for this host to isolate bad OID

2022-11-11 10:10:03 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())

2022-11-11 10:10:03 - ERROR PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /var/www/cacti-1.2.16/lib/mib_cache.php:344 Stack trace: #0 /var/www/cacti-1.2.16/lib/mib_cache.php(384): MibCache->delete() #1 /var/www/cacti-1.2.16/lib/snmpagent.php(352): MibCache->replace() #2 /var/www/cacti-1.2.16/poller.php(815): snmpagent_poller_bottom() #3 {main} thrown in file: /var/www/cacti-1.2.16/lib/mib_cache.php on line: 344

I'm working on the problem, but I could use some help.
thanks
TCA
Posts: 9
Joined: Mon Nov 07, 2022 10:22 am

Re: help with cacti

Post by TCA »

2022-11-11 10:15:02 - SPINE: Poller[Main Poller] PID[99243] Device[Cisco_6500] DS[Cisco_6500 -] Graphs[Cisco_6500 -] ERROR: Problems parsing Multi SNMP OID! (oid: ), Set MAX_OIDS to 1 for this host to isolate bad OID


this bug fixed :)
TCA
Posts: 9
Joined: Mon Nov 07, 2022 10:22 am

Re: help with cacti

Post by TCA »

solucione los errores actualizando a una version mas nueva mi cacti.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: help with cacti

Post by TheWitness »

I would suggest upgrading cacti or downgrading PHP for the other error. You may be able to work around this issue by either of the following though:
  1. Grab the latest lib/mib_cache.php from the 1.2.x branch on GitHub
  2. Disable the SNMP Agent if you are not using traps or informs out of Cacti. You can do that from Console > Configuration > Settings > Poller
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
TCA
Posts: 9
Joined: Mon Nov 07, 2022 10:22 am

Re: help with cacti

Post by TCA »

ok, thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests