Unknown state flapping

Aaron Macks amacks at techtarget.com
Mon Apr 18 18:27:36 CEST 2005


This is what nagios displays when there is a problem
stern;DISK;UNKNOWN;SOFT;1;DISK OK - free space:
executing the command direclty, as
ssh stern /apps/nagios/libexec/check_disk -w 15% -c 8% -e  -X proc -X 
tmpfs -X devpts -X iso9660 -X usbdevfs && echo $?
gives:
DISK OK - free space:| /=18888MB;27399;29656;0;32235 
/boot=19MB;167;181;0;197 /u1=1782MB;29283;31694;0;34451
0

thanks
aaron

>  > -----Original Message-----
>>  From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>>  admin at lists.sourceforge.net] On Behalf Of Aaron Macks
>>  Sent: Thursday, April 14, 2005 8:53 PM
>>  To: nagios-users at lists.sourceforge.net
>>  Subject: RE: [Nagios-users] Unknown state flapping
>>
>>  hoping the description would have jogged a memory
>>  nagios master:
>>  Red Hat Linux release 8.0 (Psyche)
>>  nagios 1.1
>>  ssh used to check client, 3.4
>>
>>  plugin from nagios-plugins 1.4
>>  check_disk
>>  check_load
>>  client OS Red Hat Linux release 7.2 (Enigma)
>>  ssh version 2.9.2
>>
>>  the other client with the same problem has the same stats
>>  there are several other clients with the same stats that exhibit no
>>  problems
>>
>>  I've recopied all of the keys and plugins to the clients and
>>  rechecked the configs
>>  the commands that cause the hosts to be checked:
>>  hosts.cfg:
>>  define host{
>>	use			generic-host
>>	host_name		stern
>>	alias			stern
>>	address			192.168.1.240
>>	check_command		check-host-alive
>>	max_check_attempts	10
>>	notification_interval	60
>>	notification_period	24x7
>>	notification_options	d,u,r
>>	}
>>
>>  hostgroups.cfg:
>>  define hostgroup {
>>	hostgroup_name	....primarydb
>>	alias			Primary Database servers
>>	contact_groups	sysadmins
>>	members			..., stern, ...
>>  }
>>
>>  services.cfg:
>>  define service {
>>	use				normal-service
>>	hostgroup_name			...primarydb
>>	service_description		DISK
>>	check_command			ssh_check_disk!15%!8%
>>	}
>>
>>  checkcommands.cfg:
>>  define command {
>>	command_name	ssh_check_disk
>>	command_line	/apps/nagios/libexec/check_by_ssh -t 15 -H
>>  $HOSTADDRESS$ -C '/apps/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$
>  > -e -X proc -X tmpfs -X devpts -X iso9660 -X usbdevfs'
>>	}
>
>
>These all look good. Can you provide the status information for a
>command when it returns an unknown status? I'd also try executing the
>command above in a while loop at the command line and echo the exit
>status. It's possible that there is other output that you are not seeing
>through nagios that is causing the problem or that is at the least
>informative.
>
>--
>Marc
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_ide95&alloc_id396&opick
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>::: Please include Nagios version, plugin version (-v) and OS when 
>reporting any issue.
>::: Messages without supporting info will risk being sent to /dev/null


-- 
____________________________________________
Aaron Macks		amacks at techtarget.com
TechTarget			PGP keyid: FBE946C5
117 Kendrick St, Suite 800	Phone: (781) 657-1519
Needham, MA 02494		Fax:      (781) 657-1100


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list