[Nagios-users] Why the distinction between host definition and hostextinfo definition?

2006-02-03 Thread Marc Haber
Hi,

to me, the distinction between host definition and hostextinfo
definition seems artificial, awkward and clumsy - and it prevents some
of the more powerful features from being used with the information
that belongs into hostextinfo. 

Hostextinfo doesn't seem to support templates, and it doesn't seem to
be possible to set information that is set as hostextinfo from a host
group or via wildcards.

This makes it extraordinarily hard to - for example - set host icons
for the status map, since it needs a dedicated hostextinfo
definition setting icon_image and statusmap_image for each host which
might have all other properties set from a template.

Is there any reason for keeping this distinction and not including
hostextinfo into main configuration?

Am I missing something here?

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] performance data - RRDTool

2006-02-03 Thread Jim Perrin
On 2/3/06, Richard Gliebe <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I want to store the service_perfdata into RRD-tool to read it with MRTG.
>
> Is there a RTFM available ?
>

Not so much RTFM as "check this out" -> http://nagiosgraph.sourceforge.net/
It's similar to what you're looking to do, and if it doesn't work for
you, you can at least check out the code, the rrd-fu they use, and see
how things are working.



--
Jim Perrin
System Architect - UIT
Ft Gordon & US Army Signal Center


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Small problem with forced service checks on 2.0rc2

2006-02-03 Thread Steve Johnson

Hi,

I currently have a setup running 2.0rc2. When I go through the web 
interface and schedule forced checks, this works fine until I hit the 
max_check_attempts and the service falls into a hard state. After that, 
even if I schedule a new check, I see the check request in the log file, 
but the check is never performed. This means that the only way to get it 
to test again is to wait until its next officially scheduled check.


I had asked in one of the IRC channels and was told that this was not 
supposed to be the case. Is this something related to 2.0rc2 or 
something I should not be experiencing at all, even on this version? If 
so, any ideas on what could be wrong?


Thanks a lot,
Steve Johnson


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Re: performance data - RRDTool

2006-02-03 Thread Rene Fertig
Am Freitag, 3. Februar 2006 08:07 schrieb Richard Gliebe:
> Hi all,
>
> I want to store the service_perfdata into RRD-tool to read it with MRTG.
>
> Is there a RTFM available ?

There is a tool like that: http://nagiostat.sourceforge.net/
It use the RRD-tool, too. Perhaps you can use the db-files it generates 
together with MRTG.

Ciao, René



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] RE: Reporting and misc rave.

2006-02-03 Thread Ton Voon
On 3 Feb 2006, at 00:59, Jim Pye wrote:My wishlist for Nagios? 0) Two levels of access - readonly and manage - on a per contact, per service level.  Dont just give 'manage' access to everyone listed as a contact for that service. True. I did work on a customers site where the management wanted access to monitor what was going on but did not want to change or acknowledge alerts etc. I've been thinking of patching Nagios so that a contact can have defined: issue_commands = [0|1] (default 1 for backwards compatibility)This way you can define a contact to be able to view a subset of all hosts/services, but would not have access to write to cmd.cgi for downtimes, reschedule, etc.Would this go down well?Ton http://www.altinity.comT: +44 (0)870 787 9243F: +44 (0)845 280 1725Skype: tonvoon 

RE: [Nagios-users] RE: Reporting and misc rave.

2006-02-03 Thread Tedman Eng
Read/Write access to cmd.cgi can already be disabled using .htaccess


-Original Message-
From: Ton Voon [mailto:[EMAIL PROTECTED]
Sent: Friday, February 03, 2006 6:19 AM
To: [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] RE: Reporting and misc rave.




On 3 Feb 2006, at 00:59, Jim Pye wrote:


My wishlist for Nagios?
0) Two levels of access - readonly and manage - on a per contact, per
service level.  Dont just give 'manage' access to everyone listed as a
contact for that service.
True. I did work on a customers site where the management wanted access
to monitor what was going on but did not want to change or acknowledge
alerts etc.


I've been thinking of patching Nagios so that a contact can have defined: 


issue_commands = [0|1] (default 1 for backwards compatibility)


This way you can define a contact to be able to view a subset of all
hosts/services, but would not have access to write to cmd.cgi for downtimes,
reschedule, etc.


Would this go down well?


Ton




http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] hostgroup_name and hostextinfo.cfg (nagios 1.2)

2006-02-03 Thread Brian Sudis



Can a hostgroup_name 
be used in the hostextinfo.cfg file instead of 
host_name?
 
I have my host broken down by OS and am using the 
cfg_dir to OS specific configuration 
directories.
 
I know that this 
works:
 
define 
hostextinfo{    
host_name  somehost1,somehost2,somehost3,etc..
    
notes_url   
/nagios/man/host_notes/linux/$HOSTNAME$.html    
icon_image  
/base/redhat.gif    
icon_image_alt  RedHat Advanced 
Server    
}  What I would like to be able to do is 
something like this:
 

define 
hostextinfo{    
hostgroup_name  linux-production,linux-test,linux-infrastructure,linux-development
    
notes_url   
/nagios/man/host_notes/linux/$HOSTNAME$.html    
icon_image  
/base/redhat.gif    
icon_image_alt  RedHat Advanced 
Server    
} 
I've 
tested it and have been unsuccessful.  Any pointers on this, or is it just 
not something that is possible at this time with 1.2?
 
Thanks,
 
Brian


[Nagios-users] Disk monitoring graphs

2006-02-03 Thread Ravi Kumar
Hi,  can  some one what is wrong in rrd command?     apan.cfg  app2;disk_usage;/usr/local/nagios/rrd/db/app2-disk.rrd;/|/u01;root:LINE2 u01:LINE2;Disk Usage;%;     rrdtool create /usr/local/nagios/rrd/db/dapp2-disk.rrd -s 60 DS:root:GAUGE:300:0:U DS:u01:GAUGE:300:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800   please suggest.     I have checked and everythings are looking fine.  thx   
	
		 Yahoo! Mail - Helps protect you from nasty viruses.

[Nagios-users] What did we recover from?

2006-02-03 Thread Andrew Laden
Title: What did we recover from?





Is there some macro that we can use when a recovery alert was sent out to indicate what we recovered from? I.E. Warning, or Critical?

I am writing my own notification module, since the notification and escalation rules that nagios provides don't meet my needs. (I need much finer control of who gets noitified for what.)

The problem I am having is how to avoid sending recovery pages to people who didn't get the problem pages. I want to be stateless, so I can't track who was sent the page. The idea is to determine what level the recover is for (ie, critical or warn), see if the user would have gotten a page for that service/problem level, and if so, send the recovery page. 

I was thinking of playing with the $LASTSERVICE*$ macros, but cant figure out an algorithm that will work for both the 
OK -> CRIT -> OK, case and the OK -> WARN -> CRIT -> WARN -> OK case, vs the OK -> WARN -> OK case.


Any ideas?


-Andrew





Re: [Nagios-users] Disk monitoring graphs

2006-02-03 Thread Hugo van der Kooij
On Fri, 3 Feb 2006, Ravi Kumar wrote:

>   can  some one what is wrong in rrd command?
>
>   apan.cfg
>   app2;disk_usage;/usr/local/nagios/rrd/db/app2-disk.rrd;/|/u01;root:LINE2 
> u01:LINE2;Disk Usage;%;
>
>   rrdtool create /usr/local/nagios/rrd/db/dapp2-disk.rrd -s 60 
> DS:root:GAUGE:300:0:U DS:u01:GAUGE:300:0:U RRA:AVERAGE:0.5:1:50400 
> RRA:AVERAGE:0.5:60:43800
>
>   please suggest.
>
>   I have checked and everythings are looking fine.

Well. You failed to do step 1. Execute it yourself and tell us what exact
response you are getting.

Whithout a hint to any error essage or anything else like that from you
this exercise is pointless.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] hostgroup_name and hostextinfo.cfg (nagios 1.2)

2006-02-03 Thread Az




Brian Sudis wrote:

  
  
  Can a hostgroup_name be used
in the hostextinfo.cfg file instead of host_name?
  

No, you cant make up directives. :)

And according to the docs (v1 and v2), you cant use wildcards in
hostextinfo either. Eg, this wouldnt work:

define hostextinfo {
    host_name  linux-*
    notes_url  
/nagios/man/host_notes/linux/$HOSTNAME$.html
    icon_image  /base/redhat.gif
    icon_image_alt  RedHat Advanced Server
    }

Feature request!




[Nagios-users] send_nsca send_check_result script question

2006-02-03 Thread Brady Maxwell
in the send_nsca config file there does not appear to be away to set the 
port that send_nsca should use but in the nsca config  file there is a 
place to set the port.


does the port go in the send_check_result script?

If so can someone share with me the syntax please.

i think it would look something like this

/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | 
/usr/local/nagios/bin/send_nsca /central_server/ port_id -c /usr/local/nagios/etc/send_nsca.cfg

Thank You

Brady


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Notification Period Options?

2006-02-03 Thread Carl Davis
I am continuing to try to adjust my notification options.  It seems like
if a notifiable event happens outside of a notification period then no
notification takes place, this makes sense and I understand this.
However, I would like to be notified if the service is still down as
soon as the service enters into a notification period.  Is this
possible?  It seems like this will happen only if the service is still
down AND  only after it reaches the notification_interval.

Carl



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null