Page 2 of 2

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 12:53 pm
by youngek
1.

Code: Select all

drwxrwsr-x. 2 apache nagios   4096 Apr  6 13:42 .
drwxr-xr-x. 9 root   root       94 Apr  6 13:35 ..
-rwxrwxr-x. 1 apache nagios 204568 Apr  6 13:35 check_apt
-rwxrwxr-x. 1 apache nagios   6897 Apr  6 13:38 check_asterisk.pl
-rwxrwxr-x. 1 apache nagios   4173 Apr  6 13:41 check_bl
-rwxrwxr-x. 1 apache nagios   2287 Apr  6 13:40 check_bpi.php
-rwxrwxr-x. 1 apache nagios   2252 Apr  6 13:35 check_breeze
-rwxrwxr-x. 1 apache nagios 208688 Apr  6 13:35 check_by_ssh
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_clamd -> check_tcp
-rwxrwxr-x. 1 apache nagios 153304 Apr  6 13:35 check_cluster
-rwsrwxr-x. 1 root   nagios 201784 Apr  6 13:35 check_dhcp
-rwxrwxr-x. 1 apache nagios 200520 Apr  6 13:35 check_dig
-rwxrwxr-x. 1 apache nagios   3861 Apr  6 13:38 check_dir
-rwxrwxr-x. 1 apache nagios 221480 Apr  6 13:35 check_disk
-rwxrwxr-x. 1 apache nagios   9290 Apr  6 13:35 check_disk_smb
-rwxrwxr-x. 1 apache nagios 218560 Apr  6 13:35 check_dns
-rwxrwxr-x. 1 apache nagios   8506 Apr  6 13:40 check_domain.php
-rwxrwxr-x. 1 apache nagios 117464 Apr  6 13:35 check_dummy
-rwxrwxr-x. 1 apache nagios   5576 Apr  6 13:40 check_em01.pl
-rwxrwxr-x. 1 apache nagios  38345 Apr  6 13:40 check_email_delivery
-rwxrwxr-x. 1 apache nagios  20511 Apr  6 13:40 check_email_delivery_epn
-rwxrwxr-x. 1 apache nagios  20039 Apr  6 13:38 check_email_loop.pl
-rwxrwxr-x. 1 apache nagios  82970 Apr  6 13:42 check_esx3.pl
-rwxrwxr-x. 1 apache nagios   3350 Apr  6 13:35 check_file_age
-rwxrwxr-x. 1 apache nagios   6316 Apr  6 13:35 check_flexlm
-rwxrwxr-x. 1 apache nagios 207720 Apr  6 13:35 check_fping
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_ftp -> check_tcp
-rwxrwxr-x. 1 apache nagios   3446 Apr  6 13:40 check_ftp_fully
-rwxrwxr-x. 1 apache nagios 202912 Apr  6 13:35 check_hpjd
-rwxrwxr-x. 1 apache nagios 337488 Apr  6 13:35 check_http
-rwsrwxr-x. 1 root   nagios 213856 Apr  6 13:35 check_icmp
-rwxrwxr-x. 1 apache nagios 164216 Apr  6 13:35 check_ide_smart
-rwxrwxr-x. 1 apache nagios   1794 Apr  6 13:42 check_ifoperstatnag
-rwxrwxr-x. 1 apache nagios  15124 Apr  6 13:35 check_ifoperstatus
-rwxrwxr-x. 1 apache nagios  12601 Apr  6 13:35 check_ifstatus
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_imap -> check_tcp
-rwxrwxr-x. 1 apache nagios  35413 Apr  6 13:40 check_imap_receive
-rwxrwxr-x. 1 apache nagios  15576 Apr  6 13:40 check_imap_receive_epn
-rwxrwxr-x. 1 apache nagios   6888 Apr  6 13:35 check_ircd
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_jabber -> check_tcp
-rwxrwxr-x. 1 apache nagios 180792 Apr  6 13:35 check_ldap
lrwxrwxrwx. 1 apache nagios     10 Apr  6 13:35 check_ldaps -> check_ldap
-rwxrwxr-x. 1 apache nagios 177904 Apr  6 13:35 check_load
-rwxrwxr-x. 1 apache nagios   5981 Apr  6 13:35 check_log
-rwxrwxr-x. 1 apache nagios  21481 Apr  6 13:35 check_mailq
-rwxrwxr-x. 1 apache nagios  56350 Apr  6 13:42 check_mongodb.py
-rwxrwxr-x. 1 apache nagios  11876 Apr  6 13:42 check_mountpoints.sh
-rwxrwxr-x. 1 apache nagios 163448 Apr  6 13:35 check_mrtg
-rwxrwxr-x. 1 apache nagios 163288 Apr  6 13:35 check_mrtgtraf
-rwxrwxr-x. 1 apache nagios  17546 Apr  6 13:42 check_mssql
-rwxrwxr-x. 1 apache nagios  14446 Apr  6 13:42 check_mssql_database.py
-rwxrwxr-x. 1 apache nagios  20473 Apr  6 13:42 check_mssql_server.py
-rwxrwxr-x. 1 apache nagios 199736 Apr  6 13:35 check_mysql
-rwxrwxr-x. 1 apache nagios 122024 Apr  6 13:38 check_mysql_health
-rwxrwxr-x. 1 apache nagios 186104 Apr  6 13:35 check_mysql_query
-rwxrwxr-x. 1 apache nagios 176736 Apr  6 13:35 check_nagios
-rwxrwxr-x. 1 apache nagios  14602 Apr  6 13:42 check_nagioslogserver.php
-rwxrwxr-x. 1 apache nagios   7381 Apr  6 13:42 check_nagios_performance.php
-rwxrwxr-x. 1 apache nagios  20601 Apr  6 13:42 check_nagiosxiserver.php
-rwxrwxr-x. 1 apache nagios  10065 Apr  6 13:42 check_ncpa.py
-rwxrwxr-x. 1 apache nagios  10037 Apr  6 13:42 check_nna.py
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_nntp -> check_tcp
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_nntps -> check_tcp
-rwxrwxr-x. 1 apache nagios  81584 Apr  6 13:37 check_nrpe
-rwxrwxr-x. 1 apache nagios 209760 Apr  6 13:35 check_nt
-rwxrwxr-x. 1 apache nagios 213304 Apr  6 13:35 check_ntp
-rwxrwxr-x. 1 apache nagios 202360 Apr  6 13:35 check_ntp_peer
-rwxrwxr-x. 1 apache nagios 197528 Apr  6 13:35 check_ntp_time
-rwxrwxr-x. 1 apache nagios 240304 Apr  6 13:35 check_nwstat
-rwxrwxr-x. 1 apache nagios   8779 Apr  6 13:35 check_oracle
-rwxrwxr-x. 1 apache nagios 183056 Apr  6 13:35 check_overcr
-rwxrwxr-x. 1 apache nagios 213320 Apr  6 13:35 check_ping
-rwxrwxr-x. 1 apache nagios   6183 Apr  6 13:36 check_pnp_rrds.pl
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_pop -> check_tcp
-rwxrwxr-x. 1 apache nagios 388326 Apr  6 13:42 check_postgres.pl
-rwxrwxr-x. 1 apache nagios 213248 Apr  6 13:35 check_procs
-rwxrwxr-x. 1 apache nagios  29938 Apr  6 13:42 check_radius_adv
-rwxrwxr-x. 1 apache nagios 179936 Apr  6 13:35 check_real
-rwxrwxr-x. 1 apache nagios   9582 Apr  6 13:35 check_rpc
-rwxrwxr-x. 1 apache nagios   9743 Apr  6 13:38 check_rrdtraf
-rwxrwxr-x. 1 apache nagios   5299 Apr  6 13:38 check_rrdtraf.php
-rwxrwxr-x. 1 apache nagios   1453 Apr  6 13:35 check_sensors
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_simap -> check_tcp
-rwxrwxr--. 1 apache nagios   7599 Apr  6 13:38 check_sip
-rwxrwxr-x. 1 apache nagios 270808 Apr  6 13:35 check_smtp
-rwxrwxr-x. 1 apache nagios  20226 Apr  6 13:40 check_smtp_send
-rwxrwxr-x. 1 apache nagios  10440 Apr  6 13:40 check_smtp_send_epn
-rwxrwxr-x. 1 apache nagios 255976 Apr  6 13:35 check_snmp
-rwxrwxr-x. 1 apache nagios  10983 Apr  6 13:38 check_snmp_boostedge.pl
-rwxrwxr-x. 1 apache nagios  17866 Apr  6 13:38 check_snmp_cpfw.pl
-rwxrwxr-x. 1 apache nagios   8763 Apr  6 13:38 check_snmp_css_main.pl
-rwxrwxr-x. 1 apache nagios  16834 Apr  6 13:38 check_snmp_css.pl
-rwxrwxr-x. 1 apache nagios  33722 Apr  6 13:38 check_snmp_env.pl
-rwxrwxr-x. 1 apache nagios  23464 Apr  6 13:42 check_snmp_generic.pl
-rwxrwxr-x. 1 apache nagios  31919 Apr  6 13:38 check_snmp_int.pl
-rwxrwxr-x. 1 apache nagios  10140 Apr  6 13:38 check_snmp_linkproof_nhr.pl
-rwxrwxr-x. 1 apache nagios  22931 Apr  6 13:42 check_snmp_load.pl
-rwxrwxr-x. 1 apache nagios  23980 Apr  6 13:41 check_snmp_load_wizard.pl
-rwxrwxr-x. 1 apache nagios  18782 Apr  6 13:38 check_snmp_mem.pl
-rwxrwxr-x. 1 apache nagios  11930 Apr  6 13:38 check_snmp_nsbox.pl
-rwxrwxr-x. 1 apache nagios  26296 Apr  6 13:42 check_snmp_process.pl
-rwxrwxr-x. 1 apache nagios  26297 Apr  6 13:41 check_snmp_process_wizard.pl
-rwxrwxr-x. 1 apache nagios  25538 Apr  6 13:42 check_snmp_storage.pl
-rwxrwxr-x. 1 apache nagios  25539 Apr  6 13:41 check_snmp_storage_wizard.pl
-rwxrwxr-x. 1 apache nagios  14521 Apr  6 13:38 check_snmp_vrrp.pl
-rwxrwxr-x. 1 apache nagios  13120 Apr  6 13:42 check_snmp_win.pl
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_spop -> check_tcp
-rwxrwxr-x. 1 apache nagios 179416 Apr  6 13:35 check_ssh
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_ssmtp -> check_tcp
-rwxrwxr-x. 1 apache nagios 161224 Apr  6 13:35 check_swap
-rwxrwxr-x. 1 apache nagios 256160 Apr  6 13:35 check_tcp
-rwxrwxr-x. 1 apache nagios  22094 Apr  6 13:42 check_tftp.sh
-rwxrwxr-x. 1 apache nagios 181112 Apr  6 13:35 check_time
lrwxrwxrwx. 1 apache nagios      9 Apr  6 13:35 check_udp -> check_tcp
-rwxrwxr-x. 1 apache nagios 193680 Apr  6 13:35 check_ups
-rwxrwxr-x. 1 apache nagios 153928 Apr  6 13:35 check_uptime
-rwxrwxr-x. 1 apache nagios 152368 Apr  6 13:35 check_users
-rwxrwxr-x. 1 apache nagios   2937 Apr  6 13:35 check_wave
-rwxrwxr-x. 1 apache nagios    307 Apr  6 13:38 check_webinject.sh
-rwxrwxr-x. 1 apache nagios   7065 Apr  6 13:42 check_win_snmp_disk.pl
-rwxrwxr-x. 1 apache nagios   5885 Apr  6 13:42 check_wmi_plus.conf
-rwxrwxr-x. 1 apache nagios  66087 Apr  6 13:42 check_wmi_plus.ini
-rwxrwxr-x. 1 apache nagios 335380 Apr  6 13:42 check_wmi_plus.pl
-rwxrwxr-x. 1 apache nagios  18185 Apr  6 13:42 check_xisla.php
-rwxrwxr-x. 1 apache nagios  40695 Apr  6 13:40 folder_watch.pl
-rwxrwxr-x. 1 apache nagios 148368 Apr  6 13:35 negate
-rwxrwxr-x. 1 apache nagios  42803 Apr  6 13:36 process_perfdata.pl
-rwxrwxr-x. 1 apache nagios  74960 Apr  6 13:38 send_nsca
-rwxrwxr-x. 1 apache nagios 145840 Apr  6 13:35 urlize
-rwxrwxr-x. 1 apache nagios   1878 Apr  6 13:35 utils.pm
-rwxrwxr-x. 1 apache nagios   2791 Apr  6 13:35 utils.sh
[root@NRMNOKVLA04 libexec]#
2. -rw-r--r--. 1 root root 462 Apr 6 13:37 /etc/xinetd.d/nrpe


3. tcp6 0 0 :::5666 :::* LISTEN ---Thinking this should be set in IPV4 not 6

4. ps -A | grep nrpe- nothing

5. ps -A | grep xinetd 26567 ? 00:00:00 xinetd

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 12:59 pm
by dwhitfield
From the Nagios server, what's the output of /usr/local/nagios/libexec/check_nrpe -H <remote host ip> -n?

Please post your /etc/xinetd.d/nrpe for review. If you would prefer to PM the file, that is fine. Just make sure you update the thread after PMing the file.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 1:15 pm
by youngek
PMed you the NRPE


CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 1:31 pm
by dwhitfield
It looks like you sent a ntp config file, not /etc/xinetd.d/nrpe. If that's that's really in that file, then that's definitely an issue.

It should look something like the following

Code: Select all

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
 port  = 5666
        wait            = no
        user            = nagios
 group  = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
 only_from = YOURIP
}
Also, you have an SSL issue. Depending on if you actually need ssl, you could just run it with the -n flag, but that's less secure. If you want to use SSL, it's probably a good idea to start a different thread for that and we can focus on getting it to run locally in this thread.

UPDATE: /etc/xinetd.d/nrpe received

Re: Linux Agent Fails install

Posted: Thu Apr 13, 2017 7:37 am
by youngek
How do I pass the -n flag? I still get an ssl error.

Re: Linux Agent Fails install

Posted: Thu Apr 13, 2017 8:01 am
by youngek
Starting a new thread for the ssl issue.

Re: Linux Agent Fails install

Posted: Thu Apr 13, 2017 2:03 pm
by dwhitfield
Have you done a Quickstart? That may be the easiest method if not: https://www.nagios.com/services/quickstart/nagios-xi/ You could tackle both issues in the QS.

If the QS is not an option, could you run the NRPE check locally and then run tail -100 /var/log/messages and post the output?

Re: Linux Agent Fails install

Posted: Fri Apr 14, 2017 8:08 am
by youngek
Have not done a quickstart yet but, will set one up soon.

Re: Linux Agent Fails install

Posted: Fri Apr 14, 2017 9:19 am
by dwhitfield
Did you want to continue working through this on the forum or just wait for the quickstart? If you want to just wait on the quickstart, no need to respond.

If you want to continue here, run the NRPE check locally and then run tail -100 /var/log/messages and post the output.