Page 1 of 1

Printer queue

Posted: Wed Oct 24, 2018 10:07 am
by Mani.Murugesan
Hello Team,

I have tried to monitor printer from my windows server but it's giving output "0" only . I am using below link

https://community.spiceworks.com/topic/ ... _nt-plugin

I am sure this is monitoring all the queues if particular printer queue reached warning or critical threshold it's not showing output in my server.

Could you Please help me to resolve this issue ?

Re: Printer queue

Posted: Wed Oct 24, 2018 4:13 pm
by benjaminsmith
Hi @Mani.Murugesan

Hi Mani,

Can you post the entire check command with arguments, so we can review it?
Thanks.

More on Printer Checks:
https://support.nagios.com/kb/article/p ... s-789.html

Re: Printer queue

Posted: Thu Oct 25, 2018 10:37 am
by Mani.Murugesan
Hello benjaminsmith,

PFB screenshot check command with arguments

Re: Printer queue

Posted: Thu Oct 25, 2018 11:40 am
by lmiltchev
Can you right-click on this Windows performance counter under the "Performance Monitor" window on the Windows machine, go to "Properties", and show us a screenshot of the "Performance Monitor Properties" window. We need to see the exact name of the counter, and compare it to the one that you are using in your command.

Note: If the name is correct, it may just be an escaping issue. Try using single quotes with the exact name, e.g. '\Print Queue(CTL_5)\Jobs'. You can also try using check_nrpe instead of check_nt. BTW, did you restart the NSClient++ service after adding the '\Print Queue(CTL_5)\Jobs' performance counter?

What kind of printer is this? Maybe, you could find a 3rd party plugin on the Nagios Exchange, designed to work with this particular model.

https://exchange.nagios.org/

Re: Printer queue

Posted: Fri Oct 26, 2018 10:06 am
by Mani.Murugesan
Hello Team ,
PFB SS i have tried with below counter name also it's still showing zero . could you please check below check command is right or wrong ?

[root@test ~]# /usr/local/nagios/libexec/check_nt -H <IP> -s "string" -p 12489 -v COUNTER -l "\\\processor Information(Total\% Processor Time\\Jobs", "Printer queue is at: %.f" -w 5 -c 7 -t 60
0

Re: Printer queue

Posted: Fri Oct 26, 2018 11:32 am
by benjaminsmith
Hi @Mani,

Looking over the post, I've noticed a couple things. In the last post, the check command is not for the printer queue, but the for Processor Time. Let's make sure you have the exact string for the printer queue from the windows performance counters (https://support.nagios.com/kb/article.php?id=127). If you are able to post a screen shot as before, that would be very helpful.

Also, it looks like you have an extra back slash in the start of the performance counter string.

Lastly, have you checked to make sure the port is open and not blocked by a firewall on the windows server. (https://assets.nagios.com/downloads/nag ... ios-XI.pdf)

nmap <windows machine address> -p T:12489

Re: Printer queue

Posted: Tue Oct 30, 2018 9:44 am
by Mani.Murugesan
Hello benjaminsmith,

Thanks for your support.

Issue has been resolved :D .

Re: Printer queue

Posted: Tue Oct 30, 2018 12:06 pm
by benjaminsmith
Thanks for your support.

Issue has been resolved :D .
Glad to hear you got if solved. I will go ahead and close this topic.

Thank you for using the Nagios Support Forums.