| | | Forum Member
       
Group: Forum Members Last Login: 2 days ago @ 12:18:58 PM Posts: 28, Visits: 219 |
| | Hi all, i'm trying to reference some % variables in an active script action, but I get the following error: Error:0 'Unterminated string constant' strTrapMajor = The code I'm trying to use is: strTrapMajor = "%PassiveMonitor.Payload.TrapMajor" Anyone had a similar issue? How can I get this variable into the script? Thanks. |
| | | | Forum Member
       
Group: Forum Members Last Login: 2 days ago @ 12:18:58 PM Posts: 28, Visits: 219 |
| | Turns out alot of the % variables don't seem to work in the script. I've got around this by using the %passivemonitor.loggedtext to get me the info I need. Custom attributes don't seem to work either , ie %device.attribute.attribname. |
| | | | 
Time Traveler
       
Group: WhatsUp Gold Expert Last Login: Today @ 1:49:13 PM Posts: 1,513, Visits: 5,018 |
| Yes, that's a known issue, basically wug will not "sanitise" the strings so if they contain something that breaks the script syntax the whole script fails...
Reading, writing and arithmetic - If you need to choose, please take option 1. |
| |
|
|