Showing results for 
Search instead for 
Did you mean: 

Query on Nagious

Md. Minhaz Khan
Super Advisor

Query on Nagious

Dear All

I have configured my HP-UX server to send SNMP_Trap. Procedure is attached with this thread.

I have installed nagios using the following procedure. Now my query is to grep SNMP_TRAP using nagios what i need to configure in the services file and how can nagios read all system events send by HP-UX machine using SNMP_TRAP??

Please help me???

#tar zxvf nagios-1.2.tar.gz
#cd nagios-1.2
#mkdir /usr/local/nagios
#useradd nagios
#groupadd nagios
#./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios

Compile Nagios and the CGIs with the following command
#make all

Install the binaries and HTML documentations with the following command
#make install

If you want to install and init script for starting Nagios, use the following command
#make install-init

If you want, you can install the sample config files into the {prefix}/etc directory with the following command
#make install-config

After complete installation check that, all nagios files/directories are install properly,

#ls /usr/local/nagios

bin etc sbin share var

Now install nagios plugins

#tar zxvf nagiosplug-1.3.1.tar.gz
#cd nagiosplug-1.3.1
#./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios
#make all
#make install

Now check that libexec is exist under nagios directory.

#cd /usr/local/nagios/libexec/

We can check our plug-ins installation using,

#cd /usr/local/nagios/libexec

Make nagios configuration files,

#cd /usr/local/nagios/etc
#mkdir sample
#cp *.cfg-sample sample/
for i in *cfg-sample; do mv $i `echo $i | sed -e s/cfg-sample/cfg/`; done;

To verify main nagios configuration file,

#/usr/bin/nagios â v nagios.cfg

Configure Apache for nagios web interface,

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/

AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all

Alias /nagios/ /usr/local/nagios/share/

Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all

Start nagios

Configure all Nagios configuration files,

The contacts.cfg file
The contactgroup.cfg file
The hosts.cfg file
The hostgroup.cfg file
The services.cfg file

#touch escalations.cfg
#touch dependencies.cfg
#chown -R nagios /usr/local/nagios
#chgrp -R nagios /usr/local/nagios
#/etc/init.d/nagios start

Esteemed Contributor

Re: Query on Nagious

You need to install nrpe and Nagios plug-in in each client. You can go to and down load both of them and install them.