NetXMS Support Forum

English Support => General Support => Topic started by: chupit on December 27, 2006, 12:37:56 PM

Title: ICMP Ping Request
Post by: chupit on December 27, 2006, 12:37:56 PM
Dear NetXMS developers,

I'm evaluating NetXMS to see if it will suite my needs, for now I'm very satisfied with this project, but I have one question.

Suppose I have a network device A, suppose I have network/netxms server S. Network device A is quite dump and only thing that it can do is to respond on ICMP PING requests.

I need to add data collection value that will store PING response time from server S to network device A.

I know that I can add SubAgent to NetXMS Agent on server S and create parameter Icmp.Ping() on server and PING response time will be available under server S tree element.

For our support stuff it would be convenient if PING response time would be shown under data collection menu for network device A and if we could calculate status for network device A using this ping response time.

I feel that this should be possible to do in NetXMS, but I don't know how exactly. Is there a way for me to get a desired result?

Thank you!
Title: ICMP Ping Request
Post by: Victor Kirhenshtein on December 27, 2006, 04:04:06 PM
Hello!

You can create "push" parameter for node object A (for example, called PingTime), and then use nxpush utility to update this parameter's value from server. If your management server is running on UNIX, you can add the following command to your crontab to be executed every minute:

nxpush -u admin -P netxms 127.0.0.1 A:PingTime=`nxget 127.0.0.1 Icmp.Ping\(A_address\)`

Of course, you will have to use actual user name and password and replace A with your dumb node name and A_address with it's address. Every execution of this command will request agent for current ping response time, and store it as a new value of node A DCI PingTime.

Hope this helps!

Best regards,
Victor