Hi Team ,
I am facing issue while monitor dns service in our environment. we are using nagios 3.5.1
[root@COPSNAGIOS libexec]# ./check_dns -H ltiappshop.com -t 40
Segmentation fault (core dumped)
[root@COPSNAGIOS libexec]#
Command cfg :
#'check_dns' command definition
define command{
command_name check_dns
command_line /usr/local/nagios/libexec/check_dns -H ltiappshop.com -t 40
}
server.cfg
define service{
use generic-service1
host_name prod_apache_web
service_description DNS
max_check_attempts 3
normal_check_interval 2
retry_check_interval 1
check_command check_dns
}
in Gui it show errror
(Return code of 139 is out of bounds)
nagios log :
[1444625787] Warning: Return code of 139 for check of service 'DNS' on host 'prod_apache_web' was out of bounds.
messages logs :
Oct 12 10:22:17 COPSNAGIOS abrtd: Executable '/usr/local/nagios/libexec/check_dns' doesn't belong to any package and ProcessUnpackaged is set to 'no'
Oct 12 10:22:17 COPSNAGIOS abrtd: 'post-create' on '/var/spool/abrt/ccpp-2015-10-12-10:22:17-19323' exited with 1
Oct 12 10:22:17 COPSNAGIOS abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2015-10-12-10:22:17-19323'
Oct 12 10:22:25 COPSNAGIOS nagios: ndomod: Still unable to connect to data sink. 4468414 items lost, 5000 queued items to flush.
Oct 12 10:22:27 COPSNAGIOS nagios: Warning: Return code of 139 for check of service 'DNS' on host 'prod_apache_web' was out of bounds.
Oct 12 10:22:41 COPSNAGIOS nagios: ndomod: Still unable to connect to data sink. 4468895 items lost, 5000 queued items to flush.
Oct 12 10:22:44 COPSNAGIOS kernel: check_dns[19665]: segfault at 0 ip 0000000000403b16 sp 00007fffb3488690 error 4 in check_dns[400000+f000]
Oct 12 10:22:44 COPSNAGIOS abrtd: Directory 'ccpp-2015-10-12-10:22:44-19665' creation detected
Oct 12 10:22:44 COPSNAGIOS abrt[19893]: Saved core dump of pid 19665 (/usr/local/nagios/libexec/check_dns) to /var/spool/abrt/ccpp-2015-10-12-10:22:44-19665 (401408 bytes)
Please help us to resolve this issue
Reagrds,
Jatin Alve
Segmentation fault (core dumped) (check_dns)
-
- Posts: 1
- Joined: Mon Apr 28, 2014 12:32 am
Re: Segmentation fault (core dumped) (check_dns)
What OS and version are you on?
Former Nagios employee