adding multiple switches in switch.cfg

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bsudhakar81
Posts: 7
Joined: Tue May 28, 2019 10:24 am

adding multiple switches in switch.cfg

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

Re: adding multiple switches in switch.cfg

Post 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.
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!
bsudhakar81
Posts: 7
Joined: Tue May 28, 2019 10:24 am

Re: adding multiple switches in switch.cfg

Post by bsudhakar81 »

am able to do it by adding entries in switch.cfg.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: adding multiple switches in switch.cfg

Post 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,
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