help with cacti
Moderators: Developers, Moderators
help with cacti
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
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
Re: help with cacti
Fix the permission on that file so the webserver has write access to it.ERROR PHP WARNING: fopen(/var/www/cacti-1.2.16/include/vendor/csrf/csrf-secret.php): Failed to open stream: Permission denied
Re: help with cacti
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
can you help me??
I've googled, but I'm not sure how to do it
Re: help with cacti
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
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
Re: help with cacti
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
this bug fixed
Re: help with cacti
solucione los errores actualizando a una version mas nueva mi cacti.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: help with cacti
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:
- Grab the latest lib/mib_cache.php from the 1.2.x branch on GitHub
- 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?
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?
Who is online
Users browsing this forum: No registered users and 2 guests