Re: [Nagios-users] reload appears to cause force of DOWN; SOFT; x to DOWN; HARD; 1

2013-06-13 Thread Travis Runyard
Do you have this in nagios.cfg?
retain_state_information=1


On Thu, Jun 13, 2013 at 4:31 PM, Sean McKell mck...@us.ibm.com wrote:

 Running 3.4.1:
 I see this strange anomaly, where a host check is in the middle of doing
 retries before hitting max_attempts, but after a server reload occurs, the
 next check is automatically forced to DOWN;HARD;1, as seen here:

 [2013-06-04 08:40:21] HOST ALERT: 5gt4;DOWN;SOFT;1;CRITICAL: Connection
 timed out to '' after 160 seconds (user 'chk'). Expected prompt not found.
 Last output was ''.
 [2013-06-04 08:47:18] HOST ALERT: 5gt4;DOWN;SOFT;2;CRITICAL: Connection
 timed out to '' after 160 seconds (user 'chk'). Expected prompt not found.
 Last output was ''.
 [2013-06-04 08:54:03] HOST ALERT: 5gt4;DOWN;SOFT;3;CRITICAL: Connection
 timed out to '' after 160 seconds (user 'chk'). Expected prompt not found.
 Last output was ''.
 (reload happens here)
 [2013-06-04 09:00:52] HOST ALERT: 5gt4;DOWN;HARD;1;CRITICAL: Connection
 timed out to '' after 160 seconds (user 'chk'). Expected prompt not found.
 Last output was ''.

 Why is it skipping the rest of the attempts and going straight to
 DOWN;HARD after the reload ?
 Seems like a bug to me.


 --
 This SF.net email is sponsored by Windows:

 Build for Windows Store.

 http://p.sf.net/sfu/windows-dev2dev
 ___
 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 Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
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] Misplaced advice in the Nagios preflight check?

2013-06-10 Thread Travis Runyard
This is by design, and it is only a warning message. The config is valid
and should work as you intended. It doesn't make sense to get a recovery
notification for something you never knew was a problem. Unknowns are not
considered problems in Nagios logic.


On Mon, Jun 10, 2013 at 1:25 PM, Chris Beattie cbeat...@geninfo.com wrote:

 On 6/7/2013 9:28 AM, C. Bensend wrote:
  Not real sure why Nagios doesn't think that's a valid config - I
  want a contact that will receive only UNKNOWN alerts for services.

 Have you tried giving that contact the extra options Nagios wants, and
 then defining a service escalation for that contact with the
 escalation_options directive set to u?

 --
 -Chris


 --
 This SF.net email is sponsored by Windows:

 Build for Windows Store.

 http://p.sf.net/sfu/windows-dev2dev
 ___
 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 Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
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] Macros Variable Definitions

2013-04-05 Thread Travis Runyard
Can you provide us your command and contact definition? It should
be $SERVICEOUTPUT$ though.


On Fri, Apr 5, 2013 at 7:38 AM, Net Warrior netwarrior...@gmail.com wrote:

 Hi Guys.

 I have an script to send sms alert, and among other thing which I send,
 I'l like to include the available disk space i, available, used, whatever,
 I'm reading in here
 http://nagios.sourceforge.net/docs/3_0/macrolist.html but cannot find
 which variable contains the output of the command I read the
 notify-service-by-email, tried SERVICEOUTPUT but it seems it's not.

 Can you tell me which one is it?

 Thank you very much
 Regards


 --
 Minimize network downtime and maximize team effectiveness.
 Reduce network management and security costs.Learn how to hire
 the most talented Cisco Certified professionals. Visit the
 Employer Resources Portal
 http://www.cisco.com/web/learning/employer_resources/index.html
 ___
 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

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
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] Define Multiple Event Handlers

2013-02-21 Thread Travis Runyard
I'm trying to define multiple event handlers for a service but am getting
the error during preflight check:
Error: Event handler command 'update-nagex,reset-proc' specified in service

I've tried two different ways to define it in the service:

event_handler  update-nagex,reset-proc

and

event_handler update-nagex
event_handler reset-proc

When I define them on separate lines, Nagios seems to only pick up the last
event_handler defined which is reset-proc

Any ideas?
Thanks,
Travis
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
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] R: too much memory usage on Nagios server

2013-02-18 Thread Travis Runyard
Nagios.cfg and default is enabled if i recall correctly. Or google, my
friend. Nagios.org also has very thorough documentation.
On Feb 18, 2013 1:58 AM, Marco Borsani m.bors...@it.net wrote:

 I am sorry, I don’t remember If  the embedded Perl is enabled .. how can I
 verify ?

 ** **

 Regards

 Marco

 ** **

 *Da:* nap [mailto:napar...@gmail.com]
 *Inviato:* venerdì 15 febbraio 2013 11:40
 *A:* Nagios Users List
 *Oggetto:* Re: [Nagios-users] too much memory usage on Nagios server

 ** **

 ** **

 On Fri, Feb 15, 2013 at 11:04 AM, Marco Borsani m.bors...@it.net wrote:*
 ***

 Hi all

  

 I have too cluster centos , both with Nagios 3.3.1 , both with 4Gb of ram.
 

  

 Nagios “A” , has 400 servers and 3300 services configured. Its memory
 usage is about 88%

 Nagios “B” , has 300 servers and 1900 services configured. Its memory
 usage is about 95%

  

 Where/How can I investigate to understand why this big difference (less
 checks , more memory usage) ? 

 ** **

 Is the embeeded perl enabled? (the 1.9K services can maybe call more perl
 than the other).


 Jean


 --
 The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
 is your hub for all things parallel software development, from weekly
 thought
 leadership blogs to news, videos, case studies, tutorials, tech docs,
 whitepapers, evaluation guides, and opinion stories. Check out the most
 recent posts - join the conversation now.
 http://goparallel.sourceforge.net/
 ___
 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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
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] check_http fails on Cisco ASA

2013-01-31 Thread Travis Runyard
Have you tried check_http -I ip -S
The -H is for hostnames


On Thu, Jan 31, 2013 at 8:35 PM, Frank Bulk frnk...@iname.com wrote:

 Does anyone have check_http working against the SSL VPN GUI interface of a
 Cisco ASA?

 Whenever I check it always closes, but wget and curl work fine:
 =
 nagios:/usr/lib/nagios/plugins# ./check_http -H ip -S -v
 GET / HTTP/1.1
 User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15)
 Connection: close
 Host: ip


 CRITICAL - Socket timeout after 10 seconds
 nagios:/usr/lib/nagios/plugins#
 =
 nagios:/usr/lib/nagios/plugins# wget https://ip --no-check-certificate
 --2013-01-31 22:31:39--  https://ip/
 Connecting to ip:443... connected.
 WARNING: cannot verify ipâs certificate, issued by
 â/CN=host/unstructuredName=hostâ

 Self-signed certificate encountered.
 WARNING: certificate common name âhostâipâ

 HTTP request sent, awaiting response... 302 Object Moved
 Location: /+CSCOE+/logon.html [following]
 --2013-01-31 22:31:39--  https://ip/+CSCOE+/logon.html
 Connecting to ip:443... connected.
 WARNING: cannot verify ipâs certificate, issued by
 â/CN=host/unstructuredName=hostâ

 Self-signed certificate encountered.
 WARNING: certificate common name âhostâipâ

 HTTP request sent, awaiting response... 200 OK
 Length: unspecified [text/html]
 Saving to: âindex.htmlâ

 [ =
 ] 4,514   --.-K/s   in 0.03s

 2013-01-31 22:31:39 (158 KB/s) - âindex.htmlâ

 nagios:/usr/lib/nagios/plugins#
 =
 nagios:/usr/lib/nagios/plugins# curl https://ip --insecure -v
 * About to connect() to ip port 443 (#0)
 *   Trying ip... connected
 * Connected to ip (ip) port 443 (#0)
 * successfully set certificate verify locations:
 *   CAfile: none
   CApath: /etc/ssl/certs
 * SSLv3, TLS handshake, Client hello (1):
 * SSLv3, TLS handshake, Server hello (2):
 * SSLv3, TLS handshake, CERT (11):
 * SSLv3, TLS handshake, Server finished (14):
 * SSLv3, TLS handshake, Client key exchange (16):
 * SSLv3, TLS change cipher, Client hello (1):
 * SSLv3, TLS handshake, Finished (20):
 * SSLv3, TLS change cipher, Client hello (1):
 * SSLv3, TLS handshake, Finished (20):
 * SSL connection using RC4-SHA
 * Server certificate:
 *subject: CN=host; unstructuredName=host
 *start date: 2010-02-03 00:10:30 GMT
 *expire date: 2020-02-01 00:10:30 GMT
 *common name: host (does not match 'ip')
 *issuer: CN=host; unstructuredName=host
 *SSL certificate verify result: self signed certificate (18),
 continuing anyway.
  GET / HTTP/1.1
  User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0
 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.5
  Host: ip
  Accept: */*
 
 * HTTP 1.0, assume close after body
  HTTP/1.0 302 Object Moved
  Server: Cisco AWARE 2.0
 
 Fri, 01 Feb 2013 04:07:54 GMT
  Location: /+CSCOE+/logon.html
  Set-Cookie: tg=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/
  Content-Type: text/html; charset=UTF-8
  Transfer-Encoding: chunked
  Cache-Control: no-cache
  Pragma: no-cache
 * HTTP/1.0 connection set to keep alive!
  Connection: Keep-Alive
  Date:

 * Connection #0 to host ip left intact
 * Closing connection #0
 * SSLv3, TLS alert, Client hello (1):
 nagios:/usr/lib/nagios/plugins#
 =



 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_jan
 ___
 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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan___
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] Email notification while scheduling downtime

2012-11-27 Thread Travis Runyard
Its the S attribute, just like D,U,C,W,R etc... just put it in your
contacts.cfg and templates.cfg


On Tue, Nov 27, 2012 at 12:19 AM, trm asn trm.nag...@gmail.com wrote:

 Dear Friends,

 I would like to setup an email notification mechanism while adding a
 schedule maintenance downtime. It should use the existing contact info to
 send the mail.
 it'll be really helpful, if anybody help me to get started with.


 --Thanks,
 TRM


 --
 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov
 ___
 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

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
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] Check_http status 503 gives 200 OK

2012-11-20 Thread Travis Runyard
He's not using host headers in his definition.


On Tue, Nov 20, 2012 at 12:05 AM, Joerg Linge pitchf...@ederdrom.de wrote:

 again

 check_http -H  -u http://www.testsomething.com

 is a proxy request. NOT an valid HTTP request

 Joerg

 Am 20.11.2012 um 08:35 schrieb Jaap van Arragon j.vanarra...@lukkien.com
 :

  Herewith
 
  define service{
 use generic-service_24x7
 host_name   www1
 service_description check http url
 check_command   check_http! -u
  http://www.testsomething.com -w 5 -c 8
  }
 
  This gives me a
 
  HTTP OK: HTTP/1.1 200 OK - 414 bytes in 0.002 second response time
 
  Back.
 
 
  But in the browser the check gives me a
 
  503 statuscode back.
 
  The Nagios check_http script isn't detecting this 503 error message.
 
  Regards,
 
  Jaap
 
 
  On 11/20/12 8:20 AM, Joerg Linge pitchf...@ederdrom.de wrote:
 
  Please provide a complete example!
  check_http works correct since years
 
  Joerg
 
  Am 19.11.2012 um 23:00 schrieb Jaap van Arragon 
 j.vanarra...@lukkien.com:
 
  Hey Joerg,
 
  The 4xx and 3xx error are handeld correctly but not the 5xx error ;-)
 
  any ideas?
 
  Regards,
  Jaap
  From: Joerg Linge [mailto:pitchf...@ederdrom.de]
  To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net]
  Sent: Mon, 19 Nov 2012 18:07:52 +0100
  Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK
 
 
  Your example
 
  /usr/local/nagios/libexec/check_http -I ip address -u http://url
 -w1 -c2
 
  is a proxy request!
 
  -I = ip address to connect to
  -H = HTTP/1.1 Host Header
  -u = relative url to fetch without protocol infos like http://
 
  some examples
 
  check nagios.org
 
  OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org
  HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time
  |time=1.703114s;;;0.00 size=54919B;;;0
 
 
  OMD[gearman]:~/lib/nagios/plugins$ host nagios.org
  nagios.org has address 96.126.126.159
 
  ok, nagios .org runns on 96.126.126.159
  lets check a non existing page. we got 404!
 
  OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H
  nagios.org -u /404
  HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second
 response
  time |time=0.536015s;;;0.00 size=17141B;;;0
 
  lets ask nagios.org for icinga.org ;) and we will get a 302
 
  OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H
  icinga.org -u /
  HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time
  |time=1.837209s;;;0.00 size=242B;;;0
 
  Joerg
 
  Am 19.11.2012 um 17:14 schrieb Jaap van Arragon 
 j.vanarra...@lukkien.com:
 
  Thank you for your reply.
 
  I¹ve tried the check without the ip adress option but it makes no
  difference.
 
  Any other ideas?
 
  Thanks.
 
 
  On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote:
 
  You said u are using it like so:
 
  Check:
  /usr/local/nagios/libexec/check_http -I ip address -u http://url
 -w1
  -c2
 
  Maybe drop the IP address? I dunno, maybe cuz you have both IP and
 the url
  its causing problems. Maybe its replying on the IP, but not on the
 URL your
  providing. You prob only need one or the other if im not mistaken
 
  Cheers!
 
 
  On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon
  j.vanarra...@lukkien.com wrote:
  Hello,
 
  Does anyone know why it gives me a 200 back?
 
  If you need more info, I will gladly provide it ;-)
 
  Thank you.
 
  Regards,
 
  Jaap
 
 
  On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com
 wrote:
 
  Hello,
 
  I¹m trying to use the check_http plugin to verify if one of our
 website
  is
  available.
 
  When I check our website it gives me a 200 OK status code back
 even when
  the
  website isn¹t available en the URL gives me a 503 status code
 through the
  browser.
 
  After some searching I came across the post below:
 
  http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
 
  This states that there is a bug in check_http. The only thing is
 that the
  post
  is from 2003 so I expect that the necessary changes are already in
 the
  new
  release.
 
  Things I¹ve tried:
 
  - recompiled the latest version of the check_http plugin but the
  necessary
  changes seems to be integrated there already.
  - updated the plugins package to the latest version for our release
 
  Check:
  /usr/local/nagios/libexec/check_http -I ip address -u http://url
 -w1
  -c2
 
  Packages:
 
  ii nagios-images 0.5
  ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
  ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
  ii nagios-plugins 1.4.14-1ubuntu1
  ii nagios-plugins-basic 1.4.14-1ubuntu1
  ii nagios-plugins-standard 1.4.14-1ubuntu1
  ii nagios3 3.2.0-4ubuntu2.2
  ii nagios3-cgi 3.2.0-4ubuntu2.2
  ii nagios3-common 3.2.0-4ubuntu2.2
  ii nagios3-core 3.2.0-4ubuntu2.2
  ii nagiosgrapher 1.7.1-1
 
  Does anyone know why it gives me a status 200 OK back? At the
 moment 

Re: [Nagios-users] Notification did not execute

2012-08-28 Thread Travis Runyard
Your should look at the log before the service notification
was suppressed because the host was down. I'm 90% sure the reason why your
host down notification was not sent was because the host was in a soft
state type and came back online before it was determined to be in a hard
state. And you didn't post your linux-server template config so you will
have to check your and retry_interval definition.

For my host objects I set a retry_interval of 1 and max_check_attemps of 2
in the template so I get notified a little quicker when a host goes down.

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html

-Travis Runyard

On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior netwarrior...@gmail.comwrote:

 Hi there guys.

 I have face something weird, I did not get a notificationn of a down
 state for a particular host,
 this is the host config.

 define service{
 use local-service ; Name
 of service template to use
 host_name   hostname
 service_description SSH
 check_command   check_ssh
 flap_detection_enabled  0
 notifications_enabled   1
 notification_optionsw,u,r,c
 check_period24x7
 check_interval  1
 max_check_attempts  3
 first_notification_delay0
 notification_interval   10
 }



 define host{
 use linux-server; Name of host
 template to use
 ; This host
 definition will inherit all variables that are defined
 ; in (or
 inherited by) the linux-server host template definition.
 host_name   hostname
 alias   the alias
 address x.x.x.x
 contact_groups  admins
 contactsnagiosadmin
 check_interval  1
 max_check_attempts  3
 notification_interval   10
 flap_detection_enabled  0
 first_notification_delay0
 }

 and in the logs I got
 [1346196987.097821] [032.0] [pid=21145] ** Service Notification
 Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,
 Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969
 [1346196987.097843] [032.1] [pid=21145] The host is either down or
 unreachable, so we won't notify contacts about this service.
 [1346196987.097851] [032.0] [pid=21145] Notification viability test
 failed.  No notification will be sent out.

 The host is either down or unreachable --- Of coure, so why the
 notification was not fired?

 Any idea what could be wrong?, I got some notification with other host
 and all have the same configuration, I have already restarted nagios

 Thanks for your time and support
 Best regards.


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] sms alert notification in Nagios 3.4.1

2012-08-28 Thread Travis Runyard
As Net Warrier said, using your phone company's email-to-text service is
tons easier than setting up your own sms/mms server. I've tried
nagios_csmpp plugin but never got it to work. You need to have an SMPP
gateway which you typically would need to pay for. Verizon offers the
##@vtext.com service so I have nagios send a notification to that
address for critical systems.

Travis Runyard

On Tue, Aug 28, 2012 at 5:06 PM, Net Warrior netwarrior...@gmail.comwrote:

 Hi
 I use my own internal sms system to send alerts, long time ago I use
 the mobile company service to send
 and email in a format like 84848...@sms.company.com

 You only have to define your own command or use the one already
 defined in command.cfg
 If you want I can share with you how I did it, it is easy.

 but basically after you define the command you define in contacts.cfg

 srvice_notification_commands   send-sms-service,notify-service-by-email
  host_notification_commands  send-sms-host,notify-host-by-email

 send-sms is my own defined command which fires up lynx pointing to an
 intranet where the
 sms service runs.

 Regards


 2012/8/28 Kaushal Shriyan kaushalshri...@gmail.com:
  Hi,
 
  Any example or any docs which explains to set sms Service/Host UP/Down
  Notification alert in Nagios core 3.4.1?
 
  Regards,
 
  Kaushal
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  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


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Notification did not execute

2012-08-28 Thread Travis Runyard
That is really strange. Have you tried changing its ip to an invalid one
and see if you can recreate the problem?
On Aug 28, 2012 5:29 PM, Net Warrior netwarrior...@gmail.com wrote:

 Thanks for your advice, I know what you mean, but this is not the case
 unfortunately, In the logs I can see the 3 time check was reached and
 the alarm did not fired, now the server is up and I did not get the
 notification the server is back on line either.

 Is critical and not SOFT for the host and the service
 [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out)
 [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL -
 Socket timeout after 30 seconds

 [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss =
 0%, RTA = 4.84 ms

 This is weird.

 Thanks for your time and support
 Regards


 2012/8/28 Travis Runyard travisruny...@gmail.com:
  Your should look at the log before the service notification was
 suppressed
  because the host was down. I'm 90% sure the reason why your host down
  notification was not sent was because the host was in a soft state type
 and
  came back online before it was determined to be in a hard state. And you
  didn't post your linux-server template config so you will have to check
 your
  and retry_interval definition.
 
  For my host objects I set a retry_interval of 1 and max_check_attemps of
 2
  in the template so I get notified a little quicker when a host goes down.
 
  http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html
 
  -Travis Runyard
 
  On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior netwarrior...@gmail.com
  wrote:
 
  Hi there guys.
 
  I have face something weird, I did not get a notificationn of a down
  state for a particular host,
  this is the host config.
 
  define service{
  use local-service ; Name
  of service template to use
  host_name   hostname
  service_description SSH
  check_command   check_ssh
  flap_detection_enabled  0
  notifications_enabled   1
  notification_optionsw,u,r,c
  check_period24x7
  check_interval  1
  max_check_attempts  3
  first_notification_delay0
  notification_interval   10
  }
 
 
 
  define host{
  use linux-server; Name of host
  template to use
  ; This host
  definition will inherit all variables that are defined
  ; in (or
  inherited by) the linux-server host template definition.
  host_name   hostname
  alias   the alias
  address x.x.x.x
  contact_groups  admins
  contactsnagiosadmin
  check_interval  1
  max_check_attempts  3
  notification_interval   10
  flap_detection_enabled  0
  first_notification_delay0
  }
 
  and in the logs I got
  [1346196987.097821] [032.0] [pid=21145] ** Service Notification
  Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,
  Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969
  [1346196987.097843] [032.1] [pid=21145] The host is either down or
  unreachable, so we won't notify contacts about this service.
  [1346196987.097851] [032.0] [pid=21145] Notification viability test
  failed.  No notification will be sent out.
 
  The host is either down or unreachable --- Of coure, so why the
  notification was not fired?
 
  Any idea what could be wrong?, I got some notification with other host
  and all have the same configuration, I have already restarted nagios
 
  Thanks for your time and support
  Best regards.
 
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond.
 Discussions
  will include endpoint security, mobile security and the latest in
 malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  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
 
 
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed

Re: [Nagios-users] sms alert notification in Nagios 3.4.1

2012-08-28 Thread Travis Runyard
It is setup the same as any email address defined in contacs.cfg. thats why
it is so easy
On Aug 28, 2012 7:16 PM, Kaushal Shriyan kaushalshri...@gmail.com wrote:

 On Wed, Aug 29, 2012 at 5:53 AM, Travis Runyard travisruny...@gmail.com
 wrote:
  As Net Warrier said, using your phone company's email-to-text service is
  tons easier than setting up your own sms/mms server. I've tried
 nagios_csmpp
  plugin but never got it to work. You need to have an SMPP gateway which
 you
  typically would need to pay for. Verizon offers the ##@vtext.com
  service so I have nagios send a notification to that address for critical
  systems.
 
  Travis Runyard
 

 Hi Travis,

 Please share me the commands details as mentioned in commands.cfg as
 per Nagios 3.4.1 version.

 Thanks and Regards,

 Kaushal


 
  On Tue, Aug 28, 2012 at 5:06 PM, Net Warrior netwarrior...@gmail.com
  wrote:
 
  Hi
  I use my own internal sms system to send alerts, long time ago I use
  the mobile company service to send
  and email in a format like 84848...@sms.company.com
 
  You only have to define your own command or use the one already
  defined in command.cfg
  If you want I can share with you how I did it, it is easy.
 
  but basically after you define the command you define in contacts.cfg
 
  srvice_notification_commands   send-sms-service,notify-service-by-email
   host_notification_commands  send-sms-host,notify-host-by-email
 
  send-sms is my own defined command which fires up lynx pointing to an
  intranet where the
  sms service runs.
 
  Regards
 
 
  2012/8/28 Kaushal Shriyan kaushalshri...@gmail.com:
   Hi,
  
   Any example or any docs which explains to set sms Service/Host UP/Down
   Notification alert in Nagios core 3.4.1?
  
   Regards,
  
   Kaushal
  
  
  
 --
   Live Security Virtual Conference
   Exclusive live event will cover all the ways today's security and
   threat landscape has changed and how IT managers can respond.
   Discussions
   will include endpoint security, mobile security and the latest in
   malware
   threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
   ___
   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
 
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond.
 Discussions
  will include endpoint security, mobile security and the latest in
 malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  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
 
 
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  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


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed

Re: [Nagios-users] NPC nagios/cacti

2012-08-27 Thread Travis Runyard
/usr/local/nagios/etc/objects
On Aug 26, 2012 7:15 PM, rl...@yahoo.com wrote:

 Hello,
 I installed nagios using:

 apt-get install nagios3

 I can't find the configuration files I need to edit to define hosts,
 services etc.
 I'm trying to use npc to integrate with cacti but it shows nagios status
 as off.
 Do I have to compile nagios to get it to work or where can I find these
 .cfg files.
 Thank you.

 Adeyinca

 Sent from my BlackBerry wireless device from MTN



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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 Config Help

2012-07-03 Thread Travis Runyard
Thats depends on what you feel is acceptable and your environment. I have
my normal check at 5, retry at 2 and max attempts at 2. That allows for a
decently fast notification for me. I might even change the retry to 1 since
i dont manage a huge environment, nagios takes like 2% cpu on a single vcpu
vm.
On Jul 2, 2012 10:53 PM, Nair vman...@rediffmail.com wrote:

 Thanks for your response. Howabout if i have normal check = 5mins and
 retry check = 2mins, and max check attempt = 4. means its (2min X 4) bigger
 than than than normal check.

 I tried this conif and dont see any issues.

 Whats your opinion on same.

 Thanks in advance.
 Nair.



 On Mon, 02 Jul 2012 23:52:46 +0530 wrote
 The retry check interval should be smaller value than the normal check
 interval. When a problem is detected, you don't want to delay the check
 even more, you want to retry the check and find out if there really is a
 problem. Here is a good reference for you:

 http://nagios.sourceforge.net/docs/3_0/statetypes.html
 -TR

 On Mon, Jul 2, 2012 at 9:12 AM, Nair ** wrote:

 Thanks Wolf for the response. Howwver i am curious to know whether we can
 set a retry check interval greater than normal check interval. I dont see
 any mention about the same in the docs.




 Thanks

 Nair







 On Mon, 02 Jul 2012 16:14:37 +0530 wrote

 



 On Mon, Jul 2, 2012 at 12:39 AM, Nair wrote:



 Hi All







 Is there any harm is setting retry check interval plus max check attempt
 greater than normal check interval.







 Say like configs below:







 Config#1







 normal_check_interval=10min



 retry_check_interval=5min



 max_check_attempt=4







 Config#2







 normal_check_interval=5min



 retry_check_interval=10min



 max_check_attempt=3







 Thank you in advance.







 Regards



 Nair



















 Follow Rediff Deal ho jaye! to get exciting offers in your city everyday.




 --



 Live Security Virtual Conference



 Exclusive live event will cover all the ways today's security and



 threat landscape has changed and how IT managers can respond. Discussions



 will include endpoint security, mobile security and the latest in malware



 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

 ___



 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



 Nair,

 As all good consultants would say, It depends.

 There is a small network load for every test so setting shorter intervals
 increases the load. If you double the number of tests in an hour, you
 double the load.  So if you have a large number of tests on a large number
 of machines, doubling the frequency of the tests is probably a bad idea.
 What value do you think would accrue from increasing the frequency of
 tests?




 In my network, Nagios is set to start sending email notifications if the
 failure condition persists more than 3 test periods, i.e., the remote disk
 root partition is unreachable for longer than 30 minutes.  This particular
 test fails on my ftp server during large file transfers, with the message,
 plug-in timed out.  This has not turned out to be an actual problem, but is
 an artifact of flooding the network with file-transfer traffic.  In this
 case it is more sensible to let the file transfers go through than to know
 to an utmost certainty that the drive is not too full.






 YMMV



 Wolf



 --

 This Apt Has Super Cow Powers - http://sourcefreedom.com

 Open-Source Software in Libraries - http://FOSS4Lib.org



 Advancing Libraries Together - http://LYRASIS.org

 Apache Open Office Developer wolfhal...@apache.org






 --



 Live Security Virtual Conference



 Exclusive live event will cover all the ways today's security and



 threat landscape has changed and how IT managers can respond. Discussions



 will include endpoint security, mobile security and the latest in malware



 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

 ___



 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





 Follow Rediff Deal ho jaye! to get exciting offers in your city everyday.


 --

 Live Security Virtual Conference

 Exclusive live event will cover all the ways today's security and

 threat landscape 

Re: [Nagios-users] Nagios Config Help

2012-07-02 Thread Travis Runyard
The retry check interval should be smaller value than the normal check
interval. When a problem is detected, you don't want to delay the check
even more, you want to retry the check and find out if there really is a
problem. Here is a good reference for you:

http://nagios.sourceforge.net/docs/3_0/statetypes.html

-TR

On Mon, Jul 2, 2012 at 9:12 AM, Nair vman...@rediffmail.com wrote:

 Thanks Wolf for the response. Howwver i am curious to know whether we can
 set a retry check interval greater than normal check interval. I dont see
 any mention about the same in the docs.

 Thanks
 Nair



 On Mon, 02 Jul 2012 16:14:37 +0530 wrote

 

 On Mon, Jul 2, 2012 at 12:39 AM, Nair ** wrote:

 Hi All



 Is there any harm is setting retry check interval plus max check attempt
 greater than normal check interval.



 Say like configs below:



 Config#1



 normal_check_interval=10min

 retry_check_interval=5min

 max_check_attempt=4



 Config#2



 normal_check_interval=5min

 retry_check_interval=10min

 max_check_attempt=3



 Thank you in advance.



 Regards

 Nair









 Follow Rediff Deal ho jaye! to get exciting offers in your city everyday.


 --

 Live Security Virtual Conference

 Exclusive live event will cover all the ways today's security and

 threat landscape has changed and how IT managers can respond. Discussions

 will include endpoint security, mobile security and the latest in malware

 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___

 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

 Nair,
 As all good consultants would say, It depends.
 There is a small network load for every test so setting shorter intervals
 increases the load. If you double the number of tests in an hour, you
 double the load.  So if you have a large number of tests on a large number
 of machines, doubling the frequency of the tests is probably a bad idea.
 What value do you think would accrue from increasing the frequency of
 tests?

 In my network, Nagios is set to start sending email notifications if the
 failure condition persists more than 3 test periods, i.e., the remote disk
 root partition is unreachable for longer than 30 minutes.  This particular
 test fails on my ftp server during large file transfers, with the message,
 plug-in timed out.  This has not turned out to be an actual problem, but is
 an artifact of flooding the network with file-transfer traffic.  In this
 case it is more sensible to let the file transfers go through than to know
 to an utmost certainty that the drive is not too full.


 YMMV

 Wolf

 --
 This Apt Has Super Cow Powers - http://sourcefreedom.com
 Open-Source Software in Libraries - http://FOSS4Lib.org

 Advancing Libraries Together - http://LYRASIS.org
 Apache Open Office Developer wolfhal...@apache.org



 --

 Live Security Virtual Conference

 Exclusive live event will cover all the ways today's security and

 threat landscape has changed and how IT managers can respond. Discussions

 will include endpoint security, mobile security and the latest in malware

 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___

 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




 http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?
 Follow *Rediff Deal ho 
 jaye!http://track.rediff.com/click?url=___http://dealhojaye.rediff.com?sc_cid=rediffmailsignature___cmp=signaturelnk=rediffmailsignaturenewservice=deals
 * to get exciting offers in your city everyday.


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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 Config Help

2012-07-02 Thread Travis Runyard
Wrong link sorry
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html

On Mon, Jul 2, 2012 at 10:05 AM, Travis Runyard travisruny...@gmail.comwrote:

 The retry check interval should be smaller value than the normal check
 interval. When a problem is detected, you don't want to delay the check
 even more, you want to retry the check and find out if there really is a
 problem. Here is a good reference for you:

 http://nagios.sourceforge.net/docs/3_0/statetypes.html

 -TR


 On Mon, Jul 2, 2012 at 9:12 AM, Nair vman...@rediffmail.com wrote:

 Thanks Wolf for the response. Howwver i am curious to know whether we can
 set a retry check interval greater than normal check interval. I dont see
 any mention about the same in the docs.

 Thanks
 Nair



 On Mon, 02 Jul 2012 16:14:37 +0530 wrote

 

 On Mon, Jul 2, 2012 at 12:39 AM, Nair ** wrote:

 Hi All



 Is there any harm is setting retry check interval plus max check attempt
 greater than normal check interval.



 Say like configs below:



 Config#1



 normal_check_interval=10min

 retry_check_interval=5min

 max_check_attempt=4



 Config#2



 normal_check_interval=5min

 retry_check_interval=10min

 max_check_attempt=3



 Thank you in advance.



 Regards

 Nair









 Follow Rediff Deal ho jaye! to get exciting offers in your city everyday.


 --

 Live Security Virtual Conference

 Exclusive live event will cover all the ways today's security and

 threat landscape has changed and how IT managers can respond. Discussions

 will include endpoint security, mobile security and the latest in malware

 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___

 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

 Nair,
 As all good consultants would say, It depends.
 There is a small network load for every test so setting shorter intervals
 increases the load. If you double the number of tests in an hour, you
 double the load.  So if you have a large number of tests on a large number
 of machines, doubling the frequency of the tests is probably a bad idea.
 What value do you think would accrue from increasing the frequency of
 tests?

 In my network, Nagios is set to start sending email notifications if the
 failure condition persists more than 3 test periods, i.e., the remote disk
 root partition is unreachable for longer than 30 minutes.  This particular
 test fails on my ftp server during large file transfers, with the message,
 plug-in timed out.  This has not turned out to be an actual problem, but is
 an artifact of flooding the network with file-transfer traffic.  In this
 case it is more sensible to let the file transfers go through than to know
 to an utmost certainty that the drive is not too full.


 YMMV

 Wolf

 --
 This Apt Has Super Cow Powers - http://sourcefreedom.com
 Open-Source Software in Libraries - http://FOSS4Lib.org

 Advancing Libraries Together - http://LYRASIS.org
 Apache Open Office Developer wolfhal...@apache.org



 --

 Live Security Virtual Conference

 Exclusive live event will cover all the ways today's security and

 threat landscape has changed and how IT managers can respond. Discussions

 will include endpoint security, mobile security and the latest in malware

 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___

 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




 http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?
 Follow *Rediff Deal ho 
 jaye!http://track.rediff.com/click?url=___http://dealhojaye.rediff.com?sc_cid=rediffmailsignature___cmp=signaturelnk=rediffmailsignaturenewservice=deals
 * to get exciting offers in your city everyday.


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include

Re: [Nagios-users] Monitoring Windows 2008 DHCP service

2012-06-25 Thread Travis Runyard
Why use check_nt still? Use NRPE
check_nt!SERVICESTATE!-d SHOWALL -l DHCPServer
or
check_nrpe!CheckServiceState -a DHCPServer

On Mon, Jun 25, 2012 at 1:27 AM, Bruno Martins bruno.mart...@gruporumos.com
 wrote:

 Hi list,

 ** **

 I used to monitor Windows Server 2003 DHCP service through this:

 ** **

 check_nt_proc!r0ci0!svchost.exe -k DHCPServer!

 ** **

 How can I do the same in 2008 R2?

 ** **

 Best regards,


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] check_http

2012-06-14 Thread Travis Runyard
You can monitor the path of a website with the -u option. Here is an
example:
check_http -H mysite.com -u /tux -f follow

You will probably want to use the -f follow option if your website uses
any kind of redirection method.

;-)
Travis Runyard

On Wed, Jun 13, 2012 at 6:16 AM, Leonardo Bacha Abrantes 
leona...@lbasolutions.com wrote:

 Hey people,

 I'm monitoring my site using the command line
 /usr/local/nagios/libexec/check_http -w 4 -c 8 -H mysite.com. It's work
 fine, however, I have some sites that has not a host added in my dns, and
 to access it and use mysite.com/tux.

 and when I use heck_http -w 4 -c 8 -H mysite.com/tux, it fail.
 How can I monitory it ?

 many thanks!




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Error: Service check command

2012-06-12 Thread Travis Runyard
Don't specify -H ftpserver in the service definition since the command
already knows which host to check.

Good:

define service{
use  generic-service
hostgroup_nameweb-servers
service_descriptionFTP
check_command   check_ftp
}

Bad:

define service{
use  generic-service
hostgroup_nameweb-servers
service_descriptionFTP
check_command   check_ftp -H ftpserver
}

On Tue, Jun 12, 2012 at 6:18 AM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:


 On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado henri@gmail.comwrote:

 Hi.

 I'm trying to add the check_ftp command for one of my hosts. But i got
 this error:

 Error: Service check command 'check_ftp -H ftpserver' specified in
 service 'FTP' for host ' ftpserver' not defined anywhere!
 Checked 89 services.


 In my commands.cfg I have:

 # 'check_ftp' command definition
 define command{
 command_namecheck_ftp
 command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
 }


 What i'm missing?


 Show the service definition which fails.
 The command definition looks alright.



 Tks


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] check_ping strange behavior with google

2012-06-07 Thread Travis Runyard
The check_ping Nagios plugin does not ping hostnames, only IP addresses.

-Travis

On Wed, Jun 6, 2012 at 11:54 PM, Cosmin Neagu cosmin.ne...@omnilogic.rowrote:

 Hi nagios users,

 Starting from yesterday, check_ping is behaving strange for a single host.
 When giving -H parameter as www.google.ro it gives CRITICAL - Network
 Unreachable
 But when giving -H parameter as IP address it is working. I have checked
 and there are no DNS issues


 nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H 173.194.35.159 -w
 3000.0,80% -c 5000.0,100%
 PING OK - Packet loss = 0%, RTA = 46.97
 ms|rta=46.971001ms;3000.00;5000.00;0.00 pl=0%;80;100;0
 nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H www.google.ro -w
 3000.0,80% -c 5000.0,100%
 CRITICAL - Network Unreachable (www.google.ro)
 nagios@mon2:/usr/local/nagios/libexec$ ping www.google.ro
 PING www-cctld.l.google.com (173.194.35.159) 56(84) bytes of data.
 64 bytes from muc03s01-in-f31.1e100.net (173.194.35.159): icmp_seq=1
 ttl=54 time=46.8 ms
 64 bytes from muc03s01-in-f31.1e100.net (173.194.35.159): icmp_seq=2
 ttl=54 time=46.8 ms


 Using nagios 3.2.3
 nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -h
 check_ping v1.4.15 (nagios-plugins 1.4.15)
 Copyright (c) 1999 Ethan Galstad nag...@nagios.org


 After a little more search
 Other sites works ok when used with check_ping, but not site containing
 goole is working

 nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H www.google.de -w
 3000.0,80% -c 5000.0,100%
 CRITICAL - Network Unreachable (www.google.de)
 nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H www.google.com -w
 3000.0,80% -c 5000.0,100%
 CRITICAL - Network Unreachable (www.google.com)
 nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H www.google.it -w
 3000.0,80% -c 5000.0,100%
 CRITICAL - Network Unreachable (www.google.it)

 Any idea why?






 --
  Cosmin Neagu
  NOC Team Leader
  Str. I. G. Duca nr. 36
  Otopeni, Judetul Ilfov, 075100 Romania
   www.omnilogic.ro



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] check_ping strange behavior with google

2012-06-07 Thread Travis Runyard
http://nagiosplugins.org/man/check_ping

host_address = IP address. NOT hostname.
$HOSTADDRESS$Address of the host. This value is taken from the
*address* directive
in the host definitionhttp://av01mon1/nagios/docs/objectdefinitions.html#host
.
On Thu, Jun 7, 2012 at 8:56 AM, Holger Weiß hol...@cis.fu-berlin.de wrote:

 * Travis Runyard travisruny...@gmail.com [2012-06-07 08:39]:
  The check_ping Nagios plugin does not ping hostnames, only IP addresses.

 The check_ping plugin supports hostnames just fine.

  On Wed, Jun 6, 2012 at 11:54 PM, Cosmin Neagu cosmin.ne...@omnilogic.ro
 wrote:
   Starting from yesterday, check_ping is behaving strange for a single
 host.
   When giving -H parameter as www.google.ro it gives CRITICAL - Network
   Unreachable
   But when giving -H parameter as IP address it is working. I have
 checked
   and there are no DNS issues

 The hostname www.google.ro now¹ also resolves to an IPv6 address, and
 check_ping has issues with IPv6 dependending on the ping6(1)
 implementation used.  These issues will hopefully be fixed in the next
 release of the Nagios Plugins; until then, check_ping -4 [...] should
 do the trick.

 Holger

 ¹ http://en.wikipedia.org/wiki/World_IPv6_Day_and_World_IPv6_Launch_Day


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] check_ping strange behavior with google

2012-06-07 Thread Travis Runyard
Long option and short option achieve the same thing, which requires an IP
address. I have tried it out, on two separate nagios boxes, one running
Debian, the other, Redhat. Why don't you copy and paste the results from
shell to prove me wrong?

On Thu, Jun 7, 2012 at 12:26 PM, Holger Weiß hol...@cis.fu-berlin.dewrote:

 * Travis Runyard travisruny...@gmail.com [2012-06-07 09:56]:
  http://nagiosplugins.org/man/check_ping
 
  host_address = IP address. NOT hostname.

 Indeed, host_address seems to suggest an IP address.  Then again, the
 long option is called --hostname :-)  Anyway, you can specify either
 an IP address or a hostname.  Why don't you simply try it out?

  $HOSTADDRESS$ - Address of the host. This value is taken from the
  *address* directive in the host definition

 You neither have to hand over the $HOSTADDRESS$ to check_ping (you could
 use the $HOSTALIAS$ or whatever you like instead), nor do you have to
 specify an IP address as the address of a host.¹  We use only
 hostnames in our Nagios configuration.

 Holger

 ¹ Normally, this is an IP address, although it could really be anything
  you want -- http://nagios.sf.net/docs/3_0/objectdefinitions.html#host


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] check_ping strange behavior with google

2012-06-07 Thread Travis Runyard
Hats off to you, Holger. It does work but I was using google.com which
doesn't. Strange because it is pingable but returns network unreachable
with check_ping. Hey at least I learned something today.

On Thu, Jun 7, 2012 at 1:10 PM, Holger Weiß hol...@cis.fu-berlin.de wrote:

 * Travis Runyard travisruny...@gmail.com [2012-06-07 12:47]:
  Long option and short option achieve the same thing, which requires an IP
  address. I have tried it out, on two separate nagios boxes, one running
  Debian, the other, Redhat. Why don't you copy and paste the results from
  shell to prove me wrong?

 $ check_ping -H nagios-plugins.org -w 500,10% -c 750,50%
 PING OK - Packet loss = 0%, RTA = 123.06
 ms|rta=123.056999ms;500.00;750.00;0.00 pl=0%;10;50;0

 Holger


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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