02-01-2011
Thanks, but how to get it all into awk.
Strange is that it has worked in January if you say it should not work.
I do use the log to et value for munin to graph it, so I do have nice graphs until 1 feb.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have these
str1=$(echo "This is string one with spaces \n This is also my sentence 1")
When I echo $str1, it displays the new line character properly.
Now I have another new variable say str2.
I want to concatenate in this way.. str1 + newline character + and then str2.
That's I... (3 Replies)
Discussion started by: dahlia84
3 Replies
2. Shell Programming and Scripting
Hi,
I have a large flat file from host without delimiter. I'm transforming this file to a csv file using statements like
# Row 03: Customer / field position 3059 +20
WOFABNAM=substr( $0, 3059, 20 );
and deleting the trailing whitespaces before and after with that
sub( /^ +/, "",... (4 Replies)
Discussion started by: Celald
4 Replies
3. UNIX for Dummies Questions & Answers
Hi experts,
why does
$ echo "one two three" | awk '{$3="my tree"; print $0}'
one two my tree
work,
but
$ var="my tree"
$ echo "one two three" | awk '{$3="'$var'"; print $0}'
awk: {$3="my
awk: ^ unterminated string
does not work?
How can the variable tha contains a space be... (2 Replies)
Discussion started by: GermanicGalore
2 Replies
4. Shell Programming and Scripting
Hi,
Consider the data (FS = |):
1| England |end
2| New Zealand |end
3|Australia|end
4| Some Made Up Country |end
5| West Indies|end
I want the output to be (i.e. without the leading and trailing white space from $2)
England
New Zealand
Australia
Some Made Up Country
West... (4 Replies)
Discussion started by: Storms
4 Replies
5. Shell Programming and Scripting
Hello,
I wondering how I can echo a string without having the trailing whitespace removed.
For example I have a string str="TESTING123 " that I need to hash using sha1. I get the correct answer when I run the line below from the terminal
$ echo -n "TESTING123 " | openssl sha1... (3 Replies)
Discussion started by: colinireland
3 Replies
6. Shell Programming and Scripting
Given a file:
# configuration file for newsyslog
# $FreeBSD: /repoman/r/ncvs/src/etc/newsyslog.conf,v 1.50 2005/03/02 00:40:55 brooks Exp $
#
# Entries which do not specify the '/pid_file' field will cause the
# syslogd process to be signalled when that log file is rotated. This
# action... (10 Replies)
Discussion started by: jnojr
10 Replies
7. UNIX for Advanced & Expert Users
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies
8. Shell Programming and Scripting
I'm trying to do something pretty simple but its appears more complicated than expected... I've lines in a text file, separated by the comma and that I want to output to another file, without the first field.
Input file:
file1,item, 12345678
file2,item, 12345678
file2,item, ... (8 Replies)
Discussion started by: Armoric
8 Replies
9. Shell Programming and Scripting
Hi All,
I am new new to unix.com, I have a question related to shell scripting.
We have a Oracle database backup shell script, which can be used for taking full, incremental & archive log backup based on the parameters passed.
Within the script we export a variable as
export... (5 Replies)
Discussion started by: veeresh_15
5 Replies
10. Shell Programming and Scripting
I have about 350 programs in which I have to add 2 lines; one before and one after a specfic line.
The following script does the job except that I lose the indentation.
#!/usr/bin/bash
while read line ... (8 Replies)
Discussion started by: jgt
8 Replies
LEARN ABOUT DEBIAN
munin-sched
MUNIN-SCHED(1p) User Contributed Perl Documentation MUNIN-SCHED(1p)
NAME
munin-sched - A daemon to gather information in cooperation with the main Munin program
SYNOPSIS
munin-sched [--options]
DESCRIPTION
munin-sched is a daemon for reporting statistics on system performance.
It doesn't produce these itself, but instead relies on a number of plugins which are responsible for gathering the data they require, and
describing how this should be graphed. In fact, it does little more than fielding requests from the Munin master, running the appropriate
plugins, and returning the output they produce.
OPTIONS
--config <configfile>
Use <file> as configuration file. [/etc/munin/munin-node.conf]
--[no]paranoia
Only run plugins owned by root. Check permissions as well. [--noparanoia]
--help
View this help message.
--debug
View debug messages. This can be very verbose.
FILES
/etc/munin/munin-node.conf
/etc/munin/plugins/*
/etc/munin/plugin-conf.d/*
/var/run/munin/munin-sched.pid
/var/log/munin/munin-sched.log
VERSION
This is munin-sched v2.0.6-4+deb7u2
$Id$
AUTHORS
Audun Ytterdal, Jimmy Olsen, and Tore Anderson.
BUGS
Please see http://munin-monitoring.org/report/1 <http://munin-monitoring.org/report/1>.
COPYRIGHT
Copyright (C) 2002-2006 Audun Ytterdal, Jimmy Olsen, and Tore Anderson / Linpro AS.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program is released under the GNU General Public License
SEE ALSO
For information on configuration options, please refer to the man page for munin-node.conf.
Many plugins can report whether or not they can reasonably be used on the node. "munin-node-configure" can use this information to help
manage installed plugins.
The network protocol is documented at http://munin-monitoring.org/wiki/network-protocol <http://munin-monitoring.org/wiki/network-protocol>
perl v5.14.2 2013-11-12 MUNIN-SCHED(1p)