Linux Client fullinstall CentOS 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rnadon
Posts: 17
Joined: Tue May 30, 2017 1:05 pm

Linux Client fullinstall CentOS 7

Post by rnadon »

Hiya Nagios experts,
Got a weird one here.
I have 3 CentOS 7 boxes that I need to monitor. The first two went perfectly and everything works. On the third one the install said successful. Here is the results of rerunning fullinstall

Code: Select all

Nagios Linux Agent Installer
============================

This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a clean installed system:

   RedHat Enterprise, CentOS, Fedora, or Oracle
   OpenSUSE or SUSE Enterprise
   Ubuntu or Debian

Do NOT use this on a system running any other distro or that
does not allow additional package installation.

Do you want to continue? [Y/n] y
Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Users/groups already configured - skipping.
RESULT=0
Running './3-services'...
/etc/services already updated - skipping.
RESULT=0
Running './4-firewall'...
Firewall rules already configured - skipping.
RESULT=0
Running './A-subcomponents'...
Subcomponents already configured - skipping.
RESULT=0

##########################################################
###                                                    ###
###    Nagios XI Linux Agent Installation Complete!    ###
###                                                    ###
##########################################################

If you experience any problems, please attach the file install.log that was just created to any support requests.
However the service is not found and it looks like nothing much was done?!?
if you look at my locate (yes I did an updatedb to make sure the new stuff was taken into account) I am missing /etc/nagios and /usr/sbin/nagios, which are on my other two that successfully installed.

Code: Select all

-bash-4.2# service nagios status
Redirecting to /bin/systemctl status  nagios.service
Unit nagios.service could not be found.

-bash-4.2# locate nagios
/etc/selinux/targeted/modules/active/modules/nagios.pp
/home/nagios
/home/nagios/.bash_logout
/home/nagios/.bash_profile
/home/nagios/.bashrc
/home/nagios/.mozilla
/home/nagios/.mozilla/extensions
/home/nagios/.mozilla/plugins
/usr/local/nagios
/usr/local/nagios/bin
/usr/local/nagios/etc
/usr/local/nagios/include
/usr/local/nagios/libexec
/usr/local/nagios/share
/usr/local/nagios/var
/usr/local/nagios/bin/nrpe
/usr/local/nagios/bin/nsca
/usr/local/nagios/etc/nrpe
/usr/local/nagios/etc/nrpe.cfg
/usr/local/nagios/etc/nsca.cfg
/usr/local/nagios/etc/send_nsca.cfg
/usr/local/nagios/etc/nrpe/asterisk.cfg
/usr/local/nagios/etc/nrpe/common.cfg
/usr/local/nagios/libexec/check_apt
/usr/local/nagios/libexec/check_asterisk.pl
/usr/local/nagios/libexec/check_asterisk_sip_peers.sh
/usr/local/nagios/libexec/check_breeze
/usr/local/nagios/libexec/check_by_ssh
/usr/local/nagios/libexec/check_clamd
/usr/local/nagios/libexec/check_cluster
/usr/local/nagios/libexec/check_cpu_stats.sh
/usr/local/nagios/libexec/check_dhcp
/usr/local/nagios/libexec/check_dig
/usr/local/nagios/libexec/check_disk
/usr/local/nagios/libexec/check_disk_smb
/usr/local/nagios/libexec/check_dns
/usr/local/nagios/libexec/check_dummy
/usr/local/nagios/libexec/check_file_age
/usr/local/nagios/libexec/check_flexlm
/usr/local/nagios/libexec/check_ftp
/usr/local/nagios/libexec/check_http
/usr/local/nagios/libexec/check_icmp
/usr/local/nagios/libexec/check_ide_smart
/usr/local/nagios/libexec/check_ifoperstatus
/usr/local/nagios/libexec/check_ifstatus
/usr/local/nagios/libexec/check_imap
/usr/local/nagios/libexec/check_init_service
/usr/local/nagios/libexec/check_ircd
/usr/local/nagios/libexec/check_jabber
/usr/local/nagios/libexec/check_load
/usr/local/nagios/libexec/check_log
/usr/local/nagios/libexec/check_mailq
/usr/local/nagios/libexec/check_mrtg
/usr/local/nagios/libexec/check_mrtgtraf
/usr/local/nagios/libexec/check_nagios
/usr/local/nagios/libexec/check_netstat.pl
/usr/local/nagios/libexec/check_nntp
/usr/local/nagios/libexec/check_nntps
/usr/local/nagios/libexec/check_nrpe
/usr/local/nagios/libexec/check_nt
/usr/local/nagios/libexec/check_ntp
/usr/local/nagios/libexec/check_ntp_peer
/usr/local/nagios/libexec/check_ntp_time
/usr/local/nagios/libexec/check_nwstat
/usr/local/nagios/libexec/check_open_files.pl
/usr/local/nagios/libexec/check_oracle
/usr/local/nagios/libexec/check_overcr
/usr/local/nagios/libexec/check_ping
/usr/local/nagios/libexec/check_pop
/usr/local/nagios/libexec/check_procs
/usr/local/nagios/libexec/check_real
/usr/local/nagios/libexec/check_rpc
/usr/local/nagios/libexec/check_sensors
/usr/local/nagios/libexec/check_services
/usr/local/nagios/libexec/check_simap
/usr/local/nagios/libexec/check_sip
/usr/local/nagios/libexec/check_smtp
/usr/local/nagios/libexec/check_spop
/usr/local/nagios/libexec/check_ssh
/usr/local/nagios/libexec/check_ssmtp
/usr/local/nagios/libexec/check_swap
/usr/local/nagios/libexec/check_tcp
/usr/local/nagios/libexec/check_time
/usr/local/nagios/libexec/check_udp
/usr/local/nagios/libexec/check_ups
/usr/local/nagios/libexec/check_uptime
/usr/local/nagios/libexec/check_users
/usr/local/nagios/libexec/check_wave
/usr/local/nagios/libexec/check_yum
/usr/local/nagios/libexec/custom_check_mem
/usr/local/nagios/libexec/custom_check_procs
/usr/local/nagios/libexec/nagisk.pl
/usr/local/nagios/libexec/negate
/usr/local/nagios/libexec/send_nsca
/usr/local/nagios/libexec/urlize
/usr/local/nagios/libexec/utils.pm
/usr/local/nagios/libexec/utils.sh
/usr/local/nagios/share/locale
/usr/local/nagios/share/locale/de
/usr/local/nagios/share/locale/fr
/usr/local/nagios/share/locale/de/LC_MESSAGES
/usr/local/nagios/share/locale/de/LC_MESSAGES/nagios-plugins.mo
/usr/local/nagios/share/locale/fr/LC_MESSAGES
/usr/local/nagios/share/locale/fr/LC_MESSAGES/nagios-plugins.mo
/usr/local/nagios/var/spool
/usr/share/augeas/lenses/dist/nagioscfg.aug
/usr/share/augeas/lenses/dist/nagiosobjects.aug
/var/spool/mail/nagios
Also there is no install.log file to be seen?!?

Code: Select all

-bash-4.2# updatedb
-bash-4.2# locate install.log
-bash-4.2# 
Has anyone seen this before?
Thanks in advance,
Robert
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Linux Client fullinstall CentOS 7

Post by scottwilkerson »

rnadon wrote: I am missing /etc/nagios and /usr/sbin/nagios, which are on my other two that successfully installed.
This is the agent installer, so these would only be present if you installed them a different way, maybe via package manager.

This installer touches a file in this directory for each step when it is completed like "installed.*" that it looks for so it doesn't have to re-run the steps if they have already run and fullinstall is run again.

This installer should install nrpe under /usr/local/nagios/bin/nrpe
also the xinetd loader, with a config at /etc/xinetd.d/nrpe

The configuration file for nrpe is at

Code: Select all

/usr/local/nagios/etc/nrpe.cfg
/usr/local/nagios/etc/nrpe/common.cfg

If you want to re-run the agent from scratch you can run the following

Code: Select all

rm -f installed.*
./fullinstall
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rnadon
Posts: 17
Joined: Tue May 30, 2017 1:05 pm

Re: Linux Client fullinstall CentOS 7

Post by rnadon »

Yes, I installed the first time and then reran fullinstall to illustrate that the installer to illustrate that it thought it installed everything. Good advice for the rm -f installed.* (I figured out that it was from the install directory) for me that was /tmp/linux-nrpe-agent
After a reinstall everything stated working though a run of service nagios status returns no such service. But that is OK I believe there is something weird or missing in the OS itself. The two boxes that worked right away, I installed the OS the other one I did not, so ...

But we are back up and running with a completely empty <All Service Problems> on Nagios :D

Thanks so Much.
Robert
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Linux Client fullinstall CentOS 7

Post by scottwilkerson »

rnadon wrote:...
After a reinstall everything stated working though a run of service nagios status returns no such service. But that is OK I believe there is something weird or missing in the OS itself. The two boxes that worked right away, I installed the OS the other one I did not, so ...
Yes, this is just the agent, so nagios is not installed. Glad it is all good now!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked