Details
-
Bug
-
Resolution: Incomplete
-
Major
-
None
-
Professional Edition
-
None
Description
Hello,
running discovey.php CLI to discovery a specific host with -d or -dd the script returns error for a undefined function generate_box_open()
DUMP of console:
- ./discovery.php -h 159 -dd
DEBUG!
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/svn info /opt/observium</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.01s</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITDELAY[<span class="label label-danger">10ms</span>]</div>
</div>
STDOUT[
Path: .
Working Copy Root Path: /opt/observium
URL: http://svn.observium.org/svn/observium/trunk
Relative URL: ^/observium/trunk
Repository Root: http://svn.observium.org/svn
Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8
Revision: 12337
Node Kind: directory
Schedule: normal
Last Changed Author: mike
Last Changed Rev: 12337
Last Changed Date: 2022-10-19 19:05:53 -0300 (Wed, 19 Oct 2022)
]
> $observium_version /opt/observium/includes/definitions/version.inc.php:82
string(11) "22.10.12337"
> $observium_version_long /opt/observium/includes/definitions/version.inc.php:83
string(21) "22.10.12337 (rolling)"
> $svn_train /opt/observium/includes/definitions/version.inc.php:84
string(7) "rolling"
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
<div>DEFINITIONS loaded by: 0.1046 ms
</div>
</div>
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
<div>DEFINITIONS in memory: 3.35MB
</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Doctrine\SqlFormatter\SqlFormatter' from '/opt/observium/libs/Doctrine/SqlFormatter/SqlFormatter.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Doctrine\SqlFormatter\Tokenizer' from '/opt/observium/libs/Doctrine/SqlFormatter/Tokenizer.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Doctrine\SqlFormatter\Highlighter' from '/opt/observium/libs/Doctrine/SqlFormatter/Highlighter.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Doctrine\SqlFormatter\CliHighlighter' from '/opt/observium/libs/Doctrine/SqlFormatter/CliHighlighter.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Doctrine\SqlFormatter\Token' from '/opt/observium/libs/Doctrine/SqlFormatter/Token.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Doctrine\SqlFormatter\Cursor' from '/opt/observium/libs/Doctrine/SqlFormatter/Cursor.php': <span class="label label-success">OK</div>
</div>
<p>SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';
</p><p>SELECT @@SESSION.sql_mode;
</p><p>SET SESSION `sql_mode` = 'NO_ENGINE_SUBSTITUTION'
</p>
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
<div>DB mode(s) disabled: STRICT_TRANS_TABLES</div>
</div>
<p>SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);
</p><p>SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';
</p><p>SELECT * FROM `config`
</p>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Net_IPv6' from '/opt/observium/libs/pear/Net/IPv6.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\CacheManager' from '/opt/observium/libs/phpFastCache/CacheManager.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Symfony\Component\HttpKernel\KernelInterface' from '/opt/observium/libs/Symfony/Component/HttpKernel/KernelInterface.php': <span class="label label-danger">FAIL</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\Util\ClassNamespaceResolverTrait' from '/opt/observium/libs/phpFastCache/Util/ClassNamespaceResolverTrait.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\Core\Pool\CacheItemPoolTrait' from '/opt/observium/libs/phpFastCache/Core/Pool/CacheItemPoolTrait.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\Core\Pool\ExtendedCacheItemPoolTrait' from '/opt/observium/libs/phpFastCache/Core/Pool/ExtendedCacheItemPoolTrait.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\Core\Pool\DriverBaseTrait' from '/opt/observium/libs/phpFastCache/Core/Pool/DriverBaseTrait.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'Psr\Cache\CacheItemPoolInterface' from '/opt/observium/libs/Psr/Cache/CacheItemPoolInterface.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\Core\Pool\ExtendedCacheItemPoolInterface' from '/opt/observium/libs/phpFastCache/Core/Pool/ExtendedCacheItemPoolInterface.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\Drivers\Apcu\Driver' from '/opt/observium/libs/phpFastCache/Drivers/Apcu/Driver.php': <span class="label label-success">OK</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div><span class="label label-default">Load class 'phpFastCache\EventManager' from '/opt/observium/libs/phpFastCache/EventManager.php': <span class="label label-success">OK</div>
</div>
<p>SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'cache_wui_clear';
</p><p>SELECT EXISTS (SELECT 1 FROM `pollers`)
</p>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/opt/observium/scripts/distro</span>]</div>
</div>
<div class="alert alert-danger">
<div>Wrong process status! Issue in proc_get_status(), see: https://bugs.php.net/bug.php?id=69014</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0135s</span>]</div>
</div>
STDOUT[
Linux|4.4.0-233-generic|amd64|Ubuntu|16.04|vmware|
]
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/env python --version 2>&1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0042s</span>]</div>
</div>
STDOUT[
Python 3.5.2
]
<p>SELECT version();
</p>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/snmpget --version 2>&1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0032s</span>]</div>
</div>
STDOUT[
NET-SNMP version: 5.7.3
]
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/rrdtool --version | head -n1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0131s</span>]</div>
</div>
STDOUT[
RRDtool 1.5.5 Copyright by Tobias Oetiker <tobi@oetiker.ch>
]
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/fping -v 2>&1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0032s</span>]</div>
</div>
STDOUT[
/usr/bin/fping: Version 3.13
/usr/bin/fping: comments to david@schweikert.ch
]
PHP Fatal error: Uncaught Error: Call to undefined function generate_box_open() in /opt/observium/includes/common.inc.php:1138
Stack trace:
#0 /opt/observium/discovery.php(56): print_versions()
#1 {main}
thrown in /opt/observium/includes/common.inc.php on line 1138
Fatal error: Uncaught Error: Call to undefined function generate_box_open() in /opt/observium/includes/common.inc.php:1138
Stack trace:
#0 /opt/observium/discovery.php(56): print_versions()
#1 {main}
thrown in /opt/observium/includes/common.inc.php on line 1138
root@nms02:/opt/observium# ./discovery.php -h 159 -d
/usr/share/snmp/mibs/RFC1628_UPS_MIB.txt: No such file or directory
/usr/share/snmp/mibs/UPS_MATE.MIB: No such file or directory
/usr/share/snmp/mibs/RFC1628_UPS_MIB.txt: No such file or directory
/usr/share/snmp/mibs/UPS_MATE.MIB: No such file or directory
DEBUG!
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/svn info /opt/observium</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0079s</span>]</div>
</div>
STDOUT[
Path: .
Working Copy Root Path: /opt/observium
URL: http://svn.observium.org/svn/observium/trunk
Relative URL: ^/observium/trunk
Repository Root: http://svn.observium.org/svn
Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8
Revision: 12337
Node Kind: directory
Schedule: normal
Last Changed Author: mike
Last Changed Rev: 12337
Last Changed Date: 2022-10-19 19:05:53 -0300 (Wed, 19 Oct 2022)
]
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
<div>DEFINITIONS loaded by: 0.0754991 ms
</div>
</div>
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
<div>DEFINITIONS in memory: 3.28MB
</div>
</div>
<p>SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';
</p><p>SELECT @@SESSION.sql_mode;
</p><p>SET SESSION `sql_mode` = 'NO_ENGINE_SUBSTITUTION'
</p>
<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">×</button>
<div>DB mode(s) disabled: STRICT_TRANS_TABLES</div>
</div>
<p>SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);
</p><p>SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';
</p><p>SELECT * FROM `config`
</p><p>SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'cache_wui_clear';
</p><p>SELECT EXISTS (SELECT 1 FROM `pollers`)
</p>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/opt/observium/scripts/distro</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0098s</span>]</div>
</div>
STDOUT[
Linux|4.4.0-233-generic|amd64|Ubuntu|16.04|vmware|
]
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/env python --version 2>&1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0028s</span>]</div>
</div>
STDOUT[
Python 3.5.2
]
<p>SELECT version();
</p>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/snmpget --version 2>&1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0025s</span>]</div>
</div>
STDOUT[
NET-SNMP version: 5.7.3
]
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/rrdtool --version | head -n1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0078s</span>]</div>
</div>
STDOUT[
RRDtool 1.5.5 Copyright by Tobias Oetiker <tobi@oetiker.ch>
]
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD[<span class="label label-warning">/usr/bin/fping -v 2>&1</span>]</div>
</div>
<div class="alert alert-suppressed"><button type="button" class="close" data-dismiss="alert">×</button>
<div>CMD EXITCODE[<span class="label label-success">0</span>]<br />
CMD RUNTIME[<span class="label label-success">0.0021s</span>]</div>
</div>
STDOUT[
/usr/bin/fping: Version 3.13
/usr/bin/fping: comments to david@schweikert.ch
]
PHP Fatal error: Uncaught Error: Call to undefined function generate_box_open() in /opt/observium/includes/common.inc.php:1138
Stack trace:
#0 /opt/observium/discovery.php(56): print_versions()
#1 {main}
thrown in /opt/observium/includes/common.inc.php on line 1138
Fatal error: Uncaught Error: Call to undefined function generate_box_open() in /opt/observium/includes/common.inc.php:1138
Stack trace:
#0 /opt/observium/discovery.php(56): print_versions()
#1 {main}
thrown in /opt/observium/includes/common.inc.php on line 1138
It´s running fine now,
DEBUG!
CMD[/usr/bin/svn info /opt/observium]
CMD EXITCODE[0]
CMD RUNTIME[0.0089s]
CMD EXITDELAY[10ms]
STDOUT[
Path: .
Working Copy Root Path: /opt/observium
URL: http://svn.observium.org/svn/observium/trunk
Relative URL: ^/observium/trunk
Repository Root: http://svn.observium.org/svn
Repository UUID: 61d68cd4-352d-0410-923a-c4978735b2b8
Revision: 12339
Node Kind: directory
Schedule: normal
Last Changed Author: mike
Last Changed Rev: 12339
Last Changed Date: 2022-10-20 15:06:13 -0300 (Thu, 20 Oct 2022)
]
DEFINITIONS loaded by: 0.0855548 ms
DEFINITIONS in memory: 3.28MB
.......
___ _ _
/ _ \ | |__ ___ ___ _ __ __ _() _ _ _ __ ___
__/ |._/ |_/ _||| _/ || _,||| || ||
Observium Professional 22.10.12339
https://www.observium.org
CMD[/opt/observium/scripts/distro]
CMD EXITCODE[0]
CMD RUNTIME[0.0129s]
STDOUT[
Linux|4.4.0-233-generic|amd64|Ubuntu|16.04|vmware|
]
......
o Devices Discovered 1
o Discovery Time 26.06 secs
o Memory usage 24MB (peak: 26MB)
o MySQL Usage Cell[75/0.121s] Row[176/0.29s] Rows[87/0.254s] Column[2/0.004s] Update[420/0.527s] Insert[2/0.004s] Delete[1/0.001s]
o RRDTool Usage