You may find this perl script helpful. It takes a base OID, does an
snmpwalk on it, and then compares the results to a specified regex or
warning/critical threshold.
Gius
Livio Zanol Puppim wrote:
I've searched this at monitoring exchange, but I haven't found many
scripts. What options I
the
warning and critical values... also (but less important) does not
check snmp tables.
example:
./check_snmp -H 127.0.0.1 -o .1.3.6.1.2.1.25.3.3.1.1.1 -w10 -c10 -C
public
CPU OK - 0 % | iso.3.6.1.2.1.25.3.3.1.1.1=0
2009/6/22 Mark Gius mg...@createspace.com mailto:mg...@createspace.com
You're going to want to read this:
http://nagios.sourceforge.net/docs/3_0/objectinheritance.html,
specifically implied inheritance about 3/4 of the way down.
Host and service inheritance is (mostly) separate. There are some
implied inheritance rules however. For example, if a service doesn't
As far as I know no.
If you're logged in as a user that hasn't been hardcoded for full-access
to CGIs, you can only see hosts and services that you're listed as a
contact for (and as long as you're not going hog-wild with service
escalations they'll get notified for those hosts/services), so
The tarball of nagios 3.1.0 that i have contains nagios.spec, which
I've used to create RPMs for Red Hat. Untar the archive and rpmbuild
it, it shouldn't take very long.
-Gius
Natalie Aloi wrote:
Does anyone know of a location for rpm for Nagios 3.1.2 on fedora 9? I
located
My recommendation is to use the 3.0.6 RPM you found, or to build your
own RPM using the specfile that comes with the source distribution.
Building your own RPM means that Nagios is easier to install/uninstall,
and you can reuse the RPM pretty easily.
I'm using my own RPM of 3.0.6 and I've
but I have libgd.so.2.0 so I don't want to uninstall
libgd.so.2.0 just to install an older libgd.
-Original Message-
*From:* Mark Gius [mailto:mg...@createspace.com]
*Sent:* Wednesday, July 1, 2009 01:21 PM
*To:* 'Natalie Aloi'
*Cc:* 'Nagios Users Mail-list'
*Subject
The main nagios configuration file is configurable in the init script.
All other files are read based on the cfg_file and cfg_dir directives in
that main nagios configuration file. So you can either use the default
nagios.cfg, which then points to things in /export/nagios, or edit the
init
Marc Powell wrote:
On Jul 14, 2009, at 2:26 PM, Morris, Patrick wrote:
Hi Dale!
On Tue, 14 Jul 2009, Dale J. Chatham wrote:
I don't seem to be able to do this:
# vim:ts=4:ai:expandtabs
#
#
define hostgroup {
hostgroup_nameall-hst
alias
Default web access is controlled via apache's basic auth module, using a
password file. The default name for this file is htpasswd. I would
look in your apache and nagios directories for a file of that name for a
start.
If you can't find that, look in your apache configs and find the nagios
Max wrote:
As long as you are not using ePN, you can just send a HUP signal to
the parent Nagios process; this will cause it to re-read the
configuration file(s) from disk.
- Max
Slight OT, but why can't you do this with ePN?
-Gius
SYS ADMIN wrote:
Yes. The docs that he pasted you specify that you can name hostgroup(s),
meaning you can specify one or more hostgroups for a host
-Gius
I looked at the page you sent me to, but it did not answer the question.
I know what a host group is, I need to know if a host can be a
I would suggest you use custom object variables
(http://nagios.sourceforge.net/docs/3_0/customobjectvars.html). This is
a nagios 3 feature, so if you're on 2.0 you'll need to upgrade.
Basically, you can define custom variables into
hosts/services/whatever. So you'd have a custom object var
You could fudge it with service escalations.
define serviceescalation {
hosts *
services *
first_notification 1
last_notification 1
notifiation_types c,w,u (r?)
contact_groups ticket_system
}
define serviceescalation {
hosts *
services *
first_notification 1
Charlie Reddington wrote:
Hey Luis, whats up man!
Couldn't you just create a separate contact, and set it up with
escalations, but only have it alert once? Maybe something like this...
(note, untested).
define hostescalation {
host_name *
first_notification
I haven't tried this myself, but you could try having a notification
command that checks for a custom object variable ($_HOSTALTNOTIFY$) and
does an if/else on the state of that variable? I'm not sure how Nagios
behaves when a $BLAH$ doesn't exist, so you may need to define it
globally as no
You say you have port 161 open on the border firewall, do the windows
machines have their firewalls enabled and are blocking port 161?
-Gius
arly arly wrote:
HI Richard,
thank you for comment.
comunity string I set up as for machines I have it works OK. Comunity
string is same, and let say
Paste your check_nt command definition as well. I'm guessing that it's
not using all of the arguments you're passing to it.
-Gius
Ricardo Delgado wrote:
UNKNOWN 2009-08-14 16:07:34 130d 5h 39m 14s 4/4
missing -l parameters
CPU Load
I don't have my Nagios system to
We use two identically configured servers with a shared DRBD
(http://www.drbd.org/) partition that contains the nagios
state/log/config files, Linux Heartbeat (http://www.linux-ha.org/), and
a role IP address to do redundancy. We can literally yank the plug on
one of the servers and nagios
Running stock Nagios 3.0.6 compiled for Red Hat 4.
I have a service check that I only want performed every 2 hours. I've
set up the service check as follows
define service {
name my_service
stuff not shown
register 0
check_interval 120
retry_interval 15
It turns out that the problem was a bad time on the nagios server that
got fixed between checks. So between the two hour checks the clock
jumped forward an hour, and the next check went off right on schedule.
What are the odds...
-Gius
Mark Gius wrote:
Running stock Nagios 3.0.6 compiled
It allows you to have a single command that may have variable results
depending on which service uses it.
IE, you can have one command, check_disk which is defined with
command check_disk -w $ARG1$ -c $ARG2$ -H $HOSTADDRESS$
and then two services, Check disk fileserver and check disk webserver
Our notification command uses unix mail command (postfix variety).
When you set the 'EMAIL' environment variable, that is what our mail
program uses to set the from address. There is probably a flag for
mail as well.
-Gius
Stephen H. Dawson wrote:
Hi,
We currently have:
Nagios
Glyn Astill wrote:
--- On Mon, 28/9/09, Thomas Guyot-Sionnest derm...@aei.ca wrote:
My understanding is that you can define custom variables in
the host
definitions and use them in the service definition. This is
very useful
to define per-host thresholds for example.
I doubt the
Currently, service notifications contain first/last_notification
directives, that specify the range of notifications that the escalation
should apply to. This method of escalation has a weakness however.
At my work, we let warnings go to the default contact (which happens to
be email), and
25 matches
Mail list logo