gumball60
asked on
REd Hat 6.4 Nagios/NRPE Adding remote hosts/clients
How do you add host/clients to Nagios 3.5 on Red Hat 6.4 to monitor. I have already installed Nagios w/NRPE? I will be monitoring Linux, Windows, and other various network devices. Please provide example of which file to edit.
ASKER
Which config file should I edit and where...nagios.cfg, cgi.cfg, etc?
i.e. I will try monitoring a file server first...
[root@centos-rhel etc]# pwd
/usr/local/nagios/etc
[root@centos-rhel etc]# ls
cgi.cfg cgi.cfg~ htpasswd.users nagios.cfg nagios.cfg~ nrpe.cfg objects resource.cfg resource.cfg~
i.e. I will try monitoring a file server first...
[root@centos-rhel etc]# pwd
/usr/local/nagios/etc
[root@centos-rhel etc]# ls
cgi.cfg cgi.cfg~ htpasswd.users nagios.cfg nagios.cfg~ nrpe.cfg objects resource.cfg resource.cfg~
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hkchris...I have already installed and configured nagios/nrpe.....see previous responses.....Thanks for your input.
Please read “Now adding web-node01 in nagios server so that we could monitor the server's services.” section...
The config files you can use are listed in your /etc/nagios/nagios.cfg
If you haven't touched this, there will be a host.cfg, services.cfg, checkcommands.cfg in objects:
http://nagios.sourceforge.net/docs/3_0/configmain.html
Also, it seems you have installed nagios from the source. Though possible, I would always recommend installing nagios from rpms/repos - since you get updates this way and all the config files will be at the default place for RHEL/centos.
You can find nagios in the epel as well as rpmforge repos. The rpmforge will have newer versions while the epel is considered better because it is run by RH.
If you haven't touched this, there will be a host.cfg, services.cfg, checkcommands.cfg in objects:
http://nagios.sourceforge.net/docs/3_0/configmain.html
Also, it seems you have installed nagios from the source. Though possible, I would always recommend installing nagios from rpms/repos - since you get updates this way and all the config files will be at the default place for RHEL/centos.
You can find nagios in the epel as well as rpmforge repos. The rpmforge will have newer versions while the epel is considered better because it is run by RH.
Open in new window
Then you would need to add services and check commands for this host.
I think it is outside of this post to get into that details.
Please read Nagios Object Definitions:
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html
And, if this is a new deployment, save yourself some cumbersome work with plain text configs and give Nconf a try:
http://www.nconf.org