08-17-2017
You can have a look at my Nagios plugins, also in this forum.
They are shell scripts; you can adapt their output for your needs.
The current output for Nagios consists of a text message and an exit status 0(OK), 1(WARNING), 2(CRITICAL), 3(UNKNOWN).
After the text message there can be a pipe symbol followed by a performance data sample.
Nagios runs the plugin scripts periodically, with arguments that are typically thresholds for WARNING and CRITICAL.
Nagios displays the output text and reacts on the output status (i.e. raises WARNING or CRITICAL alerts)..
And it records the performance data (in rrd tool). The Web GUI draws perfdata out of it.
For basic monitoring I recommend: check_load5.sh check_disks.sh check_vmem.sh
9 More Discussions You Might Find Interesting
1. HP-UX
Hey guys how do you determined the status of a certain service if its running or not aside from using ps. (0 Replies)
Discussion started by: sbn
0 Replies
2. Shell Programming and Scripting
Dears,
need help on developing a script to monitor sun server temperature , I'm using the below command to check the servers one by one
/usr/platform/`uname -i`/sbin/prtdiag -v
Servers Models are :
2 x Sun SPARC Enterprise M9000 Server
4 x Sun Fire V490
2 x Sun Blade T6300 Server... (1 Reply)
Discussion started by: bejo4ever
1 Replies
3. Shell Programming and Scripting
ok, so i'm trying to write a shell script (not perl) that monitors memory usage on a server. but i'm confused as to what fields exactly determines that yes, memory is low on a particular server.
it sounds simple enough, but it really isn't. what do I look for in the field below?
... (1 Reply)
Discussion started by: SkySmart
1 Replies
4. AIX
Hello,
Looking for some help. I am trying to gather data at each server showing when the physical CPU is being used the most based on a weekly timeframe.
I know this data can be seen through NMON but with multiple servers in our environment it could take a real long time. is there a easier... (4 Replies)
Discussion started by: audis$
4 Replies
5. Shell Programming and Scripting
Hi All
Need help
Can any one share a basic script that is used for monitor sendmail service whether online, offline.etc in solaris
Thanks in advance
Zimmy (5 Replies)
Discussion started by: zimmyyash
5 Replies
6. Shell Programming and Scripting
GM,
Can you pls help how to write a script to monitor different processes on different unix servers and send the output to a /tmp/report file, earlier my boss asked me to write a script to monitor just one process running on different servers and send the output to a file so I wrote this
exec... (0 Replies)
Discussion started by: baders
0 Replies
7. UNIX for Dummies Questions & Answers
Hello friends,
I am new to shell scripting.I am assigned a task in Unix to prepare a script which will check if OBI 10g services are running or not and to send email if the services are down.Any help will be appreciated. I tried searching for it in the blog and came across the following code
... (1 Reply)
Discussion started by: pradeep467
1 Replies
8. Linux
I have several Redhat servers and workstations that I need to be able to monitor for any changes and be notified of any changes to the OS. The features I need to specifically monitor are:
ports - opening of new ports that are not already in a whitelist
services - any starting or attempts to start... (1 Reply)
Discussion started by: JCDinPGH
1 Replies
9. HP-UX
Need to note the list of critical / important services and process need to monitor on unix server always with one line explanation for severity.
Thanks in advance. (5 Replies)
Discussion started by: marunmeera
5 Replies
LEARN ABOUT NETBSD
slapd-monitor
SLAPD-MONITOR(5) File Formats Manual SLAPD-MONITOR(5)
NAME
slapd-monitor - Monitor backend to slapd
SYNOPSIS
/etc/ldap/slapd.conf
DESCRIPTION
The monitor backend to slapd(8) is not an actual database; if enabled, it is automatically generated and dynamically maintained by slapd
with information about the running status of the daemon.
To inspect all monitor information, issue a subtree search with base cn=Monitor, requesting that attributes "+" and "*" are returned. The
monitor backend produces mostly operational attributes, and LDAP only returns operational attributes that are explicitly requested.
Requesting attribute "+" is an extension which requests all operational attributes.
CONFIGURATION
These slapd.conf options apply to the monitor backend database. That is, they must follow a "database monitor" line and come before any
subsequent "backend" or "database" lines.
As opposed to most databases, the monitor database can be instantiated only once, i.e. only one occurrence of "database monitor" can occur
in the slapd.conf(5) file. Moreover, the suffix of the database cannot be explicitly set by means of the suffix directive. The suffix is
automatically set to "cn=Monitor".
The monitor database honors the rootdn and the rootpw directives, and the usual ACL directives, e.g. the access directive.
Other database options are described in the slapd.conf(5) manual page.
USAGE
The usage is:
1) enable the monitor backend at configure:
configure --enable-monitor
2) activate the monitor database in the slapd.conf(5) file:
database monitor
3) add ACLs as detailed in slapd.access(5) to control access to the database, e.g.:
access to dn.subtree="cn=Monitor"
by dn.exact="uid=Admin,dc=my,dc=org" write
by users read
by * none
4) ensure that the core.schema file is loaded.
The monitor backend relies on some standard track attributeTypes that must be already defined when the backend is started.
ACCESS CONTROL
The monitor backend honors access control semantics as indicated in slapd.access(5), including the disclose access privilege, on all cur-
rently implemented operations.
KNOWN LIMITATIONS
The monitor backend does not honor size/time limits in search operations.
FILES
/etc/ldap/slapd.conf
default slapd configuration file
SEE ALSO
slapd.conf(5), slapd-config(5), slapd.access(5), slapd(8), ldap(3).
ACKNOWLEDGEMENTS
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from Uni-
versity of Michigan LDAP 3.3 Release.
OpenLDAP 2012/04/23 SLAPD-MONITOR(5)