check_blackberry5 and error (Return code of 127)
Re: check_blackberry5 and error (Return code of 127)
[root@Mis1SmMo02 libexec]# which snmpwalk
/usr/bin/snmpwalk
[root@Mis1SmMo02 libexec]# ls -l /usr/bin/snmpwalk
-rwxr-xr-x 1 root root 14352 Nov 22 10:01 /usr/bin/snmpwalk
[root@Mis1SmMo02 libexec]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.***.*** '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' Timeout: No Response from 172.16.124.149
[root@Mis1SmMo02 libexec]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.***.*** '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}'
Timeout: No Response from 172.16.124.149
[root@Mis1SmMo02 libexec]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.***.*** '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}' | awk '{print $4}' | tr -d '\n'
Timeout: No Response from 172.16.124.149
[root@Mis1SmMo02 libexec]#
/usr/bin/snmpwalk
[root@Mis1SmMo02 libexec]# ls -l /usr/bin/snmpwalk
-rwxr-xr-x 1 root root 14352 Nov 22 10:01 /usr/bin/snmpwalk
[root@Mis1SmMo02 libexec]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.***.*** '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' Timeout: No Response from 172.16.124.149
[root@Mis1SmMo02 libexec]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.***.*** '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}'
Timeout: No Response from 172.16.124.149
[root@Mis1SmMo02 libexec]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.***.*** '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}' | awk '{print $4}' | tr -d '\n'
Timeout: No Response from 172.16.124.149
[root@Mis1SmMo02 libexec]#
Re: check_blackberry5 and error (Return code of 127)
Timeout: No Response from 172.16.124.149
That tells me that either SNMP is not running properly on the remote machine or there is a firewall in the way.
That tells me that either SNMP is not running properly on the remote machine or there is a firewall in the way.
Former Nagios employee
Re: check_blackberry5 and error (Return code of 127)
You are correct...
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16'
Timeout: No Response from 172.16.124.149
Made an adjustment on the server...
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16'
.1.3.6.1.4.1.3530.6.7.10.40.10.1.16.1.20 = INTEGER: 330
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}'
330
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}' | tr -d '\n'
330[root@Mis1SmMo02 ~]#
I went back to the Service Status in Nagios and reran the check and it comes back... (Return code of 127 is out of bounds - plugin may be missing)
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16'
Timeout: No Response from 172.16.124.149
Made an adjustment on the server...
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16'
.1.3.6.1.4.1.3530.6.7.10.40.10.1.16.1.20 = INTEGER: 330
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}'
330
[root@Mis1SmMo02 ~]# /usr/bin/snmpwalk -v 2c -c ddgpublic -On 172.16.124.149 '1.3.6.1.4.1.3530.6.7.10.40.10.1.16' | awk '{print $4}' | tr -d '\n'
330[root@Mis1SmMo02 ~]#
I went back to the Service Status in Nagios and reran the check and it comes back... (Return code of 127 is out of bounds - plugin may be missing)
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_blackberry5 and error (Return code of 127)
Can we get an updated look at your configuration? CCM > Services > "Click the blue diskette next to the service in question and paste the output here in code wraps" Thanks!
Re: check_blackberry5 and error (Return code of 127)
Code: Select all
Service 1
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-02-21 08:22:41
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
service_description BES Admin Service
use xiwizard_windowsserver_nsclient_service
hostgroup_name SVC - Blackberry BES 5.03
servicegroups SVC - Blackberry Services Critical
check_command check_xi_service_nsclient!S3rv3rk3y!SERVICESTATE!-l BAS-AS -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contact_groups IT Infrastructure 24-7 Email
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Service 2
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-02-21 08:23:08
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
service_description BES Controller
use xiwizard_windowsserver_nsclient_service
hostgroup_name SVC - Blackberry BES 5.03
servicegroups SVC - Blackberry Services Critical
check_command check_xi_service_nsclient!S3rv3rk3y!SERVICESTATE!-l "BlackBerry Controller" -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contact_groups IT Infrastructure 24-7 Email
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Service 3
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-02-21 08:23:32
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
service_description BES Dispatcher
use xiwizard_windowsserver_nsclient_service
hostgroup_name SVC - Blackberry BES 5.03
servicegroups SVC - Blackberry Services Critical
check_command check_xi_service_nsclient!S3rv3rk3y!SERVICESTATE!-l "BlackBerry Dispatcher" -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contact_groups IT Infrastructure 24-7 Email
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Service 4
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-02-21 08:23:54
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
service_description SVC - Blackberry 5.03 LicensesUsed
use xiwizard_generic_service
hostgroup_name SVC - Blackberry BES 5.03
servicegroups SVC - Blackberry Services Monitor
check_command check_blackberry_LicensesUsed!ddgpublic!-w 85 -c 90!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 0
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,f,s,
notifications_enabled 1
contact_groups IT Infrastructure 24-7 Email
_xiwizard dhcp
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Re: check_blackberry5 and error (Return code of 127)
Can you post the command definition for "check_blackberry_LicensesUsed" ?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: check_blackberry5 and error (Return code of 127)
Command Line
$ /usr/local/nagios/libexec/check_blackberry5 -H $HOSTADDRESS$ -C $ARG1$ -Q licenses $ARG2$
Command Type
check command
$ /usr/local/nagios/libexec/check_blackberry5 -H $HOSTADDRESS$ -C $ARG1$ -Q licenses $ARG2$
Command Type
check command
Re: check_blackberry5 and error (Return code of 127)
On the remote host, can you show me the output of:
Code: Select all
ls -la /usr/local/nagios/libexecFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: check_blackberry5 and error (Return code of 127)
Code: Select all
[root@Mis1SmMo02 ~]# ls -la /usr/local/nagios/libexec
total 6940
drwxrwxr-x 2 nagios nagios 4096 Feb 13 14:47 .
drwxr-xr-x 8 root root 4096 Nov 26 14:42 ..
-rwxr-xr-x 1 root root 348449 Nov 26 14:43 check_apt
-rwxr-xr-x 1 root root 6897 Nov 26 14:43 check_asterisk.pl
-rwxr-xr-x 1 root root 4173 Nov 26 14:43 check_bl
-rwxr-xr-x 1 root root 4351 Feb 13 14:00 check_blackberry5
-rwxr-xr-x 1 root root 2289 Nov 26 14:43 check_bpi.php
-rwxr-xr-x 1 root root 2274 Nov 26 14:43 check_breeze
-rwxr-xr-x 1 root root 92677 Nov 26 14:43 check_by_ssh
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_clamd -> check_tcp
-rwxr-xr-x 1 root root 50889 Nov 26 14:43 check_cluster
-r-sr-xr-x 1 root root 90353 Nov 26 14:43 check_dhcp
-rwxr-xr-x 1 root root 87797 Nov 26 14:43 check_dig
-rwxr-xr-x 1 root root 390578 Nov 26 14:43 check_disk
-rwxr-xr-x 1 root root 8163 Nov 26 14:43 check_disk_smb
-rwxr-xr-x 1 root root 96222 Nov 26 14:43 check_dns
-rwxr-xr-x 1 root root 46276 Nov 26 14:43 check_dummy
-rwxr-xr-x 1 root root 5625 Nov 26 14:43 check_em01.pl
-rwxr-xr-x 1 root root 38345 Nov 26 14:43 check_email_delivery
-rwxr-xr-x 1 root root 20511 Nov 26 14:43 check_email_delivery_epn
-rwxr-xr-x 1 root root 20039 Nov 26 14:43 check_email_loop.pl
-rwxr-xr-x 1 root root 82841 Nov 26 14:44 check_esx3.pl
-rwxr-xr-x 1 root root 3143 Nov 26 14:43 check_file_age
-rwxr-xr-x 1 root root 6395 Nov 26 14:43 check_flexlm
-rwxr-xr-x 1 root root 92088 Nov 26 14:43 check_fping
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_ftp -> check_tcp
-rwxr-xr-x 1 root root 3446 Nov 26 14:43 check_ftp_fully
-rwxr-xr-x 1 root root 90072 Nov 26 14:43 check_hpjd
-rwxr-xr-x 1 root root 470321 Nov 26 14:43 check_http
-r-sr-xr-x 1 root root 97797 Nov 26 14:43 check_icmp
-rwxr-xr-x 1 root root 59332 Nov 26 14:43 check_ide_smart
-rwxr-xr-x 1 root root 15310 Nov 26 14:43 check_ifoperstatus
-rwxr-xr-x 1 root root 12853 Nov 26 14:43 check_ifstatus
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_imap -> check_tcp
-rwxr-xr-x 1 root root 35413 Nov 26 14:43 check_imap_receive
-rwxr-xr-x 1 root root 15576 Nov 26 14:43 check_imap_receive_epn
-rwxr-xr-x 1 root root 7429 Nov 26 14:43 check_ircd
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_jabber -> check_tcp
-rwxr-xr-x 1 root root 73642 Nov 26 14:43 check_ldap
lrwxrwxrwx 1 root root 10 Nov 26 14:43 check_ldaps -> check_ldap
-rwxr-xr-x 1 root root 73522 Nov 26 14:43 check_load
-rwxr-xr-x 1 root root 6062 Nov 26 14:43 check_log
-rwxr-xr-x 1 root root 20367 Nov 26 14:43 check_mailq
-rwxr-xr-x 1 root root 59986 Nov 26 14:43 check_mrtg
-rwxr-xr-x 1 root root 58851 Nov 26 14:43 check_mrtgtraf
-rwxr-xr-x 1 root root 14024 Nov 26 14:44 check_mssql
-rwxr-xr-x 1 root root 13992 Nov 26 14:44 check_mssql_database.py
-rwxr-xr-x 1 root root 20215 Nov 26 14:44 check_mssql_server.py
-rwxr-xr-x 1 root root 94407 Nov 26 14:43 check_mysql
-rwxr-xr-x 1 root root 98711 Nov 26 14:43 check_mysql_health
-rwxr-xr-x 1 root root 86429 Nov 26 14:43 check_mysql_query
-rwxr-xr-x 1 root root 72471 Nov 26 14:43 check_nagios
-rwxr-xr-x 1 root root 6574 Nov 26 14:44 check_nagios_performance.php
-rwxr-xr-x 1 root root 17443 Nov 26 14:44 check_nagiosxiserver.php
-rwxr-xr-x 1 root root 4283 Nov 26 14:44 check_ncpa.py
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_nntp -> check_tcp
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_nntps -> check_tcp
-rwxrwxr-x 1 nagios nagios 76768 Nov 26 14:43 check_nrpe
-rwxr-xr-x 1 root root 93831 Nov 26 14:43 check_nt
-rwxr-xr-x 1 root root 96851 Nov 26 14:43 check_ntp
-rwxr-xr-x 1 root root 87067 Nov 26 14:43 check_ntp_peer
-rwxr-xr-x 1 root root 83853 Nov 26 14:43 check_ntp_time
-rwxr-xr-x 1 root root 125726 Nov 26 14:43 check_nwstat
-rwxr-xr-x 1 root root 8366 Nov 26 14:43 check_oracle
-rwxr-xr-x 1 root root 75755 Nov 26 14:43 check_overcr
-rwxr-xr-x 1 root root 69366 Nov 26 14:43 check_pgsql
-rwxr-xr-x 1 root root 99682 Nov 26 14:43 check_ping
-rwxr-xr-x 1 nagios nagios 6183 Nov 26 14:43 check_pnp_rrds.pl
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_pop -> check_tcp
-rwxr-xr-x 1 root root 281655 Nov 26 14:44 check_postgres.pl
-rwxr-xr-x 1 root root 368752 Nov 26 14:43 check_procs
-rwxr-xr-x 1 root root 23327 Nov 26 14:44 check_radius_adv
-rwxr-xr-x 1 root root 71150 Nov 26 14:43 check_real
-rwxr-xr-x 1 root root 9707 Nov 26 14:43 check_rpc
-rwxr-xr-x 1 root root 9232 Nov 26 14:43 check_rrdtraf
-rwxr-xr-x 1 root root 5299 Nov 26 14:43 check_rrdtraf.php
-rwxr-xr-x 1 root root 1176 Nov 26 14:43 check_sensors
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_simap -> check_tcp
-rw-r--r-- 1 root root 7599 Nov 26 14:43 check_sip
-rwxr-xr-x 1 root root 410483 Nov 26 14:43 check_smtp
-rwxr-xr-x 1 root root 20226 Nov 26 14:43 check_smtp_send
-rwxr-xr-x 1 root root 10440 Nov 26 14:43 check_smtp_send_epn
-rwxr-xr-x 1 root root 408623 Nov 26 14:43 check_snmp
-rwxr-xr-x 1 root root 10951 Nov 26 14:43 check_snmp_boostedge.pl
-rwxr-xr-x 1 root root 17866 Nov 26 14:43 check_snmp_cpfw.pl
-rwxr-xr-x 1 root root 8747 Nov 26 14:43 check_snmp_css_main.pl
-rwxr-xr-x 1 root root 16786 Nov 26 14:43 check_snmp_css.pl
-rwxr-xr-x 1 root root 33562 Nov 26 14:43 check_snmp_env.pl
-rwxr-xr-x 1 root root 23464 Nov 26 14:44 check_snmp_generic.pl
-rwxr-xr-x 1 root root 31919 Nov 26 14:43 check_snmp_int.pl
-rwxr-xr-x 1 root root 10108 Nov 26 14:43 check_snmp_linkproof_nhr.pl
-rwxr-xr-x 1 root root 22839 Nov 26 14:44 check_snmp_load.pl
-rwxr-xr-x 1 root root 23886 Nov 26 14:43 check_snmp_load_wizard.pl
-rwxr-xr-x 1 root root 18734 Nov 26 14:43 check_snmp_mem.pl
-rwxr-xr-x 1 root root 11898 Nov 26 14:43 check_snmp_nsbox.pl
-rwxr-xr-x 1 root root 26182 Nov 26 14:44 check_snmp_process.pl
-rwxr-xr-x 1 root root 26183 Nov 26 14:43 check_snmp_process_wizard.pl
-rwxr-xr-x 1 root root 25483 Nov 26 14:44 check_snmp_storage.pl
-rwxr-xr-x 1 root root 25484 Nov 26 14:43 check_snmp_storage_wizard.pl
-rwxr-xr-x 1 root root 14489 Nov 26 14:43 check_snmp_vrrp.pl
-rwxr-xr-x 1 root root 12058 Nov 26 14:44 check_snmp_win.pl
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_spop -> check_tcp
-rwxr-xr-x 1 root root 69110 Nov 26 14:43 check_ssh
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_ssmtp -> check_tcp
-rwxr-xr-x 1 root root 74812 Nov 26 14:43 check_swap
-rwxr-xr-x 1 root root 124557 Nov 26 14:43 check_tcp
-rwxr-xr-x 1 root root 71256 Nov 26 14:43 check_time
lrwxrwxrwx 1 root root 9 Nov 26 14:43 check_udp -> check_tcp
-rwxr-xr-x 1 root root 84182 Nov 26 14:43 check_ups
-rwxr-xr-x 1 root root 68851 Nov 26 14:43 check_users
-rwxr-xr-x 1 root root 3019 Nov 26 14:43 check_wave
-rwxr-xr-x 1 root root 307 Nov 26 14:43 check_webinject.sh
-rwxr-xr-x 1 root root 7065 Nov 26 14:44 check_win_snmp_disk.pl
-rwxr-xr-x 1 root root 2405 Nov 26 14:44 check_wmi_plus.conf
-rwxr-xr-x 1 root root 46543 Nov 26 14:44 check_wmi_plus.ini
-rwxr-xr-x 1 root root 237155 Nov 26 14:44 check_wmi_plus.pl
-rwxr-xr-x 1 root root 75027 Nov 26 14:43 negate
-rwxr-xr-x 1 nagios nagios 42724 Nov 26 14:43 process_perfdata.pl
-rwxr-xr-x 1 root root 64650 Nov 26 14:43 send_nsca
-rwxr-xr-x 1 root root 68282 Nov 26 14:43 urlize
-rwxr-xr-x 1 root root 2035 Nov 26 14:43 utils.pm
-rwxr-xr-x 1 root root 862 Nov 26 14:43 utils.sh
[root@Mis1SmMo02 ~]#
Re: check_blackberry5 and error (Return code of 127)
My apologies, it looks like this plugin does not run through an agent - I missed that. Was the libexec listing from the nagios server, or from the remote host (which I asked for in error)?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.