how can I alert on number of completed or not-completed print jobs in Linux (cups)

how can I alert on number of completed or no-completed print jobs in Linux (cups)

Basically If printer jobs exceed 300 - i need it to alert.

I can see this if I logiin manually and run:

lpstat -W not-completed -o |wc -l

lpstat -W completed -o |wc -l

each will output the number I am looking for

how can solarwinds monitor this in Linux?

thanks for your help

Jon