[Nagios-users] Unusual request....

2007-05-25 Thread Lacayo, Luis F
HI All, 

I was asked by one of my users to see if there is a way that NAGIOS can
check to see if a certain file was updated with in the last 10 minutes,
and it is not updated then to issue an alert.

Is there a plugging for NAGIOS to handle this? If not any ideas how I
could get this done?

Thanks, 

Luis

Luis Lacayo


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Unusual request....

2007-05-25 Thread Hari Sekhon
scrap that, I've just seen there is a plugin to do just this, 
check_file_age.

-h

Hari Sekhon



Hari Sekhon wrote:
> This should be very easy to write a plugin for in bash or python.
>
> Just check the last modified data against the current time and go 
> warning/critical if the difference between the timestamp is too high.
>
> -h
>
> Hari Sekhon
>
>
>
> Lacayo, Luis F wrote:
>> HI All,
>> I was asked by one of my users to see if there is a way that NAGIOS can
>> check to see if a certain file was updated with in the last 10 minutes,
>> and it is not updated then to issue an alert.
>>
>> Is there a plugging for NAGIOS to handle this? If not any ideas how I
>> could get this done?
>>
>> Thanks,
>> Luis
>>
>> Luis Lacayo
>>
>>
>> - 
>>
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> 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
>>
>>   
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Unusual request....

2007-05-25 Thread Hari Sekhon
This should be very easy to write a plugin for in bash or python.

Just check the last modified data against the current time and go 
warning/critical if the difference between the timestamp is too high.

-h

Hari Sekhon



Lacayo, Luis F wrote:
> HI All, 
>
> I was asked by one of my users to see if there is a way that NAGIOS can
> check to see if a certain file was updated with in the last 10 minutes,
> and it is not updated then to issue an alert.
>
> Is there a plugging for NAGIOS to handle this? If not any ideas how I
> could get this done?
>
> Thanks, 
>
> Luis
>
> Luis Lacayo
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> 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
>
>   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Unusual request....

2007-05-25 Thread Jim Avery
On 25/05/07, Lacayo, Luis F <[EMAIL PROTECTED]> wrote:
> I was asked by one of my users to see if there is a way that NAGIOS can
> check to see if a certain file was updated with in the last 10 minutes,
> and it is not updated then to issue an alert.
>
> Is there a plugging for NAGIOS to handle this? If not any ideas how I
> could get this done?


check_file_age

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Unusual request....

2007-05-25 Thread Richard Luys-Nagios User
Hi Luis,

On Fri, 25 May 2007 15:41:40 +0200, Lacayo, Luis F  
<[EMAIL PROTECTED]> wrote:

> HI All,
>
> I was asked by one of my users to see if there is a way that NAGIOS can
> check to see if a certain file was updated with in the last 10 minutes,
> and it is not updated then to issue an alert.
>
> Is there a plugging for NAGIOS to handle this? If not any ideas how I
> could get this done?
>
AFAIK there is no plugin yet. To write one is probably easy though. To  
point you in the right direction:
Unix/Linux (and some other OSes too) keep a record of different time  
settings regarding to files. You can for instance choose to display the  
time a file is created, the time a file is last modified and the time a  
file is last accessed.

In your case, I think the modification time should do the trick. You can  
write a plugin that checks the difference between the modification_time  
and the real time.

HPH,

Richard Luys

> Thanks,
>
> Luis
>
> Luis Lacayo
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> 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



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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