[Nagiosplug-help] check_disk showing Unknow status

eagle at tnetnz.com eagle at tnetnz.com
Tue Oct 14 14:20:03 CEST 2003

Hi All,

I experienced a very strange problem on using check_disk plugin on remote 
server through check_by_ssh plugin. It is showing "unknown" status 
intermittently on service detail page of nagios. Whe it is showing unknown 
status, it still shows correct status information (DISK OK [3485820 kB (11%) 
free on /] [113795 kB (90%) free on /boot]). I configured this service for 
multiple hosts and only one of them having this problem.  The only real 
difference between these hosts is percentage of free space.  The one which has 
problem is having the lowest free space(11%). When I run the command in 
console, it never return Unknow status. Here is how I run the command in 

-bash-2.05b$ /usr/lib/nagios/plugins/check_by_ssh -t 30 -l root -H -C '/root/check_disk -m -w 10% -c 5%';echo $?
DISK OK [3972484 kB (13%) free on /] [113795 kB (90%) free on /boot]

Here is some configuration of our system. We done all our configuration of 
nagios through nagmin module on webmin. 

Monitoring Server
RedHat 9

Monitoring Client
RedHat 7.1

define service {
    name    generic-service
    check_command    check-host-alive
    check_period    24x7
    notification_period    24x7
    is_volatile    0
    max_check_attempts    10
    normal_check_interval    10
    retry_check_interval    1
    notification_interval    0
    notification_options    w,u,c,r
    active_checks_enabled    1
    passive_checks_enabled    1
    parallelize_check    1
    obsess_over_service    1
    check_freshness    0
    notifications_enabled    1
    event_handler_enabled    1
    flap_detection_enabled    1
    process_perf_data    1
    retain_status_information    1
    retain_nonstatus_information    1
    register    0

define service {
    use    generic-service
    host_name    bb,bbora,mail2,mail3
    service_description    Remote-Disk
    contact_groups    linux-admins
    check_period    24x7
    notification_interval    0
    notification_options    w,u,c,r
    notification_period    24x7
    check_command    check_remote_disk
    max_check_attempts    10
    normal_check_interval    10
    retry_check_interval    1

define command {
    command_name    check_remote_disk
    command_line    $USER1$/check_by_ssh -t 30 -l root -H $HOSTADDRESS$ -
C '/root/check_disk -m -w 10% -c 5%'

Any help is appreciate.




More information about the Help mailing list