11-14-2012
'd recommend you to create custom Nagios bash scripts to monitor particular and more advanced services
9 More Discussions You Might Find Interesting
1. Solaris
Hi @all,
I have some SUN boxes running.
Now I'm looking for the tool "top".
Where can I find it?
As I could see it is not installed on sys boxes.
Thanx and regards
daemon (2 Replies)
Discussion started by: daemon
2 Replies
2. Solaris
Im looking for any GUI Based burner to work under sun solaris 10, any ideas > (7 Replies)
Discussion started by: XP_2600
7 Replies
3. AIX
How to analyze nmon output or is there any tool for analyzing. (2 Replies)
Discussion started by: vjm
2 Replies
4. Solaris
Hi All,
I have come through this very nice tool which stores the week performance stats in solaris, but its only stores the stats for 8 in the morning to 5 in the evening. i want to extend the facility to work 24 hrs . Does anyone know how to do that?
Thanks in advance (1 Reply)
Discussion started by: azs0309
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
Any one know about the chronicle tool. I came to know which is a scheduler tool. If u know any links regarding this please let me know.
Regards
Saravan (3 Replies)
Discussion started by: saravanakumar
3 Replies
6. Shell Programming and Scripting
Hi all,
I am new to PERL scripts, and i have made my first script which i am posting here.
This math tool performs all basic arithmatic functions.
#!/usr/bin/perl
print "\t----------Welcome to Maths Tool-----------\n";
do
{
print "Enter your choice :";
print... (2 Replies)
Discussion started by: PranavEcstasy
2 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys
can any one help me in this regard ..
I'm using Reflaction and xManager but I want list of another xWindow tools between Unix and Windows ..
Pls advice .. (1 Reply)
Discussion started by: top.level
1 Replies
8. Red Hat
Hey guys..
What is the best tool that can be used on Linux for IP scanning tool that can bring ping status, hostname, and any other open service. I wish I can find a tool like "The Dude" from Mikrotik, but that works only under Windows.
Thanks (4 Replies)
Discussion started by: leo_ultra_leo
4 Replies
9. HP-UX
Hi,
Please suggest wipe tool for hp-ux. (2 Replies)
Discussion started by: manoj.solaris
2 Replies
LEARN ABOUT FREEBSD
service
SERVICE(8) BSD System Manager's Manual SERVICE(8)
NAME
service -- control (start/stop/etc.) or list system services
SYNOPSIS
service -e
service -R
service [-v] -l | -r
service [-v] <rc.d script> start|stop|etc.
DESCRIPTION
The service command is an easy interface to the rc.d system. Its primary purpose is to start and stop services provided by the rc.d scripts.
When used for this purpose it will set the same restricted environment that is in use at boot time (see below). It can also be used to list
the scripts using various criteria.
The options are as follows:
-e List services that are enabled. The list of scripts to check is compiled using rcorder(8) the same way that it is done in rc(8), then
that list of scripts is checked for an "rcvar" assignment. If present the script is checked to see if it is enabled.
-R Restart all enabled local services.
-l List all files in /etc/rc.d and the local startup directories. As described in rc.conf(5) this is usually /usr/local/etc/rc.d. All
files will be listed whether they are an actual rc.d script or not.
-r Generate the rcorder(8) as in -e above, but list all of the files, not just what is enabled.
-v Be slightly more verbose
ENVIRONMENT
When used to run rc.d scripts the service command sets HOME to / and PATH to /sbin:/bin:/usr/sbin:/usr/bin which is how they are set in
/etc/rc at boot time.
EXIT STATUS
The service utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
The following are examples of typical usage of the service command:
service named status
service -rv
The following programmable completion entry can be use in bash(1) for the names of the rc.d scripts:
_service () {
local cur
cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $( compgen -W '$( service -l )' -- $cur ) )
return 0
}
complete -F _service service
SEE ALSO
bash(1) (ports/shells/bash), rc.conf(5), rc(8), rcorder(8)
HISTORY
The service utility first appeared in FreeBSD 7.3.
AUTHORS
This manual page was written by Douglas Barton <dougb@FreeBSD.org>.
BSD
December 11, 2012 BSD