testing from nagios server itself
Marc Powell
marc at ena.com
Wed Jul 29 17:47:12 CEST 2009
On Jul 29, 2009, at 1:25 AM, 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.
Where did you get this plugin? It doesn't appear to live at any of the
common plugin repositories.
> # ./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
> }
This seems reasonable, provided servername is a FQDN and is the same
as what you tested above.
>
> However, when nagios runs, it returns
>
> SIP CRITICAL: SIP failure ("...")
Does it really print '("...")' or is that creative editing? If there's
more output, please post it. Have you looked at the script to see
under what conditions that's shown?
My guess would be an environment issue. The script may call external
programs but not specify the full paths to them, may depend on
environment variables that are not present, etc.
--
Marc
------------------------------------------------------------------------------
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