aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.com>2010-03-01 18:21:33 -0300
committerEugeni Dodonov <eugeni@mandriva.com>2010-03-01 18:21:33 -0300
commit92e6795b249b4282eb2028b981de731bf9913417 (patch)
treefd41570bb184932f5c79d044515a3954fc7d7be5 /scripts
parentb9557f67d1c6be2cdc90d9e1ab09eacf318660d7 (diff)
downloadnet_monitor-92e6795b249b4282eb2028b981de731bf9913417.tar
net_monitor-92e6795b249b4282eb2028b981de731bf9913417.tar.gz
net_monitor-92e6795b249b4282eb2028b981de731bf9913417.tar.bz2
net_monitor-92e6795b249b4282eb2028b981de731bf9913417.tar.xz
net_monitor-92e6795b249b4282eb2028b981de731bf9913417.zip
implement connection uptime monitoring
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netmonitor_down2
-rwxr-xr-xscripts/netmonitor_up2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/netmonitor_down b/scripts/netmonitor_down
index 6ce6064..8782ef7 100755
--- a/scripts/netmonitor_down
+++ b/scripts/netmonitor_down
@@ -6,6 +6,6 @@
if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then
. /etc/sysconfig/network-scripts/ifcfg-$1
if [ "a$ACCOUNTING" = "ayes" ]; then
- echo $1:DOWN:$(date +%s) >> /var/log/net_monitor
+ echo $1:DOWN:$(date +%s) >> /var/log/net_monitor.log
fi
fi
diff --git a/scripts/netmonitor_up b/scripts/netmonitor_up
index a0cba3f..4012bf2 100755
--- a/scripts/netmonitor_up
+++ b/scripts/netmonitor_up
@@ -6,6 +6,6 @@
if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then
. /etc/sysconfig/network-scripts/ifcfg-$1
if [ "a$ACCOUNTING" = "ayes" ]; then
- echo $1:UP:$(date +%s) >> /var/log/net_monitor
+ echo $1:UP:$(date +%s) >> /var/log/net_monitor.log
fi
fi