diff options
author | Eugeni Dodonov <eugeni@mandriva.com> | 2010-03-01 18:21:33 -0300 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.com> | 2010-03-01 18:21:33 -0300 |
commit | 92e6795b249b4282eb2028b981de731bf9913417 (patch) | |
tree | fd41570bb184932f5c79d044515a3954fc7d7be5 /scripts | |
parent | b9557f67d1c6be2cdc90d9e1ab09eacf318660d7 (diff) | |
download | net_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-x | scripts/netmonitor_down | 2 | ||||
-rwxr-xr-x | scripts/netmonitor_up | 2 |
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 |