LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Nagios3 package incomplete in Lenny? (https://www.linuxquestions.org/questions/debian-26/nagios3-package-incomplete-in-lenny-639887/)

Akhran 05-04-2008 06:18 PM

Nagios3 package incomplete in Lenny?
 
In the sample config file for monitoring a switch - switch.cfg, it refers to a template called 'generic-switch'. However, the file 'generic-switch' is not found anywhere in my installation.

Do I need to manually download the file separately?

Thanks.
PS. Using Debian lenny.

farslayer 05-05-2008 03:22 PM

It looks like that configuration file example should have been included with the install of nagios3..

personally I would just download the tar.gz file extract it and grab the config files you need..


you did install nagios3-common also, right ?

Quote:

http://packages.debian.org/lenny/all...ommon/filelist

/etc/default/nagios3
/etc/init.d/nagios3
/etc/nagios3/cgi.cfg
/etc/nagios3/commands.cfg
/etc/nagios3/conf.d/contacts_nagios2.cfg
/etc/nagios3/conf.d/extinfo_nagios2.cfg
/etc/nagios3/conf.d/generic-host_nagios2.cfg
/etc/nagios3/conf.d/generic-service_nagios2.cfg
/etc/nagios3/conf.d/hostgroups_nagios2.cfg
/etc/nagios3/conf.d/localhost_nagios2.cfg
/etc/nagios3/conf.d/services_nagios2.cfg
/etc/nagios3/conf.d/timeperiods_nagios2.cfg
/etc/nagios3/nagios.cfg
/etc/nagios3/resource.cfg
/usr/share/doc/nagios3-common/README
/usr/share/doc/nagios3-common/README.Debian
/usr/share/doc/nagios3-common/TODO.Debian
/usr/share/doc/nagios3-common/UPGRADING
/usr/share/doc/nagios3-common/changelog.Debian.gz
/usr/share/doc/nagios3-common/copyright
/usr/share/doc/nagios3-common/examples/README
/usr/share/doc/nagios3-common/examples/apache2.conf
/usr/share/doc/nagios3-common/examples/apache2.nagios1.conf
/usr/share/doc/nagios3-common/examples/cgi.cfg.gz
/usr/share/doc/nagios3-common/examples/commands.cfg.gz
/usr/share/doc/nagios3-common/examples/localhost.cfg.gz
/usr/share/doc/nagios3-common/examples/mrtg.cfg.gz
/usr/share/doc/nagios3-common/examples/nagios.cfg.gz
/usr/share/doc/nagios3-common/examples/resource.cfg
/usr/share/doc/nagios3-common/examples/template-object/README
/usr/share/doc/nagios3-common/examples/template-object/commands.cfg.gz
/usr/share/doc/nagios3-common/examples/template-object/contacts.cfg
/usr/share/doc/nagios3-common/examples/template-object/localhost.cfg.gz
/usr/share/doc/nagios3-common/examples/template-object/printer.cfg
/usr/share/doc/nagios3-common/examples/template-object/switch.cfg
/usr/share/doc/nagios3-common/examples/template-object/templates.cfg.gz
/usr/share/doc/nagios3-common/examples/template-object/timeperiods.cfg
/usr/share/doc/nagios3-common/examples/template-object/windows.cfg
/usr/share/doc/nagios3-common/html
/usr/share/lintian/overrides/nagios3-common
/usr/share/nagios3/debian/extcommands.cfg
/usr/share/nagios3/debian/gateway.cfg
/usr/share/nagios3/debian/httpd.webapps-common
/usr/share/nagios3/plugins/eventhandlers/disable_active_service_checks
/usr/share/nagios3/plugins/eventhandlers/disable_notifications
/usr/share/nagios3/plugins/eventhandlers/distributed-monitoring/obsessive_svc_handler
/usr/share/nagios3/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
/usr/share/nagios3/plugins/eventhandlers/enable_active_service_checks
/usr/share/nagios3/plugins/eventhandlers/enable_notifications
/usr/share/nagios3/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event
/usr/share/nagios3/plugins/eventhandlers/redundancy-scenario1/handle-master-proc-event
/usr/share/nagios3/plugins/eventhandlers/submit_check_result


dangby 07-29-2008 11:08 AM

Templates still missing in latest nagios (3.0.3)
 
This problem still happens with the most recent 3.0.3 nagios install from tar.

There is no template defined anywhere (in templates.cfg or switches.cfg or anywhere else) for generic-switch.

Similarly, there are other templates missing. The only defined templates are generic-host and generic-service.

Has anyone found where the missing templates went?

dangby 07-29-2008 02:25 PM

I found the issue. If you already have a version installed, and then install a new release on top of what you've got, the nagios install will not replace .cfg files that already exist. That's a good thing, or all your customizations would be lost. However, it is a bad thing if some things are missing in the .cfg files to begin with, like templates for generic-switch...

Anyway, if you look at the differences between what is in the .tar.gz file you can download from nagios.org and what is on your already installed version of nagios, you'll find the missing templates in templates.cfg

here2serve 02-11-2010 03:38 PM

Nagios generic-switch
 
Look in templates.cfg a generic template for switches is there.


All times are GMT -5. The time now is 01:58 PM.