After upgrade NetXMS lost SMTP Driver in Notification Channels
How to enable again?
What's exactly happened? Is the driver gone from the list? What is it's status and error message in the list?
To debug what's happening with the driver you can increase debug level: In Tools->Server Debug Console issue
debug ncd.* 7
this will enable debug for notification channel drivers. Then try to send a message and check server log
Hi,
he issue is that the ncdriver SMTP module is not compiled. I have tried several methods, but I have been unable to compile the SMTP module
root@netxms:~/netxms-5.2.0/src/ncdrivers/smtp# ls -l /usr/local/lib/netxms/
total 5980
drwxr-xr-x 2 root root 4096 Apr 4 09:50 dbdrv
-rwxr-xr-x 1 root root 348608 Apr 4 09:50 dbquery.nsm
-rwxr-xr-x 1 root root 132048 Apr 4 09:50 devemu.nsm
-rwxr-xr-x 1 root root 99312 Apr 4 09:50 ds18x20.nsm
-rwxr-xr-x 1 root root 321192 Apr 4 09:50 filemgr.nsm
-rwxr-xr-x 1 root root 199952 Apr 4 09:50 gps.nsm
-rwxr-xr-x 1 root root 362320 Apr 4 09:50 leef.nxm
-rwxr-xr-x 1 root root 1728784 Apr 4 09:50 linux.nsm
-rwxr-xr-x 1 root root 91192 Apr 4 09:50 lmsensors.nsm
-rwxr-xr-x 1 root root 309600 Apr 4 09:50 logwatch.nsm
-rwxr-xr-x 1 root root 374080 Apr 4 09:50 mysql.nsm
drwxr-xr-x 2 root root 4096 Apr 4 09:50 ncdrv
drwxr-xr-x 2 root root 4096 Apr 4 09:50 ndd
-rwxr-xr-x 1 root root 693064 Apr 4 09:50 ntcb.nxm
drwxr-xr-x 2 root root 4096 Apr 4 09:50 pdsdrv
-rwxr-xr-x 1 root root 221344 Apr 4 09:50 ping.nsm
-rwxr-xr-x 1 root root 150448 Apr 4 09:50 sms.nsm
-rwxr-xr-x 1 root root 400472 Apr 4 09:50 spe.nxm
-rwxr-xr-x 1 root root 408048 Apr 4 09:50 ups.nsm
-rwxr-xr-x 1 root root 228848 Apr 4 09:50 wcc.nxm
root@netxms:~/netxms-5.2.0/src/ncdrivers/smtp# ls -l /usr/local/lib/netxms/ncdrv/
total 664
-rwxr-xr-x 1 root root 57368 Apr 4 09:50 dbtable.ncd
-rwxr-xr-x 1 root root 51464 Apr 4 09:50 dummy.ncd
-rwxr-xr-x 1 root root 88328 Apr 4 09:50 gsm.ncd
-rwxr-xr-x 1 root root 145288 Apr 4 09:50 nxagent.ncd
-rwxr-xr-x 1 root root 86112 Apr 4 09:50 portech.ncd
-rwxr-xr-x 1 root root 61760 Apr 4 09:50 shell.ncd
-rwxr-xr-x 1 root root 117264 Apr 4 09:50 snmptrap.ncd
-rwxr-xr-x 1 root root 53240 Apr 4 09:50 textfile.ncd
root@netxms:~/netxms-5.2.0/src/ncdrivers# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
netxms with mysql
the only drivers available
Any reason why you compile it yourself? We have packages for Ubuntu.
It was installed like that in the beginning and migrated after that.
I have tried a new installation on same server but can't get the drivers to be all installaed
Any solution ?
How can I export all infrastructure and objects to import them into a new server?
Problems with compilation are probably because libcurl library is now used for a few things, smtp in particular. But it's better just to use packages.
You can install netxms packages right on the same system, just remove systemd unit or whatever way the old server and agent were started by.
nxagentd.conf will be in /etc, currently it's probably the same
server files, images are under /var/lib/netxms/, if compilation was with default prefix, then currently it's same location
and the database, with which new binaries will work same way and the old ones
Export-import is also possible, this will export all the configuration, without logs and collected data:
nxdbmgr -s -Z all -e hardware_inventory -e software_inventory export backup.sql
And to import on the new system:
nxdbmgr import backup.sql
And you'll need to copy conf file and folders I've mentioned above.
Server migration completed successfully! Thank you!
Nice to hear that