[Pkg-cacti-maint] Bug#949545: cacti: cli/add_device.php reports success but device-id is 0 and never appears in the host list

Paul Gevers elbrus at debian.org
Tue Jan 21 20:48:58 GMT 2020


Control: tags -1 moreinfo

Hi Jim,

Thanks for reporting issues you encounter.

On 21-01-2020 21:15, Jim McNamara wrote:
>    * What led up to the situation?
> 	Upgraded machine from Stretch to Buster, cacti was upgraded in process from 0.8.8 to 1.2.2.
> 
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
> 	Any host added through the use of /usr/share/cacti/cli/add_device.php reports success, but the device-id is always 0 and the host never appears either in the web interface or via /usr/share/cacti/cli/add_tree.php --list-hosts
> 
>    * What was the outcome of this action?
> 	++ /usr/share/cacti/cli/add_device.php --template=1 --description=192.168.112.200 --ip=192.168.112.200 --community=public
> 	+ ADDHOST='Adding 192.168.112.200 (192.168.112.200) as "Generic SNMP-enabled Host" using SNMP vnet-snmp with community "public"
> 	Success - new device-id: (0)'
> 
> 	The host is not added, and 0 seems like an odd device-id as they seem to start from 1
> 
>    * What outcome did you expect instead?
> 	
> 	Host would be added with the next available device-id, that new device-id should be reported by the add-device.php script

I found this upstream report: https://github.com/Cacti/cacti/issues/3111
Can you check your cacti.log for errors and see if the issue matches?

Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-cacti-maint/attachments/20200121/0f11d2b5/attachment.sig>


More information about the Pkg-cacti-maint mailing list