Hello,
Im new here, I have successfully installed nagios core 4.0.2 on RHEL 6.4. now i want to add hosts/devices ( windows,RHEL, Switches,router) to monitor please guide me.
Below mention some information for ref:
[root@windows-i7qqp6m objects]# cat /usr/local/nagios/etc/nagios.cfg | grep cfg_file=
cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg
#cfg_file=/usr/local/nagios/etc/objects/printer.cfg
[root@windows-i7qqp6m objects]#
Request you to do the needfull. thanks in advance.
How to add hosts in nagios core 4.0.2 redhat 6.4
Re: How to add hosts in nagios core 4.0.2 redhat 6.4
I have moved your thread to the Nagios Core forum as this is a Nagios Core question and does not relate to development.
Have you read our Nagios Core 4 documentation? Specifically, check out the quickstart section.
Have you read our Nagios Core 4 documentation? Specifically, check out the quickstart section.
Former Nagios employee
Re: How to add hosts in nagios core 4.0.2 redhat 6.4
Also i have installed NRPE addon to motitor linux system but its not yet configured.
request you to guide me to how configure the same.
request you to guide me to how configure the same.
Re: How to add hosts in nagios core 4.0.2 redhat 6.4
We also have NRPE documentation available. Most of our products have documentation available at http://library.nagios.com or via a quick Google search.
Former Nagios employee
Re: How to add hosts in nagios core 4.0.2 redhat 6.4
Please suggest on below error or warning:
[root@windows-i7qqp6m objects]# service nagios restart
Nagios Core 4.0.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-25-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 8 services.
Warning: Host 's1' has no default contacts or contactgroups defined!
Checked 2 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Object precache file created:
/usr/local/nagios/var/objects.precache
[root@windows-i7qqp6m objects]#
[root@windows-i7qqp6m objects]# service nagios restart
Nagios Core 4.0.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-25-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 8 services.
Warning: Host 's1' has no default contacts or contactgroups defined!
Checked 2 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Object precache file created:
/usr/local/nagios/var/objects.precache
[root@windows-i7qqp6m objects]#
Re: How to add hosts in nagios core 4.0.2 redhat 6.4
There were no errors listed, only a single warning which is specified in the output:
It simply means that your s1 host does not have a contact(group) assigned to it. This will not cause Nagios to stop working, but it is informational and you may want to address it.Warning: Host 's1' has no default contacts or contactgroups defined!
Former Nagios employee