Custom Alert - Rogue Devices last 7 days

Hello Community - 

Looking for direction or ideas on how to create an alert on Solarwinds NPM that's customized for a specific result:

Currently there's an out-of-the-box alert - "Alert when a rogue mac address appears on network" that detects and alerts on MAC addresses discovered on our Cisco Cat and Nexus switches. However the Nexus ARP table does not refresh often causing stale\bad data to be flagged. The retention period on the Nexus ARP table seems to be at least a month. After discussing with Cisco's tech support, the retention period is not configurable. 

Possible solution is to adjust how far back the alerts should work with to determine an alert. The trigger conditions unfortunately do not seem to present any variables to use to configure the alert to only recognize MACs whose last update on the same interface is 7 days or less. This will reduce the amount of false positives. After reaching out to Solarwinds support, I was directed by them to Thwack community for possible creating a custom sql that can produce the desired results.

Any assistance would be much appreciated. 

Thanks in advance

  • Something like this would probably work for you:

    It's custom SWQL and not custom SQL, but should do the same thing.  The GETUTCDATE() returns today and the -7 goes back 1 week.

    Is that what you were looking for?

    <AlertDefinition xmlns:i="" xmlns="">
    	<AlertMessage>Alert me when a rogue MAC address appears on network</AlertMessage>
    	<CreatedBy i:nil="true"/>
    	<CustomProperties xmlns:d2p1="">
    			<d2p1:Value xmlns:d4p1="" i:type="d4p1:DBNull"/>
    	<Description>User Device Tracker alert when rogue MAC address is detected.</Description>
    	<ExecutionTimePeriods xmlns:d2p1=""/>
    	<Name>Rogue MAC (within last 7 days)</Name>
    	<NotificationSettings xmlns:d2p1="">
    		<d2p1:NetObjectType>Rogue MACAddress</d2p1:NetObjectType>
    		<d2p1:_properties xmlns:d3p1=""/>
    	<ObjectType>Rogue MACAddress</ObjectType>
    				<AndThenTimeInterval i:nil="true"/>
    				<Condition xmlns:d5p1="" i:nil="true"/>
    				<NetObjectsMinCountThreshold i:nil="true"/>
    				<ObjectType i:nil="true"/>
    				<SustainTime i:nil="true"/>
    				<Type i:nil="true"/>
    	<ResetActions xmlns:d2p1=""/>
    				<AndThenTimeInterval i:nil="true"/>
    				<Condition xmlns:d5p1="" xmlns:d5p2="" i:type="d5p2:AlertConditionCustomSwql">
    					<d5p2:Command>WHERE Rogue = 'True'
    AND LastUpdate &gt;= GETUTCDATE() - 7</d5p2:Command>
    				<NetObjectsMinCountThreshold i:nil="true"/>
    				<ObjectType>Rogue MACAddress</ObjectType>
    				<SustainTime i:nil="true"/>
    				<Type xmlns:d5p1="" i:type="d5p1:ConditionTypeCustomSwql"/>
    	<TriggerActions xmlns:d2p1=""/>

  • That looks like the query I'm looking for - I'm going to give it a shot and see if this will give me the results I'm looking for. I will keep this post updated with any progress. Appreciate the response on this - thank you!

  • Just wanted to update that so far this query seems to work for what we need. It's only been a week but so far so good. 

    Thanks again

Reply Children
No Data