Page 1 of 1

How to add hosts in nagios core 4.0.2 redhat 6.4

Posted: Tue May 13, 2014 6:50 am
by Sanjeet
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.

Re: How to add hosts in nagios core 4.0.2 redhat 6.4

Posted: Tue May 13, 2014 12:47 pm
by tmcdonald
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.

Re: How to add hosts in nagios core 4.0.2 redhat 6.4

Posted: Wed May 14, 2014 1:35 am
by Sanjeet
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.

Re: How to add hosts in nagios core 4.0.2 redhat 6.4

Posted: Wed May 14, 2014 9:11 am
by tmcdonald
We also have NRPE documentation available. Most of our products have documentation available at http://library.nagios.com or via a quick Google search.

Re: How to add hosts in nagios core 4.0.2 redhat 6.4

Posted: Sat May 17, 2014 2:42 am
by Sanjeet
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]#

Re: How to add hosts in nagios core 4.0.2 redhat 6.4

Posted: Mon May 19, 2014 9:34 am
by tmcdonald
There were no errors listed, only a single warning which is specified in the output:
Warning: Host 's1' has no default contacts or contactgroups defined!
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.