Re: [Nagios-users] No display on web interface

2007-06-12 Thread Wil Schultz
Sounds line the Nagios process isn't running.

-wil

On Jun 12, 2007, at 3:09 AM, Lalita Drolia wrote:

 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Cancel Downtime?

2007-06-08 Thread Wil Schultz
IIRC, there used to be a Cancel Downtime link, am I blind or did  
this go away?

How do you cancel scheduled downtime?



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Cancel Downtime?

2007-06-08 Thread Wil Schultz
Blind I am  :-)

Thank you!

On Jun 7, 2007, at 11:18 PM, Anthony Mendoza wrote:

 Click Downtime and then the Trash can icon to the right of the
 service/host you want to cancel.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Wil Schultz
 Sent: Thursday, June 07, 2007 11:11 PM
 To: nagios-users
 Subject: [Nagios-users] Cancel Downtime?

 IIRC, there used to be a Cancel Downtime link, am I blind or did
 this go away?

 How do you cancel scheduled downtime?




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] An odd question

2007-06-08 Thread Wil Schultz
There is the negate plugin.


bash-3.1# ./negate --help
negate (nagios-plugins 1.4.3) 1.24
Copyright (c) 2002-2004 Nagios Plugin Development Team
 [EMAIL PROTECTED]

Negates the status of a plugin (returns OK for CRITICAL, and vice- 
versa).

Usage: negate [-t timeout] definition of wrapped plugin

Options:
-h, --help
 Print detailed help screen
-V, --version
 Print version information
-t, --timeout=INTEGER
 Seconds before connection times out (default: 9)
  [keep timeout than the plugin timeout to retain CRITICAL status]
   negate /usr/local/nagios/libexec/check_ping -H host
 Run check_ping and invert result. Must use full path to plugin
   negate /usr/local/nagios/libexec/check_procs -a 'vi negate.c'
 Use single quotes if you need to retain spaces
This plugin is a wrapper to take the output of another plugin and  
invert it.
If the wrapped plugin returns STATE_OK, the wrapper will return  
STATE_CRITICAL.
If the wrapped plugin returns STATE_CRITICAL, the wrapper will return  
STATE_OK.
Otherwise, the output state of the wrapped plugin is unchanged.

Send email to nagios-users@lists.sourceforge.net if you have questions
regarding use of this software. To submit patches or suggest  
improvements,
send email to [EMAIL PROTECTED]



On Jun 8, 2007, at 10:14 AM, Steven Schwartz wrote:

 I’m working in Nagios 2.x, so this may be possible in 3, and I just  
 can’t find it in 2.



 Is there a way to specify more frequent checks on a service in a  
 non-OK state? Essentially, we have a service where catching the  
 moment it goes down is not critical, but once it *does*, we’d like  
 to know as closely as possible when it comes back up. (It’s a long  
 story)



 (i.e. have a different check interval for Hard OK and Hard Critical  
 states.)



 S.





 CONFIDENTIALITY NOTICE: Proprietary/Confidential Information  
 belonging to Gracenote, Inc. may be contained in this message. If  
 you are not a recipient indicated or intended in this message (or  
 responsible for delivery of this message to such person), or you  
 think for any reason that this message may have been addressed to  
 you in error, you may not use or copy or deliver this message (and  
 all attachments) to anyone else. In such case, you should destroy  
 this message (and all attached documents) and are asked to notify  
 the sender by reply email.



 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Host/Ping check and Nagios performance.

2007-06-07 Thread Wil Schultz
check_ping is a pig :)

It's okay for services since they can run in parallel but host checks  
are serialized which can b0rk your whole system if many hosts go down  
at the same time.

A faster way to do this is to use check_icmp, which does 5 pings at  
the same time (concurrently) as opposed to 5 in a row (consecutive)  
like check_ping does.
An even faster check is using check_host as a symlink to check_icmp,  
which still sends the 5 concurrent pings but only requires one to be  
okay, which is great for hostchecks IMHO.

There is a slight security hit using check_icmp or check_host as you  
must SetUID it.

Read the docs, this is all from memory but should be correct, hope  
this helps!

Here is an example:
 
###
bash-3.1# time ./check_ping -H 192.168.22.1 -w 100.0,20% -c 500.0,60%, 
100
PING OK - Packet loss = 0%, RTA = 0.31 ms

real0m4.009s
user0m0.000s
sys 0m0.000s
 
###
bash-3.1# time ./check_icmp -H 192.168.22.1 -w 100.0,20% -c 500.0,60%, 
100
OK - 192.168.22.1: rta 0.225ms, lost 0%|rta=0.225ms; 
100.000;500.000;0; pl=0%;20;100;;

real0m0.004s
user0m0.000s
sys 0m0.004s
 
###
bash-3.1# time ./check_host -H 192.168.22.1 -w 100.0,20% -c 500.0,60%, 
100
OK - 192.168.22.1 responds to ICMP. Packet 1, rta 0.666ms|pkt=1;;0;5  
rta=0.666;100.000;500.000;;

real0m0.003s
user0m0.000s
sys 0m0.004s
 
###


On Jun 7, 2007, at 8:07 AM, Jonathan Call wrote:

 Is there any reason why Nagios stops running all service checks  
 while it
 executes check-host-alive/ping on hosts? Can I change that? I cannot
 find a setting to do it.

 With the large number of service checks I'm running (1300+) whenever a
 host goes down (or in some cases just stops answering ICMP) it kills
 performance on the Nagios server.


 Jonathan Call


 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Restart nagios process in openbsd

2007-06-02 Thread Wil Schultz
The command /usr/local/bin/nagios -v /usr/local/etc/nagios/ 
nagios.cfg will not start another nagios process, it will however  
check your configuration and either tell you that your configuration  
is okay, or it will try to tell you what is wrong. What is the out  
put of this command? Also a snippet from the nagios.log might be  
helpful.

What your best bet may be is to talk to whomever it was that set this  
up this box in the first place.

-wil

On Jun 2, 2007, at 3:18 AM, Sekhar wrote:

 i am trying to use -d option from command line nagios check  
 configuration it was screwd something now my all services and hosts  
 are showing wrong alerts so i really don't know how to start and  
 when i try to restart from web interface i am getting cgi  
 permissions not allowed error .Finally i rebbot my openbsd server  
 but still my services are showing wrong notifications how to fix  
 this i really need openbsd and nagios expert help

 this was the command i used

  /usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg

 this is wrong i know it started another process with existing one  
 here where everthing went wrong and all services notifications  
 showing wrong how to fix this problem.

 thanks for your time to help me on this

 Wil Schultz [EMAIL PROTECTED] wrote:
 Some people use an init script, any idea where yours is? How are you
 starting nagios?

 Command would be:
 /path/to/nagios.init restart

 Also there is an option via the web, under process info, to restart
 the nagios process.

 -wil

 On Jun 1, 2007, at 6:07 PM, Sekhar wrote:

  Hi,
 
  I want to restart nagios process in openbsd
 
  thanks for your help
 
  Pinpoint customers who are looking for what you sell.
   
 --
  ---
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  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 DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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


 Need Mail bonding?
 Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Restart nagios process in openbsd

2007-06-01 Thread Wil Schultz
Some people use an init script, any idea where yours is? How are you  
starting nagios?

Command would be:
/path/to/nagios.init restart

Also there is an option via the web, under process info, to restart  
the nagios process.

-wil

On Jun 1, 2007, at 6:07 PM, Sekhar wrote:

 Hi,

 I want to restart nagios process in openbsd

 thanks for your help

 Pinpoint customers who are looking for what you sell.
 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 2.4 has run out of space ??

2007-05-30 Thread Wil Schultz
I would suspect that mysql has binary logging turned on, this can  
create many files that are around 1G.

Use: du -sh * starting at / (root) to find where your problem lies,  
if it's mysql they will be in the form of mysql-bin.XXX (or something  
similar)

You obviously will want to backup this data, especially with the  
binary logging turned off, I use the following for cacti alone...  
Adding the nagios directory to this would be easy enough :-)

Happy hunting!

 
##
  #!/bin/bash
  #
  ### Created by WilS to back up Cacti data
  #
  #
  # Define some nice variables
  BACKUPDIR=/export/backup/cacti
  BASE=/data/www
  MYSQLDUMP=/usr/local/mysql/bin/mysqldump
  DATABASE=cacti_database
  DBUSER=cacti_username
  DBPASS=cacti_password

  ### Blank the log file first:
  cat /dev/null  $BASE/cacti/log/cacti.log

  ### Backup the cacti directory
  cd $BASE
  tar zcvf $BACKUPDIR/cacti.`date +%m%d%y`.tgz cacti/

  ### Clean up data over a month old
  find $BACKUPDIR/ -name '*.tgz' -mtime +31 |xargs rm

  ### Dump the database
  $MYSQLDUMP --add-drop-table  $DATABASE -u$DBUSER -p$DBPASS | gzip - 
c  $BACKUPDIR/cacti.`date +%m%d%y`.sql.gz
 
##

-wil

On May 30, 2007, at 8:17 AM, Nedim Bicic wrote:

 How do i delete some of the files i dont wont to delete sensitive  
 informations its using linux

 wat can i delete i tryed deleting log files to free some space in  
 cacti where do i find nagios log file i think that has been  
 flodding it

 thanks

 On 5/30/07, David Gerbec [EMAIL PROTECTED] wrote:
 Nedim Bicic pravi:
  Error
 
  You have created a new database, but have not yet imported the
  'cacti.sql' file. At the command line, execute the following to  
 continue:
 
  mysql -u cactiuser -p cacti  cacti.sql
 
  This error may also be generated if the cacti database user does not
  have correct permissions on the cacti database. Please ensure  
 that the
  cacti database user has the ability to SELECT, INSERT, DELETE,  
 UPDATE,
  CREATE, ALTER, DROP, INDEX on the cacti database.
 
 
  *Warning*: Unknown(): write failed: No space left on device (28) in
  *Unknown* on line *0*

 By the looks of things, your disk space on the server is full.


 
  *Warning*: Unknown(): Failed to write session data (files). Please
  verify that the current setting of session.save_path is correct
  (/var/lib/php/session) in *Unknown* on line *0*
 
 


 Regards,
 David Gerbec
 Agenda Open Systems
 [ www.agenda.si]

 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Status log is empty but is not Host are not dispalyed anymore ??

2007-05-30 Thread Wil Schultz
Considering your previous post clearly shows that you are out of  
diskspace it would be safe to assume that you would have other  
problems, like empty logfiles since there is no room on the disk to  
write the logfile.

Fix the disk issue and other problems will magically start to  
disappear...

Possibly you could set up a second nagios box to monitor the disk  
space on your primary nagios box... :-)

-wil

On May 30, 2007, at 9:58 AM, Nedim Bicic wrote:

 Hey i am running nagios 2.4 when i go into host problems on the web  
 interface it keeps telling me

 
 There doesn't appear to be any service status information in the  
 status log...

 Make sure that Nagios is running and that you have specified the  
 location of you status log correctly in the configuration files.

 

 But i cheked the status.log its not empty i also have checked the  
 nagios.cfg it is pointing to status.log file in the right directory
 as soon as i restarted the server i see 500 host pending and then  
 they all disapear with the above message

 i run the debug command as well but nothing still

 Any help


 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Status log is empty but is not Host are not dispalyed anymore ??

2007-05-30 Thread Wil Schultz
Nagios is not known to be a disk hog, however cacti does have these  
problems from time to time. You should consider asking the nice cacti  
folks over at: http://forums.cacti.net/

There is a lot of useful information out there if you know what to  
look for, for example:
http://www.google.com/search?q=mysql+binary+logging+site% 
3Aforums.cacti.net

This doesn't appear to be a Nagios related problem... If you have  
problems finding your way to might consider Hugos advise and hire  
someone to show you around a bit.

-wil

On May 30, 2007, at 10:32 AM, Nedim Bicic wrote:

 How can i free up more space can i delete the log file so it can  
 start from scratch again not to be confused with deleting the host  
 file and ifo so where can i find this log file to delete i mean  
 there must be a way i can delete information i dont need.

 It would be very helpful if i can delete or dump a file that is  
 huge that i can safely delete i dont want to create another nagios  
 sever i dont have the time maybe in a long run i can but now i need  
 something fast.

 i dont want to crewate another database either i am not an expert  
 in that also

 Do you think if i can empty the nagios log file where nagios is  
 writiting the issue will disapear??






 On 5/30/07, Wil Schultz [EMAIL PROTECTED] wrote: Considering  
 your previous post clearly shows that you are out of
 diskspace it would be safe to assume that you would have other
 problems, like empty logfiles since there is no room on the disk to
 write the logfile.

 Fix the disk issue and other problems will magically start to
 disappear...

 Possibly you could set up a second nagios box to monitor the disk
 space on your primary nagios box... :-)

 -wil

 On May 30, 2007, at 9:58 AM, Nedim Bicic wrote:

  Hey i am running nagios 2.4 when i go into host problems on the web
  interface it keeps telling me
 
  
  There doesn't appear to be any service status information in the
  status log...
 
  Make sure that Nagios is running and that you have specified the
  location of you status log correctly in the configuration files.
 
  
 
  But i cheked the status.log its not empty i also have checked the
  nagios.cfg it is pointing to status.log file in the right directory
  as soon as i restarted the server i see 500 host pending and then
  they all disapear with the above message
 
  i run the debug command as well but nothing still
 
  Any help
 
 
   
 --
  ---
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] $HOSTSTATE$ remains as Down?

2007-05-23 Thread Wil Schultz
Meh, call me a quitter... Brought it to 2.9 and it's working like I'm  
used to :-)

Thanks for the time, but apparently 3.x is going to take some reading...

-wil

On May 22, 2007, at 9:45 PM, Thomas Guyot-Sionnest wrote:

 On 23/05/07 12:11 AM, Wil Schultz wrote:
 On May 22, 2007, at 9:08 PM, Wil Schultz wrote:

 Here is 3 minutes of the log, after i plonked a host:

 [...]


 According to that log your host went down once and was just  
 notifying at
 the interval you mentioned in the config you posted earlier.

 You can either increase the notification_interval (i.e. 10 minutes if
 you want to ceceive notifications every ten minutes) or use  
 escalations
 to get only the first or a certain number of notifications.

 So host caching and parallelization(is this a word?), I'm assuming
 this is in the main config file. What directives should I be
 looking at?

 This is in Nagios 3, which is still alpha.

 To disable regularly scheduled checks just omit the check_interval
 option in your host definitions. See the Nagios documentation for more
 details...

 Host definitions:
 http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host

 Host checks logic:
 http://nagios.sourceforge.net/docs/2_0/ 
 checkscheduling.html#host_checks

 For what it's worth the service checks are working just fine...

 I guess I missed the part where you said you were punting the host ;)

 Thomas



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Notifications Not Going Out - How can I test?

2007-05-23 Thread Wil Schultz
Do the logs show the notification as being sent?

-wil

On May 23, 2007, at 3:53 PM, Richard Solid wrote:


 I have everything configured and working with nagios except the  
 notifications. How can I fully test this?

 Mail is found in the path and I can send emails manually from the  
 machine to the outside.

 [EMAIL PROTECTED] whereis mail
 mail: /bin/mail

 This is the contact.cfg

 define contact{
 contact_nameadmin
 alias  Nagios Admin
 service_notification_period 24x7
 host_notification_period24x7
 service_notification_optionsw,u,c,r,f,n
 host_notification_options   d,r
 service_notification_commands   notify-by-email
 host_notification_commands  host-notify-by-email
 email   [EMAIL PROTECTED]
 }


 This is the definition for emails:

 define command{
 command_namenotify-by-email
 command_line/usr/bin/printf %b * Nagios 2.9 * 
 \n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$ 
 \nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n 
 \nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$  
 | /bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/ 
 $SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$



 define service{
 namegeneric-service ; Generic  
 service name
 active_checks_enabled   1   ; Active  
 service checks are enabled
 passive_checks_enabled  1   ; Passive  
 service checks are enabled/accepted
 parallelize_check   1   ; Active  
 service checks should be parallelized (disabling this can lead to  
 major performance problems)
 obsess_over_service 1   ; We should  
 obsess over this service (if necessary)
 check_freshness 0   ; Default  
 is to NOT check service 'freshness'
 notifications_enabled   1   ; Service  
 notifications are enabled
 event_handler_enabled   1   ; Service  
 event handler is enabled
 flap_detection_enabled  1   ; Flap  
 detection is enabled
 process_perf_data   1   ; Process  
 performance data
 retain_status_information   1   ; Retain  
 status information across program restarts
 retain_nonstatus_information1   ; Retain  
 non-status information across program restarts
 register0   ; DONT  
 REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
 }


 This is the first part of my services.cfg:


 # Generic for all services
 define service{
 use generic-service
 namebasic-service
 is_volatile 0
 check_period24x7
 max_check_attempts  15
 normal_check_interval   10
 retry_check_interval2
 notification_interval   120
 notification_period 24x7
 register0
 }


 define service{
 use basic-service
 nameping-service
 notification_optionsn
 check_command   check_ping!1000.0,20%! 
 2000.0,60%
 register0
 }

 define service{
 use   ping-service
 service_description PING
 contact_groups  admins

 hostgroup_namemyservers
 }


 Any inputs?
 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net

Re: [Nagios-users] $HOSTSTATE$ remains as Down?

2007-05-22 Thread Wil Schultz
Looks like I may have misstated my problem, apparently I was simply  
not receiving the HOST UP email thanks to my fat fingers mucking up  
the hosts.cfg

What is happening is that I am seeing a DOWN notification every  
minute, this is why I thought I was getting the wrong alert. I've got  
a v2.7 box up and running quite nicely and I've compared the configs  
and do not see any differences. Obviously I am missing something  
here, any suggestions why DOWN notifications are being sent every  
minute?

Host config looks like:

define host{
 namehost
 check_period24x7
checks_enabled  1
 check_interval  3
 retry_interval  1
 max_check_attempts  3
 check_command   check-host-alive
 process_perf_data  0
retain_status_information   1
retain_nonstatus_information1
 flap_detection_enabled 1
 event_handler_enabled  1
 notifications_enabled  1
 notification_period 24x7
 notification_interval   120
 notification_optionsd,r
 contact_groups  email
 register0
 }



On May 20, 2007, at 5:45 PM, Wil Schultz wrote:

 I've just installed 3.0a4 and am testing the alerting.

 I plonk a host, and I get the HOST DOWN email correctly, but when I
 bring the host back up instead of getting the HOST UP email, I get
 another HOST DOWN email.

 Anyone else seeing this? Or have a suggestion?

 FreeBSD 6.2, Nagios 3.0a4

 email command looks like:

 ## 
 ##
 # 'notify-host-by-email' command definition
 define command{
  command_namenotify-host-by-email
  command_line/usr/bin/printf %b * Nagios *\n
 \nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
 $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
 $LONGDATETIME$\n | /usr/b
 in/mail -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE
 $ ** $CONTACTEMAIL$
  }
 ## 
 ##


 -- 
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] $HOSTSTATE$ remains as Down?

2007-05-22 Thread Wil Schultz

On May 22, 2007, at 9:08 PM, Wil Schultz wrote:

 Here is 3 minutes of the log, after i plonked a host:

 [1179892722] HOST ALERT: myhost;DOWN;SOFT;1;CRITICAL - 1.1.1.1: rta  
 nan, lost 100%
 [1179892722] SERVICE ALERT: myhost;ciscoMemory;UNKNOWN;SOFT; 
 1;ERROR: Description table : Send failure: Invalid argument.
 [1179892792] HOST NOTIFICATION: myemail;myhost;DOWN;notify-host-by- 
 email;CRITICAL - 1.1.1.1: rta nan, lost 100%
 [1179892792] SERVICE ALERT: myhost;ciscoEnvironment;UNKNOWN;HARD; 
 1;ERROR: Description table : Send failure: Invalid argument.
 [1179892832] SERVICE ALERT: myhost;ciscoInterfaces- 
 myhost;UNKNOWN;HARD;1;ERROR: Description table : Send failure:  
 Invalid argument.
 [1179892842] HOST ALERT: myhost;DOWN;SOFT;2;CRITICAL - 1.1.1.1: rta  
 nan, lost 100%
 [1179892842] HOST NOTIFICATION: myemail;myhost;DOWN;notify-host-by- 
 email;CRITICAL - 1.1.1.1: rta nan, lost 100%
 [1179892842] SERVICE ALERT: myhost;ciscoMemory;UNKNOWN;HARD; 
 1;ERROR: Description table : Send failure: Invalid argument.
 [1179892862] SERVICE ALERT: myhost;ciscoLoad;UNKNOWN;HARD;1;ERROR:  
 Description table : Send failure: Invalid argument.
 [1179892882] SERVICE ALERT: myhost;ping;CRITICAL;HARD;1;CRITICAL -  
 1.1.1.1: rta nan, lost 100%
 [1179892912] HOST ALERT: myhost;DOWN;HARD;3;CRITICAL - 1.1.1.1: rta  
 nan, lost 100%
 [1179892912] HOST NOTIFICATION: myemail;myhost;DOWN;notify-host-by- 
 email;CRITICAL - 1.1.1.1: rta nan, lost 100%

 So, hot checks every minute and promptly notifies...
 So host caching and parallelization(is this a word?), I'm assuming  
 this is in the main config file. What directives should I be  
 looking at?

 For what it's worth the service checks are working just fine...

 -wil


 On May 22, 2007, at 8:32 PM, Thomas Guyot-Sionnest wrote:

 On 22/05/07 01:02 PM, Wil Schultz wrote:
 Looks like I may have misstated my problem, apparently I was simply
 not receiving the HOST UP email thanks to my fat fingers mucking up
 the hosts.cfg

 What is happening is that I am seeing a DOWN notification every
 minute, this is why I thought I was getting the wrong alert. I've  
 got
 a v2.7 box up and running quite nicely and I've compared the configs
 and do not see any differences. Obviously I am missing something
 here, any suggestions why DOWN notifications are being sent every
 minute?

 Are you sure the host check is functioning properly? (try running the
 command defined in commands.cfg manually; you will have to manually
 expand the macros.)

 Could you send a relevant part of the history for that host?

 Also, looks like you're running regularly scheduled checks. Is  
 that what
 really you want? Nagios 3 support running host checks in parallel and
 host state caching, but in Nagios 2 you will likely not benefit from
 running regularly scheduled host check and their serialized nature  
 can
 easily cause service latency issues.

 Thomas




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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