NetXMS Support Forum

English Support => General Support => Topic started by: nichky on July 31, 2025, 02:34:08 PM

Title: SNMP communication issues
Post by: nichky on July 31, 2025, 02:34:08 PM
Thanks i got similar issues.

Also Alex,  why i'm getting a graph on some of the interfaces,how to fix that?
On some of the routers, im not gettign at all (i got seven routers)

fyi: SMTP  has been proparly enabeled, seen on pull -> status
Title: Re: Re: SMTP - Notification has been enqueued
Post by: Alex Kirhenshtein on July 31, 2025, 02:37:58 PM
what you mean by "getting a graph on some of the interfaces"?

can you query .1.3.6.1.2.1.2 on the routers where interfaces are not reported?
Title: Re: Re: SMTP - Notification has been enqueued
Post by: nichky on July 31, 2025, 02:49:27 PM
one more, i got it  on top of my head 

Any interfaces added on "last values" the graphic works well (not sure how ive added there).

On any interfaces by clicking  "create data collection items", pretty much for none of them graphic works
Title: Re: Re: SMTP - Notification has been enqueued
Post by: nichky on July 31, 2025, 02:58:59 PM
Quote from: Alex Kirhenshtein on July 31, 2025, 02:37:58 PMwhat you mean by "getting a graph on some of the interfaces"?
can you query .1.3.6.1.2.1.2 on the routers where interfaces are not reported?
please, im very fresh user on netxms.
Can be more specific? 
Title: Re: Re: SMTP - Notification has been enqueued
Post by: Alex Kirhenshtein on July 31, 2025, 03:02:35 PM
.1.3.6.1.2.1.2 is a base OID for IF-MIB.

something like "nxsnmpwalk IP 1.3.6.1.2.1.2.2.1.2" should fetch list of interfaces.
Title: Re: Re: SMTP - Notification has been enqueued
Post by: nichky on July 31, 2025, 03:24:13 PM
where do u want me to add that , on any single router , properties - > SNMP?
Title: Re: Re: SMTP - Notification has been enqueued
Post by: Filipp Sudanov on July 31, 2025, 03:47:19 PM
nxsnmpwalk that Alex mentioned is a command-line tool included with NetXMS. On linux it should be available in PATH, on Windows it's in C:\NetXMS\bin
Title: Re: Re: SMTP - Notification has been enqueued
Post by: nichky on July 31, 2025, 03:55:20 PM
will you be able to type the full command?
Title: Re: Re: SMTP - Notification has been enqueued
Post by: Alex Kirhenshtein on July 31, 2025, 03:57:58 PM

That's the whole command. Replace "IP" with actual IP of the router in question.

C:\NetXMS\bin\nxsnmpwalk IP 1.3.6.1.2.1.2.2.1.2
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 12:52:40 AM
this is what im gettign

C:\NetXMS\bin>nxsnmpwalk IP 1.3.6.1.2.1.2.2.1.2
Unable to create UDP transport: Invalid hostname or IP address

Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 02:50:03 AM
do you have tutorial of how to run it on MikroTik container?


I got it running it doesn't give me access to it.


Title: Re: SNMP communication issues
Post by: Alex Kirhenshtein on August 01, 2025, 08:33:23 AM
Quote from: nichky on August 01, 2025, 12:52:40 AMthis is what im gettign

C:\NetXMS\bin>nxsnmpwalk IP 1.3.6.1.2.1.2.2.1.2
Unable to create UDP transport: Invalid hostname or IP address



Replace "IP" with actual IP of the router in question.
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 08:46:24 AM
Hi Alex, 

sorry my bad, that works , i check the stats of that.

but we have options that we can run netxms on MikroTik container?

ive been folowing: 
https://github.com/alkk/netxms-agent-mikrotik


The conteiner is runnign , but cant log in to it
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 01:09:40 PM
pls, how to fix the the accessing to ssh (https://imgur.com/a/gPuFvFA) from NetXMS?
Title: Re: SNMP communication issues
Post by: Alex Kirhenshtein on August 01, 2025, 02:40:12 PM
Quote from: nichky on August 01, 2025, 08:46:24 AMbut we have options that we can run netxms on MikroTik container?

yes, you can run agent on the mikrotiks. normally, it's enough to collect information via SNMP. Agent is mostly used for running zone proxies (e.g. with network behind NATs). Full instructions are on the GitHub page.
Title: Re: SNMP communication issues
Post by: Alex Kirhenshtein on August 01, 2025, 02:44:47 PM
Quote from: nichky on August 01, 2025, 01:09:40 PMpls, how to fix the the accessing to ssh (https://imgur.com/a/gPuFvFA) from NetXMS?

check that:
1) you saved and applied properties before test
2) you are running latest version of the system.

I've just checked, and custom port works just fine.

Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 02:50:02 PM
ive seem that, but i cant log in to, even though the container is running.

the tutorial is pretty simple, but it doesn't work.
Title: Re: SNMP communication issues
Post by: Alex Kirhenshtein on August 01, 2025, 02:51:15 PM
what do you mean "can't login"? it's an agent, not a server.
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 03:06:27 PM
Thansk Alex

so this is i'm expecting.
Since the container is running i should be able to log in to netxms (similar to how i'm doing on windows) via web using ip:8080 , ip:4700 or ip:4701
Title: Re: SNMP communication issues
Post by: Alex Kirhenshtein on August 01, 2025, 03:10:29 PM
Quote from: nichky on August 01, 2025, 03:06:27 PMThansk Alex

so this is i'm expecting.
Since the container is running i should be able to log in to netxms (similar to how i'm doing on windows) via web using ip:8080 , ip:4700 or ip:4701
You are mixing up monitoring server, web, and agent.

Monitoring server (netxmsd, "NetXMS Core" service) listens on port 4701, you connect there using desktop client.
Server do all the scheduling, data collection, and processing. Collection can be done via multiple procorols - SNMP, native agent, SSH, etc.

WebUI - expose :8080/:8443, you connect there with the browser. WebUI transparently connects to the monitoring server.

Agents listen on port 4700 (they can go in reverse as well). Server connects to the agents to collect data / perform tasks.



So no, you do not connect to the agent with the browser. You could register it in the monitoring instead, and configure metrics you want to monitor.
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 03:16:51 PM

pretty sure i did try with

netxms-webui-5.2.4-x64.exe
(https://netxms.com/download/releases/5.2/netxms-webui-5.2.4-x64.exe)


happy to do again...
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 03:26:06 PM
yes the one that i'm using is
/netxms-agent-mikrotik , so i need to install WebUI and acces :expose :8080/:8443.

are we on the same page?
Title: Re: SNMP communication issues
Post by: Alex Kirhenshtein on August 01, 2025, 03:27:27 PM
Quote from: nichky on August 01, 2025, 03:26:06 PMyes the one that i'm using is
/netxms-agent-mikrotik , so i need to install WebUI and acces :expose :8080/:8443.

are we on the same page?
you need to install server + web somewhere.
then you can add mikrotok to the system and collect data over SNMP.
agnet on the mikrotik is required only if you want to install it on the customer's firewall, for example (so you can get access to the NATed network)
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 03:34:09 PM
Alex - let we make it easy

from here:

https://netxms.com/downloads

what i need to install,  in order to be able to login by using the container?
Title: Re: SNMP communication issues
Post by: Alex Kirhenshtein on August 01, 2025, 03:35:38 PM
Quote from: nichky on August 01, 2025, 03:34:09 PMAlex - let we make it easy

from here:

https://netxms.com/downloads

what i need to install,  in order to be able to login by using the container?


YOU CAN'T LOGIN INTO CONTAINER.

Container does not contain neither server components, nor web.

Please read this: https://netxms.org/documentation/adminguide/concepts.html
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 03:43:34 PM
Thanks Alex for your time.
Appreciated
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 03:56:26 PM
Quote from: Alex Kirhenshtein on August 01, 2025, 02:44:47 PM
Quote from: nichky on August 01, 2025, 01:09:40 PMpls, how to fix the the accessing to ssh (https://imgur.com/a/gPuFvFA) from NetXMS?
check that:
1) you saved and applied properties before test
2) you are running latest version of the system.
I've just checked, and custom port works just fine.


1- first saved - disable/ednable core -> then tools -> connect -> ssh
2 - 5.2.4-x64.exe
Title: Re: SNMP communication issues
Post by: nichky on August 01, 2025, 03:59:16 PM
even if i do poll -> configuration i'm getting
"Cannot connect to SSH"
user and the pass are correct
Title: Re: SNMP communication issues
Post by: nichky on August 03, 2025, 10:34:04 AM
Alex - can you please advise on above