Page 1 of 5

(Return code of 127 is out of bounds - plugin may be missing

Posted: Fri Nov 15, 2019 11:52 am
by vho
We are running Nagios Core 3 on Ubuntu and are using a config file from a defunct Nagios server.

On our status, we are getting the error message of "Return code of 127 is out of bounds - plugin may be missing"

We installed the check_url plugin from https://exchange.nagios.org/directory/P ... rl/details

This is the script that we are using.

define service{
use production-service
host_name DALSRVPRDIIS08
service_description DCNBS.COM
check_command check_url!http://www.DCNBS.com/index.asp
}

define service{
use production-service
host_name DALSRVPRDIIS08
service_description DCNBS.COM SSL
check_command check_url_ssl!www.DCNBS.com
}

Are we using the correct plugin or is there an issue with the script?

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:34 pm
by scottwilkerson
Hello! Welcome to the forum!

Can you show the command definition you created for check_url?

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:35 pm
by vho
define command {

command_name check_url
command_line $USER1$/check_url -I $ARG1$
}

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:36 pm
by kmartin2007
here are our cfg's as well

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:37 pm
by scottwilkerson
Can you show the permissions of the following

Code: Select all

ls -l /usr/local/nagios/libexec/check_url


replace /usr/local/nagios/libexec with whatever path you have for your plugins

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:38 pm
by kmartin2007
-rwxrwxrwx 1 ozadmin ozadmin 1600 Nov 15 16:21 check_url.pl

do i need to change the owner to root like the others?




-rwxrwxrwx 1 root root 3283 Feb 22 2017 check_ajp
-rwxrwxrwx 1 root root 55952 Feb 6 2018 check_apt
-rwxrwxrwx 1 root root 7717 Feb 22 2017 check_backuppc
-rwxrwxrwx 1 root root 5384 Feb 22 2017 check_bgpstate
-rwxrwxrwx 1 root root 2315 Feb 6 2018 check_breeze
-rwxrwxrwx 1 root root 60432 Feb 6 2018 check_by_ssh
-rwxrwxrwx 1 root root 2015 Feb 22 2017 check_cert_expire
-rwxrwxrwx 1 root root 2304 Feb 22 2017 check_cert_expire_dir
-rwxrwxrwx 1 root root 3419 Feb 22 2017 check_checksums
-rwxrwxrwx 1 root root 6721 Feb 22 2017 check_clamav
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_clamd -> check_tcp
-rwxrwxrwx 1 root root 47600 Feb 6 2018 check_cluster
-rwxrwxrwx 1 root root 19470 Feb 22 2017 check_cups
-rwxrwxrwx 1 root root 64208 Feb 6 2018 check_dbi
-rwxrwxrwx 1 root root 59952 Feb 6 2018 check_dhcp
-rwxrwxrwx 1 root root 56016 Feb 6 2018 check_dig
-rwxrwxrwx 1 root root 64856 Feb 6 2018 check_disk
-rwxrwxrwx 1 root root 9377 Feb 6 2018 check_disk_smb
-rwxrwxrwx 1 root root 59984 Feb 6 2018 check_dns
-rwxrwxrwx 1 root root 8600 Feb 22 2017 check_dnssec_delegation
-rwxrwxrwx 1 root root 14658 Feb 22 2017 check_drbd
-rwxrwxrwx 1 root root 34840 Feb 6 2018 check_dummy
-rwxrwxrwx 1 root root 40034 Feb 22 2017 check_email_delivery
-rwxrwxrwx 1 root root 21161 Feb 22 2017 check_email_delivery_epn
-rwxrwxrwx 1 root root 2885 Feb 22 2017 check_entropy
-rwxrwxrwx 1 root root 6985 Feb 22 2017 check_etc_hosts
-rwxrwxrwx 1 root root 3872 Feb 22 2017 check_etc_resolv
-rwxrwxrwx 1 root root 3545 Feb 6 2018 check_file_age
-rwxrwxrwx 1 root root 6396 Feb 6 2018 check_flexlm
-rwxrwxrwx 1 root root 60080 Feb 6 2018 check_fping
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_ftp -> check_tcp
-rwxrwxrwx 1 root root 47728 Feb 6 2018 check_game
-rwxrwxrwx 1 root root 12160 Feb 22 2017 check_graphite
-rwxrwxrwx 1 root root 8815 Feb 22 2017 check_haproxy
-rwxrwxrwx 1 root root 6260 Feb 22 2017 check_haproxy_stats
lrwxrwxrwx 1 root root 10 Feb 6 2018 check_host -> check_icmp
-rwxrwxrwx 1 root root 348339 Feb 22 2017 check_hpasm
-rwxrwxrwx 1 root root 30478 Feb 22 2017 check_hp_bladechassis
-rwxrwxrwx 1 root root 55696 Feb 6 2018 check_hpjd
-rwxrwxrwx 1 root root 101904 Feb 6 2018 check_http
-rwxrwxrwx 1 root root 11694 Feb 22 2017 check_httpd_status
-rwxrwxrwx 1 root root 63728 Feb 6 2018 check_icmp
-rwxrwxrwx 1 root root 47728 Feb 6 2018 check_ide_smart
-rwxrwxrwx 1 root root 15265 Feb 6 2018 check_ifoperstatus
-rwxrwxrwx 1 root root 13409 Feb 6 2018 check_ifstatus
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_imap -> check_tcp
-rwxrwxrwx 1 root root 12403 Feb 22 2017 check_imap_quota
-rwxrwxrwx 1 root root 6328 Feb 22 2017 check_imap_quota_epn
-rwxrwxrwx 1 root root 37614 Feb 22 2017 check_imap_receive
-rwxrwxrwx 1 root root 15745 Feb 22 2017 check_imap_receive_epn
-rwxrwxrwx 1 root root 32207 Feb 22 2017 check_ipmi_sensor
-rwxrwxrwx 1 root root 6922 Feb 6 2018 check_ircd
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_jabber -> check_tcp
-rwxrwxrwx 1 root root 56208 Feb 6 2018 check_ldap
lrwxrwxrwx 1 root root 10 Feb 6 2018 check_ldaps -> check_ldap
-rwxrwxrwx 1 root root 5961 Feb 22 2017 check_libs
-rwxrwxrwx 1 root root 17900 Feb 22 2017 check_libvirt
-rwxrwxrwx 1 root root 18529 Feb 22 2017 check_lm_sensors
-rwxrwxrwx 1 root root 47472 Feb 6 2018 check_load
-rwxrwxrwx 1 root root 5871 Feb 6 2018 check_log
-rwxrwxrwx 1 root root 22782 Feb 6 2018 check_mailq
-rwxrwxrwx 1 root root 26672 Feb 22 2017 check_memcached
-rwxrwxrwx 1 root root 5486 Feb 22 2017 check_memory
-rwxrwxrwx 1 root root 65176 Feb 22 2017 check_mongodb
lrwxrwxrwx 1 root root 13 Feb 22 2017 check_mongodb.py -> check_mongodb
-rwxrwxrwx 1 root root 47664 Feb 6 2018 check_mrtg
-rwxrwxrwx 1 root root 47536 Feb 6 2018 check_mrtgtraf
-rwxrwxrwx 1 root root 156260 Jul 14 2017 check_multi
-rwxrwxrwx 1 root root 58768 Feb 22 2017 check_multipath
-rwxrwxrwx 1 root root 60384 Feb 6 2018 check_mysql
-rwxrwxrwx 1 root root 126474 Feb 22 2017 check_mysql_health
-rwxrwxrwx 1 root root 51888 Feb 6 2018 check_mysql_query
-rwxrwxrwx 1 root root 51632 Feb 6 2018 check_nagios
-rw-rw-r-- 1 ozadmin ozadmin 11613 Nov 12 22:05 check_ncpa.py
-rwxrwxrwx 1 root root 4342 Feb 22 2017 check_nfsmounts
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_nntp -> check_tcp
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_nntps -> check_tcp
-rwxrwxrwx 1 root root 48264 Feb 10 2018 check_nrpe
-rwxrwxrwx 1 root root 64112 Feb 6 2018 check_nt
-rwxrwxrwx 1 root root 60016 Feb 6 2018 check_ntp
-rwxrwxrwx 1 root root 60240 Feb 6 2018 check_ntp_peer
-rwxrwxrwx 1 root root 55952 Feb 6 2018 check_ntp_time
-rwxrwxrwx 1 root root 72208 Feb 6 2018 check_nwstat
-rwxrwxrwx 1 root root 8860 Feb 6 2018 check_oracle
-rwxrwxrwx 1 root root 55792 Feb 6 2018 check_overcr
-rwxrwxrwx 1 root root 10553 Feb 22 2017 check_packages
-rwxrwxrwx 1 root root 60272 Feb 6 2018 check_pgsql
-rwxrwxrwx 1 root root 64144 Feb 6 2018 check_ping
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_pop -> check_tcp
-rwxrwxrwx 1 root root 10603 Feb 22 2017 check_printer
-rwxrwxrwx 1 root root 64376 Feb 6 2018 check_procs
-rwxrwxrwx 1 root root 270675 Feb 22 2017 check_raid
-rwxrwxrwx 1 root root 15969 Feb 22 2017 check_rbl
-rwxrwxrwx 1 root root 51792 Feb 6 2018 check_real
-rwxrwxrwx 1 root root 141805 Feb 22 2017 check_redis
-rwxrwxrwx 1 root root 9667 Feb 6 2018 check_rpc
lrwxrwxrwx 1 root root 10 Feb 6 2018 check_rta_multi -> check_icmp
-rwxrwxrwx 1 root root 8111 Feb 22 2017 check_running_kernel
-rwxrwxrwx 1 root root 1462 Feb 6 2018 check_sensors
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_simap -> check_tcp
-rwxrwxrwx 1 root root 6289 Feb 22 2017 check_smstools
-rwxrwxrwx 1 root root 72592 Feb 6 2018 check_smtp
-rwxrwxrwx 1 root root 24545 Feb 22 2017 check_smtp_send
-rwxrwxrwx 1 root root 13382 Feb 22 2017 check_smtp_send_epn
-rwxrwxrwx 1 root root 81424 Feb 6 2018 check_snmp
-rwxrwxrwx 1 root root 12874 Dec 8 2016 check_snmp_boostedge.pl
-rwxrwxrwx 1 root root 21084 Dec 8 2016 check_snmp_cpfw.pl
-rwxrwxrwx 1 root root 10275 Dec 8 2016 check_snmp_css_main.pl
-rwxrwxrwx 1 root root 20503 Dec 8 2016 check_snmp_css.pl
-rwxrwxrwx 1 root root 97676 Feb 22 2017 check_snmp_environment
-rwxrwxrwx 1 root root 42994 Dec 8 2016 check_snmp_env.pl
-rwxrwxrwx 1 root root 41339 Dec 8 2016 check_snmp_int.pl
-rwxrwxrwx 1 root root 11766 Dec 8 2016 check_snmp_linkproof_nhr.pl
-rwxrwxrwx 1 root root 28685 Dec 8 2016 check_snmp_load.pl
-rwxrwxrwx 1 root root 22150 Dec 8 2016 check_snmp_mem.pl
-rwxrwxrwx 1 root root 14295 Dec 8 2016 check_snmp_nsbox.pl
-rwxrwxrwx 1 root root 31289 Dec 8 2016 check_snmp_process.pl
-rwxrwxrwx 1 root root 30270 Dec 8 2016 check_snmp_storage.pl
-rwxrwxrwx 1 root root 12038 Feb 22 2017 check_snmp_time
-rwxrwxrwx 1 root root 17248 Dec 8 2016 check_snmp_vrrp.pl
-rwxrwxrwx 1 root root 13012 Dec 8 2016 check_snmp_win.pl
-rwxrwxrwx 1 root root 8010 Feb 22 2017 check_soas
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_spop -> check_tcp
-rwxrwxrwx 1 root root 51792 Feb 6 2018 check_ssh
-rwxrwxrwx 1 root root 55778 Feb 22 2017 check_ssl_cert
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_ssmtp -> check_tcp
-rwxrwxrwx 1 root root 2980 Feb 22 2017 check_statusfile
-rwxrwxrwx 1 root root 47536 Feb 6 2018 check_swap
-rwxrwxrwx 1 root root 64528 Feb 6 2018 check_tcp
-rwxrwxrwx 1 root root 51760 Feb 6 2018 check_time
lrwxrwxrwx 1 root root 9 Feb 6 2018 check_udp -> check_tcp
-rwxrwxrwx 1 root root 55856 Feb 6 2018 check_ups
-rwxrwxrwx 1 root root 26624 Feb 22 2017 check_uptime
-rwxrwxrwx 1 ozadmin ozadmin 1600 Nov 15 16:21 check_url.pl
-rwxrwxrwx 1 root root 43344 Feb 6 2018 check_users
-rwxrwxrwx 1 root root 9884 Feb 22 2017 check_v46
-rwxrwxrwx 1 root root 14408 Feb 22 2017 check_varnish
-rwxrwxrwx 1 root root 3001 Feb 6 2018 check_wave
-rwxrwxrwx 1 root root 875 Feb 22 2017 check_webinject
-rwxrwxrwx 1 root root 9242 Feb 22 2017 check_whois
-rwxrwxrwx 1 root root 8762 Feb 22 2017 check_zone_auth
-rwxrwxrwx 1 root root 8500 Feb 22 2017 check_zone_rrsig_expiration
-rwxrwxrwx 1 root root 6397 Feb 22 2017 imap_ssl_cert
-rwxrwxrwx 1 root root 3480 Feb 22 2017 imap_ssl_cert_epn
-rwxrwxrwx 1 root root 43368 Feb 6 2018 negate
-rwxrwxrwx 1 root root 19335 Feb 22 2017 pmp-check-aws-rds.py
-rwxrwxrwx 1 root root 6521 Feb 22 2017 pmp-check-lvm-snapshots
-rwxrwxrwx 1 root root 27428 Feb 22 2017 pmp-check-mongo.py
-rwxrwxrwx 1 root root 6920 Feb 22 2017 pmp-check-mysql-deadlocks
-rwxrwxrwx 1 root root 10818 Feb 22 2017 pmp-check-mysql-deleted-files
-rwxrwxrwx 1 root root 11497 Feb 22 2017 pmp-check-mysql-file-privs
-rwxrwxrwx 1 root root 13074 Feb 22 2017 pmp-check-mysql-innodb
-rwxrwxrwx 1 root root 11138 Feb 22 2017 pmp-check-mysql-pidfile
-rwxrwxrwx 1 root root 11988 Feb 22 2017 pmp-check-mysql-processlist
-rwxrwxrwx 1 root root 10808 Feb 22 2017 pmp-check-mysql-replication-delay
-rwxrwxrwx 1 root root 9469 Feb 22 2017 pmp-check-mysql-replication-running
-rwxrwxrwx 1 root root 16967 Feb 22 2017 pmp-check-mysql-status
-rwxrwxrwx 1 root root 8051 Feb 22 2017 pmp-check-mysql-ts-count
-rwxrwxrwx 1 root root 8922 Feb 22 2017 pmp-check-pt-table-checksum
-rwxrwxrwx 1 root root 7112 Feb 22 2017 pmp-check-unix-memory
-rwxrwxrwx 1 root root 39080 Feb 6 2018 urlize
-rwxrwxrwx 1 root root 1958 Feb 6 2018 utils.pm
-rwxrwxrwx 1 root root 2805 Feb 6 2018 utils.sh

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:39 pm
by scottwilkerson
Ok, change your command definition to

Code: Select all

define command {

command_name check_url
command_line $USER1$/check_url.pl -I $ARG1$
}

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:40 pm
by kmartin2007
done... testing


define command {

command_name check_url
command_line $USER1$/check_url.pl -I $ARG1$
}

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:41 pm
by kmartin2007
that did not work.


2019-11-15 17:41:14 2d 20h 38m 53s 2/2 (Return code of 127 is out of bounds - plugin may be missing)

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Fri Nov 15, 2019 12:43 pm
by scottwilkerson
kmartin2007 wrote:that did not work.


2019-11-15 17:41:14 2d 20h 38m 53s 2/2 (Return code of 127 is out of bounds - plugin may be missing)
Did you restart nagios?