Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using CMD.PHP as the poller, warnings can appear if you only use a subset of data input types #4312

Closed
daedalus opened this issue Jun 18, 2021 · 2 comments
Assignees
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@daedalus
Copy link

daedalus commented Jun 18, 2021

In the file /var/log/cacti/cacti.log appears

2021-06-07 16:35:25 - CMDPHP PHP ERROR NOTICE Backtrace: (/cmd.php[325]:ping_and_reindex_check(), /cmd.php[735]:CactiErrorHandler())
2021-06-07 16:35:25 - ERROR PHP NOTICE: Undefined variable: cactiphp in file: /usr/share/cacti/cmd.php on line: 735
2021-06-07 16:35:25 - CMDPHP PHP ERROR NOTICE Backtrace: (/cmd.php[325]:ping_and_reindex_check(), /cmd.php[735]:CactiErrorHandler())
2021-06-07 16:35:25 - ERROR PHP NOTICE: Undefined variable: pipes in file: /usr/share/cacti/cmd.php on line: 735
2021-06-07 16:35:25 - CMDPHP PHP ERROR NOTICE Backtrace: (/cmd.php[325]:ping_and_reindex_check(), /cmd.php[735]:CactiErrorHandler())
2021-06-07 16:35:25 - ERROR PHP NOTICE: Undefined variable: using_proc_function in file: /usr/share/cacti/cmd.php on line: 735
2021-06-07 16:35:03 - CMDPHP PHP ERROR NOTICE Backtrace: (/cmd.php[325]:ping_and_reindex_check(), /cmd.php[735]:CactiErrorHandler())
2021-06-07 16:35:03 - ERROR PHP NOTICE: Undefined variable: cactiphp in file: /usr/share/cacti/cmd.php on line: 735
2021-06-07 16:35:03 - CMDPHP PHP ERROR NOTICE Backtrace: (/cmd.php[325]:ping_and_reindex_check(), /cmd.php[735]:CactiErrorHandler())
2021-06-07 16:35:03 - ERROR PHP NOTICE: Undefined variable: pipes in file: /usr/share/cacti/cmd.php on line: 735
2021-06-07 16:35:03 - CMDPHP PHP ERROR NOTICE Backtrace: (/cmd.php[325]:ping_and_reindex_check(), /cmd.php[735]:CactiErrorHandler())
2021-06-07 16:35:03 - ERROR PHP NOTICE: Undefined variable: using_proc_function in file: /usr/share/cacti/cmd.php on line: 735

@daedalus daedalus added bug Undesired behaviour unverified Some days we don't have a clue labels Jun 18, 2021
@netniV netniV self-assigned this Jun 18, 2021
@jspugs
Copy link

jspugs commented Jun 20, 2021

Seeing the same on debian 10 install - with path of /opt/cacti/:

PHP Notice: Undefined variable: pipes in /opt/cacti/cmd.php on line 735
PHP Notice: Undefined variable: cactiphp in /opt/cacti/cmd.php on line 735
PHP Notice: Undefined variable: using_proc_function in /opt/cacti/cmd.php on line 735
PHP Notice: Undefined variable: pipes in /opt/cacti/cmd.php on line 735
PHP Notice: Undefined variable: cactiphp in /opt/cacti/cmd.php on line 735
PHP Notice: Undefined variable: using_proc_function in /opt/cacti/cmd.php on line 735
PHP Notice: Undefined variable: pipes in /opt/cacti/cmd.php on line 735
PHP Notice: Undefined variable: cactiphp in /opt/cacti/cmd.php on line 735

PHP 7.3.27-1~deb10u1 (cli) (built: Feb 13 2021 16:31:40) ( NTS )
Apache Version: Server version: Apache/2.4.38 (Debian)
MYSQL: Server version: 10.3.27-MariaDB-0+deb10u1 Debian 10

TheWitness added a commit that referenced this issue Jun 25, 2021
ERROR PHP NOTICE: Undefined variable: cactiphp in file: /usr/share/cacti/cmd.php on line: 735
@TheWitness TheWitness added resolved A fixed issue and removed unverified Some days we don't have a clue labels Jun 25, 2021
@TheWitness TheWitness added this to the 1.2.18 milestone Jun 25, 2021
@TheWitness
Copy link
Member

Okay, this is resolved now.

@netniV netniV closed this as completed Jun 28, 2021
@netniV netniV changed the title ERROR PHP NOTICE: Undefined variable: cactiphp in file: /usr/share/cacti/cmd.php on line: 735 When using CMD.PHP as the poller, warnings can appear if you only use a subset of data input types Jul 4, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

4 participants