[Nagios-users] multiple check_interval with single service check

2010-03-01 Thread shadih rahman
All,
   Is it possible to use multiple check_interval based on the hours of the
day for a single check?  For example during day time service should be
executed every 15 minutes and during night it will get executed every 2
hours.  Can someone please show me how its done.  Thanks

-- 
Cordially,
Shadhin Rahman
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] multiple check_interval with single service check

2010-03-01 Thread Jim Avery
On 1 March 2010 19:47, shadih rahman  wrote:
> All,
>    Is it possible to use multiple check_interval based on the hours of the
> day for a single check?  For example during day time service should be
> executed every 15 minutes and during night it will get executed every 2
> hours.  Can someone please show me how its done.  Thanks


I don't think you can do such a thing in Nagios itself.  If I really
had to do such a thing, I would set up a script on the monitored
server to send the check result to Nagios using send_nsca.  If you run
this script at intervals from cron, it is easy in the crontab to have
it run more frequently during the day and less frequently at night.
In fact you could have the crontab on the Nagios server and still
submit the check result either via the command interface or via
send_nsca again.

I'm not saying I recommend doing this, as it would be a bit of a pain
to maintain, but if you really must it's one way of achieving what you
describe.

I would say "hth" but that probably doesn't!

Out of interest, why do you need to set things up that way?

Cheers,

Jim

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] multiple check_interval with single service check

2010-03-01 Thread Mark Young

On Mar 1, 2010, at 1:47 PM, shadih rahman wrote:

>Is it possible to use multiple check_interval based on the hours of the 
> day for a single check?  For example during day time service should be 
> executed every 15 minutes and during night it will get executed every 2 
> hours.  Can someone please show me how its done.  Thanks

You can do this in a few different ways.  The easiest may be to define multiple 
hosts/services for one 'real' host/service.  That would allow you to define two 
time periods and two different check_intervals.  You would have to have the 
names slightly different but notifications could be made to look like they are 
the same host/service.

Best Regards,

Mark Young
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] multiple check_interval with single service check

2010-03-02 Thread Matt Simmons
You could write a wrapper around the plugin to check the time of day
and execute it as needed.




On Mon, Mar 1, 2010 at 2:47 PM, shadih rahman  wrote:
> All,
>    Is it possible to use multiple check_interval based on the hours of the
> day for a single check?  For example during day time service should be
> executed every 15 minutes and during night it will get executed every 2
> hours.  Can someone please show me how its done.  Thanks
>
> --
> Cordially,
> Shadhin Rahman
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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
>



-- 
LITTLE GIRL: But which cookie will you eat FIRST?
COOKIE MONSTER: Me think you have misconception of cookie-eating process.

COOKIE MONSTER: Boy, I wish I were a sysadmin so I could go to the
NJ-PICC Sysadmin Conference! http://www.picconf.org

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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