Re: [Nagios-users] subject rewrite

2006-02-02 Thread D. Wüthrich

Hi

Have a look at 'misccommands.cfg' configuration file. There are 2 command 
definitions:
- host-notify-by-email  (hosts)
- notify-by-email   (services)

The mail-command specified, e.g. '... /usr/bin/mailx -s "Host $HOSTSTATE$ alert for 
$HOSTNAME$!" $CONTACTEMAIL$' uses macros - have a look at nagios documentation for 
the macros.


Polenyik Tibor wrote:

Hi,
 
How to change the subject in the notification email ?

And I'd like to write the event and server name to the subject.
 
Thanks
 
 
 
 




---
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] Submit passive check result for a service sending out duplicate alert mails?

2006-02-02 Thread Arno Lehmann

Hello,

On 2/2/2006 6:49 AM, Karan uk wrote:
Nope this is just a single server setup...monitoring services on remote 
servers.


Perhaps a mail server problem? Because I also see all your mails to the 
list twice.


The one I reply to:

Received: by wproxy.gmail.com with SMTP id i24so316636wra
for ; Wed, 01 Feb 2006 21:49:59 
-0800 (PST)



The other one:

Received: by wproxy.gmail.com with SMTP id i30so314718wra
for ; Wed, 01 Feb 2006 21:50:31 
-0800 (PST)


Which looks, going by the different message id and time, like your mail 
was actually sent twice.


Arno


thanks,
Suraj


--
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


---
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] Service on an IP address different from the host

2006-02-02 Thread Marc Haber
Hi,

some systems I am responsible for have multiple IP addresses, with
services that are not running on all IP addresses. I thus need service
definitions that don't check the service on the host address, but on a
dedicated "service address" while still being associated to the host
which has a different address.

I have come up with various ways to do this, each of them ugly, but
differently so.

(1)
Duplicate each command definition for a service check like

define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}

define command{
command_namecheck_http_addr
command_line$USER1$/check_http -H $ARG1$
}


(2)
One other idea I have come up with would be having a thing like an "optional
argument", which could be configured like

define command{
command_namecheck_http
command_line$USER1$/check_http -H $IFDEF $ARG1$$ $ARG1$ $ELSE$ 
$HOSTADDRESS$ $ENDIF$
}

(3)
A different approach (which is what I did back in netsaint days) was a
metaplugin, which allows command configuration like

define command {
command_namecheck_http
command_line$USER2$/modify_address $HOSTADDRESS$-$ARG1$ 
$USER1$/check_dns_random modify_address
}

which allows service definitions like

define service {
...
check_command   check_http
}

which checks the service on $HOSTADDRESS$ and

define service {
...
check_command   check_http!192.168.130.5
}

which checks the service on 192.168.130.5.

In the example, the metaplugin replaces the occurence of the string
modify_address with $HOSTADDRESS$ if $ARG1$ is empty, and $ARG1$
otherwise. This has the advantage of having a very straightforward
service configuration, at the price of having a confusing and complex
command definition which does not use nagios standard mechanisms.

(4)
The last approach would be to have host definitions for both IP
addresses, but that would probably be confusing for notification
recipients who are not so intimately familiar with system
architecture.



Which approach would, in your opinion, be appropriate for a new
installation? I am currently inclined towards (4).

What is your opinion?

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] RE: You don't have permission to access /nagios/cgi-bin/ on this server

2006-02-02 Thread Toto Capuccino
maybe the problem comes from the configuration of Apache, did you put the ScriptAlias and Alias as mentionned in the doc, did you mouve the nagios web directory?2006/2/1, Bob DeBolt <
[EMAIL PROTECTED]>:Hi MikeThanks for the response
> This appears to be a permissions problem. It sounds as if you have nagios> as a member of the apache group,Actually apache is running in the nagios group> but are you running nagios as "nagios"
Yes> Is Apache running as "apache".Yes> You may also want to check the directories/files to ensure they are a part> of correct group/ownership.Some of the files in the /usr/lib/nagios/cgi directory
-rwxrwxr-x 1 nagios nagios 135496 Jan 31 11:45 histogram.cgi-rwxrwxr-x 1 nagios nagios 115176 Jan 31 11:45 history.cgi-rwxr--r-- 1 nagios nagios 99 Jan 31 16:11 .htaccessBob---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] host info web page

2006-02-02 Thread Toto Capuccino
Hi,Is there's a way to get ride of the text "There are additional notes for this host" that is displayed  on the host information ?Thank you 


Re: [Nagios-users] host info web page

2006-02-02 Thread jeff vier
On Thu, 2006-02-02 at 13:50 +0100, Toto Capuccino wrote:
> Hi,
> 
> Is there's a way to get ride of the text "There are additional notes
> for this host" that is displayed  on the host information ?

The fastest way would be to remove your serviceextinfo definition.

;)

Just hack the line in the source of the cgi that's displaying it and
recompile.


signature.asc
Description: This is a digitally signed message part


[Nagios-users] Restarting Nagios via "sudo"

2006-02-02 Thread Miner, Jonathan W (CSC) (US SSA)
Hi -

We've setup the $NAGIOS/etc directory so that all the admins can edit the 
files, and the files are under RCS control.  I'm pretty comfortable with this, 
and am pretty sure the permissions are fine. All the files are world-readable 
except for resource.cfg which is only readable by user (root) and group (admin).

If I try to use "sudo /etc/init.d/nagios force-reload" to restart Nagios, I get 
no errors on the screen, but in the event log:

Error: Cannot open resource file '/disk0/tools/nagios-2.0rc2/etc/resource.cfg' 
for reading!

and Nagios starts running, but since $USER1$ is not defined, all the checks 
start failing.

However, if I "su" to root first, and then run "/etc/init.d/nagios 
force-reload" everything starts correctly.  Apparently, there is a subtle 
difference between using "sudo" verses "su". Any ideas?

I've already come up with two possible solutions...

1) Put the "nagios" user into the "admin" group, which would ensure that Nagios 
could read the files.

2) Change the group ownership of the $NAGIOS/etc files back to "nagios" and add 
my admin staff into the "nagios" group.  This is likely the better solution, 
especially if there are certain admins that I don't want messing with the 
Nagios configuration!

How do other people maintain control over their Nagios configurations?


---
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] Custom command

2006-02-02 Thread Robert Fitzpatrick
Thanks to Jim here on the list, I have defined a command to send an
e-mail using a sendEmail perl script. From the command line, the script
works fine. When I try to use the new notify-by-sendEmail as the
service_notification_commands for my contact, Nagios logs the message as
sent, which never makes it to the SMTP server and I get this error in
the /var/log/messages:

Feb  2 10:13:39 esmtp kernel: pid 14486 (nagios), uid 2004: exited on
signal 10

I have the same permissions on the file as the other commands that
Nagios uses in the minimail.cfg, like /usr/bin/mail:

esmtp# ls -lah /usr/local/bin/sendEmail
-r-xr-xr-x  1 root  wheel62K Feb  1 17:58 /usr/local/bin/sendEmail

Can someone suggest why I get this error? I simplified the new command
without the variables like below, I can copy and paste this command to
the command line and the message gets sent successfully:

define command{
command_namenotify-by-sendEmail
command_line/usr/local/bin/sendEmail -f
[EMAIL PROTECTED] -t [EMAIL PROTECTED] -s 10.0.0.40 -m "Body" -u
"Subject"
}

define contact{
contact_namewebtent
alias   WebTent
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,r
service_notification_commands   notify-by-sendEmail
host_notification_commands  host-notify-by-email
email   [EMAIL PROTECTED]
}


-- 
Robert



---
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] Custom command

2006-02-02 Thread Assaf Flatto

Have you tried placing the script under the libexec directory?

I had the same issue some time ago and the script only worked when it was in the 
libexec directory even though the absolute path was set.



Assaf

Robert Fitzpatrick wrote:

Thanks to Jim here on the list, I have defined a command to send an
e-mail using a sendEmail perl script. From the command line, the script
works fine. When I try to use the new notify-by-sendEmail as the
service_notification_commands for my contact, Nagios logs the message as
sent, which never makes it to the SMTP server and I get this error in
the /var/log/messages:

Feb  2 10:13:39 esmtp kernel: pid 14486 (nagios), uid 2004: exited on
signal 10

I have the same permissions on the file as the other commands that
Nagios uses in the minimail.cfg, like /usr/bin/mail:

esmtp# ls -lah /usr/local/bin/sendEmail
-r-xr-xr-x  1 root  wheel62K Feb  1 17:58 /usr/local/bin/sendEmail

Can someone suggest why I get this error? I simplified the new command
without the variables like below, I can copy and paste this command to
the command line and the message gets sent successfully:

define command{
command_namenotify-by-sendEmail
command_line/usr/local/bin/sendEmail -f
[EMAIL PROTECTED] -t [EMAIL PROTECTED] -s 10.0.0.40 -m "Body" -u
"Subject"
}

define contact{
contact_namewebtent
alias   WebTent
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,r
service_notification_commands   notify-by-sendEmail
host_notification_commands  host-notify-by-email
email   [EMAIL PROTECTED]
}




--
Assaf Flatto
m-Wise Operations
Cellular: +972-54-5679230
e-mail: [EMAIL PROTECTED]
MSN : [EMAIL PROTECTED]


---
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] Nagios Escalations

2006-02-02 Thread Andrew Laden
 Bringing it back to the list

> -Original Message-
> From: Jason Coleman [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 01, 2006 2:13 PM
> To: Andrew Laden
> Subject: RE: [Nagios-users] Nagios Escalations
> 
> My apologies. I would like the groups listed in the 
> escalations contact_groups to be notified. However, they 
> never are in the current configuration that I have provided. 
> The initial alert is delivered to the group listed in the 
> service definition and that is it. From the outside, it 
> appears that nagios is not escalating the notification. 
> 
> 
 
Read your definiton. Are you waiting 12 hours for the 2nd escalation. I
think the notification interval of 720 may be the issues.

Notification 1 - linux engineers
720 minutes (12 hours)
Notification 2 - Linux Engineers
720 Minutes ( 12 hours)
Notification 3 - linux-engineers,network-engineers,windows-engineers
12 minutes
Notification 4 - big list
12 minutes.
Repeat to 1000

> 
> -Original Message-
> From: Andrew Laden [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 10:18 AM
> To: Jason Coleman
> Subject: RE: [Nagios-users] Nagios Escalations
> 
> Might help to say what errant behavior you are seeing. 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf 
> Of Jason 
> > Coleman
> > Sent: Wednesday, February 01, 2006 12:32 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Nagios Escalations
> > 
> > I am currently having trouble getting our escalations to 
> work. I have 
> > read the documentation and tried experimenting with nagios, but I 
> > still cannot get nagios to observe the escalation rules. Here is my 
> > service definition that I am testing with:
> > 
> > Service definition:
> > 
> > define service{
> > namegeneric-checkhttp
> > use generic-service
> > service_description Check HTTP
> > is_volatile 0
> > check_period24x7
> > max_check_attempts  3
> > normal_check_interval   1
> > retry_check_interval1
> > notification_interval   720
> > contact_groups  linux-engineers
> > notification_period 24x7
> > notification_optionsw,u,c,r
> > check_command   check_http
> > register0
> > }
> > 
> > And here is the escalation definition:
> > 
> > define serviceescalation{
> > host_name   wwdw23img01
> > service_description Check HTTP
> > first_notification  3
> > last_notification   1000
> > notification_interval   12
> > contact_groups
> > linux-engineers,network-engineers,windows-engineers
> > }
> > 
> > Any help would be appreciated. Please let me know if I have 
> left out 
> > information that is needed to assist.
> > 
> > 
> > 
> > Jason Coleman
> > Systems Engineer
> > LRN - The Legal Knowledge Company
> > 1100 Glendon Ave, Suite 700
> > Los Angeles, CA 90024
> > tel: 310-209-5381
> >  
> > "/(bb|[^b]{2})/"
> > 
> > 
> > 
> > 
> > ---
> > 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
> > 
> 


---
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] NagiosGrapher and XML::Simple

2006-02-02 Thread Christopher Gill
Good morning.
I'm having some very frustrating trouble getting NagiosGrapher working.
Since it doesn't have it sown mialing lists, figured I'd ask here. I've
followed the install instructions provided, but when running the
collection script, collect2.pl, I get a perl error back claiming it
can't find the 'new' constructor on XML::Simple.

Specific error:
Can't locate object method "new" via package "XML::Simple" (perhaps you
forgot to load "XML::Simple"?) at NagiosGrapher.pm line 367.

This is on Redhat WS 4 with Perl 5.8.5-24. I installed XML::Simple from
CPAN since Redhat doesn't have a package for it. It shows up correctly
in the POD index, so I'm fairly sure I installed it correctly. Could
this be a NagiosGrapher bug, or is my perl install just mucked up? Any
thoughts would be greatly appreciated.

Thanks.

-- 
Christopher Gill <[EMAIL PROTECTED]>



---
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] Plugin exit status codes

2006-02-02 Thread Deborah Martin
Hi, 
I'm using Nagios 2.0b4 on Suse 9.2 

I have some plugins which do various database checks such as disk usage. In
the plugin, I want to define
the exit codes depending on the status of the check. I noticed that there is
an exit status of 
STATE_DEPENDENT (defined in utils.sh which comes with the nagios plugins
package) 

When should this exit status be used. I'm guessing it should be when a
service check is a dependency and its
master service has failed and therefore the dependency should exit with this
status. Am I correct ? The documentation
lists the other exit state codes (0,1,2,3) but doesn't mention 4. I've
checked 2.0b6 docs as well.

BTW - When i use the STATE_DEPENDENT exit code for a dependency service
check I get the error 
'Return code of 4 is out of bounds' 

I have the dependency service check defined in dependencies.cfg 

Any pointers / help would be very appreciated. 

thanks,
deborah 


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Kognitio Limited takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Kognitio grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.
***



---
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] Plugin return codes

2006-02-02 Thread Deborah Martin
Hi, 
I'm using Nagios 2.0b4 on Suse 9.2 

I have some plugins which do various database checks such as disk usage. In
the plugin, I want to define
the exit codes depending on the status of the check. I noticed that there is
an exit status of 
STATE_DEPENDENT (defined in utils.sh which comes with the nagios plugins
package) 

When should this exit status be used. I'm guessing it should be when a
service check is a dependency and its
master service has failed and therefore the dependency should exit with this
status. Am I correct ? The documentation
lists the other exit state codes (0,1,2,3) but doesn't mention 4. I've
checked 2.0b6 docs as well.

BTW - When i use the STATE_DEPENDENT exit code for a dependency service
check I get the error 
'Return code of 4 is out of bounds' 

I have the dependency service check defined in dependencies.cfg 

Any pointers / help would be very appreciated. 

thanks,
deborah 


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Kognitio Limited takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Kognitio grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.
***



---
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] Graphing service checks

2006-02-02 Thread Rusty Hall




    I 
have some data that im trying to graph from nagios , but can't seem to get it to 
work.  I have 2 that are giving me an issue, one is an old 
file for graphing disk on windows server.  The graph shows nothing as 
far as the data, but an rrd file has been cretaed.
 
first 
one
 
ntdisk_C
data
    
C:\ - total: 3.95 Gb - used: 3.33 Gb (84%) - 
free 0.62 Gb (16%) 
map file 
entry
 
/perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/and 
push @s, [ ntdisk,[ diskused, GAUGE, $1*1024**3 ],[ diskwarn, GAUGE, 
$2*1024**3 ],[ diskcrit, GAUGE, $3*1024**3 ],[ diskmaxi, GAUGE, 
$5*1024**3 ] ];
 
 
second 
one
This one has never 
worked or created a rrd file, trying to map the count with 
memory
 
data 

CRITICAL - no processes found resembling 
'hciengine.exe'-count=27:memory=673676 
 
map file 
entry
/output;*count=(\d+);memory=([.0-9]+)Mb;/and push @s, [ QDX,[ 
threadcount, GAUGE, $1*   ],[ memorycount, 
GAUGE, $5*1024**3 ] ]
 
    
Any help or guidance would be greatly appreciated 
Rusty
 


[Nagios-users] Statusmap Images (resend)

2006-02-02 Thread Patrick M. Rutkowski
(I sent out this message and I don't see it in the nagios-users
archives, so I'm sending it again just be sure that it gets out there;
apologies if it's a double).

I've set xedtemplate_config_file=/etc/nagios/hostextinfo.cfg in
cgi.cfg, and then put one entry into hostextinfo.cfg:

define hostextinfo{
   host_name   flash
   icon_image  logo.gif
   icon_image_alt  logo.gif
   statusmap_image logo.gif
}

I made little 40x40 gif in the gimp, uploaded to the server and put it
into /usr/share/nagios/htdocs/images/logos, and restarted nagios. The
gif doesn't appear in the status map like i expected it too; instead
all I get is the question mark gifs that I saw even before i made any
changes. What should I do?


---
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] Statusmap Images

2006-02-02 Thread Patrick M. Rutkowski
I've set xedtemplate_config_file=/etc/nagios/hostextinfo.cfg in
cgi.cfg, and then put one entry into hostextinfo.cfg:

define hostextinfo{
host_name   flash
icon_image  logo.gif
icon_image_alt  logo.gif
statusmap_image logo.gif
}

I made little 40x40 gif in the gimp, uploaded to the server and put it
into /usr/share/nagios/htdocs/images/logos, and restarted nagios. The
gif doesn't appear in the status map like i expected it too; instead
all I get is the question mark gifs that I saw even before i made any
chages. What should I do?


---
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] You don't have permission to access /nagios/cgi-bin/ on this server

2006-02-02 Thread Bob DeBolt
Mike

I have discovered why the permission issue has happened.

Following (not) the docs, after the Web Interface login is setup I was still 
using the http://yourmachine/nagios/cgi-bin/ to verify the functioning of the 
login. The login works but then attempts to read the cgi-bin directory.

I should have been using http://yourmachine/nagios/ which works correctly

I certainly became reacquainted with setting up apache.

Bob



---
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] Service on an IP address different from the host

2006-02-02 Thread Marc Haber
On Thu, Feb 02, 2006 at 09:34:06AM -0800, Guy B. Purcell wrote:
> That you've been staring at the problem from waaay too close :^)   
> Seriously, all you need to do is to define (in Nagios, not  
> necessarily in the DNS, although that probably wouldn't hurt)  
> separate hosts for the different interfaces,

That's my solution (4), which is indeed most probably the least ugly
one.

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] NagiosGrapher and XML::Simple

2006-02-02 Thread Hugo van der Kooij
On Thu, 2 Feb 2006, Christopher Gill wrote:

> I'm having some very frustrating trouble getting NagiosGrapher working.
> Since it doesn't have it sown mialing lists, figured I'd ask here. I've
> followed the install instructions provided, but when running the
> collection script, collect2.pl, I get a perl error back claiming it
> can't find the 'new' constructor on XML::Simple.
>
> Specific error:
> Can't locate object method "new" via package "XML::Simple" (perhaps you
> forgot to load "XML::Simple"?) at NagiosGrapher.pm line 367.
>
> This is on Redhat WS 4 with Perl 5.8.5-24. I installed XML::Simple from
> CPAN since Redhat doesn't have a package for it. It shows up correctly
> in the POD index, so I'm fairly sure I installed it correctly. Could
> this be a NagiosGrapher bug, or is my perl install just mucked up? Any
> thoughts would be greatly appreciated.

I got it working. WHile not on RHEL4 but FC4 there are packages out there
to do the job. Like atrpms (http://atrpms.net/dist/el4/) and other
archives.

If you insist on getting them fro CPAN I suggest you at least repackage
them to solve dependencies issue with the CPAN2RPM tool.

But that is in fact al besides Nagios.

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] Custom command

2006-02-02 Thread Robert Fitzpatrick
On Thu, 2006-02-02 at 17:44 +0200, Assaf Flatto wrote:
> Have you tried placing the script under the libexec directory?
> 
> I had the same issue some time ago and the script only worked when it was in 
> the 
> libexec directory even though the absolute path was set.

Thanks, but still same error even with the new location :(

Jim suggested this on the list, so I know it can be done. I'm on a
FreeBSD 5.4 server. Anyone ever have issues with getting custom commands
to run...?

-- 
Robert



---
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] Service on an IP address different from the host

2006-02-02 Thread Guy B. Purcell


On Feb 2, 2006, at 02:25, Marc Haber wrote:


some systems I am responsible for have multiple IP addresses, with
services that are not running on all IP addresses. I thus need service
definitions that don't check the service on the host address, but on a
dedicated "service address" while still being associated to the host
which has a different address.

I have come up with various ways to do this, each of them ugly, but
differently so.


[...some truly ugly suggestions involving special command defs for  
each service check...]



What is your opinion?


That you've been staring at the problem from waaay too close :^)   
Seriously, all you need to do is to define (in Nagios, not  
necessarily in the DNS, although that probably wouldn't hurt)  
separate hosts for the different interfaces, a la


define host{
use corp-host
host_name   mink-ge0
alias   mink
address 10.10.10.10
}

define host{
use corp-host
host_name   mink-ge1
alias   mink
address 10.10.10.10
}

Once you have that, you just define the services for each "host" as  
appropriate.


-Guy



---
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] Plea for one time messages only

2006-02-02 Thread Hugo van der Kooij
PLEASE.

Will everyone sending out duplicate messages stop sending them twice. This
list is unique as it is the only mailiglist on which I see so many
duplicate messages. (I see more here per day than on any other list per
month.)

If you don't see your own messages you need to verify your settings. Go
to https://lists.sourceforge.net/lists/listinfo/nagios-users and verify
your "Receive posts you send to the list?" setting.

And the write only users should not depend on the archives to see if their
message came through. Archives are archives and not instant views or
anything like that. The archives lag behind.

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] Nagios Escalations

2006-02-02 Thread Jason Coleman
Thank you. I will take a look there. Might be a misunderstanding of what
that actually means in regards to escalations. 



Jason Coleman
Systems Engineer
LRN - The Legal Knowledge Company
1100 Glendon Ave, Suite 700
Los Angeles, CA 90024
tel: 310-209-5381
 
"/(bb|[^b]{2})/"



-Original Message-
From: Andrew Laden [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 02, 2006 8:00 AM
To: Jason Coleman
Cc: nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Nagios Escalations

 Bringing it back to the list

> -Original Message-
> From: Jason Coleman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 2:13 PM
> To: Andrew Laden
> Subject: RE: [Nagios-users] Nagios Escalations
> 
> My apologies. I would like the groups listed in the escalations 
> contact_groups to be notified. However, they never are in the current 
> configuration that I have provided.
> The initial alert is delivered to the group listed in the service 
> definition and that is it. From the outside, it appears that nagios is

> not escalating the notification.
> 
> 
 
Read your definiton. Are you waiting 12 hours for the 2nd escalation. I
think the notification interval of 720 may be the issues.

Notification 1 - linux engineers
720 minutes (12 hours)
Notification 2 - Linux Engineers
720 Minutes ( 12 hours)
Notification 3 - linux-engineers,network-engineers,windows-engineers
12 minutes
Notification 4 - big list
12 minutes.
Repeat to 1000

> 
> -Original Message-
> From: Andrew Laden [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 10:18 AM
> To: Jason Coleman
> Subject: RE: [Nagios-users] Nagios Escalations
> 
> Might help to say what errant behavior you are seeing. 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> Of Jason
> > Coleman
> > Sent: Wednesday, February 01, 2006 12:32 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Nagios Escalations
> > 
> > I am currently having trouble getting our escalations to
> work. I have
> > read the documentation and tried experimenting with nagios, but I 
> > still cannot get nagios to observe the escalation rules. Here is my 
> > service definition that I am testing with:
> > 
> > Service definition:
> > 
> > define service{
> > namegeneric-checkhttp
> > use generic-service
> > service_description Check HTTP
> > is_volatile 0
> > check_period24x7
> > max_check_attempts  3
> > normal_check_interval   1
> > retry_check_interval1
> > notification_interval   720
> > contact_groups  linux-engineers
> > notification_period 24x7
> > notification_optionsw,u,c,r
> > check_command   check_http
> > register0
> > }
> > 
> > And here is the escalation definition:
> > 
> > define serviceescalation{
> > host_name   wwdw23img01
> > service_description Check HTTP
> > first_notification  3
> > last_notification   1000
> > notification_interval   12
> > contact_groups
> > linux-engineers,network-engineers,windows-engineers
> > }
> > 
> > Any help would be appreciated. Please let me know if I have
> left out
> > information that is needed to assist.
> > 
> > 
> > 
> > Jason Coleman
> > Systems Engineer
> > LRN - The Legal Knowledge Company
> > 1100 Glendon Ave, Suite 700
> > Los Angeles, CA 90024
> > tel: 310-209-5381
> >  
> > "/(bb|[^b]{2})/"
> > 
> > 
> > 
> > 
> > ---
> > 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
> > 
> 


---
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&

Re: [Nagios-users] Graphing service checks

2006-02-02 Thread Arno Lehmann

Hello,

On 2/2/2006 5:47 PM, Rusty Hall wrote:


I have some data that im trying to graph from nagios , but can't 
seem to get it to work.  I have 2 that are giving me an issue, one is an 
old file for graphing disk on windows server.  The graph shows nothing 
as far as the data, but an rrd file has been cretaed.


Without even knowing which addon you use for graphing:


first one
 
ntdisk_C

data
C:\ - total: 3.95 Gb - used: 3.33 Gb (84%) - free 0.62 Gb (16%) 
map file entry
 
/perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/


Asuming this should be a RE which is matched against the plugin output - 
in this case, especially the performance data - you should also give an 
example performance data line.


Though it might be sufficient to remove the leading dots in the 
sub-expressions. I simply can't imagine that every disk space entry in 
the performance data line starts with a decimal point. Better, though, 
would be to use expressions that actually match normal decimal numbers, 
like '([0-9]+\.?[0-9]*)' or something.



and push @s, [ ntdisk,
[ diskused, GAUGE, $1*1024**3 ],
[ diskwarn, GAUGE, $2*1024**3 ],
[ diskcrit, GAUGE, $3*1024**3 ],
[ diskmaxi, GAUGE, $5*1024**3 ] ];
 
 
second one
This one has never worked or created a rrd file, trying to map the count 
with memory
 
data
CRITICAL - no processes found resembling 
'hciengine.exe'-count=27:memory=673676 
 
map file entry

/output;*count=(\d+);memory=([.0-9]+)Mb;/


Sure. Your RE uses a ; as a separator while your service output has a : 
and think about the decimal number matching subexpression...



and push @s, [ QDX,
[ threadcount, GAUGE, $1*   ],
[ memorycount, GAUGE, $5*1024**3 ] ]
 
Any help or guidance would be greatly appreciated


Obviously the product you use is badly documented (wouldn't be the first 
program...) or you need more experience with REs (and I know what I'm 
talking about, I'm always struggling with them!).


Arno


Arno


Rusty
 


--
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


---
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] Custom command

2006-02-02 Thread Tedman Eng
Are you testing from commandline from the context of the nagios user?

> -Original Message-
> From: Robert Fitzpatrick [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 02, 2006 7:22 AM
> To: Nagios
> Subject: [Nagios-users] Custom command
> 
> 
> Thanks to Jim here on the list, I have defined a command to send an
> e-mail using a sendEmail perl script. From the command line, 
> the script
> works fine. When I try to use the new notify-by-sendEmail as the
> service_notification_commands for my contact, Nagios logs the 
> message as
> sent, which never makes it to the SMTP server and I get this error in
> the /var/log/messages:
> 
> Feb  2 10:13:39 esmtp kernel: pid 14486 (nagios), uid 2004: exited on
> signal 10
> 
> I have the same permissions on the file as the other commands that
> Nagios uses in the minimail.cfg, like /usr/bin/mail:
> 
> esmtp# ls -lah /usr/local/bin/sendEmail
> -r-xr-xr-x  1 root  wheel62K Feb  1 17:58 /usr/local/bin/sendEmail
> 
> Can someone suggest why I get this error? I simplified the new command
> without the variables like below, I can copy and paste this command to
> the command line and the message gets sent successfully:
> 
> define command{
> command_namenotify-by-sendEmail
> command_line/usr/local/bin/sendEmail -f
> [EMAIL PROTECTED] -t [EMAIL PROTECTED] -s 10.0.0.40 
> -m "Body" -u
> "Subject"
> }
> 
> define contact{
> contact_namewebtent
> alias   WebTent
> service_notification_period 24x7
> host_notification_period24x7
> service_notification_optionsw,u,c,r
> host_notification_options   d,r
> service_notification_commands   notify-by-sendEmail
> host_notification_commands  host-notify-by-email
> email   [EMAIL PROTECTED]
> }
> 
> 
> -- 
> Robert
> 
> 
> 
> ---
> 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


---
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] question about host groups

2006-02-02 Thread Miner, Jonathan W (CSC) (US SSA)
I have a problem with not being able to view some host groups.  We have a host 
group for all our servers.  We have separate contact groups depending on 
whether the server is UNIX or Windows.  Our admins get added to the contact 
group depending on which OS they support.

If I select "host detail"

/cgi-bin/status.cgi?hostgroup=all&style=hostdetail

I see all the hosts that I'm on the contact list.

However, when I try to select "host group"

/cgi-bin/status.cgi?hostgroup=all&style=overview

I get an error message indicating that I'm not authorized.  I'm suspecting that 
since the host group contains servers that I'm NOT on the contact list for, I 
don't get to see _any_ of the group. Feature? Bug?

Thanks


---
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] Statusmap & "Host _assumed_ to be up"

2006-02-02 Thread Patrick M. Rutkowski
All the pictures in my status map are the unknown.gif question marks
despite the fact that I've added statusmap_image to the entries in
hostextinfo.cfg. ( I know my hostextinof.cfgi file is working because
I do have custom icons working in the host details cgi). Could the
fact that I'm only seeing question marks have anything to do with the
fact that most/all of my hosts are in the "Host _assumed_ to be up" or
"Pending" status? (That word assumed makes me feel uneasy about it).


---
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] Service on an IP address different from the host

2006-02-02 Thread Marc Haber
On Thu, Feb 02, 2006 at 11:48:49AM -0800, Guy B. Purcell wrote:
> Regarding recipient confusion with this method, you'll notice my  
> sample defs used a common alias.  The alias is what gets reported, so  
> recipients wouldn't see different hostnames--just different service  
> names.

Wouldn't they then be looking for the wrong host in the web interface?

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] Service on an IP address different from the host

2006-02-02 Thread Guy B. Purcell


On Feb 2, 2006, at 10:01, Marc Haber wrote:


On Thu, Feb 02, 2006 at 09:34:06AM -0800, Guy B. Purcell wrote:

That you've been staring at the problem from waaay too close :^)
Seriously, all you need to do is to define (in Nagios, not
necessarily in the DNS, although that probably wouldn't hurt)
separate hosts for the different interfaces,


That's my solution (4), which is indeed most probably the least ugly
one.


Ah yes--missed that one (probably because it was so short compared to  
the others), sorry.


Regarding recipient confusion with this method, you'll notice my  
sample defs used a common alias.  The alias is what gets reported, so  
recipients wouldn't see different hostnames--just different service  
names.


-Guy



---
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] check_swap command runs ok as root user, but as nagios user it gives incorrect info

2006-02-02 Thread Rob Madole

Sharing this with the list for posterity's sake...

Version info:
FreeBSD 4.10-RELEASE-P2
Nagios 2.0.r2
Nagios-plugins 1.4.2
NRPE 2.3

The plugin in question, check_swap, was returning the following  
information when ran through NRPE.


SWAP CRITICAL - 100% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0

Running it from the local machine (as root) the plugin functioned  
completely normally.


What I've narrowed it down to is that on this box the user nagios  
doesn't have permission to view information about the swap space on  
the machine (specifically the /dev/mem and /dev/kmem device files).   
I adjusted the permission on these files, and all is working as it  
should now.


I have a feeling that some of the other plugins that use device files  
would suffer the same fate.  Perhaps a permissions check on the  
device files should be checked in the configure script for nagios  
plugins since the plugins themselves don't do any error-handling for  
this condition?  (Yeah I know...you should be able to assume the  
perms on the system are correct but still)


Hope this helps somebody in the future.

Rob Madole
Programming
JAMSpiritSites.com 
The Original Cheerleading Website Designers™
ofc: (877) 239-9308
~~~NOTE
This Email is covered by the Electronic Communications Privacy Act,  
18 U.S.C. §§ 2510-2521 and is legally privileged. The information  
contained in this Email is intended only for use of the individual or  
entity named above. If the reader of this message is not the intended  
recipient, or the employee or agent responsible to deliver it to the  
intended recipient, you are hereby notified that any dissemination,  
distribution or copying of this communication is strictly prohibited.  
If you have received this communication in error, please immediately  
notify us by telephone (Toll Free - 877-239-9308), and destroy the  
original message. Thank You.





---
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] Service on an IP address different from the host

2006-02-02 Thread Hugo van der Kooij
On Thu, 2 Feb 2006, Marc Haber wrote:

> On Thu, Feb 02, 2006 at 11:48:49AM -0800, Guy B. Purcell wrote:
> > Regarding recipient confusion with this method, you'll notice my
> > sample defs used a common alias.  The alias is what gets reported, so
> > recipients wouldn't see different hostnames--just different service
> > names.
>
> Wouldn't they then be looking for the wrong host in the web interface?

Not if you happen to use standard - format and everyone
knows about it.

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] Statusmap & "Host _assumed_ to be up"

2006-02-02 Thread Hugo van der Kooij
On Thu, 2 Feb 2006, Patrick M. Rutkowski wrote:

> All the pictures in my status map are the unknown.gif question marks
> despite the fact that I've added statusmap_image to the entries in
> hostextinfo.cfg. ( I know my hostextinof.cfgi file is working because
> I do have custom icons working in the host details cgi). Could the
> fact that I'm only seeing question marks have anything to do with the
> fact that most/all of my hosts are in the "Host _assumed_ to be up" or
> "Pending" status? (That word assumed makes me feel uneasy about it).

Just what does your config look like?

I got something like:

define hostextinfo{
host_name   gandalf
icon_image  base/redhat.png
icon_image_alt  Fedora Core 1
vrml_image  base/redhat.png
statusmap_image base/redhat.gd2
}

Or:

define hostextinfo{
host_name   anfalas
icon_image  cook/dsl_router.png
icon_image_alt  Cisco 836 / IOS 12.3
vrml_image  cook/dsl_router.png
statusmap_image cook/dsl_router.gd2
}

Th first one is a default one which resides in
/usr/share/nagios/images/logos/base/redhat.png

I added the other image sets from nagios exchange.

Hugo.

PS: This is a FC-4 install from package.

-- 
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] Custom command

2006-02-02 Thread Jim Pye
Robert,

One thing I discovered with the script is that it uses the alarm()
functionality of the Linux kernel to help catch communication time outs.
Both Windows (and NetWare) do not support this functionality in their
PERL implementations. The script does account for Windows (I had to
modify it for NetWare) by detecting the OS and turning off that
function.

I am wondering if FreeBSD implementation of this alert function is not
working correctly. Or as the program works when running at commandline
that a permissions issue is being seen with this function. I do not have
a freeBSD to try the script on myself.

Not sure of your hacking skills but the lines that involve this alarm()
call are documented in the code and all I did for NetWare was add to the
OS test, at each of the places where it tests for Windows (about 5 or
6), the string returned by NetWare.

HTH
Jim


On Thu, 2006-02-02 at 10:21 -0500, Robert Fitzpatrick wrote:
> Thanks to Jim here on the list, I have defined a command to send an
> e-mail using a sendEmail perl script. From the command line, the script
> works fine. When I try to use the new notify-by-sendEmail as the
> service_notification_commands for my contact, Nagios logs the message as
> sent, which never makes it to the SMTP server and I get this error in
> the /var/log/messages:
> 
> Feb  2 10:13:39 esmtp kernel: pid 14486 (nagios), uid 2004: exited on
> signal 10
> 
> I have the same permissions on the file as the other commands that
> Nagios uses in the minimail.cfg, like /usr/bin/mail:
> 
> esmtp# ls -lah /usr/local/bin/sendEmail
> -r-xr-xr-x  1 root  wheel62K Feb  1 17:58 /usr/local/bin/sendEmail
> 
> Can someone suggest why I get this error? I simplified the new command
> without the variables like below, I can copy and paste this command to
> the command line and the message gets sent successfully:
> 
> define command{
> command_namenotify-by-sendEmail
> command_line/usr/local/bin/sendEmail -f
> [EMAIL PROTECTED] -t [EMAIL PROTECTED] -s 10.0.0.40 -m "Body" -u
> "Subject"
> }
> 
> define contact{
> contact_namewebtent
> alias   WebTent
> service_notification_period 24x7
> host_notification_period24x7
> service_notification_optionsw,u,c,r
> host_notification_options   d,r
> service_notification_commands   notify-by-sendEmail
> host_notification_commands  host-notify-by-email
> email   [EMAIL PROTECTED]
> }
> 
> 
-- 
Jim Pye
PyeNet Universal

email: [EMAIL PROTECTED] | Phone: +64 4 527 8284 | Fax: +64 4 528 9693
 web site: http://www.pyenet.co.nz



---
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] Statusmap Images

2006-02-02 Thread Steve Shipway
> define hostextinfo{
> host_name   flash
> icon_image  logo.gif
> icon_image_alt  logo.gif
> statusmap_image logo.gif
> }

I believe the statusmap_image needs to be a .gd2 image file?  At least, they
are on our system.  And, the icon_image_alt should be text (the alt= option
within the  tag)

Steve




---
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] Statusmap Images (resend)

2006-02-02 Thread Jim Pye
I had the same problem. The solution was to make sure that the
permissions on the files for your nagios user and group are r. I also
found that the world needs r as well.

Jim


On Thu, 2006-02-02 at 11:50 -0500, Patrick M. Rutkowski wrote:
> (I sent out this message and I don't see it in the nagios-users
> archives, so I'm sending it again just be sure that it gets out there;
> apologies if it's a double).
> 
> I've set xedtemplate_config_file=/etc/nagios/hostextinfo.cfg in
> cgi.cfg, and then put one entry into hostextinfo.cfg:
> 
> define hostextinfo{
>host_name   flash
>icon_image  logo.gif
>icon_image_alt  logo.gif
>statusmap_image logo.gif
> }
> 
> I made little 40x40 gif in the gimp, uploaded to the server and put it
> into /usr/share/nagios/htdocs/images/logos, and restarted nagios. The
> gif doesn't appear in the status map like i expected it too; instead
> all I get is the question mark gifs that I saw even before i made any
> changes. What should I do?
> 
> 
> ---
> 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
-- 
Jim Pye
PyeNet Universal

email: [EMAIL PROTECTED] | Phone: +64 4 527 8284 | Fax: +64 4 528 9693
 web site: http://www.pyenet.co.nz



---
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] Statusmap Images

2006-02-02 Thread Toto Capuccino
put png or gd2 images for statusmap and also check permissions2006/2/2, Patrick M. Rutkowski <[EMAIL PROTECTED]>:
I've set xedtemplate_config_file=/etc/nagios/hostextinfo.cfg incgi.cfg, and then put one entry into hostextinfo.cfg:define hostextinfo{host_name   flashicon_image  logo.gificon_image_alt  
logo.gifstatusmap_image logo.gif}I made little 40x40 gif in the gimp, uploaded to the server and put itinto /usr/share/nagios/htdocs/images/logos, and restarted nagios. Thegif doesn't appear in the status map like i expected it too; instead
all I get is the question mark gifs that I saw even before i made anychages. What should I do?---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 makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___Nagios-users mailing listNagios-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] Critical state for several hosts after a server restart

2006-02-02 Thread Toto Capuccino
Hi,I just restarted a server that i monitor and a lot of other services went red CRITICAL on all the other hosts i monitor. There is no dependency relationship between the servers and the one i restarted that would cause such behaviour so i wonder why all went wrong this way.
Cheers.


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

2006-02-02 Thread Stanley.Hopcroft
Dear Folks,

I am writing with mainly a rant about Graphing and Reporting.



1 About graphing with Nagios

Why would one bother when 

  1.1 Cacti does such a good job

  1.2 Nagios could check the Cacti RRDs with either check_rrd, or by an 
  outboard (Cron scheduled) RRD poller that submits passive service
check results

  1.3 the graphs can be associated with Nag service checks by either

   - explict URL of the Cacti graph in the service check output

   - for the adventurous, a Wiki front end that displays some of the 
 Nag CGI service status and a link to the Cacti graph. 

  As a footnote, since Cacti supports RRD 1.2 with built-in supported
  Holt Winters forecasting RRAs, the poller could be smart and simply
  check the exception Data store to see if the current rate is in fact
  outside the normal seasonal variation (computed by the Holt Winters
  algorithm inside the RRD).

  Of course this would require the modification of the RRDs that Cacti
produces
  to add the HW RRAs (this doesn't require that the RRD content be
unloaded and
  reloaded IIRC).

2 About reporting

After writing a lot of code in Nagios::Report to extract and report on
Nagios availability data it occurs to me that a better way of doing
Reporting
is to

  2.1 put the availability data in a DB table (prob with an
auto-incremented index)

  2.2 use either

2.2.1 ad-hoc SQL queries, or

2.2.2 the reporting package of your choice (eg iReport)

I hope that Nagios::Report will be enhance to take advantage of
DBD::Ram, a Perl
module that very easily gets a CSV file with LWP and sticks it in an in
core
DB that can almost as easily be used as a Data source to insert rows
into the
DB of your choice (MySQL, or whatever).



and now back to our normal program.

Yours sincerely.


---
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-02 Thread Tedman Eng
> From: [EMAIL PROTECTED] 
> 
> 1 About graphing with Nagios
> 
> Why would one bother when 
> 
>   1.1 Cacti does such a good job
> 
>   1.2 Nagios could check the Cacti RRDs with either 
> check_rrd, or by an 
>   outboard (Cron scheduled) RRD poller that submits passive service
> check results
> 
>   1.3 the graphs can be associated with Nag service checks by either
> 
>- explict URL of the Cacti graph in the service check output
> 
>- for the adventurous, a Wiki front end that displays some of the 
>  Nag CGI service status and a link to the Cacti graph. 


Main problem: Both systems have their own host/service configuration
systems, so you'll end up duplicating all the data entry.  One is PHP/MySQL,
the other is binary/text cfg files, which doesn't lend itself to a simple
templated configurator for both systems.  If run on different servers,
you'll also have to contend with check_rrd via NFS, NRPE, etc.

I think what people want (and I see lots of such questions) is a "Graph This
Service" checkbox plus a fruity-like web config interface.  Given those two,
cacti would  be out on the curb.



---
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] RE: Reporting and misc rave.

2006-02-02 Thread Steve Shipway
> I am writing with mainly a rant about Graphing and Reporting.

Oh yes, I have problems with these, also.  Please feel free to rant away at
length.

> 1 About graphing with Nagios
> Why would one bother when 
>   1.1 Cacti does such a good job
>   1.2 Nagios could check the Cacti RRDs with either 

We use MRTG/routers2 (on a different server) to do the graphing for a
similar reason.  MRTG can query the Nagios agents and extract the numbers
for graphing, and routers2 has a Nagios plugin to link back to Nagios.  The
only minor drawback is that you end up with two queries going to the host
(one from Nagios, one from MRTG) rather than just the one you'd get if using
the Nagios graphing extensions.  This also doesnt work for passive services.

> 2 About reporting
>   2.1 put the availability data in a DB table (prob with an 
> auto-incremented index)
>   2.2 use either
> 2.2.1 ad-hoc SQL queries, or
> 2.2.2 the reporting package of your choice (eg iReport)

Definitely.  Querying the Nagios .log files is a deadend that I've finally
given up on.  It is a simple matter to install mysql on the same server, set
up a log table, and nightly process your text logs into the database.  Note
that you need a unique index for many applications, and time/host/service is
not unique.  I found we can use time/host/service/state as a unique index
for alerts, and discard any duplicates - but this would not be appropriate
for people who (eg) send multiple syslog critical entries, for example.  We
only load the alerts, not notification and other log entries.

I can let people have a copy of my perl nagioslog->mysql alert data loader
if they want.

Once you've got it into mysql, then there is an ODBC driver for mysql you
can use under windows.  Reporting is massively faster this way!  Not only
that, but you can do much post-processing so that you add an 'in scheduled
downtime' flag to the alert records which is very useful (why doesn't Nagios
log the downtime state?)

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.
1) Add downtime (and parent-in-downtime) flags to the log entries, also
alert-disabled flags and all the other status flags.
2) Add optional database plugins for mysql, mssql, oracle instead of the
.log files
3) More features in the map functions
4) Something so you can see who will be alerted by a particular service at
any given time
5) A reporting tool for SLA reporting to give % time in unscheduled downtime
over a whole hostgroup.
6) cmd.cgi should have dropdown lists where possible, and make checks for
hostname/servicename validity.  I've already coded this in on our (1.2)
version.
7) Downtime schedules should have an optional flag for 'repeat' that will
re-scedule themselves for next day/week etc.

Thankyou for your time!  Maybe I should be posting to the nagios-devel list,
or finding some time to help code these myself...

Steve




---
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] RE: Reporting and misc rave.

2006-02-02 Thread Steve Shipway
> Main problem: Both systems have their own host/service 
> configuration systems, so you'll end up duplicating all the 
> data entry.

We get around this with a home-grown configuration system, which outputs not
just the Nagios configuration files, but also files for MRTG, updates a
mysql database, creates LDAP users for access, and so on.  The configuration
tool also probes hosts for agents, hooks in templates, and probes switches
and routers for port information and determines parent relationships for
Nagios and connection info for crosslinking in MRTG.

Sadly this tool is too customised for our environment for me to make it
available for general release.

Steve




---
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] RE: Reporting and misc rave.

2006-02-02 Thread John P. Rouillard

In message <[EMAIL PROTECTED]>,
Stanley.Hopcroft writes:
>I am writing with mainly a rant about Graphing and Reporting.
>
>

OT -> on topic in this case IMHO 8-).

>1 About graphing with Nagios
>Why would one bother when 
>  1.1 Cacti does such a good job

Well cacti does a good job but I hate the thought of having to poll
using both cacti and nagios:

  it doubles the load on the network and the target system
  requires twice the setup and maintenance

I agree for snmp polling especially cacti is much better.
Autodiscovery of disks, network interfaces etc and all of that is very
nice.

I assume your solution for graphing is to use cacti to poll all the
devices for which you want to keep performance data (which in my case
would be everything 8-) so I can use holt-winters analysis).

>  1.2 Nagios could check the Cacti RRDs with either check_rrd, or by an 
>  outboard (Cron scheduled) RRD poller that submits passive service
>  check results

I had problems trying to get check_rrd to work. I was having problems
finding the perl modules it needed IIRC.

>  1.3 the graphs can be associated with Nag service checks by either
>
>   - explict URL of the Cacti graph in the service check output
>
>   - for the adventurous, a Wiki front end that displays some of the 
> Nag CGI service status and a link to the Cacti graph. 

You forgot a couple: use the "Extra Service Actions" link on the
Service Information page to link to cacti for the host using a link
like:

  
http://cacti.my.server/cacti/graph_view.php?action=preview&filter=monitored_host

A second way is available due to a patch I got added to nagios.  If the
page footer and header are executable, they are executed (as a cgi)
when the page loads and can be used to load graphs/menus
etc. automatically based on service, host, user or other CGI
variable.

As a demo I used drraw to create nice dashboard and plot different data
items from separate rrd's (e.g. a graph of all ping times to all hosts
at a single site and a second network throughput graph displayed nice
and large together on a single page) for easy analysis. It was displayed
anytime I went to the PingCheck page for a couple of hosts.

>  As a footnote, since Cacti supports RRD 1.2 with built-in supported

Hmm, must have missed that last I knew it only supported the 1.1
series.  Cool thanks for the update.

>  Holt Winters forecasting RRAs, the poller could be smart and simply
>  check the exception Data store to see if the current rate is in fact
>  outside the normal seasonal variation (computed by the Holt Winters
>  algorithm inside the RRD).

Yup my idea exactly. Use nagios to monitor for worst case (e.g. ping
time > 1 second) and put the nagios data into rrd's to use the
Holt-Winters forecasting to look for early signs of a problem before
they trigger the nagios thresholds.

>2 About reporting
>
>After writing a lot of code in Nagios::Report to extract and report on
>Nagios availability data it occurs to me that a better way of doing
>Reporting is to
>
>  2.1 put the availability data in a DB table (prob with an
>auto-incremented index)

What would be nice is a sqlite  datastore and
event broker. Low maintenance requirements, no server to configure, has
most of SQL 92 implemented.

>  2.2 use either
>2.2.1 ad-hoc SQL queries, or
>2.2.2 the reporting package of your choice (eg iReport)
>
>I hope that Nagios::Report will be enhance to take advantage of
>DBD::Ram, a Perl module that very easily gets a CSV file with LWP and
>sticks it in an in core DB that can almost as easily be used as a
>Data source to insert rows into the DB of your choice (MySQL, or
>whatever).

Neat idea. Could use: DBD-SQLite-1.11 as the back end too. Sadly I
don't see much for reporting tools for SQLite. However it does have
ODBC and JDBC connectors and a bunch of bindings for tcl/tk, perl,
python, ruby etc. SQLite is a nice "throw away" database easy to set
up, load, query and destroy.

>

Not off topic as far as I am concerned. It all deals with effective use
of nagios to monitor the network.

-- rouilj
John Rouillard
===
My employers don't acknowledge my existence much less my opinions.


---
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] 2.0rc2 avail.cgi - possible bug in reporting of HOST DOWNTIME START/END EVENTS.

2006-02-02 Thread Stanley.Hopcroft
Dear Folks,

I am writing to report a possible anomaly/bug in avail.cgi for Nag 2.0
rc2

(RPM based on Dag Wieers for RHEL3).

The problem is that when a host has exited a period of scheduled
downtime, the 'Host log
entries' shown by avail.cgi look like

Event Start Time Event End TimeEvent Duration   Event/State Type
Event/State Information
01-02-2006 00:00:00 01-02-2006 14:27:54 0d 14h 27m 54s  HOST UP (HARD)
PING OK - Packet loss = 0%, RTA = 0.82 ms
02-02-2006 20:59:44 02-02-2006 20:59:44 0d 0h 0m 0s HOST DOWN (HARD)
CRITICAL - Plugin timed out after 10 seconds
02-02-2006 20:59:44 02-02-2006 21:06:53 0d 0h 7m 9s HOST DOWNTIME
START Start of scheduled downtime
02-02-2006 21:06:53 02-02-2006 22:59:44 0d 1h 52m 51s   HOST UP (HARD)
PING OK - Packet loss = 0%, RTA = 0.71 ms
02-02-2006 22:59:44 03-02-2006 11:35:39 0d 12h 35m 55s+ HOST DOWNTIME
END   End of scheduled downtime

and then the next time the Report is run the last line shows again how
long it was since the host
exited downtime (ie now minus the downtime end).

eg

Event Start Time Event End TimeEvent Duration  Event/State Type
Event/State Information
01-02-2006 00:00:00 01-02-2006 14:27:54 0d 14h 27m 54s HOST UP (HARD)
PING OK - Packet loss = 0%, RTA = 0.82 ms
02-02-2006 20:59:44 02-02-2006 20:59:44 0d 0h 0m 0sHOST DOWN (HARD)
CRITICAL - Plugin timed out after 10 seconds
02-02-2006 20:59:44 02-02-2006 21:06:53 0d 0h 7m 9sHOST DOWNTIME
START Start of scheduled downtime
02-02-2006 21:06:53 02-02-2006 22:59:44 0d 1h 52m 51s  HOST UP (HARD)
PING OK - Packet loss = 0%, RTA = 0.71 ms
02-02-2006 22:59:44 03-02-2006 11:41:51 0d 12h 42m 7s+ HOST DOWNTIME END
End of scheduled downtime

This looks a little peculiar to me. It's not a bug but unfortunately
violates the principle of least
surprise (don't know what I was expecting but ..) and for those of us
who mine the host log entries
it means some code modification.

The behaviour of the CGI seems Ok - the event duration is simply the
time to the last event - and seems reasonable.

Thanks for your time.

Yours sincerely.




---
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-02 Thread Jim Pye
All,

I have only been using Nagios for a week or two. Have a system
configured to monitor a five server network. I therefore have not used
all the features comprehensively but I do see some of the points Steve
mentions below as things I see missing - see my notes.

Note I am using v2.0rc2.

On Fri, 2006-02-03 at 12:39 +1300, Steve Shipway 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.

> 1) Add downtime (and parent-in-downtime) flags to the log entries, also
> alert-disabled flags and all the other status flags.
I have not got into the logging and the history part yet so not sure
what is missing but it would seem that all parts and flags should be
logged if any of them are.

> 2) Add optional database plugins for mysql, mssql, oracle instead of the
> log files
Maybe this could be a plugin type technology that could be developed
separately from the nagios core.

> 3) More features in the map functions
The maps I have started to play with, but one area I see that could be
made configurable is the Tactical Overview. To me the layout of this
screen is a bit upside down, I see that the important data - the status
of hosts and services should be front and centre. The performance
information is secondary and should be below. I have had a look at the
tac.c source and see that it would not be too differcult to rearrange.
Might set this as a project for myself...

> 4) Something so you can see who will be alerted by a particular service at
> any given time
Maybe with your PERL skills Steve this could be pieced together via a
script that parses the config files.

> 5) A reporting tool for SLA reporting to give % time in unscheduled downtime
> over a whole hostgroup.
Working on larger sites I know that this sort of thing can be very
important. However have to watchout that, like the thread on reporting
graphs etc., is this really a function of Nagios or a more full on
HelpDesk system? Maybe for both Graphing and SLA type stuff an interface
be built to allow alternates to be used.

> 6) cmd.cgi should have dropdown lists where possible, and make checks for
> hostname/servicename validity.  I've already coded this in on our (1.2)
> version.
> 7) Downtime schedules should have an optional flag for 'repeat' that will
> re-scedule themselves for next day/week etc.
This problem I struck last night and yes it would be great to have a
repeating scheduled downtime on a host/service. This might be for
regular full offline backups etc that would happen regularly and the
service is going to be "off the air" and not reporting.

> 
> Thankyou for your time!  Maybe I should be posting to the nagios-devel list,
> or finding some time to help code these myself...
> 
> Steve
> 

My $0.02 (which isn't legal currency here in NZ anymore :-) 

Jim

-- 
Jim Pye
PyeNet Universal

email: [EMAIL PROTECTED] | Phone: +64 4 527 8284 | Fax: +64 4 528 9693
 web site: http://www.pyenet.co.nz



---
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] Hosts PENDING

2006-02-02 Thread Patrick M. Rutkowski
I have several hosts with no associated services, and their status
bars are stuck on "PENDING" in the Host Detail cgi. check_command on
them is set to check-host-alive, and checks_enabled is set to 1. What
am I doing wrong, why aren't the hosts being checked?


---
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] Hosts PENDING

2006-02-02 Thread frank
I can't find the specific doc/FAQ that says so, but I know its been 
discussed here before:


Every host needs a service. A host will not be checked if it doesn't have 
one. Even tho your host-check is probably a check_ping or check_icmp, add 
a _service_ to that host that does yet another check_ping or check_icmp. I 
doubt the extra bandwidth usage will kill your network. ;)



I was bitten by this in my first installation too.

-f

On Thu, 2 Feb 2006, Patrick M. Rutkowski wrote:


Date: Thu, 2 Feb 2006 20:12:52 -0500
From: Patrick M. Rutkowski <[EMAIL PROTECTED]>
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Hosts PENDING

I have several hosts with no associated services, and their status
bars are stuck on "PENDING" in the Host Detail cgi. check_command on
them is set to check-host-alive, and checks_enabled is set to 1. What
am I doing wrong, why aren't the hosts being checked?




---
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] Hosts PENDING

2006-02-02 Thread Diego Gonzalez Briones




Hi,
Actually you have to add the equipment to the service.cfg file. In fact you have to add a service for your equipment, if not, nagios will mark the host with pending status because is waiting for some service to monitor.
For example you have a router defined in hosts.cfg:
# 'router1' host definition
define host{
   use generic-host    ; Name of host template to use

   host_name   router1
   alias   Router #1
   address 192.168.1.254
   check_command   check-host-alive
   max_check_attempts  20
   notification_interval   60
   notification_period 24x7
   notification_options    d,u,r
   }
Then you have to add the following into services.cfg to monitor the host:
# Service definition
define service{
   use generic-service ; Name of service template to use

   host_name   router1
   service_description PING
   is_volatile 0
   check_period    24x7
   max_check_attempts  3
   normal_check_interval   5
   retry_check_interval    1
   contact_groups  router-admins
   notification_interval   240
   notification_period 24x7
   notification_options    c,r
   check_command   check_ping!100.0,20%!500.0,60%
   }

The last configuration is the most simple monitor.
Hope it help.

Best Regards.

On Thu, 2006-02-02 at 20:12 -0500, Patrick M. Rutkowski wrote:


I have several hosts with no associated services, and their status
bars are stuck on "PENDING" in the Host Detail cgi. check_command on
them is set to check-host-alive, and checks_enabled is set to 1. What
am I doing wrong, why aren't the hosts being checked?


---
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






Diego.







signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Critical state for several hosts after a server restart

2006-02-02 Thread Hugo van der Kooij
On Thu, 2 Feb 2006, Toto Capuccino wrote:

> I just restarted a server that i monitor and a lot of other services went
> red CRITICAL on all the other hosts i monitor. There is no dependency
> relationship between the servers and the one i restarted that would cause
> such behaviour so i wonder why all went wrong this way.

This is a question that is impossible to answer. You give us no clues what
your setup looks like. (config files) You give us no clueas what sort of
service went critical and what they did report.

We know nothing apart from what you tell us on this mailinglist so if you
expect any help you need to provide enough details to fully understand the
issue. I suggest you pay attention to the remark added to each message on
the mailinglist as well.

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] Hosts PENDING

2006-02-02 Thread Hugo van der Kooij
On Thu, 2 Feb 2006, frank wrote:

> I can't find the specific doc/FAQ that says so, but I know its been
> discussed here before:
>
> Every host needs a service. A host will not be checked if it doesn't have
> one. Even tho your host-check is probably a check_ping or check_icmp, add
> a _service_ to that host that does yet another check_ping or check_icmp. I
> doubt the extra bandwidth usage will kill your network. ;)

With Nagios v2 this does not seems to be true. Or I must be fortunate to
have multiple hosts with only a host check that have an accurate state
indicator. And some of the use other checks like check_http or check_smtp

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


[Nagios-users] performance data - RRDTool

2006-02-02 Thread Richard Gliebe
Hi all,

I want to store the service_perfdata into RRD-tool to read it with MRTG.

Is there a RTFM available ?

We are using
_nagios-2.0.r1
_nagios-plugins-1.4.2_2,1
_rrdtool-1.2.12
_mrtg-2.12.2,1

on FreeBSD 5.4-STABLE

thanks in advance
Richard

-- 
Richard Gliebe
Fachhochschule Vorarlberg GmbH / University for Applied Science
Information Services



---
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] Critical state for several hosts after a server restart

2006-02-02 Thread Toto Capuccino
I am running nagios version 1.3 with plugins 1.4.2My setup is quiet basic i monitor windows servers on which i installed pNSClient. I am monitoring about a hundred servers. The one that i restarted yedterday was inside a LAN (where Nagios is running) where 30 hosts are too. The other servers are located in distant sites with MPLS connection. I also monitor the routers used for those connections.
After restarting the servers about 65 services went 
CRITICAL - Socket timeout after 10 seconds> The services in Critical state seems to be the same type all checks that use Nsclient for disk space (on all sites on every single server) strange...
2006/2/3, Hugo van der Kooij <[EMAIL PROTECTED]>:
On Thu, 2 Feb 2006, Toto Capuccino wrote:> I just restarted a server that i monitor and a lot of other services went> red CRITICAL on all the other hosts i monitor. There is no dependency> relationship between the servers and the one i restarted that would cause
> such behaviour so i wonder why all went wrong this way.This is a question that is impossible to answer. You give us no clues whatyour setup looks like. (config files) You give us no clueas what sort of
service went critical and what they did report.We know nothing apart from what you tell us on this mailinglist so if youexpect any help you need to provide enough details to fully understand theissue. I suggest you pay attention to the remark added to each message on
the mailinglist as well.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 filesfor problems?  Stop!  Download the new AJAX search engine that makessearching 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 listNagios-users@lists.sourceforge.nethttps://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