Page 1 of 1

Notice Unknown on nagios !

Posted: Sat Sep 17, 2016 10:20 pm
by ky_pim
Hi all,

Sorry, my english is very poor.

I have a nagios core server 4.0.8 version. Sometime, some service notified UNKNOWN status (1.png), but then it's back to normal status (2.png).

Please advise and help me handle this problem. :cry:

Thanks all.

Re: Notice Unknown on nagios !

Posted: Sun Sep 18, 2016 10:51 pm
by Box293
Most likely the plugin you are using is timing out and hence generating a unknown status.

Increase the timeout of the plugin in your command or service definition.

If you need help with this, you'll need to post your host, service and command definitions.

Re: Notice Unknown on nagios !

Posted: Mon Jan 02, 2017 3:22 am
by ky_pim
Thanks for your replying. My hosts, services and command.

My host:
###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.2.0
# Date: 2017-01-02 13:18:56
# 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 host {
host_name _UDP-C
alias 4F UDP-C
address 172.16.x.x
use xxx-server
contacts nagiosadmin
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

My service:
###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.2.0
# Date: 2017-01-02 13:18:57
# 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 {
#NAGIOSQL_CONFIG_NAME imp_n6t4-UDPC
host_name _UDP-A
service_description Current UDP C
display_name Current UDP C
use generic-env832-device
check_command check_current_pmm_udp!21!0!1100
passive_checks_enabled 1
register 1
}

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################

My Command:

define command {
command_name check_current_pmm_udp
command_line $USER1$/check_current_pmm.py -H $HOSTADDRESS$ -a $ARG1$ -c1 $ARG2$ -c2 $ARG3$
register 1
}


I attach my picture new.

Please help me.

Re: Notice Unknown on nagios !

Posted: Tue Jan 03, 2017 11:12 am
by rkennedy
You will want to modify the python script to have a longer timeout as @Box293 mentioned, or debug why that variable is happening. This isn't a standard plugin, so we're limited on the help we can provide for it.