Re: [Nagios-users] Generic SNMP query

2009-06-22 Thread Mark Gius
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

Re: [Nagios-users] Generic SNMP query

2009-06-23 Thread Mark Gius
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

Re: [Nagios-users] Server/host Inheritance

2009-06-25 Thread Mark Gius
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

Re: [Nagios-users] Server/host Inheritance

2009-06-25 Thread Mark Gius
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

Re: [Nagios-users] RPM for Nagios 3.1.2 Fedora 9?

2009-06-29 Thread Mark Gius
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

Re: [Nagios-users] general inquiry of method of install for Nagios 3.1.2 on Fedora 9 system

2009-07-01 Thread Mark Gius
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

Re: [Nagios-users] general inquiry of method of install for Nagios 3.1.2 on Fedora 9 system

2009-07-01 Thread Mark Gius
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

Re: [Nagios-users] how does nagios locate config path?

2009-07-02 Thread Mark Gius
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

Re: [Nagios-users] Hostgtroup question

2009-07-14 Thread Mark Gius
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

Re: [Nagios-users] Unable to Login to Nagios

2009-07-14 Thread Mark Gius
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

Re: [Nagios-users] Dynamically generated service checks

2009-07-15 Thread Mark Gius
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

Re: [Nagios-users] Nagios-users Digest, Vol 38, Issue 28

2009-07-16 Thread Mark 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

Re: [Nagios-users] SNMP Monitoring conundrum

2009-07-16 Thread Mark Gius
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

Re: [Nagios-users] Contact with separate notification_interval

2009-07-20 Thread Mark Gius
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

Re: [Nagios-users] Send Only one notification...

2009-07-22 Thread Mark Gius
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

Re: [Nagios-users] Alternative Notification Method

2009-07-22 Thread Mark Gius
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

Re: [Nagios-users] Monitor Windows 2003 using nagios + SNMP

2009-08-06 Thread Mark Gius
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

Re: [Nagios-users] check_nt missing -l parameters

2009-08-14 Thread Mark Gius
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

Re: [Nagios-users] Redundant Nagios setups...

2009-08-26 Thread Mark Gius
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

[Nagios-users] Nagios not honoring large check_interval

2009-08-27 Thread Mark Gius
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

Re: [Nagios-users] Nagios not honoring large check_interval

2009-08-27 Thread Mark Gius
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

Re: [Nagios-users] Why are there commands?

2009-08-28 Thread Mark Gius
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

Re: [Nagios-users] Changing Display Name

2009-09-21 Thread Mark Gius
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

Re: [Nagios-users] Different notifications times for same service on different hosts?

2009-09-28 Thread Mark Gius
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

[Nagios-users] Escalate after X warnings or criticals

2009-11-05 Thread Mark Gius
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