Nagios XI Status Information coming back as 'null'
Posted: Thu Aug 22, 2013 5:22 am
Hi,
I have an issue where the command runs fine on CLI but Nagios XI keeps reporting it as 'null'. I can't see any differences in the way the services are defined...
Its based on a custom plugin available on the Exchange.
define host {
host_name IBM SAN
use xiwizard_generic_host
address XX.XX.XX.XX
max_check_attempts 5
check_period 24x7
contacts support
notification_interval 60
notification_period 24x7
notifications_enabled 1
register 1
}
define service {
host_name IBM SAN
service_description IBM STORAGE SUBSYSTEM TOTALS
use generic-service
check_command check_IBM_DS_performance_overall!!!!!!!!
max_check_attempts 5
check_period 24x7
event_handler notify-service-by-email
event_handler_enabled 1
notification_period 24x7
notifications_enabled 1
contacts support
register 1
}
define command {
command_name check_IBM_DS_performance_overall
command_line /usr/local/nagios/libexec/check_IBM_performance_v1.5.2 -i "XX.XX.XX.XX" -j "XX.XX.XX.XX"
}
Running same command in CLI as nagios user:
[nagios@nagios libexec]$ /usr/local/nagios/libexec/check_IBM_performance_v1.5.2 -i "XX.XX.XX.XX" -j "XX.XX.XX.XX"
OK STORAGE SUBSYSTEM TOTALS KBps=53725, IOPS=2807, Reads 12%, Cache Hits 17% | Bps=55014400 IOPS=2807 Read_pct=12% CacheHit_pct=17%
I have Nagios XI coming back as null:
Date / Time Host Service State State Type Attempt Information
2013-08-22 10:19:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL HARD 5 of 5 (null)
2013-08-22 10:17:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 4 of 5 (null)
2013-08-22 10:15:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 3 of 5 (null)
2013-08-22 10:13:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 2 of 5 (null)
2013-08-22 10:11:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 1 of 5 (null)
I have other services defined similarly that work just fine... A bit confused as to what I am missing here.
I have an issue where the command runs fine on CLI but Nagios XI keeps reporting it as 'null'. I can't see any differences in the way the services are defined...
Its based on a custom plugin available on the Exchange.
define host {
host_name IBM SAN
use xiwizard_generic_host
address XX.XX.XX.XX
max_check_attempts 5
check_period 24x7
contacts support
notification_interval 60
notification_period 24x7
notifications_enabled 1
register 1
}
define service {
host_name IBM SAN
service_description IBM STORAGE SUBSYSTEM TOTALS
use generic-service
check_command check_IBM_DS_performance_overall!!!!!!!!
max_check_attempts 5
check_period 24x7
event_handler notify-service-by-email
event_handler_enabled 1
notification_period 24x7
notifications_enabled 1
contacts support
register 1
}
define command {
command_name check_IBM_DS_performance_overall
command_line /usr/local/nagios/libexec/check_IBM_performance_v1.5.2 -i "XX.XX.XX.XX" -j "XX.XX.XX.XX"
}
Running same command in CLI as nagios user:
[nagios@nagios libexec]$ /usr/local/nagios/libexec/check_IBM_performance_v1.5.2 -i "XX.XX.XX.XX" -j "XX.XX.XX.XX"
OK STORAGE SUBSYSTEM TOTALS KBps=53725, IOPS=2807, Reads 12%, Cache Hits 17% | Bps=55014400 IOPS=2807 Read_pct=12% CacheHit_pct=17%
I have Nagios XI coming back as null:
Date / Time Host Service State State Type Attempt Information
2013-08-22 10:19:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL HARD 5 of 5 (null)
2013-08-22 10:17:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 4 of 5 (null)
2013-08-22 10:15:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 3 of 5 (null)
2013-08-22 10:13:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 2 of 5 (null)
2013-08-22 10:11:04 IBM SAN IBM STORAGE SUBSYSTEM TOTALS CRITICAL SOFT 1 of 5 (null)
I have other services defined similarly that work just fine... A bit confused as to what I am missing here.