Notice Unknown on nagios !

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ky_pim
Posts: 7
Joined: Sat Sep 06, 2014 10:43 pm

Notice Unknown on nagios !

Post 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.
Attachments
normal status
normal status
unknown status
unknown status
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Notice Unknown on nagios !

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ky_pim
Posts: 7
Joined: Sat Sep 06, 2014 10:43 pm

Re: Notice Unknown on nagios !

Post 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.
Attachments
A.PNG
B.PNG
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Notice Unknown on nagios !

Post 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.
Former Nagios Employee
Locked