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

Alerting on printer consumables

$
0
0

I'm trying to setup an email alert based on the universal PRINTER-MIB where an email alert is sent to our helpdesk if any consumable should dip below 10%. Problem is, I can't get it to return the name of the consumable AND its current numerical value.

 

I've created a bunch of custom UnDPs:

 

SuppliesMaxCapacity

OID: 1.3.6.1.2.1.43.11.1.1.8

Format: None

Get Type: GET TABLE

 

SuppliesDescription

OID: 1.3.6.1.2.1.43.11.1.1.6

Format: Text

Get Type: GET TABLE

 

SuppliesLevel

OID: 1.3.6.1.2.1.43.11.1.1.9

Format: Enumeration

Get Type: GET TABLE

 

SuppliesType

OID: 1.3.6.1.2.1.43.11.1.1.5

Format: Enumeration

Get Type: GET TABLE

 

I've then set up a "SuppliesRemaining" Transform to transform numerical values into percentages:

Truncate( {SuppliesLevel}/{SuppliesMaxCapacity} * 100,2)

 

Furthermore, I used the "SuppliesRemaining" Transform for the AAM rule:

 

Trigger alert when all of the following apply

     Poller Name is equal to SuppliesRemaining

     Numeric Status is less than or equal to 10

     Numeric Status is not equal to -3 (to filter out consumables with this status)

 

Trigger Actions:

Send email

 

Message:

Subject: Printer alert: ${NodeName} - ${CustomPollers.UniqueName} is ${CustomPollerStatus.Status}

 

One of the consumables in ${NodeName} needs to be changed.

Site: ${Node.City}

Department: ${Node.Department}

Floor: ${Node.Floor}

Poller Name: ${CustomPollers.UniqueName}

Supplies Status: https://solarwinds/Orion/DetachResource.aspx?ResourceID=3732&NetObject=N:${NodeID}

 

 

View more details at ${CustomNodePollerDetailsURL}

 

This produces the following output:

 

Subject: Printer alert: SalesPrinter - SuppliesRemaining is 1.52

 

One of the consumables in SalesPrinter needs to be changed.
Site: Mysite
Department: Stores
Floor: Ground, Warehouse
Poller Name: SuppliesRemaining
Supplies Status: https://solarwinds/Orion/DetachResource.aspx?ResourceID=3732&NetObject=N:1612

View more details at https://solarwinds/Orion/View.aspx?NetObject=N:1612

 

It seems that firing this OID at different printers will either return the name of the consumable or its numerical value - not both. I then thought about finding a way of pulling the below UnDP table into the email alert:

 

supplies.png

..but couldn't figure out how to do it.

 

Finally, I setup an SNMP SAM poller using the above OID, but this was next to useless, as it would only return stats for one item. A GET TABLE option in the SAM poller might have done the trick, but alas this was not an option.

 

Any ideas how I can get this set up?


Viewing all articles
Browse latest Browse all 21870

Trending Articles



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