Re: [Nagios-users] Defining passive checks

2012-08-16 Thread Jonathan Gazeley
Hi Mohamed,

Thanks for your response - this worked.

Have a nice day,
Jonathan


On 16/08/12 08:08, mohamed ben romdhane wrote:
> Hello Jonathan,
>
> I think that you must put
> define service {
>  service_descriptionOracle
>  host_name  oddjob.resnet.bris.ac.uk
>  useresnet-service
> max_check_attempts1
> check_freshness 1
>  freshness_threshold 86400
> check_command   check_dummy!1 "no news since 24h"
> }
> => The check_dummy command will run if no passive check has been
> received within 24 hours (86400seconds) and display warnig alert (1)
> and info status "no news since 24h"
>
> Regards,
> Mohamed
> 
> *De :* Jonathan Gazeley 
> *À :* nagios-users@lists.sourceforge.net
> *Envoyé le :* Mercredi 15 août 2012 15h07
> *Objet :* [Nagios-users] Defining passive checks
>
> I'm a long-time user of Nagios with active checks. Today I started using
> passive checks with NSCA and I'm having a problem.
>
> The documentation states "A service must be defined in Nagios before you
> can submit passive check results for it".
>
> I defined a config block like this, to define a service for the Oracle
> service that I want to monitor passively - omitting the check_command
> directive.
>
> define service {
>  service_descriptionOracle
>  host_name  oddjob.resnet.bris.ac.uk
>  useresnet-service
> }
>
>
>
> But running nagios -v gives this output:
>
> Error: Service description, host name, or check command is NULL
> Error: Could not register service (config file
> '/etc/nagios/nagios_service.cfg', starting on line 8618)
>  Error processing object config files!
>
>
> So what's the approved way of defining a service without specifying a
> command for active checks?
>
> Thanks,
> Jonathan
>
> --
> 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
> <mailto: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] Defining passive checks

2012-08-16 Thread mohamed ben romdhane
Hello Jonathan,

I think that you must put 

define service {
         service_description            Oracle
         host_name                      oddjob.resnet.bris.ac.uk
         use                            resnet-service
        max_check_attempts        1
    check_freshness 1
    freshness_threshold 86400

        check_command   check_dummy!1 "no news since 24h"
}
=> The check_dummy command will run if no passive check has been received 
within 24 hours (86400seconds) and display warnig alert (1)  and info status 
"no news since 24h"

Regards, 

Mohamed



 De : Jonathan Gazeley 
À : nagios-users@lists.sourceforge.net 
Envoyé le : Mercredi 15 août 2012 15h07
Objet : [Nagios-users] Defining passive checks
 
I'm a long-time user of Nagios with active checks. Today I started using 
passive checks with NSCA and I'm having a problem.

The documentation states "A service must be defined in Nagios before you 
can submit passive check results for it".

I defined a config block like this, to define a service for the Oracle 
service that I want to monitor passively - omitting the check_command 
directive.

define service {
         service_description            Oracle
         host_name                      oddjob.resnet.bris.ac.uk
         use                            resnet-service
}



But running nagios -v gives this output:

Error: Service description, host name, or check command is NULL
Error: Could not register service (config file 
'/etc/nagios/nagios_service.cfg', starting on line 8618)
    Error processing object config files!


So what's the approved way of defining a service without specifying a 
command for active checks?

Thanks,
Jonathan

--
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] Defining passive checks

2012-08-15 Thread Mark Elsen
> I'm a long-time user of Nagios with active checks. Today I started using
> passive checks with NSCA and I'm having a problem.
>
> The documentation states "A service must be defined in Nagios before you
> can submit passive check results for it".
>
> I defined a config block like this, to define a service for the Oracle
> service that I want to monitor passively - omitting the check_command
> directive.
>
> define service {
>  service_descriptionOracle
>  host_name  oddjob.resnet.bris.ac.uk
>  useresnet-service
> }
>
>
>
> But running nagios -v gives this output:
>
> Error: Service description, host name, or check command is NULL
> Error: Could not register service (config file
> '/etc/nagios/nagios_service.cfg', starting on line 8618)
> Error processing object config files!
>
>
> So what's the approved way of defining a service without specifying a
> command for active checks?
>


 The approved way is that you can't because it remains a >service<
definition, however the command
can be dummy , although it must be defined.
The command definition however is obliviated by  using :

   active_checks_enabled  0
   passive_checks_enabled   1

Sometimes for check_command check-host-alive is being used, this avoids
long outstaniding stale data
for the specific passive service definition.

M.
--
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] Defining passive checks

2012-08-15 Thread Jonathan Gazeley
I'm a long-time user of Nagios with active checks. Today I started using 
passive checks with NSCA and I'm having a problem.

The documentation states "A service must be defined in Nagios before you 
can submit passive check results for it".

I defined a config block like this, to define a service for the Oracle 
service that I want to monitor passively - omitting the check_command 
directive.

define service {
 service_descriptionOracle
 host_name  oddjob.resnet.bris.ac.uk
 useresnet-service
}



But running nagios -v gives this output:

Error: Service description, host name, or check command is NULL
Error: Could not register service (config file 
'/etc/nagios/nagios_service.cfg', starting on line 8618)
Error processing object config files!


So what's the approved way of defining a service without specifying a 
command for active checks?

Thanks,
Jonathan

--
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