Print Queue Checks Fails
Posted: Wed Mar 01, 2017 9:27 pm
Trying out your Print Queue Tests
I have to Printers defined on my Windows 2012 R2 server
Printers CananMF6 and HP 4550N
root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(CanonMF6)\Jobs' Maxwarn=5 Maxcrit=15 Showall
ERROR: Failed to get counter value: Maxwarn|'\Print Queue(CanonMF6)\Jobs'=0
root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(HP 4550N)\Jobs' Maxwarn=5 Maxcrit=15 Showall
ERROR: Failed to get counter value: Maxwarn|'\Print Queue(HP 4550N)\Jobs'=0
followed this
http://sites.box293.com/nagios/guides/c ... s/printers
Thanks
Tom
Update
If I removed the "Maxwarn=5 Maxcrit=15 Showall" from the command line it works
root@tgcs017:~# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(CanonMF6)\Jobs'
OK all counters within bounds.|'\Print Queue(CanonMF6)\Jobs'=0
root@tgcs017:~# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(HP 4550N)\Jobs'
OK all counters within bounds.|'\Print Queue(HP 4550N)\Jobs'=0
Thoughts
I have to Printers defined on my Windows 2012 R2 server
Printers CananMF6 and HP 4550N
root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(CanonMF6)\Jobs' Maxwarn=5 Maxcrit=15 Showall
ERROR: Failed to get counter value: Maxwarn|'\Print Queue(CanonMF6)\Jobs'=0
root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(HP 4550N)\Jobs' Maxwarn=5 Maxcrit=15 Showall
ERROR: Failed to get counter value: Maxwarn|'\Print Queue(HP 4550N)\Jobs'=0
followed this
http://sites.box293.com/nagios/guides/c ... s/printers
Thanks
Tom
Update
If I removed the "Maxwarn=5 Maxcrit=15 Showall" from the command line it works
root@tgcs017:~# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(CanonMF6)\Jobs'
OK all counters within bounds.|'\Print Queue(CanonMF6)\Jobs'=0
root@tgcs017:~# /usr/lib/nagios/plugins/check_nrpe -H TGCS013 -t 30 -c CheckCounter -a 'Counter=\Print Queue(HP 4550N)\Jobs'
OK all counters within bounds.|'\Print Queue(HP 4550N)\Jobs'=0
Thoughts