Page 1 of 1

adding multiple switches in switch.cfg

Posted: Wed May 29, 2019 4:14 am
by bsudhakar81
can anyone help me with example format for adding multiple switches in switch.cfg file. By default it is monitoring only single switch.

Re: adding multiple switches in switch.cfg

Posted: Wed May 29, 2019 3:06 pm
by benjaminsmith
Hi @bsudhakar81,

Below is a link to the Nagios Core documentation for monitoring routers and switches as well as the documentation for creating Nagios Core objects.

After creating the additional host/service definitions in switch.cfg, you'll need to re-start the nagios process.

Nagios Core: Monitoring Routers and Switches
Nagios Core: Object Definitions

Hopefully, that will help get you started, and let me know if you have any specific questions.

Re: adding multiple switches in switch.cfg

Posted: Wed May 29, 2019 11:38 pm
by bsudhakar81
am able to do it by adding entries in switch.cfg.

Re: adding multiple switches in switch.cfg

Posted: Thu May 30, 2019 9:07 am
by benjaminsmith
am able to do it by adding entries in switch.cfg.
Yes. That will be ok. Remember to restart nagios after making any changes,