check_sip

Could somebody help me. I really don’t knwo what goes wrong.
When i run the command it goes fine.

./check_sip -u sip:123@server

‘check_sip’ command definition

define command{
command_name check_sip
command_line $USER1$/check_sip -u $ARG1$ -H $HOSTADDRESS$ -w 5
}

define service{
use generic-service
host_name server
service_description check_sip
check_command check_sip!sip:123@server
}

It rerurn : NULL

Could somebody help me.

Thanks

Hi,

change the command definition to:
define command{
command_name check_sip
command_line $USER1$/check_sip -u $ARG1$
}

and it should work :slight_smile:

No that doens 't work, i made a mistake.

The command ./check_sip -u sip:123@server -H server -w 5 works returns SIP status OK
but when i trie it trough nagios it returns NULL.

I found the solution in this forum. Thanks !!!

Doh !
it was so damn simple, all it needs is a simple change to one line of perl code. Edit check_sip and change
use lib “/usr/lib/nagios/plugins”;
to
use lib “/usr/local/nagios/libexec”;
(or whatever your installation path it).

[quote=“Thomas1978”]I found the solution in this forum. Thanks !!!

Doh !
it was so damn simple, all it needs is a simple change to one line of perl code. Edit check_sip and change
use lib “/usr/lib/nagios/plugins”;
to
use lib “/usr/local/nagios/libexec”;
(or whatever your installation path it).[/quote]

You are a genious man!! I spent 3 days to find out that silly misconfig inside the perl module!
Thanks again!!!
:smiley:

Keywords: Perl nagios plugin Status output null No output Centreon

Tasos.