Cacti / plugin_webseer

Cacti Web Services Monitoring Plugin
GNU General Public License v2.0
8 stars 9 forks source link

Poller reports backtrace errors when performing webseer checks #37

Closed Lalbee99 closed 5 years ago

Lalbee99 commented 5 years ago

Describe the bug A clear and concise description of what the bug is. When the cacti poller runs it generates the following errors when performing the webseer checks:

2019/03/14 08:37:05 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/webseer/poller_webseer.php[142]:plugin_webseer_update_servers(), /plugins/webseer/poller_webseer.php[207]:CactiErrorHandler()) 2019/03/14 08:37:05 - ERROR PHP WARNING in Plugin 'webseer': Invalid argument supplied for foreach() in file: /cacti/cacti-0.8.8b/plugins/webseer/poller_webseer.php on line: 207

To Reproduce Steps to reproduce the behavior:

  1. Go to Logs
  2. Click on Show Warnings or Errors
  3. See error

Expected behavior A clear and concise description of what you expected to happen. No errors

Screenshots If applicable, add screenshots to help explain your problem.

Plugin (please complete the following information):

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Lalbee99 commented 5 years ago

Unable to attach a screen shot utilizing drag & drop or paste .

netniV commented 5 years ago

Your version of Cacti is too low for the plugin. You need to find an older version of the plugin.

Lalbee99 commented 5 years ago

My version of cacti is 1.2.2 and the webseer plugin is 3.0

Lalbee99 commented 5 years ago

General Information Date Thu, 14 Mar 2019 10:23:30 -0400 Cacti Version 1.2.2 Cacti OS unix RSA Fingerprint 83:6e:3c:63:23:d1:d1:7e:8b:1f:5f:f5:72:4d:75:8c NET-SNMP Version NET-SNMP version: 5.7.2 RRDtool Version Configured 1.4.0+ RRDtool Version Found 1.4.8 Devices 179 Graphs 2583 Data Sources Script/Command: 390 SNMP Get: 131 SNMP Query: 1919 Script Query: 82 Script Server: 110 Total: 2632 Poller Information Interval 300 Type SPINE 1.2.2 Copyright 2004-2017 by The Cacti Group Items Action[0]: 4058 Action[1]: 668 Action[2]: 104 Total: 4830 Concurrent Processes 10 Max Threads 15 PHP Servers 5 Script Timeout 40 Max OID 60 Last Run Statistics Time:123.2908 Method:spine Processes:5 Threads:60 Hosts:158 HostsPerProcess:32 DataSources:4830 RRDsProcessed:0

Lalbee99 commented 5 years ago

Actions

Plugin Name

Plugin Description

Status

Author

Requires

Version

Load Order Audit Audit Plugin for Cacti Active The Cacti Group 1.0
Monitor Device Monitoring Active The Cacti Group Thold 2.3.4
Mactrack Device Tracking Installed The Cacti Group 4.2
Gexport Graph Export Package for Cacti Installed The Cacti Group 1.4.1
Intropage Intropage/Dashboard Active Petr Macek 1.7
Maint Maintenance Scheduler Active The Cacti Group 1.1
Weathermap Network Weathermap for Cacti 1.x Not Installed Howard Jones 1.0.0dev
Quicktree QuickTree for Cacti 1.x Active Howard Jones 1.0.0
Reportit Reporting tool for Cacti Installed The Cacti Group 1.0
Syslog Syslog Monitoring Active The Cacti Group 2.1
Thold Thresholds Active The Cacti Group 1.0.5
Webseer Web Service Monitor Active The Cacti Group 3.0

netniV commented 5 years ago

OK, apologies, the file path led to some confusion: /cacti/cacti-0.8.8b/plugins/webseer

Lalbee99 commented 5 years ago

Sorry it was my original cacti install version. I haven't gotten around to modifying a MySQL backup with a generic path (/cacti) and performing a restore after the upgrade. It is on my to do list.

netniV commented 5 years ago

Download the latest development version. Your line numbers didn't line up with what we have but I have made a guess. If it cures your problem I'll update the version details accordingly.

Lalbee99 commented 5 years ago

Good to go no more errors. Good work !