Re: [Nagios-users] Nagios plugin check_ftp default threshold limits

2012-11-29 Thread Joerg Linge

Am 27.11.2012 um 11:29 schrieb anil_kum...@mcafee.com:

 Hi Guys
  
 Can you guys let us know what is the default Critical(-c) and warning(-w) 
 response time threshold limits set for the below plugin :
  

https://github.com/nagios-plugins/nagios-plugins/blob/master/plugins/check_tcp.c#L61

IMHO the default is 0 so you have to define -w and -c to check against these 
thresholds

Per default the state depends in the ftp server response and not on response 
time

Joerg


--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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


Re: [Nagios-users] Nagios plugin check_ftp default threshold limits

2012-11-29 Thread Giorgio Zarrelli
Hi,

I never used this plugin but perusing through the code I see:

/* perf-data doesn't apply when server doesn't talk properly,
 * so print all zeroes on warn and crit. Use fperfdata since
 * localisation settings can make different outputs */
if(match == FALSE)
printf (|%s,
fperfdata (time, elapsed_time, s,
(flags  FLAG_TIME_WARN ? TRUE : FALSE), 0,
(flags  FLAG_TIME_CRIT ? TRUE : FALSE), 0,
TRUE, 0,
TRUE, socket_timeout)
);
else
printf(|%s,
fperfdata (time, elapsed_time, s,
(flags  FLAG_TIME_WARN ? TRUE : FALSE), 
warning_time,
(flags  FLAG_TIME_CRIT ? TRUE : FALSE), 
critical_time,
TRUE, 0,
TRUE, socket_timeout)
);

putchar('\n');
return result;
}

So I suppose it depends on how long it takes or you consider acceptable to
receive an answer from the daemon.

Giorgio

quota chi=Joerg Linge

 Am 27.11.2012 um 11:29 schrieb anil_kum...@mcafee.com:

 Hi Guys

 Can you guys let us know what is the default Critical(-c) and
 warning(-w) response time threshold limits set for the below plugin :


 https://github.com/nagios-plugins/nagios-plugins/blob/master/plugins/check_tcp.c#L61

 IMHO the default is 0 so you have to define -w and -c to check against
 these thresholds

 Per default the state depends in the ftp server response and not on
 response time

 Joerg


 --
 Keep yourself connected to Go Parallel:
 VERIFY Test and improve your parallel project with help from experts
 and peers. 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



--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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


[Nagios-users] Nagios is ignoring the retry_interval setting

2012-11-29 Thread Andrew Thompson
Hi,

My nagios box has decided to stop listening to the retry_interval entry in my 
templates.

My server template reads:

define host{
 name   host-server
 check_period  server_24x7
 check_interval1
 retry_interval3
 max_check_attempts3
 notification_period   server_24x7
 notification_interval  3
 notification_options  d,r
 notifications_enabled  1
 contact_groupsservers email, servers sms
 event_handler_enabled  1
 process_perf_data 1
 retain_status_information1
 retain_nonstatus_information 1
 passive_checks_enabled  0
 obsess_over_host  0
 check_freshness  0
 flap_detection_enabled  0
 failure_prediction_enabled   0
 }

Now this is what happens:


* Server goes down at 1pm.

* I check the next scheduled check and it clearly states 1.03pm

* But at 1.01pm it checks again and then spits out an email and text 
message saying the server is down.

Completely ignoring the retry_interval setting!!!

Id expect from the above:


* 1pm server goes down

* 1.03pm check 2 is done

* 1.06pm check 3 is done and determined hard state.

* At 1.06pm the notification should be sent out.

Why is this, is something in my config wrong?

Ubuntu 12.04 desktop and Nagios 3.4.1

Thanks


--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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

Re: [Nagios-users] Nagios is ignoring the retry_interval setting

2012-11-29 Thread Gary Every
Your check_interval is set to 1, that takes precedence over retry_interval

g.;

On Nov 29, 2012, at 9:10 AM, Andrew Thompson and...@fulgent.co.uk wrote:

 Hi,
  
 My nagios box has decided to stop listening to the retry_interval entry in my 
 templates.
  
 My server template reads:
  
 define host{
  name   host-server 
  check_period  server_24x7  
  check_interval1
  retry_interval3
  max_check_attempts3
  notification_period   server_24x7  
  notification_interval  3
  notification_options  d,r
  notifications_enabled  1
  contact_groupsservers email, servers sms
  event_handler_enabled  1
  process_perf_data 1
  retain_status_information1 
  retain_nonstatus_information 1 
  passive_checks_enabled  0
  obsess_over_host  0
  check_freshness  0
  flap_detection_enabled  0
  failure_prediction_enabled   0 
  }
  
 Now this is what happens:
  
 · Server goes down at 1pm.
 · I check the next scheduled check and it clearly states 1.03pm
 · But at 1.01pm it checks again and then spits out an email and text 
 message saying the server is down.
  
 Completely ignoring the retry_interval setting!!!
  
 Id expect from the above:
  
 · 1pm server goes down
 · 1.03pm check 2 is done
 · 1.06pm check 3 is done and determined hard state.
 · At 1.06pm the notification should be sent out.
  
 Why is this, is something in my config wrong?
  
 Ubuntu 12.04 desktop and Nagios 3.4.1
  
 Thanks
  
  
 --
 Keep yourself connected to Go Parallel: 
 VERIFY Test and improve your parallel project with help from experts 
 and peers. 
 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

--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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

Re: [Nagios-users] Nagios is ignoring the retry_interval setting

2012-11-29 Thread Giorgio Zarrelli
Hi,

wrong.

retry interval comes in when there a state change. check_interval is the
interval for normal checks. When there is a status change, the
retry_interval comes in ** until ** max_check_attempts is reached, then
check_interval kicks in again.



quota chi=Gary Every
 --
 Keep yourself connected to Go Parallel:
 VERIFY Test and improve your parallel project with help from experts
 and peers.
 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



--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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


Re: [Nagios-users] Nagios is ignoring the retry_interval setting

2012-11-29 Thread Giorgio Zarrelli
Hi,

write here the host actual definition.

Moreover, if the define host you wrote in you email is a template, why I
do not see register 0?


quota chi=Andrew Thompson
 Hi,

 My nagios box has decided to stop listening to the retry_interval entry in
 my templates.

 My server template reads:

 define host{
  name   host-server
  check_period  server_24x7
  check_interval1
  retry_interval3
  max_check_attempts3
  notification_period   server_24x7
  notification_interval  3
  notification_options  d,r
  notifications_enabled  1
  contact_groupsservers email, servers sms
  event_handler_enabled  1
  process_perf_data 1
  retain_status_information1
  retain_nonstatus_information 1
  passive_checks_enabled  0
  obsess_over_host  0
  check_freshness  0
  flap_detection_enabled  0
  failure_prediction_enabled   0
  }

 Now this is what happens:


 * Server goes down at 1pm.

 * I check the next scheduled check and it clearly states 1.03pm

 * But at 1.01pm it checks again and then spits out an email and
 text message saying the server is down.

 Completely ignoring the retry_interval setting!!!

 Id expect from the above:


 * 1pm server goes down

 * 1.03pm check 2 is done

 * 1.06pm check 3 is done and determined hard state.

 * At 1.06pm the notification should be sent out.

 Why is this, is something in my config wrong?

 Ubuntu 12.04 desktop and Nagios 3.4.1

 Thanks


 --
 Keep yourself connected to Go Parallel:
 VERIFY Test and improve your parallel project with help from experts
 and peers.
 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



--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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


Re: [Nagios-users] Nagios is ignoring the retry_interval setting

2012-11-29 Thread Andrew Thompson
Hi Georgio,

The whole test cfg I am using to try troubleshoot this can be found at:

http://dl.dropbox.com/u/895609/test.cfg

This is a direct copy of my main servers config but with the rest of the 
servers and some templates for other server checks taken out



Kind Regards
Andrew

From: Andrew Thompson
Sent: 29 November 2012 16:11
To: nagios-users@lists.sourceforge.net
Subject: Nagios is ignoring the retry_interval setting

Hi,

My nagios box has decided to stop listening to the retry_interval entry in my 
templates.

My server template reads:

define host{
 name   host-server
 check_period  server_24x7
 check_interval1
 retry_interval3
 max_check_attempts3
 notification_period   server_24x7
 notification_interval  3
 notification_options  d,r
 notifications_enabled  1
 contact_groupsservers email, servers sms
 event_handler_enabled  1
 process_perf_data 1
 retain_status_information1
 retain_nonstatus_information 1
 passive_checks_enabled  0
 obsess_over_host  0
 check_freshness  0
 flap_detection_enabled  0
 failure_prediction_enabled   0
 }

Now this is what happens:


* Server goes down at 1pm.

* I check the next scheduled check and it clearly states 1.03pm

* But at 1.01pm it checks again and then spits out an email and text 
message saying the server is down.

Completely ignoring the retry_interval setting!!!

Id expect from the above:


* 1pm server goes down

* 1.03pm check 2 is done

* 1.06pm check 3 is done and determined hard state.

* At 1.06pm the notification should be sent out.

Why is this, is something in my config wrong?

Ubuntu 12.04 desktop and Nagios 3.4.1

Thanks


--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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

Re: [Nagios-users] Nagios 3.99.95 contact_groups

2012-11-29 Thread Robin Sonefors
So, I think I just found the issue you're experiencing (though I failed 
to mention you in the commit message, sorry) - see the patches I sent 
out to nagios-devel the other minute.

On 2012-11-28 23:56, Supporto Tecnico - Crazy Network wrote:
 no one have any hint on my issue?

 Il 20/11/2012 15:01, Supporto Tecnico - Crazy Network ha scritto:
 Hi,

 i did update Nagios to this alpha release for test purpose using working
 configurations (on Nagios 3.4.1).

 The only big trouble im having is that i dont receive any notification.

 Here contacts.cfg

 define contact{
namecn-contacts
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsc,r
host_notification_options   d,u,r
service_notification_commands   notify-service-by-email
host_notification_commands  notify-host-by-email
register0
 }

 define contact{
contact_nameandrea.iannucci
use cn-contacts
alias   Andrea Iannucci
email   supp...@crazynetwork.it
contact_groups   crazynetwork.it
service_notification_commands
 notify-service-by-email,notify-service-by-sms
host_notification_commands
 notify-host-by-email,notify-host-by-sms
pager   *
 }

 define contactgroup{
contactgroup_name   crazynetwork.it
alias   CrazyNetwork.it Staff
 }


 I did try to use contactgroups and contact_groups in contact definition
 I did try to add members andrea.iannucci in contactgroup definition

 The error on debug_level=32 i can see is that for group crazynetwork.it
 he cant fine any member (in any case).

 Setting contacts instead of contact_groups to services definition make
 notification work.

 Here debug output:

 [1353420007.497082] [032.0] [pid=14604] ** Service Notification Attempt
 ** Host: 'Test.CrazyNetwork.it', Service: 'MySQL', Type: 0, Options: 0,
 Current State: 0, Last Notification: Thu Jan  1 01:00:00 1970
 [1353420007.497154] [032.0] [pid=14604] Notification viability test passed.
 [1353420007.497181] [032.1] [pid=14604] Current notification number: 2
 (incremented)
 [1353420007.497195] [032.2] [pid=14604] Creating list of contacts to be
 notified.
 [1353420007.497206] [032.1] [pid=14604] Service notification will NOT be
 escalated.
 [1353420007.497217] [032.1] [pid=14604] Adding normal contacts for
 service to notification list.
 [1353420007.497233] [032.2] [pid=14604] Adding members of contact group
 'crazynetwork.it' for service to notification list.
 [1353420007.497245] [032.0] [pid=14604] No contacts were found for
 notification purposes.  No notification was sent out.


 Hope someone can help me fix this cause on older version was working at
 actually it look like a bug to me.

 Thanks




--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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


Re: [Nagios-users] Nagios 3.99.95 contact_groups

2012-11-29 Thread Ryan Edwards
Shouldnt your contract group definition include contacts??  Maybe I'm part
of the old school way but there should be a members line in there.

define contactgroup{
contactgroup_name crazynetwork.it
alias CrazyNetwork.it Staff
members andrea.innucci
}

Least thats how my Nagios Core ones are setup

Cheers!
On Nov 28, 2012 5:01 PM, Supporto Tecnico - Crazy Network 
supp...@crazynetwork.it wrote:

 no one have any hint on my issue?

 Il 20/11/2012 15:01, Supporto Tecnico - Crazy Network ha scritto:
 Hi,
 
  i did update Nagios to this alpha release for test purpose using working
  configurations (on Nagios 3.4.1).
 
  The only big trouble im having is that i dont receive any notification.
 
  Here contacts.cfg
 
  define contact{
namecn-contacts
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsc,r
host_notification_options   d,u,r
service_notification_commands   notify-service-by-email
host_notification_commands  notify-host-by-email
register0
  }
 
  define contact{
contact_nameandrea.iannucci
use cn-contacts
alias   Andrea Iannucci
email   supp...@crazynetwork.it
contact_groups   crazynetwork.it
service_notification_commands
  notify-service-by-email,notify-service-by-sms
host_notification_commands
  notify-host-by-email,notify-host-by-sms
pager   *
  }
 
  define contactgroup{
contactgroup_name   crazynetwork.it
alias   CrazyNetwork.it Staff
  }
 
 
  I did try to use contactgroups and contact_groups in contact definition
  I did try to add members andrea.iannucci in contactgroup definition
 
  The error on debug_level=32 i can see is that for group crazynetwork.it
  he cant fine any member (in any case).
 
  Setting contacts instead of contact_groups to services definition make
  notification work.
 
  Here debug output:
 
  [1353420007.497082] [032.0] [pid=14604] ** Service Notification Attempt
  ** Host: 'Test.CrazyNetwork.it', Service: 'MySQL', Type: 0, Options: 0,
  Current State: 0, Last Notification: Thu Jan  1 01:00:00 1970
  [1353420007.497154] [032.0] [pid=14604] Notification viability test
 passed.
  [1353420007.497181] [032.1] [pid=14604] Current notification number: 2
  (incremented)
  [1353420007.497195] [032.2] [pid=14604] Creating list of contacts to be
  notified.
  [1353420007.497206] [032.1] [pid=14604] Service notification will NOT be
  escalated.
  [1353420007.497217] [032.1] [pid=14604] Adding normal contacts for
  service to notification list.
  [1353420007.497233] [032.2] [pid=14604] Adding members of contact group
  'crazynetwork.it' for service to notification list.
  [1353420007.497245] [032.0] [pid=14604] No contacts were found for
  notification purposes.  No notification was sent out.
 
 
  Hope someone can help me fix this cause on older version was working at
  actually it look like a bug to me.
 
  Thanks


 --

 Andrea Iannucci
 ---

 ---
 Crazy Network di Iannucci Andrea
 Viale G.B. Lulli, 24
 00050 Cerveteri - RM
 (w) www.crazynetwork.it
 (e) andrea.iannu...@crazynetwork.it
 (t) +39 06 62279876
 (f) +39 06 62298767
 (m) +39 338 8552885

 ---
 Please consider our enviromental responsability before printing this
 E-Mail. Thank you.

 ---
 Questo messaggio di posta elettronica contiene informazioni di carattere
 confidenziale rivolte esclusivamente al destinatario sopra indicato.
 E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte
 di ogni altra persona. Nel caso aveste ricevuto questo messaggio di
 posta elettronica per errore, siete pregati di segnalarlo immediatamente
 al mittente e distruggere quanto ricevuto (compresi i file allegati)
 senza farne copia.
 Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio
 costituisce violazione dell'obbligo di non prendere cognizione della
 corrispondenza tra altri soggetti, salvo più grave illecito, ed espone
 il responsabile alle relative conseguenze.

 
 This e-mail is confidential and may also contain privileged information.
 If you are not the intended recipient you are not authorised to read,
 print, save, process or disclose this message. If you have received this
 message by mistake, please inform the sender immediately and delete this
 e-mail, its attachments and any copies.
 Any use, 

Re: [Nagios-users] Nagios 3.99.95 contact_groups

2012-11-29 Thread Supporto Tecnico - Crazy Network
Thanks a lot :)

Just two questions:

1 - Where i can find the patch you menthioned?
2 - I will get latest (patched) version with git clone from repository?

Tomorrow i'll grep latest git repo and try to recompile and test

Thanks

Il 29/11/2012 18:59, Robin Sonefors ha scritto:
 So, I think I just found the issue you're experiencing (though I 
 failed to mention you in the commit message, sorry) - see the patches 
 I sent out to nagios-devel the other minute.

 On 2012-11-28 23:56, Supporto Tecnico - Crazy Network wrote:
 no one have any hint on my issue?

 Il 20/11/2012 15:01, Supporto Tecnico - Crazy Network ha scritto:
 Hi,

 i did update Nagios to this alpha release for test purpose using 
 working
 configurations (on Nagios 3.4.1).

 The only big trouble im having is that i dont receive any notification.

 Here contacts.cfg

 define contact{
namecn-contacts
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsc,r
host_notification_options   d,u,r
service_notification_commands   notify-service-by-email
host_notification_commands  notify-host-by-email
register0
 }

 define contact{
contact_nameandrea.iannucci
use cn-contacts
alias   Andrea Iannucci
email   supp...@crazynetwork.it
contact_groups   crazynetwork.it
service_notification_commands
 notify-service-by-email,notify-service-by-sms
host_notification_commands
 notify-host-by-email,notify-host-by-sms
pager   *
 }

 define contactgroup{
contactgroup_name   crazynetwork.it
alias   CrazyNetwork.it Staff
 }


 I did try to use contactgroups and contact_groups in contact definition
 I did try to add members andrea.iannucci in contactgroup definition

 The error on debug_level=32 i can see is that for group crazynetwork.it
 he cant fine any member (in any case).

 Setting contacts instead of contact_groups to services definition make
 notification work.

 Here debug output:

 [1353420007.497082] [032.0] [pid=14604] ** Service Notification Attempt
 ** Host: 'Test.CrazyNetwork.it', Service: 'MySQL', Type: 0, Options: 0,
 Current State: 0, Last Notification: Thu Jan  1 01:00:00 1970
 [1353420007.497154] [032.0] [pid=14604] Notification viability test 
 passed.
 [1353420007.497181] [032.1] [pid=14604] Current notification number: 2
 (incremented)
 [1353420007.497195] [032.2] [pid=14604] Creating list of contacts to be
 notified.
 [1353420007.497206] [032.1] [pid=14604] Service notification will 
 NOT be
 escalated.
 [1353420007.497217] [032.1] [pid=14604] Adding normal contacts for
 service to notification list.
 [1353420007.497233] [032.2] [pid=14604] Adding members of contact group
 'crazynetwork.it' for service to notification list.
 [1353420007.497245] [032.0] [pid=14604] No contacts were found for
 notification purposes.  No notification was sent out.


 Hope someone can help me fix this cause on older version was working at
 actually it look like a bug to me.

 Thanks






-- 

Andrea Iannucci
---

---
Crazy Network di Iannucci Andrea
Viale G.B. Lulli, 24
00050 Cerveteri - RM
(w) www.crazynetwork.it
(e) andrea.iannu...@crazynetwork.it
(t) +39 06 62279876
(f) +39 06 62298767
(m) +39 338 8552885
---
Please consider our enviromental responsability before printing this 
E-Mail. Thank you.
---
Questo messaggio di posta elettronica contiene informazioni di carattere 
confidenziale rivolte esclusivamente al destinatario sopra indicato.
E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte 
di ogni altra persona. Nel caso aveste ricevuto questo messaggio di 
posta elettronica per errore, siete pregati di segnalarlo immediatamente 
al mittente e distruggere quanto ricevuto (compresi i file allegati) 
senza farne copia.
Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio 
costituisce violazione dell'obbligo di non prendere cognizione della 
corrispondenza tra altri soggetti, salvo più grave illecito, ed espone 
il responsabile alle relative conseguenze.

This e-mail is confidential and may also contain privileged information. 
If you are not the intended recipient you are not authorised to read, 
print, save, process or disclose this message. If you have received this 
message by mistake, please inform the sender immediately and 

[Nagios-users] execute nrpe and put result on another host....

2012-11-29 Thread Leonardo Bacha Abrantes
Hi guys,

I have a server called SRV1 that is connected on a router at other office.
The SRV1 has static routes to these networks.

My nagios has been monitoring SRV1, and I configured nrpe on it with:

command[check_router1]=/etc/check_ping -H xxx -w 3000.0,80% -c
5000.0,100% -p 4 -4
command[check_router2]=/etc/check_ping -H xxx -w 3000.0,80% -c
5000.0,100% -p 4 -4


-- | SRV1 | --- | router1 | -- | router2 | ---


I also added in my nagios router1 and router2.


is possible to configure a command in nagios server to execute
check_router1 and check_router2 on SRV1 and put the result in routers
status ?


many thanks!!
--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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

Re: [Nagios-users] Defining a service dependency for large number of services

2012-11-29 Thread Alex Griffin
Personally, I would just define a new group with all the same services 
except that master service in it. You would have two nearly identical 
groups then; I'm not sure if that would be a problem for you.

Alex Griffin
---
Tech Team
agrif...@nagios.com

On 2012-11-28 16:40, Tech Support wrote:
 Thank you. That’s extremely helpful information. I have one problem though.
 Because the master service that the service group depends on is also part of
 the service group, I'm getting (an expected) error about the circular
 dependency. Is there an easy way around that?
 Thanks;
 John

 -Original Message-
 From: Mathieu Gagné [mailto:mga...@iweb.com]
 Sent: Tuesday, November 27, 2012 3:33 PM
 To: Nagios Users List
 Cc: Tech Support
 Subject: Re: [Nagios-users] Defining a service dependency for large number
 of services

 Hi,

 On 12-11-27 2:30 PM, Tech Support wrote:

   I need to define service dependencies for some services. Pretty
 straightforward stuff, do not check service B unless service A is
 running also. For example, I have 100 different service checks that
 all depend on service A. So my question is this. Is there an easy way
 to define a dependency for a large number of services? Any insight at
 all would be greatly appreciated.

 Thanks;


 You can use this trick:
 http://nagios.sourceforge.net/docs/3_0/objecttricks.html#same_host_dependenc
 y_with_servicegroups

 I use it to massively add service dependencies for all NRPE based service
 checks on the NRPE service running on the same host as the NRPE based
 service checks.

 --
 Mathieu


 --
 Keep yourself connected to Go Parallel:
 INSIGHTS What's next for parallel hardware, programming and related areas?
 Interviews and blogs by thought leaders keep you ahead of the curve.
 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

--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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


Re: [Nagios-users] Nagios is ignoring the retry_interval setting

2012-11-29 Thread Giorgio Zarrelli
Hi,

do not seee anything wrong. Could you set debug=-1

repeat the problem and put the log online?

Giorgio

quota chi=Andrew Thompson
 Hi Georgio,

 The whole test cfg I am using to try troubleshoot this can be found at:

 http://dl.dropbox.com/u/895609/test.cfg

 This is a direct copy of my main servers config but with the rest of the
 servers and some templates for other server checks taken out



 Kind Regards
 Andrew

 From: Andrew Thompson
 Sent: 29 November 2012 16:11
 To: nagios-users@lists.sourceforge.net
 Subject: Nagios is ignoring the retry_interval setting

 Hi,

 My nagios box has decided to stop listening to the retry_interval entry in
 my templates.

 My server template reads:

 define host{
  name   host-server
  check_period  server_24x7
  check_interval1
  retry_interval3
  max_check_attempts3
  notification_period   server_24x7
  notification_interval  3
  notification_options  d,r
  notifications_enabled  1
  contact_groupsservers email, servers sms
  event_handler_enabled  1
  process_perf_data 1
  retain_status_information1
  retain_nonstatus_information 1
  passive_checks_enabled  0
  obsess_over_host  0
  check_freshness  0
  flap_detection_enabled  0
  failure_prediction_enabled   0
  }

 Now this is what happens:


 * Server goes down at 1pm.

 * I check the next scheduled check and it clearly states 1.03pm

 * But at 1.01pm it checks again and then spits out an email and
 text message saying the server is down.

 Completely ignoring the retry_interval setting!!!

 Id expect from the above:


 * 1pm server goes down

 * 1.03pm check 2 is done

 * 1.06pm check 3 is done and determined hard state.

 * At 1.06pm the notification should be sent out.

 Why is this, is something in my config wrong?

 Ubuntu 12.04 desktop and Nagios 3.4.1

 Thanks


 --
 Keep yourself connected to Go Parallel:
 VERIFY Test and improve your parallel project with help from experts
 and peers.
 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



--
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. 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


Re: [Nagios-users] Nagios 3.99.95 contact_groups

2012-11-29 Thread Supporto Tecnico - Crazy Network
Hi,

i did try that way too, but doesnt change so much.

On Nagios 3.4.1 this way does work, i prefer to specify contact_groups 
for each users instead create user and than fill members in different 
groups, same thing of course.. but was working so i guess should still 
work :)

Lets see tomorrow

Thanks

Il 29/11/2012 19:06, Ryan Edwards ha scritto:

 Shouldnt your contract group definition include contacts??  Maybe I'm 
 part of the old school way but there should be a members line in there.

 define contactgroup{
 contactgroup_name crazynetwork.it http://crazynetwork.it
 alias CrazyNetwork.it Staff
 members andrea.innucci
 }

 Least thats how my Nagios Core ones are setup

 Cheers!

 On Nov 28, 2012 5:01 PM, Supporto Tecnico - Crazy Network 
 supp...@crazynetwork.it mailto:supp...@crazynetwork.it wrote:

 no one have any hint on my issue?

 Il 20/11/2012 15:01, Supporto Tecnico - Crazy Network ha scritto:
 Hi,
 
  i did update Nagios to this alpha release for test purpose using
 working
  configurations (on Nagios 3.4.1).
 
  The only big trouble im having is that i dont receive any
 notification.
 
  Here contacts.cfg
 
  define contact{
namecn-contacts
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsc,r
host_notification_options   d,u,r
service_notification_commands   notify-service-by-email
host_notification_commands  notify-host-by-email
register0
  }
 
  define contact{
contact_nameandrea.iannucci
use cn-contacts
alias   Andrea Iannucci
email supp...@crazynetwork.it
 mailto:supp...@crazynetwork.it
contact_groups crazynetwork.it http://crazynetwork.it
service_notification_commands
  notify-service-by-email,notify-service-by-sms
host_notification_commands
  notify-host-by-email,notify-host-by-sms
pager   *
  }
 
  define contactgroup{
contactgroup_name crazynetwork.it http://crazynetwork.it
alias   CrazyNetwork.it Staff
  }
 
 
  I did try to use contactgroups and contact_groups in contact
 definition
  I did try to add members andrea.iannucci in contactgroup definition
 
  The error on debug_level=32 i can see is that for group
 crazynetwork.it http://crazynetwork.it
  he cant fine any member (in any case).
 
  Setting contacts instead of contact_groups to services
 definition make
  notification work.
 
  Here debug output:
 
  [1353420007.497082] [032.0] [pid=14604] ** Service Notification
 Attempt
  ** Host: 'Test.CrazyNetwork.it http://Test.CrazyNetwork.it',
 Service: 'MySQL', Type: 0, Options: 0,
  Current State: 0, Last Notification: Thu Jan  1 01:00:00 1970
  [1353420007.497154] [032.0] [pid=14604] Notification viability
 test passed.
  [1353420007.497181] [032.1] [pid=14604] Current notification
 number: 2
  (incremented)
  [1353420007.497195] [032.2] [pid=14604] Creating list of
 contacts to be
  notified.
  [1353420007.497206] [032.1] [pid=14604] Service notification
 will NOT be
  escalated.
  [1353420007.497217] [032.1] [pid=14604] Adding normal contacts for
  service to notification list.
  [1353420007.497233] [032.2] [pid=14604] Adding members of
 contact group
  'crazynetwork.it http://crazynetwork.it' for service to
 notification list.
  [1353420007.497245] [032.0] [pid=14604] No contacts were found for
  notification purposes.  No notification was sent out.
 
 
  Hope someone can help me fix this cause on older version was
 working at
  actually it look like a bug to me.
 
  Thanks


 --

 Andrea Iannucci
 ---

 ---
 Crazy Network di Iannucci Andrea
 Viale G.B. Lulli, 24
 00050 Cerveteri - RM
 (w) www.crazynetwork.it http://www.crazynetwork.it
 (e) andrea.iannu...@crazynetwork.it
 mailto:andrea.iannu...@crazynetwork.it
 (t) +39 06 62279876 tel:%2B39%2006%2062279876
 (f) +39 06 62298767 tel:%2B39%2006%2062298767
 (m) +39 338 8552885 tel:%2B39%20338%208552885
 
 ---
 Please consider our enviromental responsability before printing this
 E-Mail. Thank you.
 
 ---
 Questo messaggio di posta