Page 1 of 2

Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave config

Posted: Thu Nov 17, 2016 11:10 am
by wice22
Hi

I'm to configure Nagios on Master monitor an other slave host with Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 + xinetd

Is this something u support and can advice in case I have issues ?

or may have manual to add slave host to Master / Monitoring host using Nagios Core ?

Regards

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 11:21 am
by dwhitfield
wice22 wrote:I'm to configure Nagios on Master monitor an other slave host
You are going to need to clarify what you mean by master and slave here. Do you just mean Nagios is monitoring a different server or do you mean that you are operating in a HA situation?
Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 + xinetd
We have experience in all of those, yes.
Is this something u support and can advice in case I have issues ?
It really depends on what you mean by support. We have paid support plans with a time guarantee (https://www.nagios.com/services/nagios- ... ort-plans/) and we also have these forums. Once you start adding third-party plugins, our ability to answer questions is limited, but community members often step in and help out.
or may have manual to add slave host to Master / Monitoring host using Nagios Core ?
There is a manual: https://assets.nagios.com/downloads/nag ... n/toc.html

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 12:20 pm
by wice22
Hi ,

Yes I mean Nagios simply monitoring a different server also under CentOS 7

I managed to run Nagios 4.2.2 + Plugins 2.1.3 + NRPE v3.0.1 + Xined on CentOS 7 (Monitoring Server / Master server) 10.0.0.3
and
Plugins 2.1.3 + NRPE v3.0.1 + Xinetd on CentOS 7 (Monotored / Slave Server) 10.0.0.4

Now everything on check on both side seems to be working, no errors seen
Running command on Master server like :

# /usr/local/nagios/libexec/check_ssh 10.0.0.4
SSH OK - OpenSSH_6.6.1 (protocol 2.0) | time=0.007269s;;;0.000000;10.000000
or
# /usr/local/nagios/libexec/check_load 10.0.0.4
CRITICAL - load average: 0.00, 0.01, 0.05|load1=0.000;0.000;0.000;0; load5=0.010;0.000;0.000;0; load15=0.050;0.000;0.000;0;

So all seems to be working ok

checking the plugin directory /usr/local/nagios/libexec/
all plugins are on place

same on slave.monitored server 10.0.0.4 :
# /usr/local/nagios/libexec/check_load 10.0.0.3
CRITICAL - load average: 0.00, 0.01, 0.02|load1=0.000;0.000;0.000;0; load5=0.010;0.000;0.000;0; load15=0.020;0.000;0.000;0;
or
# /usr/local/nagios/libexec/check_ssh 10.0.0.3
SSH OK - OpenSSH_6.6.1 (protocol 2.0) | time=0.011093s;;;0.000000;10.000000

But on web interface it shows : Return code of 127 is out of bounds - plugin may be missing
and obviously not monitoring anything

installation was done using Only official tutorials such as :

For plugins This : https://support.nagios.com/kb/article.p ... ategory=58
and
For NRPE This: https://support.nagios.com/kb/article.php?id=515
Xinetd installed using yum Yum install xinetd

Any idea what is the issue ...

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 12:45 pm
by dwhitfield
Could you post:
1. nagios.cfg
2. tail -100 /usr/local/nagios/var/nagios.log
3. tail -100 /var/log/httpd/error_log

Scrub any data as necessary.

Thanks!

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 12:59 pm
by wice22
Both attached

thanks

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 1:04 pm
by wice22
In case you'l need

# ls -ld /usr/local/nagios/libexec/
drwxrwxr-x. 2 nagios nagios 4096 Nov 16 02:22 /usr/local/nagios/libexec/

Code: Select all

# ls -la /usr/local/nagios/libexec/
total 7064
drwxrwxr-x. 2 nagios nagios   4096 Nov 16 02:22 .
drwxr-xr-x. 8 nagios nagios     73 Nov 15 17:49 ..
-rwxr-xr-x. 1 nagios nagios 208994 Nov 15 17:54 check_apt
-rwxr-xr-x. 1 nagios nagios   2354 Nov 15 17:54 check_breeze
-rwxr-xr-x. 1 nagios nagios 212991 Nov 15 17:54 check_by_ssh
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_clamd -> check_tcp
-rwxr-xr-x. 1 nagios nagios 161360 Nov 15 17:54 check_cluster
-r-xr-xr-x. 1 nagios nagios 210645 Nov 15 17:54 check_dhcp
-rwxr-xr-x. 1 nagios nagios 221073 Nov 15 17:54 check_dig
-rwxr-xr-x. 1 nagios nagios 225415 Nov 15 17:54 check_disk
-rwxr-xr-x. 1 nagios nagios   9477 Nov 15 17:54 check_disk_smb
-rwxr-xr-x. 1 nagios nagios 228483 Nov 15 17:54 check_dns
-rwxr-xr-x. 1 nagios nagios 125384 Nov 15 17:54 check_dummy
-rwxr-xr-x. 1 nagios nagios   3821 Nov 15 17:54 check_file_age
-rwxr-xr-x. 1 nagios nagios   6420 Nov 15 17:54 check_flexlm
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_ftp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 367602 Nov 15 17:54 check_http
-r-xr-xr-x. 1 nagios nagios 225371 Nov 15 17:54 check_icmp
-rwxr-xr-x. 1 nagios nagios 168238 Nov 15 17:54 check_ide_smart
-rwxr-xr-x. 1 nagios nagios  15283 Nov 15 17:54 check_ifoperstatus
-rwxr-xr-x. 1 nagios nagios  13435 Nov 15 17:54 check_ifstatus
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_imap -> check_tcp
-rwxr-xr-x. 1 nagios nagios   6992 Nov 15 17:54 check_ircd
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_jabber -> check_tcp
-rwxr-xr-x. 1 nagios nagios 185983 Nov 15 17:54 check_load
-rwxr-xr-x. 1 nagios nagios   6599 Nov 15 17:54 check_log
-rwxr-xr-x. 1 nagios nagios  22764 Nov 15 17:54 check_mailq
-rwxr-xr-x. 1 nagios nagios 167404 Nov 15 17:54 check_mrtg
-rwxr-xr-x. 1 nagios nagios 168761 Nov 15 17:54 check_mrtgtraf
-rwxr-xr-x. 1 nagios nagios 185115 Nov 15 17:54 check_nagios
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_nntp -> check_tcp
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_nntps -> check_tcp
-rwxrwxr-x. 1 nagios nagios 135326 Nov 16 02:22 check_nrpe
-rwxr-xr-x. 1 nagios nagios 218153 Nov 15 17:54 check_nt
-rwxr-xr-x. 1 nagios nagios 217049 Nov 15 17:54 check_ntp
-rwxr-xr-x. 1 nagios nagios 206550 Nov 15 17:54 check_ntp_peer
-rwxr-xr-x. 1 nagios nagios 201723 Nov 15 17:54 check_ntp_time
-rwxr-xr-x. 1 nagios nagios 248634 Nov 15 17:54 check_nwstat
-rwxr-xr-x. 1 nagios nagios   8930 Nov 15 17:54 check_oracle
-rwxr-xr-x. 1 nagios nagios 191388 Nov 15 17:54 check_overcr
-rwxr-xr-x. 1 nagios nagios 221609 Nov 15 17:54 check_ping
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_pop -> check_tcp
-rwxr-xr-x. 1 nagios nagios 222522 Nov 15 17:54 check_procs
-rwxr-xr-x. 1 nagios nagios 184018 Nov 15 17:54 check_real
-rwxr-xr-x. 1 nagios nagios   9687 Nov 15 17:54 check_rpc
-rwxr-xr-x. 1 nagios nagios   1469 Nov 15 17:54 check_sensors
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_simap -> check_tcp
-rwxr-xr-x. 1 nagios nagios 281952 Nov 15 17:54 check_smtp
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_spop -> check_tcp
-rwxr-xr-x. 1 nagios nagios 183541 Nov 15 17:54 check_ssh
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_ssmtp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 165104 Nov 15 17:54 check_swap
-rwxr-xr-x. 1 nagios nagios 266191 Nov 15 17:54 check_tcp
-rwxr-xr-x. 1 nagios nagios 185288 Nov 15 17:54 check_time
lrwxrwxrwx. 1 nagios nagios      9 Nov 15 17:54 check_udp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 197780 Nov 15 17:54 check_ups
-rwxr-xr-x. 1 nagios nagios 161618 Nov 15 17:54 check_uptime
-rwxr-xr-x. 1 nagios nagios 156372 Nov 15 17:54 check_users
-rwxr-xr-x. 1 nagios nagios   3040 Nov 15 17:54 check_wave
-rwxr-xr-x. 1 nagios nagios 151948 Nov 15 17:54 negate
-rwxr-xr-x. 1 nagios nagios 149581 Nov 15 17:54 urlize
-rwxr-xr-x. 1 nagios nagios   1914 Nov 15 17:54 utils.pm
-rwxr-xr-x. 1 nagios nagios   2791 Nov 15 17:54 utils.sh

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 1:24 pm
by dwhitfield
Thanks so much for that the libexec info. I was going to ask. I know you said you already checked that dir, but I wanted to verify.

It looks like your /usr/local/nagios/etc/nagios.cfg didn't upload. My guess is you have a typo in there, or perhaps in one of the following three config files:

Code: Select all

/usr/local/nagios/etc/hosts.cfg
/usr/local/nagios/etc/services.cfg
/usr/local/nagios/etc/commands.cfg
If it won't let you upload them all at once, you can break it into a couple of posts. Thanks!

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 1:49 pm
by wice22
My commands.cfg seems to be in different directory :
/usr/local/nagios/etc/objects/

uploaded all of them

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Thu Nov 17, 2016 3:37 pm
by dwhitfield
in services.cfg, can you change check_total_procs to check_procs? If you are using a different plugin (one called check_total_procs), then can you tell me where it is installed?

Thanks!

Re: Plugins 2.1.3 + NRPE v3.0.1 on CentOS 7 Master/Slave con

Posted: Fri Nov 18, 2016 9:13 am
by wice22
gud Question ...

No I did not install any extra plugins

everything there is what comes by default

I'll change it and let you know what is the result

Regards