testing from nagios server itself

Johannes Dagemark jd at op5.com
Wed Jul 29 09:03:38 CEST 2009


Thomas Kinghorn - MWEB wrote:
> Good morning list
> I would like to run a check_sipsak check from the nagios-server to the 
> a sip server.
> Running the command from cli, without arguments, gives
> ./check_sipsak
> /ERROR: Sorry, but a hostname or full URI must be given./
> /check_sipsak -H host [-c contact] [-P proxy] [-p port] [-u user] [-U 
> uri] [-v]/
> so, adding arguments, gives:
> # ./check_sipsak –H <sip.server.name> -u <username>
> SIP OK: SIP ok
> In the checkcommands.cfg I have
> # 'check_sipsak' command definition
> define command{
> command_name check_sipsak
> command_line $USER1$/check_sipsak -H $ARG1$ -u $ARG2$
> }
> And in the servername.cfg, I have
> define service{
> use generic-service
> host_name /servername/
> service_description SIP REGISTRATION
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 3
> retry_check_interval 1
> contact_groups unix-admins,voip-admins
> notification_interval 60
> notification_period 24x7
> notification_options w,u,c,r
> check_command check_sipsak!/servername/!/username/
> }
> However, when nagios runs, it returns
> SIP CRITICAL: SIP failure ("...")
> Any kicks in the right direction would be appreciated.
My guess is permissions problem, try executing the command as the user 
you're running nagios as and see what happens.

Cheers
Johannes
> Thanks
> Tom
>
> This electronic communication and the attached file(s) are subject to 
> a disclaimer which can be accessed on the following link: Disclaimer 
> <http://www.mweb.co.za/disclaimer> - or copy the following URL into 
> your browser - http://www.mweb.co.za/disclaimer. If you are unable to 
> view the disclaimer, please contact abuse at mweb.com 
> <mailto:abuse at mweb.com> for a copy.
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


-- 
Johannes Dagemark
CTO / VP Engineering
________________________________________

op5 AB
Första Långgatan 19
SE-413 27 Gothenburg
cell: +46 733-70 90 24
fax:  +46 31-774 04 32
Email: jd at op5.com
http://www.op5.com/


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list