My Nagios shows result like this, Error in '/var/log/messages'
Code: Select all
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bbd8468.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bea0102.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'wbb0213.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bbd8466.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bbd5048.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bbd9452.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bbd8467.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bbd8458.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'wbb0103.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'wbb0055.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'wbb0077.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
Jun 21 16:12:59 localhost nagios: Warning: Return code of 127 for check of host 'bbd7455.1bestarinet.net' was out of bounds. Make sure the plugin you're trying to run actually exists.
....
Code: Select all
[root@localhost libexec]# pwd
/usr/local/nagios/libexec
[root@localhost libexec]# ll
total 6672
-rwxr-xr-x 1 root root 348433 Apr 6 10:20 check_apt
-rw-r--r-- 1 root root 6897 Apr 6 10:20 check_asterisk.pl
-rwxr-xr-x 1 root root 2274 Apr 6 10:20 check_breeze
-rwxr-xr-x 1 root root 92653 Apr 6 10:20 check_by_ssh
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_clamd -> check_tcp
-rwxr-xr-x 1 root root 50873 Apr 6 10:20 check_cluster
-r-sr-xr-x 1 root root 90337 Apr 6 10:20 check_dhcp
-rwxr-xr-x 1 root root 87773 Apr 6 10:20 check_dig
-rwxr-xr-x 1 root root 390546 Apr 6 10:20 check_disk
-rwxr-xr-x 1 root root 8163 Apr 6 10:20 check_disk_smb
-rwxr-xr-x 1 root root 96206 Apr 6 10:20 check_dns
-rwxr-xr-x 1 root root 46260 Apr 6 10:20 check_dummy
-rw-r--r-- 1 root root 20039 Apr 6 10:20 check_email_loop.pl
-rwxr-xr-x 1 root root 3143 Apr 6 10:20 check_file_age
-rwxr-xr-x 1 apache apache 1094 May 31 17:13 check_file_md5s
-rwxr-xr-x 1 root root 6395 Apr 6 10:20 check_flexlm
-rwxr-xr-x 1 root root 92048 Apr 6 10:20 check_fping
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_ftp -> check_tcp
-rwxr-xr-x 1 root root 90056 Apr 6 10:20 check_hpjd
-rwxr-xr-x 1 root root 468776 Apr 6 10:20 check_http
-r-sr-xr-x 1 root root 97773 Apr 6 10:20 check_icmp
-rwxr-xr-x 1 root root 59316 Apr 6 10:20 check_ide_smart
-rwxr-xr-x 1 root root 15310 Apr 6 10:20 check_ifoperstatus
-rwxr-xr-x 1 root root 12853 Apr 6 10:20 check_ifstatus
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_imap -> check_tcp
-rwxr-xr-x 1 root root 7429 Apr 6 10:20 check_ircd
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_jabber -> check_tcp
-rwxr-xr-x 1 root root 73626 Apr 6 10:20 check_ldap
lrwxrwxrwx 1 root root 10 Jun 20 23:00 check_ldaps -> check_ldap
-rwxr-xr-x 1 root root 73506 Apr 6 10:20 check_load
-rwxr-xr-x 1 root root 6062 Apr 6 10:20 check_log
-rwxr-xr-x 1 root root 20367 Apr 6 10:20 check_mailq
-rwxr-xr-x 1 root root 59970 Apr 6 10:20 check_mrtg
-rwxr-xr-x 1 root root 58835 Apr 6 10:20 check_mrtgtraf
-rw-r--r-- 1 root root 11427 Apr 6 10:20 check_mssql
-rwxr-xr-x 1 root root 94383 Apr 6 10:20 check_mysql
-rwxr-xr-x 1 root root 98711 Apr 6 10:20 check_mysql_health
-rwxr-xr-x 1 root root 86413 Apr 6 10:20 check_mysql_query
-rwxr-xr-x 1 root root 72447 Apr 6 10:20 check_nagios
-rwxr-xr-x 1 nagios users 6364 May 31 15:33 check_nagios_performance.php
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_nntp -> check_tcp
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_nntps -> check_tcp
-rwxrwxr-x 1 nagios nagios 75444 Apr 6 10:20 check_nrpe
-rwxr-xr-x 1 root root 93815 Apr 6 10:20 check_nt
-rwxr-xr-x 1 root root 96835 Apr 6 10:20 check_ntp
-rwxr-xr-x 1 root root 87051 Apr 6 10:20 check_ntp_peer
-rwxr-xr-x 1 root root 83829 Apr 6 10:20 check_ntp_time
-rwxr-xr-x 1 root root 125710 Apr 6 10:20 check_nwstat
-rwxr-xr-x 1 root root 8366 Apr 6 10:20 check_oracle
-rwxr-xr-x 1 root root 75739 Apr 6 10:20 check_overcr
-rwxr-xr-x 1 root root 69350 Apr 6 10:20 check_pgsql
-rwxr-xr-x 1 root root 99658 Apr 6 10:20 check_ping
-rwxr-xr-x 1 nagios nagios 6183 Apr 6 10:20 check_pnp_rrds.pl
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_pop -> check_tcp
-rw-r--r-- 1 root root 281655 Apr 6 10:20 check_postgres.pl
-rwxr-xr-x 1 root root 368712 Apr 6 10:20 check_procs
-rwxr-xr-x 1 root root 71134 Apr 6 10:20 check_real
-rwxr-xr-x 1 root root 9707 Apr 6 10:20 check_rpc
-rw-r--r-- 1 root root 9232 Apr 6 10:20 check_rrdtraf
-rwxr-xr-x 1 root root 5299 Apr 6 10:20 check_rrdtraf.php
-rwxr-xr-x 1 root root 1176 Apr 6 10:20 check_sensors
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_simap -> check_tcp
-rw-r--r-- 1 root root 7599 Apr 6 10:20 check_sip
-rwxr-xr-x 1 root root 406354 Apr 6 10:20 check_smtp
-rwxr-xr-x 1 root root 408607 Apr 6 10:20 check_snmp
-rwxr-xr-x 1 root root 10951 Apr 6 10:20 check_snmp_boostedge.pl
-rwxr-xr-x 1 root root 17866 Apr 6 10:20 check_snmp_cpfw.pl
-rwxr-xr-x 1 root root 8747 Apr 6 10:20 check_snmp_css_main.pl
-rwxr-xr-x 1 root root 16786 Apr 6 10:20 check_snmp_css.pl
-rwxr-xr-x 1 root root 33562 Apr 6 10:20 check_snmp_env.pl
-rwxr-xr-x 1 root root 31919 Apr 6 10:20 check_snmp_int.pl
-rwxr-xr-x 1 root root 10108 Apr 6 10:20 check_snmp_linkproof_nhr.pl
-rwxr-xr-x 1 root root 22965 Apr 6 10:20 check_snmp_load.pl
-rwxrwxrwx 1 nagios nagios 22845 Apr 6 10:28 check_snmp_load_wizard.pl
-rwxr-xr-x 1 root root 18734 Apr 6 10:20 check_snmp_mem.pl
-rwxr-xr-x 1 root root 11898 Apr 6 10:20 check_snmp_nsbox.pl
-rwxr-xr-x 1 root root 24233 Apr 6 10:20 check_snmp_process.pl
-rwxr-xr-x 1 nagios users 26183 Apr 6 10:28 check_snmp_process_wizard.pl
-rwxr-xr-x 1 root root 24002 Apr 6 10:20 check_snmp_storage.pl
-rwxr-xr-x 1 nagios users 25484 Apr 6 10:28 check_snmp_storage_wizard.pl
-rwxr-xr-x 1 root root 14489 Apr 6 10:20 check_snmp_vrrp.pl
-rwxr-xr-x 1 root root 12440 May 23 15:22 check_snmp_win.pl
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_spop -> check_tcp
-rwxr-xr-x 1 root root 69094 Apr 6 10:20 check_ssh
-rwxr-xr-x 1 nagios users 8335 Apr 6 10:28 check_ssh_expect.pl
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_ssmtp -> check_tcp
-rwxr-xr-x 1 root root 74796 Apr 6 10:20 check_swap
-rwxr-xr-x 1 nagios nagios 123180 Apr 6 10:20 check_tcp
-rwxr-xr-x 1 root root 71240 Apr 6 10:20 check_time
lrwxrwxrwx 1 root root 9 Jun 20 23:00 check_udp -> check_tcp
-rwxr-xr-x 1 root root 84166 Apr 6 10:20 check_ups
-rwxr-xr-x 1 root root 68835 Apr 6 10:20 check_users
-rwxr-xr-x 1 root root 3019 Apr 6 10:20 check_wave
-rwxr-xr-x 1 root root 307 Apr 6 10:20 check_webinject.sh
-rwxr-xr-x 1 nagios users 7065 May 21 16:15 check_win_snmp_disk.pl
-rwxr-xr-x 1 nagios users 2405 Apr 6 10:28 check_wmi_plus.conf
-rwxr-xr-x 1 nagios users 46543 Apr 6 10:28 check_wmi_plus.ini
-rwxr-xr-x 1 nagios users 237155 Apr 6 10:28 check_wmi_plus.pl
-rwxr-xr-x 1 apache apache 117400 Jun 5 10:24 nagiosmobile.tar.gz
-rwxr-xr-x 1 root root 75011 Apr 6 10:20 negate
-rwxr-xr-x 1 nagios nagios 42724 Apr 6 10:20 process_perfdata.pl
-rwxr-xr-x 1 root root 60209 Apr 6 10:20 send_nsca
-rwxr-xr-x 1 root root 68266 Apr 6 10:20 urlize
-rwxr-xr-x 1 root root 2070 Apr 6 10:20 utils.pm
-rwxr-xr-x 1 root root 862 Apr 6 10:20 utils.sh
Code: Select all
[root@localhost libexec]# ./check_tcp -H BBC0059.1bestarinet.net -p 443
TCP OK - 0.004 second response time on port 443|time=0.004050s;;;0.000000;10.000000Code: Select all
[nagios@localhost libexec]$ ./check_tcp -H bba6002.1bestarinet.net -p 443
TCP OK - 0.004 second response time on port 443|time=0.003571s;;;0.000000;10.000000
Please help!
- Faiz