Code: Select all
# 'check_jabber' command definition
define command{
command_name check-jabber
command_line /usr/lib64/nagios/plugins/check_jabber -H $ARG1$ -w $ARG2$ -c $ARG3$ -t $ARG4$
}
I forced max debug on logs and the command line final run command was:
/usr/lib64/nagios/plugins/check_jabber -H jabber.host.name.here.net -w 10 -c 20 -t 60
When I run that command manually (as nagios user) it works fine with the output:
JABBER OK - 0.098 second response time on port 5222|time=0.097569s;10.000000;20.000000;0.000000;60.000000
I also use check_imap which links to check_tcp (as does check_jabber) and it works fine on our mail hosts. Permissions of both check_imap and check_jabber is exactly the same. I only mention it since they both use check_tcp.
We are running on RHEL 6.2, using Nagios 3.4.1, nagios-plugins 1.4.16.
Anyone have a possible clue what this could be?