+ No Output



have a problem with which returns No Output on execution.
If i execute the command manually as the user nagios as :
[blockquote]/usr/bin/perl /usr/lib/nagios/plugins/contrib/ -u user -p pass -c SK1 -a[/blockquote] , I get [blockquote]SK1: ok. Oracle9i Enterprise Edition Release - Production[/blockquote].
But the same as service is not working.
The commands.cfg entry is :
[blockquote]# ‘check_oracle_inst_act_conn’ command definition active-sessions
define command{
command_name check_oracle_inst_act_conns
command_line /usr/bin/perl $USER2$/ -u $ARG1$ -p $ARG2$ -c $ARG3$ -a
where [blockquote]USER2=/usr/lib/nagios/plugins/contrib.[/blockquote]

The services,cfg is :
[blockquote]define service{
use oracle-inst-active-sessions
service_description ORACLE-INSTANCE-ACTIVE-SESSIONS-SeaKey-Staging
contact_groups einsteins
check_command check_oracle_inst_act_conns!seakey!keysea!SK1

Please help me out in getting this oracle plugin working.

If anyone can guide me how to monitor the clustered oracle instances that would be great



You ran this:
/usr/bin/perl /usr/lib/nagios/plugins/contrib/ -u user -p pass -c SK1 -a
and it worked, but then you defined this:

The 2 are not the same.



the command worked when from command line as the user nagios with /usr/bin/perl and without /usr/bin/perl hence i gave a shot at the command definition of exluding the /usr/bin/perl. but this gives no output even if you preceed the command with /usr/bin/perl


What he’s saying is that your services.cfg check_command definition is wrong, Prashant.