. By adding
the notification as an argument (instead of relying on piping), it began
to send:
define command{
command_namenotify-service-by-sms
command_line/usr/local/bin/sendsms $CONTACTPAGER$ **
$NOTIFICATIONTYPE$ Service Alert: $SERVICEDESC$ is $SERVICESTATE$ **
}
Sean
vignette_backup
}
The standard check would then have check_period as vignette, while the
one you'd like to run during your backup window would use vignette_backup.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
, it's defined in Nagios' resources file).
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT: This message contains confidential information
to being scheduled at its normal rate as
defined by the check_interval value. Unless you've changed the
interval_length directive from the default value of 60, this number will
mean minutes. More information on this value can be found in the check
scheduling documentation.
Sean McAfee
System
to be documenting it more once it's polished, but if you're
creative and not afraid of svn, sed, and rsync, it can be implemented
with no more management overhead than a single system setup.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes
contact with the Master instance. Self-demotion is simply the
inverse of that.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT
% -p 5'
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT: This message contains confidential information
and is intended only
is the
primary goal here, so some latency in self-demotion is perfectly
acceptable since the only risk is receiving redundant notifications from
each slave for any globally-monitored hosts.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes
it from the
script.
Try specifying the full path to sudo.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT: This message contains
)...
[1219093171.497662] [064.1] [pid=16669] Making callbacks (type 19)..
If you're set on using it, you're stuck using a wrapper script (or very
creative command line-fu) to do the conversion. Otherwise, I'd look
into using $HOSTDURATIONSEC$ instead, which is the seconds since the
last state change.
Sean
in this case, you'd want to use `negate -w OK -o CRITICAL
//path/to/check_ssh -checkargs/`.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT
Thomas Guyot-Sionnest wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 21/08/08 07:05 PM, Sean McAfee wrote:
Taylor Dondich wrote:
You could also use a new feature of Nagios 3.0, custom variables:
Well it's going to be changed, why not just use $CONTACTPAGER$?
What do you mean
/notifications.html)
*Caps used to be consistent with the documentation, not as passive
aggressive sarcastic emphasis.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
a host goes UP/DOWN. Since
you're looking to receive notifications on a service, remote_admin would
also have to be defined as a contact in the oracleUp service defintion.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
$ARG3$
-p 5
}
and then use:
check_command check_ping_external!www.gmail.com!100.0,20%!500.0,60%
in your service check definition.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
Have you tried
Nagios 3? (Which I have not)
Jonathan
Jonathan, are you running BSD as well?
If so, what scheduler are you using? How about you Dave?
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
events so I didn't do much troubleshooting, but I can at least confirm
the behavior.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT
). On the completely anecdotal side, it does seem to
be more efficient overall but I think that's related to general
improvements on the 3.x branch.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
something about your config, you just need to add
notification_period 24x7 to the temperature check definition.
Any directive set in a template can also be used in an individual object
definition and any value set in the check itself will override the value
from the template.
Sean McAfee
.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT: This message contains confidential information
and is intended only
that
Nagios executed. Running this from the command line (as the Nagios
user!) will go a long way toward helping you figure out the problem.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
googling but I haven't find anything. Kindly advise on how
to do this.
Use check_nagios (one of the default checks in nagios-plugins -
http://nagiosplugins.org/man/check_nagios) via NRPE.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes
.
--
Sean McAfee
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
1710 Murray Avenue, Suite 320
Pittsburgh, PA 15217
IMPORTANT: This message contains confidential information
and is intended only for the individual
Nagios server will actually do check_nrpe - but
with arguments directing the remote machine to run check_nagios and then
report back the results.
--
Sean McAfee
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
1710 Murray Avenue, Suite 320
Pittsburgh, PA 15217
Aaron Segura wrote:
1) Get the source
2) Modify
3) Compile
4) ….
5) Profit!
Or write a script that wraps around check_ping, evaluates the native
return, then returns whatever you want.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
Host Alert: Level 1:
sample.host.com is DOWN ** - and use templates to assign them to hosts.
It'd take about as much configuration as your idea and uses the
pre-existing mechanisms to accomplish the same thing.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412
, no ?
You're right - I respond out of my notifications folder so I didn't
think it through the whole way.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
-H $HOSTNAME$ -c check_disk -a
$ARG1$ $ARG2$
}
That is how NRPE is getting invoked. Look closer at your templates.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
server. Since 10 seconds is the default
timeout for those checks, you'll always hit a timeout unless the DNS
server becomes responsive again.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
use of the options in resolv.conf to allow us
to reboot the DNS servers without causing any interruptions.
For Dirk though, this isn't so much a Nagios or monitoring issue as it
is a general *nix one. The real question here is why the DNS servers
become unavailable so frequently.
--
Sean
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
[EMAIL PROTECTED]
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT: This message contains confidential information
and is intended only for the individual
at 12:04:20
6. Nagios sees that $MAXSERVICEATTEMPTS$ = $SERVICEATTEMPT$ and
transistions $SERVICESTATETYPE$ from SOFT to HARD
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
smca...@collaborativefusion.com
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
-regex
Return CRITICAL if found, OK if not
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
smca...@collaborativefusion.com
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT: This message contains
Does anyone have some logic that I can use, preferably in perl for
this kind of thing?
You do, and you're already using it:
ok if above 10
else critical
No need to reinvent the wheel.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
smca...@collaborativefusion.com
412-422-3463 x
are not schedule and are only execed when a service check fails. In the
end, generic-host-alive will still be using check_ping.
Just define a single check_ping service check for each device with a
max_check_attempts of 1 and you'll get what you want.
--
Sean McAfee
System Engineer
Collaborative Fusion
this template kick off at 8:40 19:50. Since
normal_check_interval is greater than the time period windows, it will
only run once per window.
If there's a better way to do it, I'd like to know as well.
--
Sean McAfee
System Engineer
for the same
reason: anything newer would lock up due to defunct Nagios processes.
Does 'ldd /usr/local/bin/nagios' show it linked against libpthread or
libthr?
--
Sean McAfee
System Engineer
because of the increased resolution.
Look into OCP Daemon
(http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2521.html;d=1)
- it solved my problem.
--
Sean McAfee
System Engineer
--
This SF.net email
the magic + that indicates additive
inheritance instead of making it override.
Try:
define service{
use standard-check
hostgroup_name +!hostgroup5
service_description Disk Space
}
--
Sean McAfee
System Engineer
be separate,
check_cluster will display a status based on the current status of
stand-alone checks.
--
Sean McAfee
System Engineer
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign
.
--
Sean McAfee
System Engineer
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally
friday 08:40-09:00
saturday08:40-09:00
sunday 08:40-09:00
}
The checks that use this have a normal_check_interval of 30 minutes.
This results in them being scheduled for a single run at 8:40A every day.
--
Sean McAfee
System Engineer
it this way are relating to templating
and configuration centralization, so the hit is restricted to management
overhead.
--
Sean McAfee
System Engineer
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances
, making Nagios interpret the rest as the required string for -P.
--
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
smca...@collaborativefusion.com
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
IMPORTANT
Proskurin Kirill wrote:
Sean McAfee wrote:
Proskurin Kirill wrote:
Hello all.
I try to add a check_http with expecting some word in a body.
But:
./check_http -v -H example.com -u /some.jsp -P -s=ERROR
BUT it must be ERROR - not ok.
What I do wrong?
The -s=ERROR is being POSTed because
dave stern - e-mail.pluribus.unum wrote:
I'm looking for a way to see if there are any unacknowledged host/service
problems within nagios.
Try the Unhandled link under the Service|Host Problems links in the GUI.
--
Sean McAfee
System Engineer
$ **
}
I can't answer your compatibility question, but if you have problems
with it, the Moxa OnCell G2100
(http://www.moxa.com/product/OnCell_G2100_Series.htm) has been
absolutely rock solid.
--
Sean McAfee
System Engineer
lookup fails.
--
Sean McAfee
System Engineer
--
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App
Windows_1
service_description C:\ Drive Space
check_commandcheck_nt_disks!C!90!95
}
--
Sean McAfee
System Engineer
--
Let Crystal Reports handle the reporting - Free Crystal Reports
the exact same behavior on both 2.x and 3.x when remote
sites go down. Since each passive result takes 10s to time out, the
queue just becomes so backed up it stops being useful.
OCP Daemon fixed it for me.
--
Sean McAfee
System Engineer
check
of the host or service seems to remove the downtime.
--
Marc
Click Downtime in the left navigation frame, then click the trash icon
like you would to delete a comment.
--
Sean McAfee
System Engineer
send your command definition, host definition, service
definition, and any templates used? It's very hard to troubleshoot
without those.
--
Sean McAfee
--
The Planet: dedicated and managed hosting, cloud storage
the cell company.
I previously had a Cepag modem and it was absolutely terrible and would
lock up quite frequently. My dealings with Moxa have been few, but I've
been completely satisfied with them.
--
Sean McAfee
Senior Systems Engineer
/libexec/
2. Change your nrpe.cfg to be:
command[check_teste]=/path/to/sudobinary
/usr/local/nagios/libexec/check_teste.pl -s 4 -w 80 -c 85
3. Restart npre
--
Sean McAfee
Senior Systems Engineer
servers ended up on an RBL for something else.
--
Sean McAfee
Senior Systems Engineer
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https
generic-service
check_command check_nt_disk!12489!c!80!90
}
Hope this helps,
--
Sean McAfee
Senior Systems Engineer
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day
for what you need to do.
--
Sean McAfee
Senior Systems Engineer
--
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
Parish, Brent wrote:
Agree totally!
All alerts from Nagios go to the same post-processing script we built
and that's where they get shuffled off where they need to go, based on
user preferences.
This sounds amazing!
Is there any chance this could be released to the community?
--
Sean
the Moxa, we've never had a missed page, locked up
device, or any other problem (other than PETA spamming the number...)
--
Sean McAfee
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE
On 5/12/2011 02:49, Marco Borsani wrote:
Command file is the same.
Running that command like root or Nagios user manually it is ok
In the Nagios file (does not send sms):
command_line/usr/local/bin/sendsms 0039$CONTACTPAGER$ Host:$HOSTALIAS$ is
$HOSTSTATE$ Type:$NOTIFICATIONTYPE$.
60 matches
Mail list logo