Warning message not shown



I have a question about notification

I have a setup with active and passive checks. On the passive side the notifications are well received but not triggered.

I can see for an AS400 process “warning: messages need reply” but it still remains on ok, normally it should turn to warning. (see attachment). On the active side is the warning correct.

what can I check here?

Here is the check command

Service definition Message Queue Sysopr iSeries

define service{
use generic-service ; Name of service template to use
host_name AS400ANR
service_description Message Queue QSYSOPR
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups hosting-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_as400_msg!QSYSOPR


nagios.org/developerinfo/ext … and_id=114

Probably you have defined 0 for the <return_code> which means OK.
Try to check your syntax when submitting passive check result and correct the <return_code> variable. For Warning it should be 1, for Critical 2