hi Token, thank you so much for your reply! The trick is very useful!
pedrong
Posts
-
How to access delay timer key in NXSL? -
How to access delay timer key in NXSL?Hi All, I am trying to create a filtering script to check if a delay timer key has expired or not. Is there any NXSL Class serves such purpose?
Here is what I am trying to achieve :-
- Delay the email alert by 180 seconds if any node/interface is down [Done]
- When the node/interface is up and the delay timer is still within 180 seconds, no email alert. Otherwise, an email alert on the node/interface is UP.
Any help is greatly appreciated!
Pedro
-
Web Page Load TimeThanks for you information! Let me check!!
-
Web Page Load TimeUp!
-
Web Page Load TimeHi All,
We have some heavy web page so we would like to monitor the load time of these pages from NetXMS server. Is there any plugin can do it?
Many thanks!
Pedro
-
Too Many Communication Sessions Open - Unable to accept new connectionHi All,
I found that a few Windows 2012 R2 server has sometimes this warning message "Too Many Communication Sessions Open - Unable to accept new connection". When it happens, I could not login or remote desktop to the server any more. I need to do a hard reset of the server.
My NetXMS version is
Server 1.2.14
Agent: 1.2.17Anyone has similar problem? How to fix it?
Any help is greatly appreciated!
Pedro
-
Traceroutehi All, after digging on the forum, I finally figured out how to do that. Basically, I use ExternalParameter to implement the traceroute checking function. Here is what I did :-
-
Create a powershell script in a host, check_3hoptracert.ps1
-
In the nxagentd.conf, add this line
ExternalParameter = Check_3Hop(*): "c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "D:\netxms-agent\bin\check_3hoptracert.ps1" $1 $2 $3 $4
- In NetXMS console, add a DCI per the screen attached.
Please make sure the AgentCommandTimeout specified in server configuration and exectimeout specified in nxagentd.conf are large enough to execute the script.
I hope this can help someone in the future. Thanks!
check_3hoptracert.ps1
===============
# This script is to check whether the first 3 hops of a traceroute is the same as the specifed ip addresses
# Return "OK" if same; otherwise "Changed"
#
# Usage : check_3hoptracert hostname 1st-hop 2nd-hop 3rd-hop
#
# Written by Pedro on 29/5/2014# Get arguments
$hostname = $args[0]
$ip1 = $args[1]
$ip2 = $args[2]
$ip3 = $args[3]# Run traceroute
tracert -d $hostname > c:\temp\tracert.txt# Get 1st hop
$hop1 = get-content c:\temp\tracert.txt | select-object -skip 3 | select-object -First 1 | % { $_.substring(32,9); }
#write-host $hop1 " " $ip1
if ( $hop1 -ne $ip1 ) { write-host "Changed"; EXIT 0; }# Get 2nd hop
$hop2 = get-content c:\temp\tracert.txt | select-object -skip 4 | select-object -First 1 | % { $_.substring(32,9); }
#write-host $hop2
if ( $hop2 -ne $ip2 ) { write-host "Changed"; EXIT 0; }# Get 3rd hop
$hop3 = get-content c:\temp\tracert.txt | select-object -skip 5 | select-object -First 1 | % { $_.substring(32,9); }
#write-host $hop3
if ( $hop3 -ne $ip3 ) { write-host "Changed"; EXIT 0; }# The traceroute result is the same as specified
write-host "OK"
del c:\temp\tracert.txt
EXIT 1

-
-
Collecting Windows Event Logs, missing event Source and Event IDVictor, thank you very much!
-
Collecting Windows Event Logs, missing event Source and Event IDhi hksulja, have you found an answer to your question? If so, could you share with us? Thanks!!
-
Traceroutehi all,
I just wonder if there is any monitor on the trace route result! What I want to do is if the predefined traceroute result is different from the real time traceroute result, an alert should be sent out.
Thanks!
Pedro
-
Network Service AlertHi All,
In DCI, we can set the no. of poll before setting the threshold alarm. Is there any similar parameter we can set for Network Service?
Thanks!!
Pedro -
Action Configuration : Multiple Email Addresshi Victor, where I can find the server log? Thanks!
-
ICMP PINGHi Victor, thanks for your reply! I use 1.2.5. Will update to 1.2.5
Thanks!
-
Action Configuration : Multiple Email AddressHi SKYnv, I tried both "," & ";". Both doesn't work. Any idea? Thanks!
-
Action Configuration : Multiple Email AddressHi All,
In the Action Configuration, is it possible to enter multiple email address in the recipient's address field?
Thanks!
Pedro
-
ICMP PINGhi Victor, I found that if I use ip address, it works but doesn't work for domain name. I can do both ip address and domain ping in DOS prompt of the server. Is it normal? thanks!
-
ICMP PINGHi All,
I configured a node to do ping to another server by using icmp.ping("www.xyz.com") or icmp.ping(www.xyz.com). The value i got every time is 10000.
How to interpret the value? Anything wrong?
Thanks!
Pedro
-
Temporarily Disable Monitoring of certains nodesHi Victor, thanks for your reply!
The problem of this "unmanage" and "manage" approach doesn't work well for Switches because we unmanage those ports connecting to end user's computers to avoid generate alarms. When we use this approach "unmanage" and "manage", all the "unmanage" port will be reset and we need to set it again.
Any other approaches we can disable monitoring temporarily? Thanks!
-
Temporarily Disable Monitoring of certains nodesHi, we sometimes have maintenance of certain nodes. Just wonder if there is a feature that can temporarily disable monitoring of nodes so that we don't get alert message?
Many thanks!
Pedro
-
Network Servicehi Victor, after rebooting the server a few times, it seems working now but i didn't change anything. Thanks!