Printer queue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Printer queue

Post 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 ?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Printer queue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Re: Printer queue

Post by Mani.Murugesan »

Hello benjaminsmith,

PFB screenshot check command with arguments
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Printer queue

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Re: Printer queue

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Printer queue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Mani.Murugesan
Posts: 67
Joined: Fri May 12, 2017 1:37 am

Re: Printer queue

Post by Mani.Murugesan »

Hello benjaminsmith,

Thanks for your support.

Issue has been resolved :D .
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Printer queue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked