Re: [Nagios-users] smstools

2013-03-05 Thread Simone Felici

I'm using smstool3 for a long time. It's the new version since 2006, maybe your 
same version.
I never had the needs to change the ownership, it's more a smstools3 or OS 
question.
I suggest you to ask here: http://smstools3.kekekasvi.com/forum.php?id=3

Simon


Il 05/03/2013 15:57, Marco Borsani ha scritto:
 Hi all

 I use smstools to send notification from several years.

 Now I need to understand how force this tool to create files with 660 
 permissions (and not 600)
 because I am developping an interface to delete the sms queue.

 Any idea ?

 There is an “umask” variable to set in the /etc/smsd.conf file, but it has 
 not any effects.

 regards

 Marco Borsani

 *Unix and Monitoring Sysadmin*

 *Business Unit Internet Solutions - Operations*

 tel: +39 010 4310115

 fax: +39 02 30130311

 cell: +39 329 5953944

 ITnet S.r.l.

 Società con socio unico

 Soggetta a direzione e coordinamento di Italiaonline S.r.l.



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



--
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: little question about disable notification and schedule downtime

2012-11-20 Thread Simone Felici

You can submit commands directly to the command file

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

Bye,

Simone


-- 
Simone Felici
Divisione Tecnica: Progettazione e Sviluppo

tel. +39 0461.030.111
fax. +39 0461 030.112
Via Fersina, 23 - 38123 Trento

Il 20/11/2012 10:10, Marco Borsani ha scritto:
 Thank you.

 What do you mean with “drop that command into nagios.cmd” ?

 Marco

 *Da:*Onotsky, Steve x55328 [mailto:steve.onot...@broadridge.com]
 *Inviato:* lunedì 19 novembre 2012 17:28
 *A:* Nagios Users List
 *Oggetto:* Re: [Nagios-users] little question about disable notification and 
 schedule downtime

 Correct.  The former will cause notifications to remain disabled until told 
 otherwise; the latter
 only for as long as specified.  You should read up on the difference between 
 Fixed and Flexible
 scheduled downtime while you’re at it.

 If you want service/host checks disabled, you need to select that option from 
 the web GUI (or drop
 that command into nagios.cmd).

 Cheers

 Steve Onotsky

 Team Lead, Server Support

 Broadridge

 Investor Communication Solutions, Canada

 5970 Chedworth Way

 Mississauga  ON  L5R 4G5

 Tel: (905) 507-5328

 Fax: (905) 507-5312

 Inet: steve.onot...@broadridge.com mailto:steve.onot...@broadridge.com

 /The purpose of the universe is to explore the realm of possibility. /

 /Our purpose is to witness it. - S. James Gates Jr./

 *From:*Marco Borsani [mailto:m.bors...@it.net]
 *Sent:* Monday, November 19, 2012 10:11 AM
 *To:* NAGIOS
 *Subject:* [Nagios-users] little question about disable notification and 
 schedule downtime

 Hi all

 Reading for the first time the docs it seems that these 2 options do the same 
 thing. Is it ?

 Is the only difference that the first one disable the notification forever, 
 while the other only in
 a particular timeperiod ?

 Both do not stop the service checks.

 Marco Borsani

 *Unix and Monitoring Sysadmin*

 *Technical Operations Dpt.*

 tel: +39 010 4310115

 fax: +39 02 30130311

 cell: +39 329 5953944

 ITnet Srl

 Società con socio unico

 Direzione e Coordinamento di Libero S.r.l.


 This message and any attachments are intended only for the use of the 
 addressee and may contain
 information that is privileged and confidential. If the reader of the message 
 is not the intended
 recipient or an authorized representative of the intended recipient, you are 
 hereby notified that
 any dissemination of this communication is strictly prohibited. If you have 
 received this
 communication in error, please notify us immediately by e-mail and delete the 
 message and any
 attachments from your system.



 --
 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] Nagios Macros: SERVICEDURATION Vs HOSTDURATION

2012-09-06 Thread Simone Felici
Hello!

Noone has noticed this behaviour?

Thank's

Simon

Il 13/08/2012 10:19, Simone Felici ha scritto:

 Hello to all!

 I'm using the macros HOSTDURATION and SERVICEDURATION to notify how many 
 time the host or
 service is in the current state. Looking on the definition:

 host:
 A string indicating the amount of time that the host has spent in its current 
 state. Format is XXh
 YYm ZZs, indicating hours, minutes and seconds.

 service:
 A string indicating the amount of time that the service has spent in its 
 current state. Format is
 XXh YYm ZZs, indicating hours, minutes and seconds.

 Assuming I've a host as follow:
 ping hostckeck with 2 retries (60secs)
 service with 3 retries (60secs)
 host checks made only on demand, when required

 When the host goes in DOWN HARD STATE (2 checks made, more than 60secs 
 passed) the notification is
 sent with HOSTDURATION = 0d 0h 0m 0s (or some secs more).
 When the service enters in CRITICAL HARD STATE (3 checks made, more than 
 120secs passed) the
 notification is sent with SERVICEDURATION = 0d 0h 2m 0s (or some secs more, 
 depends on latency I
 think).

 So, it seems the HOSTDURATION timer starts when the host is in HARD STATE 
 down, but the
 SERVICEDURATION timer starts when the service is in his first SOFT STATE 
 CRITICAL.

 Is this correct? A bug? I think the service is in the correct situation.

 Thank's a lot

 Simon


--
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-29 Thread Simone Felici
All works fine until a network issue is there. In this case you loose important 
sms messages.
This is the mainly reason we use an sms gateway only as second choise.
Attach a gsm modem on the monitoring system and send out notifications is 
really simple. look at 
smstools3.kekekasvi.com i.e.

Simon

Il 29/08/2012 06:09, Travis Runyard ha scritto:
 It is setup the same as any email address defined in contacs.cfg. thats why 
 it is so easy


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


[Nagios-users] Nagios Macros: SERVICEDURATION Vs HOSTDURATION

2012-08-13 Thread Simone Felici

Hello to all!

I'm using the macros HOSTDURATION and SERVICEDURATION to notify how many 
time the host or 
service is in the current state. Looking on the definition:

host:
A string indicating the amount of time that the host has spent in its current 
state. Format is XXh 
YYm ZZs, indicating hours, minutes and seconds.

service:
A string indicating the amount of time that the service has spent in its 
current state. Format is 
XXh YYm ZZs, indicating hours, minutes and seconds.

Assuming I've a host as follow:
ping hostckeck with 2 retries (60secs)
service with 3 retries (60secs)
host checks made only on demand, when required

When the host goes in DOWN HARD STATE (2 checks made, more than 60secs passed) 
the notification is 
sent with HOSTDURATION = 0d 0h 0m 0s (or some secs more).
When the service enters in CRITICAL HARD STATE (3 checks made, more than 
120secs passed) the 
notification is sent with SERVICEDURATION = 0d 0h 2m 0s (or some secs more, 
depends on latency I 
think).

So, it seems the HOSTDURATION timer starts when the host is in HARD STATE down, 
but the 
SERVICEDURATION timer starts when the service is in his first SOFT STATE 
CRITICAL.

Is this correct? A bug? I think the service is in the correct situation.

Thank's a lot

Simon

--
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] High Service Check Latency

2012-05-23 Thread Simone Felici
Il 22/05/2012 16:25, Assaf Flatto ha scritto:

 One thing I found to help with performance with NDO was to make sure the DB 
 is trimmed on a regular
 basis .
 tables timedevents, services , logentries and other ones grow very fast to 
 large size and nagios is
 having trouble writing to the DB if the table is larger the 450MB .

 since i was using the NDO for nagviz the data was mostly not needed so i used 
 to truncate those tables.

 If you do use the DB , replicate it to a secondary DB and use that as your 
 queries master .and trim
 the one nagios writes to , but make sure that if the trimming is done , the 
 data is not removed from
 the replicated server.

Thank's for this suggestion, I'll look to optimize as best as possible the 
database. Hope it helps!

Simon

--
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] High Service Check Latency

2012-05-23 Thread Simone Felici
So, cpuload is stable around 5.00 - 5.50. IO wait is difficult to identify.
Using top I can read an average of 0% with some peaks up to 4%. Using iotop the 
process kjournald is 
jumping on first position often with peaks to 10-20%, back to 0 immediatly.
Second place for nagios process. But the 1sec refresh is changing very often 
the situation.
Semms really interesting your doc, also I'll try some solutions. I'll use sym 
links to not alter any 
configuration file. Should do the trick as well. I'll let you know!

Thank you!

Simon


Il 22/05/2012 16:34, Mike Guthrie ha scritto:
 What kind of information do you have about average CPU load or I\O wait
 time?  Whether Nagios is using ndoutils or not there will be a hardware
 limit as to how many disk writes it can handle in a given period of
 time.  Even though you're only running a few active checks, it could be
 a symptom that your machine is having to wait on itself to write to disk
 for other things as well.  The doc below is written for Nagios XI, but
 of a lot of the items apply to Core as well.  I would consider exploring
 some options with a RAM disk in order to reduce disk activity.

 http://assets.nagios.com/downloads/nagiosxi/docs/Utilizing_A_RAM_Disk_In_NagiosXI.pdf


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


[Nagios-users] High Service Check Latency

2012-05-22 Thread Simone Felici
Hello!

Yes, it's a common problem, but cannot figure out how to debug it.
I've a distributed setup with a master server collecting 9.000 passive 
services sent from other 
servers, all with active latencies near 0. The master server checks *only* 
itself as active 
services, ~40 services, most of them every 5 minutes. AFAIK passive services 
should not affect 
active service check latency statistics. Looking into retention.dat file, the 
high latencies are 
all related to the local executed active services. Actual stats:

Nagios Stats 3.2.3
Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
Last Modified: 10-03-2010
License: GPL

CURRENT STATUS DATA
--
Status File:/usr/local/nagios/var/status.dat
Status File Age:0d 0h 0m 7s
Status File Version:3.2.3

Program Running Time:   0d 20h 40m 53s
Nagios PID: 9360
Used/High/Total Command Buffers:0 / 7 / 1

Total Services: 9098
Services Checked:   9098
Services Scheduled: 33
Services Actively Checked:  39
Services Passively Checked: 9059
Total Service State Change: 0.000 / 100.000 / 1.351 %
Active Service Latency: 4.156 / 7943.743 / 6163.392 sec   

Active Service Execution Time:  0.010 / 2.485 / 0.319 sec
Active Service State Change:0.000 / 22.890 / 2.443 %
Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0
Passive Service Latency:0.088 / 7.914 / 1.997 sec
Passive Service State Change:   0.000 / 100.000 / 1.346 %
Passive Services Last 1/5/15/60 min:1851 / 7501 / 8084 / 8392
Services Ok/Warn/Unk/Crit:  8784 / 78 / 76 / 160
Services Flapping:  4
Services In Downtime:   112

Total Hosts:1912
Hosts Checked:  1912
Hosts Scheduled:0
Hosts Actively Checked: 74
Host Passively Checked: 1838
Total Host State Change:0.000 / 46.910 / 0.135 %
Active Host Latency:0.000 / 1425.848 / 1104.205 sec
Active Host Execution Time: 0.012 / 0.402 / 0.096 sec
Active Host State Change:   0.000 / 0.000 / 0.000 %
Active Hosts Last 1/5/15/60 min:0 / 0 / 0 / 0
Passive Host Latency:   0.000 / 639.353 / 1.197 sec
Passive Host State Change:  0.000 / 46.910 / 0.140 %
Passive Hosts Last 1/5/15/60 min:   1 / 12 / 27 / 70
Hosts Up/Down/Unreach:  1850 / 57 / 5
Hosts Flapping: 0
Hosts In Downtime:  35

Active Host Checks Last 1/5/15 min: 42 / 194 / 565
Scheduled:   0 / 0 / 0
On-demand:   42 / 194 / 565
Parallel:0 / 0 / 0
Serial:  0 / 0 / 0
Cached:  42 / 194 / 565
Passive Host Checks Last 1/5/15 min:1 / 14 / 45
Active Service Checks Last 1/5/15 min:  0 / 0 / 0
Scheduled:   0 / 0 / 0
On-demand:   0 / 0 / 0
Cached:  0 / 0 / 0
Passive Service Checks Last 1/5/15 min: 2311 / 9235 / 12988

External Commands Last 1/5/15 min:  0 / 1 / 1


I've some broker modules to handle sql logging and distributed setup. Other 
parameters that could be 
interesting:

command_check_interval=-1
service_inter_check_delay_method=s
max_concurrent_checks=80
check_result_reaper_frequency=2
max_check_result_reaper_time=30
obsess_over_services=0
obsess_over_hosts=0

Looking on suggesions by the proc:

Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Timing information on object configuration processing is listed
below.  You can use this information to see if precaching your
object configuration would be useful.

Object Config Source: Config files (uncached)

OBJECT CONFIG PROCESSING TIMES  (* = Potential for precache savings with -u 
option)
--
Read: 0.703470 sec
Resolve:  0.018964 sec  *
Recomb Contactgroups: 0.454370 sec  *
Recomb Hostgroups:0.010414 sec  *
Dup Services: 0.025101 sec  *
Recomb Servicegroups: 0.000211 sec  *
Duplicate:0.003912 sec  *
Inherit:  0.008386 sec  *
Recomb Contacts:  0.00 sec  *
Sort: 0.03 sec  *
Register: 0.050582 sec
Free: 0.006160 sec
   
TOTAL:1.281574 sec  * = 0.521362 sec (40.68%) estimated savings


RETENTION DATA TIMES

Re: [Nagios-users] High Service Check Latency

2012-05-22 Thread Simone Felici

This could be the case. Is there a way I can log and explicit find out some 
traces that could point 
me to the real causes?
I'm collecting on MySQL everything is generated by nagios itself: status and 
performance data, which 
are a lot of informations: 7GB of runtime statistics.

Il 22/05/2012 11:17, Assaf Flatto ha scritto:
 NDO and a large DB cause an issue to the nagios core that is causing
 high latency and can bring nagios to halt.
 If you are also running a performance gathering solution it can
 contribute to the hight latency .


--
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] High Service Check Latency

2012-05-22 Thread Simone Felici
Il 22/05/2012 13:55, C. Bensend ha scritto:

 I bet you're using NDOUtils.  I wouldn't recommend that.  I couldn't
 keep a Nagios server with under 6000 services limping along when
 NDOUtils was running.  Eventually, the check latencies would go
 through the roof and the entire server would get farther and farther
 behind.

 I went to Livestatus.  It took me all of 20 minutes to adjust my
 reports to use the new interface, and I haven't restart my Nagios
 daemon since (other than normal maintenance).


Yes, you're right. My problem is, the solution is implemented into OPSView 
Community edition. It's 
not a problem to alter-modify installation, btw the result is maybe some 
functionality in the whole 
system (gui or whatever) would not work anymore. Time to move to other nagios 
installation? Maybe, 
but not right now.
For now I would like to know a way to identify (and possible solve) the actual 
high latency. I've no 
idea if I can enable ndo logging or nagios logging to identify issues or 
bottlenecks.

Simon

--
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] How many hosts and services are you monitoring with Nagios?

2012-05-18 Thread Simone Felici

Impressive :)
We're monitoring ~2000 hosts and ~1 services, every 5 minutes.
Architecture used: OPSView Community edition, the last free version before it 
started to make the 
distributed version commercial :/
Two central servers (active/standby - drbd) as single point for management and 
collecting all 
passive checks executed by the slave servers. Performance data saved into rrd 
files as well on an 
external BIG database server. Configuration resides on a cluster MySQL 
installation (drbd).
4 slave datacenter installations with 2 servers per datacenter in 
active/active load balancing.
Traps handling supported on all servers with rules logic.
Pros:
- Open Source: at least until version 3 - for our setup. Simple single instance 
with fewer functions 
available as well on version 4.
- Easy to manage: the prupose was to create monitoring system and then let the 
management to other 
people with less technical skills
- distributed setup
- RBAC
Disadvantages:
- no longer Open Source: see above
- Central server suffering on cpu by GUI implementation and other bg jobs
- Not all nagios parameters editable as we like: i.e. cannot customize same 
checks with different 
intervals without having to re-create new ones. Think on HTTP service on 
servers with different 
loads and the need to extend the retries on high load servers. no way expect 
creating HTTP and 
HTTP High Load services.
Maybe there are more pros (and disadvantages), but it's not the right place.
BTW I'll look forward to wait for this solution; seems interesting!

Simon

Il 17/05/2012 16:43, Max Schubert ha scritto:
 Hi,

 I like it when people periodically post numbers and architecture
 summaries, I am guessing with the distributed frameworks out now for
 Nagios this thread might be seeing bigger numbers than past threads
 have.

 With our custom-built distributed Nagios-based monitoring system, we
 are currently monitoring 18000+ hosts every 5 minutes and 100k+ active
 services (plenty of passive services in addition to the actives) every
 5 mins as well.  We collect performance data from every check as well
 and pass that on to a highly distributed and scalabe time-series data
 warehouse another team in our organization has built (which is why we
 have the 5 min interval requirement)

 We also do trap ingest using SNMPTT with a few custom mods, but not
 going to include those numbers as they never have required the
 optimizations the polling has required.

 This isn't a monolithic instance, we have 6 projects using instances
 of our distributed Nagios-based software, called Racon (soon my
 manager will give our team to package it as open source - so I hear at
 least).  We built it on core Nagios with a custom database layer based
 on a very very early version of Merlin's database abstraction layer
 (thank you Andreas!) - we have a custom client/server network-based
 notification framework in use (we will release that as well) along
 with a custom NEB/perl based client-server framework (also releasable,
 just need time scheduled) for sending and processing performance data
 - the performance and notification framework are both horizontally
 scalabe and network fault tolerant.

 What kinds of numbers of hosts and services are you all monitoring?
 Which add-ons / distributed frameworks are you using?

--
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] How can I change Nagios from email address ?

2012-05-08 Thread Simone Felici

I'm using a server that sends *only* nagios mails, then I've implemented regexp 
header_checks to 
replace every outgoing sender email.

Into main.cf:
(...)
header_checks = regexp:/etc/postfix/header_checks

and then into /etc/postfix/header_checks
/From:.*/ REPLACE From: Monitoring System myaddr...@mydomain.com

Maybe there is a better way to do it. For me works.

Cheers, Simon


Il 08/05/2012 11:39, özgür umut vurgun ha scritto:
 Hi,

 I am using postfix ... But I don't know how to configuration



 Özgür Umut VURGUN



 2012/5/8 Assaf Flatto nag...@flatto.net mailto:nag...@flatto.net

 __
 Are you using sendmail or postfix as your MTA ?

 The configuration is done on the MTA .




 On 08/05/12 08:29, özgür umut vurgun wrote:
 Hi All,

 I'd like to change Nagios Email address. Now I am using 
 admin@hostname-nagios.localhost
 mailto:admin@hostname-nagios.localhost but many system doesn't accept 
 this email address. So
 I'd like to change to real e-mail address. I have searched in the 
 internet but I couldn't be
 success.

 How can I do it ?

 Thanks...

 Özgür Umut VURGUN


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



--
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] How can I change Nagios from email address ?

2012-05-08 Thread Simone Felici

I'm using a server that sends *only* nagios mails, then I've implemented regexp 
header_checks to 
replace every outgoing sender email.

Into main.cf:
(...)
header_checks = regexp:/etc/postfix/header_checks

and then into /etc/postfix/header_checks
/From:.*/ REPLACE From: Monitoring System myaddr...@mydomain.com

Maybe there is a better way to do it. For me works.

Cheers, Simon


Il 08/05/2012 11:39, özgür umut vurgun ha scritto:
 Hi,

 I am using postfix ... But I don't know how to configuration



 Özgür Umut VURGUN



 2012/5/8 Assaf Flatto nag...@flatto.net mailto:nag...@flatto.net

 __
 Are you using sendmail or postfix as your MTA ?

 The configuration is done on the MTA .




 On 08/05/12 08:29, özgür umut vurgun wrote:
 Hi All,

 I'd like to change Nagios Email address. Now I am using 
 admin@hostname-nagios.localhost
 mailto:admin@hostname-nagios.localhost but many system doesn't accept 
 this email address. So
 I'd like to change to real e-mail address. I have searched in the 
 internet but I couldn't be
 success.

 How can I do it ?

 Thanks...

 Özgür Umut VURGUN


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



--
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] how to manage a distributed configuration

2011-06-27 Thread Simone Felici

Take a loot at opsview (www.opsview.org).
It has community or enterprise version as well. I'm managing a clustered 
central server (HA 
active-passive) with three dual-slaves datacenters (active-active) distributed 
across three 
different locations, a clustered mysql backend and a long-term archive mysql 
server for reporting 
pruposes. All it's managed on the core server.
Having tested different distributed Nagios solutions, this is the one I've 
preferred.

Cheers,

Simon



Il 27/06/2011 14:07, Marco Borsani ha scritto:
 Hi all

 Here it is what I’d like to develop.

 -In three different sites, I will install three Nagios server

 -Every server will control his local computers (about 150 clients each Nagios 
 server) like active
 hosts/services

 -Two of those Nagios server have to report information to the other (central 
 Nagios server), using
 NSCA/send_nsca , like passive hosts/services

 I’d like to use mysql database, but how can I manage this configuration ?

 May I use only one mysql DB on central Nagios server , then extract and 
 distribute the configuration
 or what ?

 Regards

 Marco

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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: how to manage a distributed configuration

2011-06-27 Thread Simone Felici
OPSview is based on Nagios 3.2.3. It's a sort of wrap-up solution using nagios 
capabilities to 
monitor and external objects like NRD, event-broker NDO, nagios plugins, to let 
all works together.
In fact it's a Nagios installation but without the needs to put hands on all 
cfg files. It is really 
a big improovment. Even if I'm coming from pure nagios installation (for years 
I've edited these 
files manually) the advantages having all configured in one pint with a nice 
GUI is really a big 
advantage. Ok, this solution doesn't give you 100% the ability to play with all 
options as you wish 
but it covers really much more what most of the monitoring installations 
requires. Of course thats 
my personal opinion.

Bye,

Simon

Il 27/06/2011 15:51, Marco Borsani ha scritto:
 Thanks a lot Simone, but I need to use Nagios 3.2.3 :-)

 Marco

 -Messaggio originale-
 Da: Simone Felici [mailto:s.fel...@alpikom.it]
 Inviato: lunedì 27 giugno 2011 15:21
 A: nagios-users@lists.sourceforge.net
 Oggetto: Re: [Nagios-users] how to manage a distributed configuration


 Take a loot at opsview (www.opsview.org).
 It has community or enterprise version as well. I'm managing a clustered
 central server (HA
 active-passive) with three dual-slaves datacenters (active-active)
 distributed across three different locations, a clustered mysql backend and
 a long-term archive mysql server for reporting pruposes. All it's managed on
 the core server.
 Having tested different distributed Nagios solutions, this is the one I've
 preferred.

 Cheers,

 Simon



 Il 27/06/2011 14:07, Marco Borsani ha scritto:
 Hi all

 Here it is what I’d like to develop.

 -In three different sites, I will install three Nagios server

 -Every server will control his local computers (about 150 clients each
 Nagios server) like active hosts/services

 -Two of those Nagios server have to report information to the other
 (central Nagios server), using NSCA/send_nsca , like passive
 hosts/services

 I’d like to use mysql database, but how can I manage this configuration ?

 May I use only one mysql DB on central Nagios server , then extract
 and distribute the configuration or what ?

 Regards

 Marco

 
 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 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


 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 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


-- 
Simone Felici
Divisione Tecnica: Progettazione e Sviluppo

tel. +39 0461.030.111
fax. +39 0461 030.112
Via Fersina, 23 - 38123 Trento

-
MC-link S.p.A.
Sede Direzionale e Amministrativa
Via Carlo Perrier, 9/a - 00157 Roma
Sede Legale
Via Fersina, 23 - 38123 Trento

http://www.mclink.it

Save a tree. Don't print this e-mail unless it's really necessary

Informativa ai sensi del Codice della proprietà industriale e del Codice dei 
dati personali.
Le informazioni contenute in questa e-mail e negli eventuali allegati, possono 
contenere 
informazioni confidenziali e coperte da segreto commerciale/industriale. Esse 
vengono comunicate nei 
limiti giuridici dei rapporti in essere fra le parti e pertanto nessun 
ulteriore diritto di 
proprietà intellettuale o industriale  può essere rivendicato dal ricevente.
Le informazioni contenute in questa e-mail e negli eventuali allegati sono 
indirizzate 
esclusivamente a coloro che figurano come destinatari.
Se avete ricevuto per errore questa e-mail siete pregati di informarci 
(rispedendola al mittente) e 
di provvedere alla sua rimozione, a non farne utilizzo e a non conservarne 
alcuna copia.

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record

Re: [Nagios-users] Semi-newbie Question

2011-04-21 Thread Simone Felici

AFAIK if you have configured a service to check 3 times befor send any 
notification, than this 
option cannot be override:

http://nagios.sourceforge.net/docs/nagioscore/3/en/statetypes.html

The first two non-ok states are in SOFT-STATE based on the 
max_check_attempts. You could try with 
event_handlers but are most used to correct an issue instead to force a 
notification, but could fit. 
They could be trigged in SOFT-STATE too.

http://nagios.sourceforge.net/docs/nagioscore/3/en/eventhandlers.html

BTW this would not log correctly the 503 error as an HARD-STATE issue for 
report pruposes.
I would set up a new service. It's cleaner. It could be a wrap-up of the 
check_http script to handle 
only 503 errors.

Hope it helps!

Bye,

Simon





Il 21/04/2011 01:02, Todd Clemens ha scritto:
 Hi Everyone,

 We monitor our sites with a standard 3 of 3 failure triggers a notification 
 configuration.  I would
 like to know if it's possible to alter this monitoring (which would be ideal) 
 or or create a new
 monitor (which is not as ideal, but is still ok) so that if a 503 error is 
 detected, it will
 immediately send a notification and not wait for the 3 of 3 failure.

 Thanks,
 Todd


--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
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] Multi-site frontend options

2011-03-01 Thread Simone Felici

Check this out: http://www.opsview.com
Community or Enterprise edition available. Powered by Nagios of course.
Our setup:
- one centralized dual server in HA (Active Passive)
- one cluster db server for configurations in HA (Active Passive)
- one Warehouse DB Server for storing historical data and made some reports.
- five different remote datacenters (three of them in Active-Active Fail-Over 
HA mode)
Central server for configs and for monitoring a part of the network structure
Slave servers to monitor other pieces of networks and datacenters not directly 
reachable form master.
All what you need you can find it on the site.
a great support and staff!

Have a nice day.

Simon

Il 25/02/2011 17:02, Shawn Green ha scritto:
 I have multiple data centers around the US with 100+ nodes and roughly 1500 
 service checks per
 location. Rather than utilize nsca to report to one Nagios instance, I have 
 setup separate “native”
 Nagios instances in each data center.

 Now the fun part…. I’d love to have one centralized interface for all 
 locations. Ideally this is
 something that I can run from an apache instance that is located in my main 
 data center (and
 separate from the monitoring host in that DC). I’ve been checking out 
 check_mk Multisite and
 utilizing the livestatus plugin. There’s a lot to like in it… interface 
 layout, the ability to
 submit commands to any location from one interface, and the nagvis 
 integration. There are also some
 things that are missing that may be deal breakers for me. Native LDAP (not 
 using mod_ldap in
 apache), cacti integration on some level, and more granular user groups would 
 be some.

 Regardless of the fact that we like check_mk Multisite, I’d like to see what 
 other options are out
 there. What have you folks used  experienced?

 Thanks

 Shawn

 Shawn M. Green| Manager, Technical Operations


--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-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] Installing Nagios on CentOS

2010-01-05 Thread Simone Felici

Instead using rpm, I prefer to compile it.
Using Fedora Quickstart line guide, it works perfectly:

http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html

Simon

Jatin Davey ha scritto in data 05/01/2010 10.11:
 Hi

 Can someone provide some instructions or links on how to install Nagios
 on CentOS distribution.

 Thanks
 Jatin


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-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] Distributed monitoring solution - some questions

2009-09-28 Thread Simone Felici
Marc Powell ha scritto in data 25/09/2009 14.14:

 
 It sounds like you're looking for Freshness Checks. It's discussed in  
 the Distributed Monitoring documentation.
 

Thank's Marc,
Meanwhile I've read better the documentation, the freshness threshold does the 
trick.

Thank's!

Simon

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] PCI GSM Modem sources.

2009-09-23 Thread Simone Felici
Never used PCI GSM cards. We are using smstools and two Nokia 6310i connected 
via serial port (rs232). It does great the 
work on two nagios servers since 2001. I've tested an old Falcom A2 GSM modem 
as well, with zero issues.
If you need send only sms an old/stable gsm phone does the work very well. the 
card (business or prepaid) then you 
decide to use is up to you.
It does not only send alarms. I use it to have a nagios status on demand via 
sms if I receive an sms-alarm and I would 
like to check if 5mins later the alarm is gone, in example sending an sms to 
the server. smstools can handle incoming 
sms as well and, in example, execute a script which parse the status.log of 
nagios and checks whether an alarm is still 
active or not sending back an sms.
It's a little OT, but only another idea in case it could be halpful.

Bye,

simon

Roderick A. Anderson ha scritto in data 23/09/2009 18.25:
 Right after the Gnokki Issues thread started a client was the victim 
 of an upstream connectivity provider's power outage.  so I started 
 researching options to get the word out to the admins via SMS instead of 
 email-to-SMS when there is no internet connectivity.
 
 I found the Teltonika T-Modem PCI which looks good but the only 
 supplier I could find is in the UK and I'm in the US.  Before ordering 
 is anyone is aware of a US supplier?  Or are any other (better) SMS 
 options.  (The only feature not in this card I'd like would be support 
 for a prepaid cell card option.  It will (should) be needed rarely.
 
 
 \\||/
 Rod


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] large map

2009-08-28 Thread Simone Felici

Thank you!
I'll try it asap

Have a nice day!

Simon

Max Hetrick ha scritto in data 27/08/2009 22.10:
 Yeah, it's a rather large map too, but it's more readable than some of 
 the Nagios maps. I only have 160 Hosts and 480 services. What I did for 
 the main network map, was trim out all the services and have it just 
 print the host and dependencies with an IP address.
 
 Attached is the shell script that was edited from NagiosExchange:
 
 http://exchange.nagios.org/directory/Addons/Frontends-(GUIs-and-CLIs)/Linux-Interfaces/nagiosCfgVisualizer/details
  
 
 
 I have another that I changed that does just hosts and services as well. 
 All I did was delete the items I didn't want gathered from the original 
 script.
 
 The original author had no usage lines in the script, so you can either 
 edit it to include fulls paths, or just copy objects.cache to a working 
 directory and work from it there.
 
 # USAGE: You need to be in the same directory where a copy
 # of objects.cache resides.
 # cp /var/log/nagios/objects.cache .
 # sh /path/to/nagiosCfgVisualizer_Hosts.sh objects.cache
 
 
 Regards,
 Max
 
 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] large map

2009-08-27 Thread Simone Felici
Hello!

I would be interested too.
BTW I've tested the script and it generates my an image 32767px × 119px, also 
not easy readable, due 800hosts and 
1700services.

Thank's!

Simon

Max Hetrick ha scritto in data 26/08/2009 23.00:
 Assaf Flatto wrote:
 Hello Guys

 I have a silly question , and i know there must be a simple solution to it - 
 but it somehow eludes 
 me .

 I am trying to make the map of my nagios to be some what readable , i have 
 366 hosts and in the map 
 they are all clustered in to the center with out branching although i tried 
 providing parenting and 
 map coordinates .

 
 I recently found NagiosCfgVisualizer which is a script that builds a 
 .dot map based off of your configuration files. It then creates a .png 
 image which I just used to make a URL entry on the sidebar.
 
 I edited to script to exclude certain pieces of information, so if 
 you're interested, just let me know and I can share what I use. 
 Basically, I needed a way to have a basic network map available to my IT 
 department, and one that I could easily generate a new one when changes 
 were made.
 
 http://exchange.nagios.org/directory/Addons/Frontends-(GUIs-and-CLIs)/Linux-Interfaces/nagiosCfgVisualizer/details
 
 Regards,
 Max

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 SLA tool

2009-06-23 Thread Simone Felici
Sounds good :)
I'm looking a while for a SLA Reporting.
Is there a way to take a look to your version?

Many thank's

Simon

Ulf Karlsson ha scritto in data 22/06/2009 19.52:
 Hi Felipe,
 
 I have written a small Python script that uses pycurl to retrieve the
 Nagios availability web page, and then PyQuery to parse the HTML and
 retrieve the table with the availability report and put it into a
 custom HTML body and then smtplib to send an email. It was pretty
 straight forward, tell me if you're interested and perhaps I can
 prepare a version without passwords etc.
 
 /Ulf
 
 --
 Are you an open source citizen? Join us for the Open Source Bridge conference!
 Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
 Need another reason to go? 24-hour hacker lounge. Register today!
 http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
 ___
 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
 

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
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] Question about host checks

2008-12-03 Thread Simone Felici
Marc Powell ha scritto:
 On Nov 27, 2008, at 11:00 AM, Simone Felici wrote:
 
 Thank's Marc, but let me understood... Should Nagios perform host  
 checks only if needed?
 I.e. if a service goes critical or change state?
 Or are true both questions?
 
 In your configuration, nagios will do both active and on-demand  
 checks. Nagios will normally do on-demand checks just by specifying  
 'active_checks_enabled 1'. When you also specified 'check_interval 5',  
 you told nagios that it should perform regularly timed checks of the  
 host as well. If you don't want regularly checks, leave out the  
 check_interval directive entirely.
 
 I'm not sure where that's coming from since it wasn't in your original  
 posting of the host definition or template. Was it ever set that way  
 or currently set like that and left out of your original posting?
 
 --

good Morning Marc,

Found the solution.
The check_interval seems CANNOT be skipped (missed) into .cfg file or it will 
be set automatically.
Have no idea where it takes the default 5secs value.
Setting it to 0, active checks are still enabled and the value to 0 prevent 
to schedule regular checks.
On demand checks are done without problems.

Also problem solved!

Thank's anyway for pointing me to the right place!

Simon

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Question about host checks

2008-11-28 Thread Simone Felici
Marc Powell ha scritto:
 On Nov 27, 2008, at 11:00 AM, Simone Felici wrote:
 
 Thank's Marc, but let me understood... Should Nagios perform host  
 checks only if needed?
 I.e. if a service goes critical or change state?
 Or are true both questions?
 
 In your configuration, nagios will do both active and on-demand  
 checks. Nagios will normally do on-demand checks just by specifying  
 'active_checks_enabled 1'. When you also specified 'check_interval 5',  
 you told nagios that it should perform regularly timed checks of the  
 host as well. If you don't want regularly checks, leave out the  
 check_interval directive entirely.
 
 I'm not sure where that's coming from since it wasn't in your original  
 posting of the host definition or template. Was it ever set that way  
 or currently set like that and left out of your original posting?
 
 --
 Marc
 

In my first post I've pasted the configuration from hosts.cfg and 
hosts_templates.cfg.
It means from original configuration.
The second post I've pasted the conten of the status file. NOW I've NO IDEA 
where the check_interval directive is taken.
Do you have any idea?
Should I set it to x seconds to be shure che active check will be done 
exactly every x seconds (example 300)?
...expect, of course, on-demand checks.
Because I've no idea where nagios take the check_interval directive from the 
configuration. Maybe setting it to 0 does 
the trick? :)

Thank's

simon

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Question about host checks

2008-11-27 Thread Simone Felici
Marc Powell ha scritto:
 On Nov 26, 2008, at 1:54 AM, Simone Felici wrote:
 

 Please help, noone has an idea?
 Ah, my Nagios version (Nagios 3.0.3).
 Also why all my hosts are checked more or less every 4 seconds? :(
 Thank's!
 
 
 The information provided so far indicates that hosts will only be  
 checked on demand, as you expect. That means, probably, either the  
 information is incorrect or they're being checked on demand. Since the  
 normal interval for actions in nagios is measured in minutes, I'd lean  
 toward the on-demand side of things.
 
 Can you post the host definition from status.dat.
 Can you post relevant log entries for the host and any services on  
 that host near the host checks. You may need to increase your logging  
 options in nagios.cfg.
 Is the 4 second number in any way significant to your installation? Is  
 your time_interval less than 60?
 Debug mode is available to you to figure out what's going on. This is  
 almost certainly going to be your best source for resolution.
 

Good morning.
With time_interval do you mean interval_lenght?
I've set it to 1. In this way I've set all checks in seconds, because I need 
for certain services a retry interval of 
30seconds.

Here additional infos:


#  NAGIOS STATUS FILE
#
# THIS FILE IS AUTOMATICALLY GENERATED
# BY NAGIOS.  DO NOT MODIFY THIS FILE!


cut

hoststatus {
 host_name=MY-WINDOWS-EXAMPLE-SERVER
 modified_attributes=3
 check_command=check-host-alive
 check_period=24hx7
 notification_period=24hx7
 check_interval=5.00
 retry_interval=1.00
 event_handler=
 has_been_checked=1
 should_be_scheduled=1
 check_execution_time=0.016
 check_latency=12.595
 check_type=0
 current_state=0
 last_hard_state=0
 last_event_id=116739
 current_event_id=116740
 current_problem_id=0
 last_problem_id=51304
 plugin_output=PING OK - Packet loss = 0%, RTA = 0.65 ms
 long_plugin_output=
 performance_data=
 last_check=1227773285
 next_check=1227773291
 check_options=0
 current_attempt=1
 max_attempts=2
 current_event_id=116740
 last_event_id=116739
 state_type=1
 last_state_change=1227714561
 last_hard_state_change=1227714561
 last_time_up=1227773286
 last_time_down=1227714537
 last_time_unreachable=1215613491
 last_notification=0
 next_notification=0
 no_more_notifications=0
 current_notification_number=0
 current_notification_id=46804
 notifications_enabled=1
 problem_has_been_acknowledged=0
 acknowledgement_type=0
 active_checks_enabled=1
 passive_checks_enabled=0
 event_handler_enabled=0
 flap_detection_enabled=0
 failure_prediction_enabled=1
 process_performance_data=0
 obsess_over_host=0
 last_update=1227773300
 is_flapping=0
 percent_state_change=0.00
 scheduled_downtime_depth=0
 }

cut

Then I've enabled debugging (24) and here the result pasting only where I've 
found the example host.
I've written (..CUT..) to skip MB of lines not important, referring to other 
services/hosts (having of course the same 
problem).


(..CUT..)
[1227774166.211254] [008.0] [pid=25062] ** Timed Event ** Type: 12, Run Time: 
Thu Nov 27 09:22:38 2008
[1227774166.211266] [008.0] [pid=25062] ** Host Check Event == Host: 
'MY-WINDOWS-EXAMPLE-SERVER', Options: 0, 
Latency: 8.211000 sec
[1227774166.211283] [016.0] [pid=25062] Attempting to run scheduled check of 
host 'MY-WINDOWS-EXAMPLE-SERVER': check 
options=0, latency=8.211000
[1227774166.211296] [016.0] [pid=25062] ** Running async check of host 
'MY-WINDOWS-EXAMPLE-SERVER'...
[1227774166.211325] [016.0] [pid=25062] Checking host 
'MY-WINDOWS-EXAMPLE-SERVER'...
[1227774166.211434] [016.1] [pid=25062] Check result output will be written to 
'/tmp/checkNmYAPl' (fd=7)
[1227774166.229697] [008.1] [pid=25062] ** Event Check Loop
[1227774166.229755] [008.1] [pid=25062] Next High Priority Event Time: Thu Nov 
27 09:22:47 2008
[1227774166.229771] [008.1] [pid=25062] Next Low Priority Event Time:  Thu Nov 
27 09:22:38 2008
[1227774166.229781] [008.1] [pid=25062] Current/Max Service Checks: 0/80
[1227774166.229794] [008.1] [pid=25062] Running event...
[1227774166.229808] [008.0] [pid=25062] ** Timed Event ** Type: 12, Run Time: 
Thu Nov 27 09:22:38 2008
(..CUT..)
[1227774186.288210] [016.1] [pid=6021] Checking host 
'MY-WINDOWS-EXAMPLE-SERVER' for flapping...
(..CUT..)
[1227774186.433737] [016.1] [pid=6021] Checking service 'DISK-SPACE' on host 
'MY-WINDOWS-EXAMPLE-SERVER' for flapping...
[1227774186.433749] [016.1] [pid=6021] Service is not flapping (0.00% state 
change).
[1227774186.433894

Re: [Nagios-users] Question about host checks

2008-11-27 Thread Simone Felici
Marc Powell ha scritto:
 On Nov 27, 2008, at 2:36 AM, Simone Felici wrote:
 
 Good morning.
 With time_interval do you mean interval_lenght?
 
 I did, sorry about that.
 
 I've set it to 1. In this way I've set all checks in seconds,  
 because I need for certain services a retry interval of 30seconds.
 
 Good to know.
 
 Here additional infos:

 
 #  NAGIOS STATUS FILE
 #
 # THIS FILE IS AUTOMATICALLY GENERATED
 # BY NAGIOS.  DO NOT MODIFY THIS FILE!
 

 cut

 hoststatus {
host_name=MY-WINDOWS-EXAMPLE-SERVER
modified_attributes=3
check_command=check-host-alive
check_period=24hx7
notification_period=24hx7
check_interval=5.00
 
 Nagios is configured to check this host every 5 seconds (5 x  
 interval_length). If you meant this to be 5 minutes, the value should  
 be 300.
 
 -
 Marc

Thank's Marc, but let me understood... Should Nagios perform host checks only 
if needed?
I.e. if a service goes critical or change state?
Or are true both questions?

Simon

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Question about host checks

2008-11-26 Thread Simone Felici


Please help, noone has an idea?
Ah, my Nagios version (Nagios 3.0.3).
Also why all my hosts are checked more or less every 4 seconds? :(
Thank's!

simon

Simone Felici ha scritto:
 Hi to all!
 
 I'm using nagios for a long time and this is the first time I ask a 
 question... it means until today all is gone 
 perfectly, great product!
 A week ago I've installed 'ndoutils-1.4b7' to log into a MySQL server.
 After some days I've seen the table 'nagios_hostchecks' is groving up very 
 fast, its 3 times bigger than 
 'nagios_servicechecks' even if I've 688 hosts and 1346 services, also more 
 services than hosts.
 Analyzing the content of the 'nagios_hostchecks' table, I've seen It seems 
 Nagios is checking the host status VERY OFTEN.
 Also checking the nagios Queue and the Last Check Time of my hosts, the 
 date/time is updating every few seconds.
 Should not nagios check the host state only on demand when needed? It happens 
 on all my hosts.
 I paste an example of one host configuration:
 
 
 host...
 
 define host {
  host_name   cut_my_host
  alias   Windows 2000 Server
  address cut_my_ip
  use host_alarm_A
  parents cut_my_sw_parent
  contact_groups  noc-group,tech24h-group
 }
 
 
 ...template...
 
 define host {
  namehost_alarm_A
  process_perf_data   0
  retain_status_information   1
  flap_detection_enabled  0
  retain_nonstatus_information1
  active_checks_enabled   1
  passive_checks_enabled  0
  check_period24hx7
  obsess_over_host0
  check_freshness 0
  check_command   check-host-alive
  max_check_attempts  2
  event_handler_enabled   0
  notifications_enabled   1
  notification_interval   3600
  notification_period 24hx7
  notification_optionsd,u,r
  register0
 }
 
 ...check
 
 define command {
  command_namecheck-host-alive
  command_line
 /usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 
 5000.0,100% -p 1
 }
 
 
 Any suggestion?
 
 Thank's!
 
 Simon
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Question about host checks

2008-11-25 Thread Simone Felici
Hi to all!

I'm using nagios for a long time and this is the first time I ask a question... 
it means until today all is gone 
perfectly, great product!
A week ago I've installed 'ndoutils-1.4b7' to log into a MySQL server.
After some days I've seen the table 'nagios_hostchecks' is groving up very 
fast, its 3 times bigger than 
'nagios_servicechecks' even if I've 688 hosts and 1346 services, also more 
services than hosts.
Analyzing the content of the 'nagios_hostchecks' table, I've seen It seems 
Nagios is checking the host status VERY OFTEN.
Also checking the nagios Queue and the Last Check Time of my hosts, the 
date/time is updating every few seconds.
Should not nagios check the host state only on demand when needed? It happens 
on all my hosts.
I paste an example of one host configuration:


host...

define host {
 host_name   cut_my_host
 alias   Windows 2000 Server
 address cut_my_ip
 use host_alarm_A
 parents cut_my_sw_parent
 contact_groups  noc-group,tech24h-group
}


...template...

define host {
 namehost_alarm_A
 process_perf_data   0
 retain_status_information   1
 flap_detection_enabled  0
 retain_nonstatus_information1
 active_checks_enabled   1
 passive_checks_enabled  0
 check_period24hx7
 obsess_over_host0
 check_freshness 0
 check_command   check-host-alive
 max_check_attempts  2
 event_handler_enabled   0
 notifications_enabled   1
 notification_interval   3600
 notification_period 24hx7
 notification_optionsd,u,r
 register0
}

...check

define command {
 command_namecheck-host-alive
 command_line
/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 
5000.0,100% -p 1
}


Any suggestion?

Thank's!

Simon







-- 
Simone FeliciE-Mail: [EMAIL PROTECTED]
Divisione TecnicaTel:0461 030 111
Alpikom S.p.A.   Fax:0461 030 112
v.Fersina, 23 - 38100 Trento URL:http://www.alpikom.it

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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