Hi All,
I have a requirement where in I have an input as follows:-
input=1-4,6,8-10,12-15
I need to explode this range into an output file as follows:-
1
2
3
4
6
8
9
10
12
13
14
15
My input may vary like 1,5-9,11-13,15-17....... (3 Replies)
hi guys,
I am writing a c program that generates a two dimensional array to make matrix and a vector of random numbers and perform multiplication. I can't figure out whats wrong with my code. It generates a matrix of random numbers but all the numbers in the vector array is same and so is the... (2 Replies)
Hello All,
Could you please help with this.
This is what I have:
506234.222 2
506234.222 2
506234.222 2
506234.222 2
508212.200 2
508212.200 2
333456.111 2
333456.111 2
333456.111 2
333456.111 2
But this is what I want:
506234.222 1
506234.222 2
506234.222 2
506234.222 3 (5 Replies)
Hi Unix Gurus,
I have a requirement to generate positive random 16 and 13 digit numbers.
Here is the script I have so far.....
number=$RANDOM$RANDOM$RANDOM$RANDOM;
let "number %= 10000000000000";
echo $number
But sometimes it is generating negative numbers and also 15 digit... (8 Replies)
i want to generate a random number through a script, and even if anyone reads the script, they wont be able to figure out what the random number is. only the person who setup the script would know it.
something like this could work: random
the full thread is here:
... (13 Replies)
How do I generate line numbers in Vi?
I have this:
,'04-90020-039N','61423','2GDV00039-0002', SYSDATE);
,'04-90020-040D','61423','2GDV00046-0001', SYSDATE);
,'04-90020-041N','61423','2GDV00038-0002', SYSDATE);
,'04-90020-043D','61423','2GDV00047-0001', SYSDATE);... (3 Replies)
Hi all, i need advise from all experts here.
when i use command below to print number in 10 character
printf "%010d\n" {0..999}
it will give me output nicely
starts from
0000000000
untillllllllllll
0000000994
0000000995
0000000996
0000000997
0000000998
0000000999
However. when i... (6 Replies)
I need awk script to generate part number sequencing based on data in multiple columns like below
Input File
---------
Col A|Col B|Col C|
1|a|x|
2|b|y|
|c|z|
| |m|
| |n|
And out put should be like
1ax
1ay
1az
1am
1an
1bx
1by (6 Replies)
Discussion started by: aramacha
6 Replies
LEARN ABOUT DEBIAN
check_gearman
CHECK_GEARMAN(8) System Administration Utilities CHECK_GEARMAN(8)NAME
check_gearman - Nagios service check to monitor the gearman job server
DESCRIPTION
usage:
check_gearman [ -H=<hostname>[:port] ]
[ -t=<timeout>
]
[ -w=<jobs warning level>
] default: 10
[ -c=<jobs critical level>
] default: 100
[ -W=<worker warning level>
] default: 25
[ -C=<worker critical level>
] default: 50
[ -q=<queue>
]
to send a test job:
[ -u=<unique job id>
] default: check
[ -s=<send text>
]
[ -e=<expect text>
]
[ -a send async ] will ignore -e
[ -h print help ]
[ -v verbose output ]
[ -V print version ]
- You may set thresholds to 0 to disable them. - Thresholds are only for server checks, worker checks are availability only
perfdata format when checking job server:
|'queue waiting'=current waiting jobs;warn;crit;0 'queue running'=current running jobs 'queue worker'=current num worker;warn;crit;0
Note: set your pnp RRD_STORAGE_TYPE to MULTIPLE to support changeing numbers of queues.
see http://docs.pnp4nagios.org/de/pnp-0.6/tpl_custom for detailed information
perfdata format when checking mod gearman worker:
|worker=10 jobs=1508c
Note: Job thresholds are per queue not totals.
EXAMPLES
Check job server:
%>./check_gearman -H localhost -q host check_gearman OK - 0 jobs running and 0 jobs waiting. Version: 0.14|'host_waiting'=0;10;15;0
'host_running'=0 'host_worker'=3;5;10;0
Check worker:
%> ./check_gearman -H <job server hostname> -q worker_<worker hostname> -t 10 -s check check_gearman OK - host has 5 worker and is working
on 0 jobs|worker=5 jobs=96132c
SEE ALSO
The Mod Gearman documentation is available in /usr/share/doc/mod-gearman/README.html
check_gearman 1.3.6-1 July 2012 CHECK_GEARMAN(8)