Quantcast
Channel: THWACK: All Content - Network Performance Monitor
Viewing all articles
Browse latest Browse all 21870

sql select in alert message body

$
0
0

Hi

 

I made custom pooler for showing CDP neighbors for CISCO switches - MIB 1.3.6.1.4.1.9.9.23.1.2.1.1.6

It returns table like

Status                                   RowID

p-kazakova-acc-sw05    10123.17

p-kazakova-tunrtr01    10124.4

p-kazakova-acc-sw01    10125.12

p-kazakova-acc-sw06    10126.14

p-kazakova-acc-sw04    10127.16

 

name - first column and port second column

I decided to make alert when this table changes.

I made alert - this is not difficult, but i want to add this table in the alert message - and this is impossible (as i see)

 

Easy select like

${SQL:Select Status, RowID FROM CustomPollerStatus WHERE CustomPollerAssignmentID = '${CustomPollerAssignmentID}'  }

returns only one variable - for this query it return only p-kazakova-acc-sw05.

if i change query ${SQL:Select RowID, Select FROM CustomPollerStatus WHERE CustomPollerAssignmentID = '${CustomPollerAssignmentID}'  } - it returns 10123.17

 

As i suppose this is platform limitation and i can do nothing with it?

I made ten queryes, which showing first, then second, then third rows, but switches has different number of neighbors and if query fails - alert include whole sql query in the message

 

Has anyone problem like this? or maybe there is another way to send message with text when custom pooler has changed?


Viewing all articles
Browse latest Browse all 21870

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>