Re: [Nagios-users] Error: Service check command

2012-06-14 Thread Giorgio Zarrelli
Right,
Please provide the Service definition

Ciao,

Giorgio

Il giorno 12/giu/2012, alle ore 15:18, Claudio Kuenzler 
c...@claudiokuenzler.com ha scritto:

 
 On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado henri@gmail.com wrote:
 Hi.
 
 I'm trying to add the check_ftp command for one of my hosts. But i got this 
 error:
 
 Error: Service check command 'check_ftp -H ftpserver' specified in service 
 'FTP' for host ' ftpserver' not defined anywhere!
 Checked 89 services.
 
 
 In my commands.cfg I have:
 
 # 'check_ftp' command definition
 define command{
 command_namecheck_ftp
 command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
 }
 
 
 What i'm missing?
 
 Show the service definition which fails.
 The command definition looks alright.
  
 
 Tks
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Service check command

2012-06-14 Thread Henrique Machado
I've already solved it. The problem was the -H in te service definiton.
Thanks


Att,

Henrique Machado
ITIL V3 Certified


2012/6/12 Giorgio Zarrelli zarre...@linux.it

 Right,
 Please provide the Service definition

 Ciao,

 Giorgio

 Il giorno 12/giu/2012, alle ore 15:18, Claudio Kuenzler 
 c...@claudiokuenzler.com ha scritto:


 On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado henri@gmail.comwrote:

 Hi.

 I'm trying to add the check_ftp command for one of my hosts. But i got
 this error:

 Error: Service check command 'check_ftp -H ftpserver' specified in
 service 'FTP' for host ' ftpserver' not defined anywhere!
 Checked 89 services.


 In my commands.cfg I have:

 # 'check_ftp' command definition
 define command{
 command_namecheck_ftp
 command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
 }


 What i'm missing?


 Show the service definition which fails.
 The command definition looks alright.



 Tks


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

 ___
 Nagios-users mailing list
 Nagios-users@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



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@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

[Nagios-users] Error: Service check command

2012-06-12 Thread Henrique Machado
Hi.

I'm trying to add the check_ftp command for one of my hosts. But i got this
error:

Error: Service check command 'check_ftp -H ftpserver' specified in service
'FTP' for host ' ftpserver' not defined anywhere!
Checked 89 services.


In my commands.cfg I have:

# 'check_ftp' command definition
define command{
command_namecheck_ftp
command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
}


What i'm missing?

Tks
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Service check command

2012-06-12 Thread Claudio Kuenzler
On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado henri@gmail.comwrote:

 Hi.

 I'm trying to add the check_ftp command for one of my hosts. But i got
 this error:

 Error: Service check command 'check_ftp -H ftpserver' specified in service
 'FTP' for host ' ftpserver' not defined anywhere!
 Checked 89 services.


 In my commands.cfg I have:

 # 'check_ftp' command definition
 define command{
 command_namecheck_ftp
 command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
 }


 What i'm missing?


Show the service definition which fails.
The command definition looks alright.



 Tks


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Service check command

2012-06-12 Thread Travis Runyard
Don't specify -H ftpserver in the service definition since the command
already knows which host to check.

Good:

define service{
use  generic-service
hostgroup_nameweb-servers
service_descriptionFTP
check_command   check_ftp
}

Bad:

define service{
use  generic-service
hostgroup_nameweb-servers
service_descriptionFTP
check_command   check_ftp -H ftpserver
}

On Tue, Jun 12, 2012 at 6:18 AM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:


 On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado henri@gmail.comwrote:

 Hi.

 I'm trying to add the check_ftp command for one of my hosts. But i got
 this error:

 Error: Service check command 'check_ftp -H ftpserver' specified in
 service 'FTP' for host ' ftpserver' not defined anywhere!
 Checked 89 services.


 In my commands.cfg I have:

 # 'check_ftp' command definition
 define command{
 command_namecheck_ftp
 command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
 }


 What i'm missing?


 Show the service definition which fails.
 The command definition looks alright.



 Tks


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Service check command

2012-06-12 Thread Henrique Machado
Yeah! The good worked for me. Thank you guys.

2012/6/12 Travis Runyard travisruny...@gmail.com

 Don't specify -H ftpserver in the service definition since the command
 already knows which host to check.

 Good:

 define service{
 use  generic-service
 hostgroup_nameweb-servers
 service_descriptionFTP
 check_command   check_ftp
 }

 Bad:

 define service{
 use  generic-service
 hostgroup_nameweb-servers
 service_descriptionFTP
 check_command   check_ftp -H ftpserver
 }

 On Tue, Jun 12, 2012 at 6:18 AM, Claudio Kuenzler 
 c...@claudiokuenzler.comwrote:


 On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado henri@gmail.comwrote:

 Hi.

 I'm trying to add the check_ftp command for one of my hosts. But i got
 this error:

 Error: Service check command 'check_ftp -H ftpserver' specified in
 service 'FTP' for host ' ftpserver' not defined anywhere!
 Checked 89 services.


 In my commands.cfg I have:

 # 'check_ftp' command definition
 define command{
 command_namecheck_ftp
 command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
 }


 What i'm missing?


 Show the service definition which fails.
 The command definition looks alright.



 Tks


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@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