Running a plugin at specific times

Stu Watts stu.watts at gmail.com
Mon Aug 27 00:28:04 CEST 2012


Oops - I read that as "from 7pm to 7am".

Yes, cron might well be the way ahead!  Unless you specify two very short
timeperiods (i.e. 0700-0706 and 1900-1906) to run the check (assuming a 5
minute check time)?

On 26 August 2012 22:12, Paul M Dubuc <work at paul.dubuc.org> wrote:

>
> > On 24 August 2012 22:10, Tech Support <support at voipbusiness.us
> > <mailto:support at voipbusiness.us>> wrote:
> >
> >     Hello;____
> >
> >          I am fairly new to Nagios, and this is my first project using
> >     it. What I would like to do is run a plugin at specific times of the
> >     day. This particular plugin is pretty intrusive, so I would like to
> >     run it only at  7:00am and 7:00pm daily. Is there an easy way of
> >     doing this? I’m thinking that I can run the script out of CRON, then
> >     passively send the data to Nagios via its command pipe, but I’m not
> >     sure if that’s the best way to go. ____
> >
> Stu Watts wrote:> Nagios does time periods itself, so no need for cron:
>  >
>  > http://nagios.sourceforge.net/docs/nagioscore/3/en/timeperiods.html
>  >
>  > The Nagios documentation is pretty good - have a check through.  Chance
>  > are it can do what you want.. ;-)
>  >
>
> I don't think setting time periods will ensure that a check is run at
> specific times.  Best they can do is specify time periods in which they
> may run.
>
> Using cron may be the way to go.
>
>
> ------------------------------------------------------------------------------
> 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 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
>



-- 
Stu

"Did I do that deja-vu joke?"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120826/95166ad1/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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