[Nagiosplug-devel] [ nagiosplug-New Plugins-1172231 ] Check_compdate

SourceForge.net noreply at sourceforge.net
Mon Mar 28 17:17:26 CEST 2005


New Plugins item #1172231, was opened at 2005-03-29 03:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1172231&group_id=29880

Category: Perl plugin
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: OSG (osgfreefr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Check_compdate

Initial Comment:
Check if computer are synchronised about time. The
nagios machine is the reference.

It's compose by two scripts:

.fisrt check_date must be installed on all machine by nrpe:

#!/bin/sh
# Vincent Tamet 20050327
etat="OK"
date="Probleme lors du lancement de la commande Date."
prog=`basename $0`

date=`date +%s`
if [ $? -eq "0" ]
 then
   etat="OK"
   echo "$prog $etat - $date."
   exit 0
 else
   etat="UNKNOWN"
   echo "$prog $etat - $date."
   exit 2
fi

.Second check_compdate must be installed on nagios computer

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1172231&group_id=29880




More information about the Devel mailing list