NRPE
Morris, Patrick
patrick.morris at hp.com
Thu Aug 10 22:28:21 CEST 2006
> Hello all
> I am running Nagios2.5 on a fredora core 5 server i am
> trying to check uptime on a windows xp prof. desktop. i have
> the NSclient installed on the desktop and i can check the
> uptime on the desktop using the ./check_nt -H <host IP> -p
> 1248 -v UPTIME
>
> but configuring my minimal.cfg and my checkcommands.cfg file
> i get an error the error is as below
>
> Checking services...
> Error: Service check command 'check_nt -H 172.16.1.103 -p
> 1248 -v' specified in service 'check-nt' for host 'helpdesk'
> not defined anywhere!
> Checked 1 services.
>
>
> define host{
> use generic-host ;
> Name of host template to use
> host_name helpdesk
> alias helpdesk
> address 172.16.1.103
> check_command check-nt
> max_check_attempts 10
> check_period 24x7
> notification_interval 120
> notification_period 24x7
> notification_options d,r
> contact_groups admins
> }
>
> define service{
> use generic-service
> ; Name of service template to use
> host_name helpdesk
> service_description check-nt
> is_volatile 0
> check_period 24x7
> max_check_attempts 4
> normal_check_interval 5
> retry_check_interval 1
> contact_groups admins
> notification_options w,u,c,r
> notification_interval 960
> notification_period 24x7
> check_command check_nt -H
> 172.16.1.103 -p 1248 -v
> }
>
>
>
> define command{
> command_name check_nt
>
> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p $ARG1$
> -v check-nt
> }
>
> any help is appreciated
You have two issues. One is that you're defining the service check
incorrectly. You probably want to have a chack_command of
check_nt!1248, and a command_line of $USER1$/check_nt -H $HOSTADDRESS -p
$ARG1$ -v check-nt (I'm guessing -- what you're using now is definitely
wrong, though).
Your second problem is probably that you're not including the file where
you defined that command when you start Nagios.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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