Its been a while... And sorry for the long post as my first back....,
I'm currently managing the infrastructure for an acute NHS Hospital. I've recently done the infrastructure side for the implementation of an Electronic Patient Record system. I HAD a monitoring solution for the infrastructure (OPsManger from ManageEngine) but have been asked to move off of this as it is proving too expensive (also it's not as easy to work with as you'd hope). Primarily I'm looking to monitor both SNMP directly to (mainly Zebra) printers (and some other medical devices) AND the Print Servers themselves.
So I looked at CheckMK (one of our local NHS trusts have been using this for years.. I say using... they've had it in and are using some basic checks, nothing interesting). It has a Win_printers plugin which reports jobs in the queue of the printers, and error state. The plugin on agent side uses PowerShell.
This plugin was hanging - due to the
Code: Select all
Get-WmiObject win32_printer
So I rewrote it and removed the error check - using this command in PowerShell to get all the data I want:
Code: Select all
Get-CIMInstance Win32_PerfFormattedData_Spooler_PrintQueue | Select Name, Jobs, JobErrors, JobsSpooling, MaxJobsSpooling, TotalJobsPrinted, TotalPagesPrinted | Sort Name | format-table
Code: Select all
Name Jobs JobErrors JobsSpooling MaxJobsSpooling TotalJobsPrinted TotalPagesPrinted
---- ---- --------- ------------ --------------- ---------------- -----------------
_Total 1 1 0 0 1 0
AORS16193Q610 0 0 0 0 0 0
But this doesn't work (yet) so I fudged it and removed all but the Jobs Column adding a couple of fake columns in so the server side would continue to work (trying to get this rewritten ATM).
So all's good... except...
This is simple numeric data being generated, and changes over time.. So I want to graph this. If it goes above x for n cycles I want to be alerted (yes I can do this in CheckMK) but NO I can't graph it... I want to see what normal is, and to see which are the most busy queues. I want to see when things started to change..
So I tried Grafana ... but no that doesn't, for some reason, access the counters (I can only use existing checkmk graphs, and rejig them)... Then I tried Zabbix, and ran into the a similar issue... SO ... I'm circling back to Cacti - I'm sure if I can get the data into Cacti it can be graphed.
So... Anybody up for the challenge of getting this working? Is it possible/easy? Is there a link between CheckMK and Cacti?