Newbie question - check multiple printers or pc's


#1

Hi to all.

I’m quit new to Nagios and installed it on an old machine running ubuntu.

I managed to check my windows machine and one printer.
I now want to check several printers and pc’s.

How can i do this?
Now i have this file printer.cfg. Do i have to make new hosts for each printer or do i need to create a new file (printer2.cfg, printer3.cfg)?

Thanks in advance


#2

Hello,

The way I did it was create a file called printers.cfg and added all the printers in as hosts along with the service checks. Then reference this file in your nagios.cfg file:

cfg_file=/etc/nagios/etc/printers.cfg

and then do the pre flight checks and correct anything that might be wrong. Host groups etc.

/etc/nagios/bin/nagios -v /etc/nagios/etc/nagios.cfg

Hope this helps.

Sam