Some issues with netxms

Started by possamai, January 21, 2008, 06:22:39 PM

Previous topic - Next topic

possamai

Hi, I've been trying to figure out netxms for about a month now and I must say, it's an awesome app..
But I've run into some issues and  I'd like to know if these are bugs or just problems on my side...

I'm running the server on FreeBSD 6.3 and the client on windows. There's also an agent running on the FreeBSD machine..

One of the issues is that I cannot seem to use the Icmp.Ping[] data collection. It just doesn't work. the Icmp.Ping gives 1000 no matter what I do and the other Icmp commands just don't give any output.

Another one is with the SNMP Walk. SNMP Walk only works from within the network. When I'm on a remote location, I login to my server with ssh, and I forward port 4701 to my local computer. When I login that way I cannot browse the SNMP tree. I don't understand why.. SNMP requests are sent from my server, and then forwarded to the client, right?


Then there's a client issue.. I can't save the maps.. Maybe that's normal but I couldn't find it in the buglist..

Can somebody give me some comments on these things?
The forum is quite dead, it would be nice to bring a little life back here...

Victor Kirhenshtein

Hello!

Quote from: possamai on January 21, 2008, 06:22:39 PM
One of the issues is that I cannot seem to use the Icmp.Ping[] data collection. It just doesn't work. the Icmp.Ping gives 1000 no matter what I do and the other Icmp commands just don't give any output.

Are you running your agent under root account? For icmp pings agent uses raw sockets (it's the only way to send ICMP packet from machine), and process should have root privileges to be able to open raw socket. And for other Icmp.* parameters to work, you should configure ping subagent first. You can find some information about ping subagent configuration here:
https://www.netxms.org/documentation/ping_subagent.shtml


Quote from: possamai on January 21, 2008, 06:22:39 PM
Another one is with the SNMP Walk. SNMP Walk only works from within the network. When I'm on a remote location, I login to my server with ssh, and I forward port 4701 to my local computer. When I login that way I cannot browse the SNMP tree. I don't understand why.. SNMP requests are sent from my server, and then forwarded to the client, right?

Yes, you're right - SNMP requests always sent from server. What error SNMP walk gives you?


Quote from: possamai on January 21, 2008, 06:22:39 PM
Then there's a client issue.. I can't save the maps.. Maybe that's normal but I couldn't find it in the buglist..

First of all, maps is not in good state and will be entirely rewritten during this year. Currently you can have only one map, and by default objects on it placed automatically. You can turn off automatic layout from "Map" menu and then use Map -> Save to save your layout.

Best regards,
Victor

possamai

Quote from: Victor Kirhenshtein on January 21, 2008, 07:18:23 PM
Hello!

Quote from: possamai on January 21, 2008, 06:22:39 PM
One of the issues is that I cannot seem to use the Icmp.Ping[] data collection. It just doesn't work. the Icmp.Ping gives 1000 no matter what I do and the other Icmp commands just don't give any output.

Are you running your agent under root account? For icmp pings agent uses raw sockets (it's the only way to send ICMP packet from machine), and process should have root privileges to be able to open raw socket. And for other Icmp.* parameters to work, you should configure ping subagent first. You can find some information about ping subagent configuration here:
https://www.netxms.org/documentation/ping_subagent.shtml
Hmm.. good one..
The agent is running as user netxms.
I allready found that documentation, but nothing worked.. The root-user part must be the problem...

Quote from: Victor Kirhenshtein on January 21, 2008, 07:18:23 PM
Quote from: possamai on January 21, 2008, 06:22:39 PM
Another one is with the SNMP Walk. SNMP Walk only works from within the network. When I'm on a remote location, I login to my server with ssh, and I forward port 4701 to my local computer. When I login that way I cannot browse the SNMP tree. I don't understand why.. SNMP requests are sent from my server, and then forwarded to the client, right?
Yes, you're right - SNMP requests always sent from server. What error SNMP walk gives you?
None.. it just stay's empty.
It's when trying to add a new Data Collection item. I choose SNMP and the tree just stays empty.
If I click 'walk' the dialog stays empty.. I tryed setting it as an snmp proxy but that didn't help..
All SNMP stuff is just working fine.. When manually adding the OID then the netxms server nicely retrieves the data as it should..
It's just when browsing the tree that it doesn't do anything...
But when I'm at home, in the same network as the server, then all goes well.

Quote from: Victor Kirhenshtein on January 21, 2008, 07:18:23 PM
Quote from: possamai on January 21, 2008, 06:22:39 PM
Then there's a client issue.. I can't save the maps.. Maybe that's normal but I couldn't find it in the buglist..

First of all, maps is not in good state and will be entirely rewritten during this year. Currently you can have only one map, and by default objects on it placed automatically. You can turn off automatic layout from "Map" menu and then use Map -> Save to save your layout.

Best regards,
Victor
Ah.. setting it to manual seriously helped :P

Victor Kirhenshtein

Quote from: possamai on January 22, 2008, 02:36:36 PM
None.. it just stay's empty.
It's when trying to add a new Data Collection item. I choose SNMP and the tree just stays empty.
If I click 'walk' the dialog stays empty.. I tryed setting it as an snmp proxy but that didn't help..
All SNMP stuff is just working fine.. When manually adding the OID then the netxms server nicely retrieves the data as it should..
It's just when browsing the tree that it doesn't do anything...
But when I'm at home, in the same network as the server, then all goes well.

SNMP tree shown by console is built from the file called netxms.mib. This file downloaded from server and cached locally, and updated if it's timestamp on server is newer or local copy is missing. Maybe due to some problems (incorrect time on workstation for example) you have old or broken copy of netxms.mib, but with newer timestamp than server's copy. Try to remove this file - it's located in \Documents and Settings\user name\Application Data\NetXMS Console\MIBCache - and relogin to server.

Best regards,
Victor

possamai

hm, forgot to mention, but it's the same machine. it's a laptop. Works fine at home, but doesn't work at the office..
But, at the office I connect to localhost (ssh portforwarding to home)..

I tryed to delete the file and login again (remote). But that didn't work.
The first time it wants to cach mibs at crashes after a few minutesw.. second time I login in goes on, but apparently without the mibs.

SO.. deleting is not really an option..
How are the mibs sent to the console? just the normal port 4701? Or is the 161 port? If it's 161 it's pretty obvious why it crashes.......

Victor Kirhenshtein

Very strange... I use my laptop from different places without any problem. I'll try to reproduce this problem myself. Btw, mibs downloaded through the same connection from client to server port 4701.

Best regards,
Victor

possamai

Problem solved... well, not exactly solved, but the issue was not a netxms bug in any way..
I did a complete reinstall of the system.. a fresh windows XP works like a charm. No SNMP hickups of any kind.