librenms / librenms

Community-based GPL-licensed network monitoring system
https://www.librenms.org
Other
3.94k stars 2.31k forks source link

Error in VMware ESXI code #15388

Closed wimg closed 1 year ago

wimg commented 1 year ago

The problem

The log file is showing : Error polling os module for . Error: Call to undefined function dbFetchRows() in /opt/librenms/includes/polling/os/vmware-esxi.inc.php:15 Stack trace:

0 /opt/librenms/LibreNMS/Modules/Os.php(91): include()

1 /opt/librenms/LibreNMS/Poller.php(191): LibreNMS\Modules\Os->poll(Object(LibreNMS\OS\Shared\Unix), Object(LibreNMS\Data\Store\Datastore))

2 /opt/librenms/LibreNMS/Poller.php(103): LibreNMS\Poller->pollModules()

3 /opt/librenms/app/Console/Commands/DevicePoll.php(44): LibreNMS\Poller->poll()

4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Console\Commands\DevicePoll->handle(Object(App\Polling\Measure\MeasurementManager))

5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()

6 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))

7 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))

8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)

9 /opt/librenms/vendor/laravel/framework/src/Illuminate/Console/Command.php(208): Illuminate\Container\Container->call(Array)

10 /opt/librenms/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))

11 /opt/librenms/vendor/laravel/framework/src/Illuminate/Console/Command.php(178): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))

12 /opt/librenms/vendor/symfony/console/Application.php(1081): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

13 /opt/librenms/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\DevicePoll), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

14 /opt/librenms/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

15 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

16 /opt/librenms/app/Console/Kernel.php(66): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

17 /opt/librenms/lnms(40): App\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

18 {main}

Call to undefined function dbFetchRows() {"exception":"[object] (Error(code: 0): Call to undefined function dbFetchRows() at /opt/librenms/includes/polling/os/vmware-esxi.inc.php:15

Output of ./validate.php

===========================================
Component | Version
--------- | -------
LibreNMS  | 23.9.1-44-g9fca018 (2023-10-05T08:32:21+00:00)
DB Schema | 2023_08_30_105156_add_applications_soft_deleted (259)
PHP       | 8.1.24
Python    | 3.6.8
Database  | MariaDB 10.5.22-MariaDB
RRDTool   | 1.4.8
SNMP      | 5.7.2
===========================================

[OK]    Composer Version: 2.6.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQl and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached
[FAIL]  Scheduler is not running

What was the last working version of LibreNMS?

23.9.1-44-g9fca018

Anything in the logs that might be useful for us?

No response

trcyberoptic commented 1 year ago

This seems identical to my issue posted at https://github.com/librenms/librenms/issues/15383

wimg commented 1 year ago

Closing as it's a duplicate