cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 9

%monitoraddr% adds the description as well

Is there a way to return just the monitor address instead of the extra information it adds

 Example:

%monitoraddr% returns the following

servername.whatever:161 (D:\ Label:Data  Serial Number 780c5592)

 

All I want to return is

servername.whatever:161
 


Also, is it possible to use this token in alerts?

0 Kudos
2 Replies
Level 11

If you examine a monitors internal xml configuration through the Popup XML feature you can target any items under the /nv branch. 


You can use %monitor[addr]% to get the address without the description. If you wanted to add the port you could do this %monitor[addr]%:%monitor[port]%.


0 Kudos

 Thanks for the help Matthew.

0 Kudos