Re: [Nagios-users] Return code of 127 is out of bounds - plugin may be missing error for check_memory.py

2013-04-15 Thread Giorgio Zarrelli
Change the ownership of file to nagios user and chmod +x the file. Please, make 
a ls - lah inside the plugin directory. 

nag ios  ha scritto:

>--
>Precog is a next-generation analytics platform capable of advanced
>analytics on semi-structured data. The platform includes APIs for building
>apps and a phenomenal toolset for data science. Developers can use
>our toolset for easy data analysis & visualization. Get a free account!
>http://www2.precog.com/precogplatform/slashdotnewsletter
>___
>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--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_mem.pl returns NRPE: Unable to read output

2012-12-22 Thread Giorgio Zarrelli
Just to check if it's a problem related to per missioni, chmod 777 the plugin

Scott Anderson  ha scritto:

>--
>LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>Remotely access PCs and mobile devices and provide instant support
>Improve your efficiency, and focus on delivering more value-add services
>Discover what IT Professionals Know. Rescue delivers
>http://p.sf.net/sfu/logmein_12329d2d
>___
>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--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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


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



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




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


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


Re: [Nagios-users] How to customize nagios alerts?

2012-09-14 Thread Giorgio Zarrelli
Have a look at The notification scripts and change them.

Ciao,

Giorgio

Il giorno 14/set/2012, alle ore 15:52, Aravinth Anto  ha 
scritto:

> Hello all,
> 
> I wish to customize my email alerts that is sent by Nagios. Say for example, 
> I want to send the email along with error trace of Tomcat which caused the 
> exception.
> 
> 
> Are there any ways to do it?
> 
> 
> Thanks in advance.
> 
> 
> --
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem with check_ping

2012-09-13 Thread Giorgio Zarrelli
Hi,Eheheheh we are not Support, just peoplesharing the same interest.To help you I need to read both the commandand the service definition.Please, copy them here.Ciao,GiorgioIl giorno 12/set/2012, alle ore 10:13, "laurent col"  ha scritto:--Live Security Virtual ConferenceExclusive 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 listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null<>--
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] R: R: R: configure receiving snmp traps

2012-09-12 Thread Giorgio Zarrelli
Use The "hosts" file for static name - ip mappings

Ciao,

Giorgio

Il giorno 12/set/2012, alle ore 14:34, "Marco Borsani"  ha 
scritto:

> Hello
>  
> I have already change “dns_enable” (is set to 0) and “strip_domain” (I test 
> all the possibilities).
>  
> The problem is that in nagios, all the hosts are known as : 
> 
> We use this annotation since 2004 !
>  
> Any idea usefull to solve the problem?
> Perhaps any OPTION in the snmptrap command (from client) ?
>  
> Marco
>  
> Da: Hölzel, Arnold [mailto:arnold.hol...@kpn.com] 
> Inviato: mercoledì 12 settembre 2012 11:47
> A: Nagios Users List
> Oggetto: Re: [Nagios-users] R: R: configure receiving snmp traps
>  
> Hello Marco,
>  
> You can check your snmptt.ini file (/etc/snmp/snmptt.ini) there you can 
> configure SNMPTT to strip the domain names. See the “dns_enable”, 
> “strip_domain” and the “stip_domain_list” options, maybe that is the problem?
>  
> -  Our systems send their SNMP messages to our monitoring server
> -  the monitoring server does a DNS lookup, strips the domain name 
> and sends the data to a “submit_trap” script
> -  the “submit_trap” script converts the hostname to uppercase and 
> send the data to Nagios.
>  
> Hope it helps
>  
> Met vriendelijke groet/with kind regards,
> Arnold Hölzel
>  
> From: Marco Borsani [mailto:m.bors...@it.net] 
> Sent: woensdag 12 september 2012 11:20
> To: 'Nagios Users List'
> Subject: [Nagios-users] R: R: configure receiving snmp traps
>  
> Hi
> Yes, I supposed this could be the problem.
>  
> 1)  I am sending trap from a client as:
> snmptrap -v 1 -c public   1.2.3.4  configured on Nagios> 3 0 ''
>  
> 2)  Snmptrapd on Nagios receive the trap:
> 2012-09-12 11:08:23  [CLIENT IP] (via 
> UDP: [CLIENT IP]:52203->[NAGIOS IP]) TRAP, SNMP v1, community public  
> iso.2.3.4 Link Up Trap (0) Uptime: 36 days, 19:43:55.96
>  
> 3)  A script like “submit_trap” pass it to Nagios
>  
> 4)  Nagios log file:
> [1347440926] Warning:  Passive check result was received for service 
> 'TRAP_service' on host , but the host could not be 
> found!
>  
> In my configuration is not a “simple” problem of uppercase/lowercase, but I 
> need to pass exactly the hostnames I need … Before sending the trap or change 
> them as soon as the trap arrived??
>  
>  
> Any idea?
> Marco
>  
>  
>  
> Da: Hölzel, Arnold [mailto:arnold.hol...@kpn.com] 
> Inviato: martedì 11 settembre 2012 17:35
> A: Nagios Users List
> Oggetto: Re: [Nagios-users] R: configure receiving snmp traps
>  
> Hello Marco,
>  
> What is the case (uppercase or lowercase) of the system names in Nagios? I 
> had the same problem and that was caused by the fact that all our systems in 
> Nagios are in uppercase and snmptt sends them in lowercase to Nagios. Because 
> Nagios is case sensitive there is a mismatch and you will not see anything in 
> Nagios. I had to manually change something in the script to make everything 
> uppercase (I did not wanted to reconfigure every host in Nagios).
> I am not able to look up and send the exact things I changed right now but if 
> needed I can look it up tomorrow.
>  
> Met vriendelijke groet/with kind regards,
> Arnold Hölzel
>  
> From: Marco Borsani [mailto:m.bors...@it.net] 
> Sent: dinsdag 11 september 2012 17:01
> To: 'Nagios Users List'
> Subject: [Nagios-users] R: configure receiving snmp traps
>  
> Hi Mike
>  
> Actually , I have :
> -   installed snmptt (in daemon mode)
> -  Configured a generic passive service in nagios
> -  Run a snmptrap command from a client to test the configuration
>  
>  
> What’s happen ?
> 1)  The TRAP has be sent from the client (HOST B)
> 2)  The TRAP has be received from Nagios server (HOST A)
> 3)  Nothing arrived on Nagios
>  
> When I run manually submit_trap command,  Nagios show me the message on the 
> web gui
>  
> I loose something between the TRAP received and Nagios service….what could be 
> ?
>  
> Moreover in the syslog a read many and messages like:  snmptt-sys[501]: 
> Unable to delete trap file #snmptt-trap-1347373658632581 from spool dir
>  
> Regards
> Marco
>  
> Da: Mike Lindsey [mailto:mike-nag...@5dninja.net] 
> Inviato: venerdì 7 settembre 2012 22:41
> A: Nagios Users List
> Oggetto: Re: [Nagios-users] configure receiving snmp traps
>  
> 
> You'll need to ensure that snmptrapd is enabled on your Nagios poller, and 
> the typical route from there to get snmp traps submitted into Nagios is to 
> install SNMPTT.
> 
> http://snmptt.sourceforge.net/
> 
> I recommend reading the docs for these, but, a very basic snmptrapd.conf 
> would be:
> ## snmptrapd.conf
> snmpTrapdAddr udp:localhost,udp:YOUR_IP_HERE,tcp:YOUR_IP_HERE
> 
> authCommunity log,execute public
> logOption f/var/log/snmptrapd.log
> traphandle default /usr/sbin/snmptt -i /usr/local/share/snmp/snmptt.ini
> ##
> 
> And then in the TrapFiles section of snmptt.ini you might have:
> ##
> [TrapFiles]
> snmptt_conf_files

Re: [Nagios-users] Error: Service check command

2012-06-14 Thread Giorgio Zarrelli
Right,
Please provide the Service definition

Ciao,

Giorgio

Il giorno 12/giu/2012, alle ore 15:18, Claudio Kuenzler 
 ha scritto:

> 
> On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado  wrote:
> Hi.
> 
> I'm trying to add the check_ftp command for one of my hosts. But i got this 
> error:
> 
> Error: Service check command 'check_ftp -H ftpserver' specified in service 
> 'FTP' for host ' ftpserver' not defined anywhere!
> Checked 89 services.
> 
> 
> In my commands.cfg I have:
> 
> # 'check_ftp' command definition
> define command{
> command_namecheck_ftp
> command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
> }
> 
> 
> What i'm missing?
> 
> Show the service definition which fails.
> The command definition looks alright.
>  
> 
> Tks
> 
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
> 
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] High Service Check Latency

2012-06-12 Thread Giorgio Zarrelli
Hi,

check the i/o on disk. If you graph lots of checks or simply write the 
status.dat on slow disk, everything gets slow.

Io you find the disk being too taxed, try moving logs and status.dat on ramdisk.

Giorgio




--
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] Large scale installation

2012-06-11 Thread Giorgio Zarrelli
Hi,

You are right., open files IS a major concern I forgot to mention. A quick and 
dirty method to solve it is to raise the number of open files putting ulimit 
command folllowed by a high value in The Nagios startup script.

ulimit -a will tell The current system wirde ulimit value.

Lucky you, ssd disks are a good improvement!

Ciao,

Giorgio

Il giorno 12/giu/2012, alle ore 03:59, Ian Orszaczki  ha 
scritto:

> 
> Great advice.  Funny you should mention status.dat in ramdisk as we have hit 
> a hiccup this morning which has meant we have lost comments and downtimes.
> 
> We had moved status.dat to a ramdisk as recommended for large installations 
> (we monitoring 3390 hosts with 18748 services from one server, latencies 
> below 2 secs and load under 2) but after running out of open files the 
> status.dat was zero'd.
> 
> 
> As an extreme hack I ran a quick script across the output of -
> # grep EXTERNAL nagios.log | grep ACK | cut -c57- > /tmp/acks.txt
> 
> Script -
> 
> 
> #!/bin/sh
> 
> 
> # This is a sample shell script showing how you can submit the 
> ACKNOWLEDGE_HOST_PROBLEM command
> 
> 
> # to Nagios.  Adjust variables to fit your environment as necessary.
> 
> 
> now=`date +%s`
> 
> 
> commandfile='/app/nagios/var/rw/nagios.cmd'
> 
> 
> cat /tmp/acks.txt | while read line
> 
> 
> do
> 
> 
> echo $line
> 
> 
> /usr/bin/printf "[%lu] $line\n" $now > $commandfile
> 
> 
> done
> 
> Therefore I am going to move status.dat back onto the localdisk (luckily SSD 
> drives) so that we can at least restore from a recent backup. I will probably 
> also create valid copy, along with retention.dat, every hour to enable quick 
> recovery. And yes, I have increased the process and open files limits for the 
> nagios user.
> 
> Am I missing anything obvious >
> 
> 
> On Tue, Jun 12, 2012 at 5:40 AM, Giorgio Zarrelli  wrote:
> Hi,
> 
> I suggest to review your installation. Try with the large installation
> tweaks http://nagios.sourceforge.net/docs/3_0/largeinstalltweaks.html.
> 
> Then, check whether you need all your checks at 5 mins or you can move
> some of them to 10 mins pace.
> 
> Then, review your check plugins: Perl plugins eat more memory and CPU
> cycles then C compiled checks. If they support EPN
> http://nagios.sourceforge.net/docs/3_0/embeddedperl.html, use it, it makes
> your plugin faster and lighter.
> 
> Then, check your checks. Some checks return data slower then others. Let's
> say, SNMP checks are not lightning fast.
> 
> Then, check your graphs. Graphing perfdata takes CPU cycles and uses
> memory. Do you need all your graphs?
> 
> Then, get rid of NDOUtils. They are chocking all the way, not efficient,
> clumsy, old and heavy. If you want to store your data in MySQL, use Merlin
> instead.
> 
> Anyway, did you tune your MySQL? Is it causing too much I/O? Is it
> munching too much RAM or CPU cycles?
> 
> Did you tune your Apache or http server? Does it cope with your needs? Is
> it munching too much RAM or CPU cycles?
> 
> If you want live infos about your hosts and services, let's say to use
> with Navis, grab MKlive: it's blazing fast and gives you access to the
> core Nagios process.
> 
> Are you using a virtualized environment? If so, remember that I/O layer in
> virtualized environments has a poor performance, use fast and real disks
> and your I/O will drop dramatically.
> 
> Try to move status.dat to /dev/shm. The latter is a ram disk ready to use
> and writing in ram is always faster then writing on disk.
> 
> Avoid logging too much, it increases I/O and takes CPU and RAM.
> 
> What iotop and iostat are telling you?
> 
> What do you see in top or htop?
> 
> If you can or wish, compile all from sources, it will go faster on your
> system.
> 
> You can use passive checks with NSCA or NRDP to reduce load, even though I
> do not like them a lot.
> 
> These are just few ideas that came to my mind.
> 
> 
> Let's talk about sharing load.
> 
> You can use different methods:
> 
> Merlin
> (http://www.op5.org/community/plugin-inventory/op5-projects/merlin): gives
> you loadbalancing and redundancy. I use it for Ninja, never used for load
> balancing and redundancy.
> 
> DNX (http://dnx.sourceforge.net/): Something new, it's gaining momentum,
> good to offload the checks. Worth to give a try.
> 
> Mod_gearman (http://labs.consol.de/lang/de/nagios/mod-gearman/): Love at
> first site :-) Easy, powerful, load balancing and fault tolerant. Compile
> gearmand with memcached support and all the result checks will go directly
> to ram, avoiding I/O 

Re: [Nagios-users] Large scale installation

2012-06-11 Thread Giorgio Zarrelli
Hi,

I suggest to review your installation. Try with the large installation
tweaks http://nagios.sourceforge.net/docs/3_0/largeinstalltweaks.html.

Then, check whether you need all your checks at 5 mins or you can move
some of them to 10 mins pace.

Then, review your check plugins: Perl plugins eat more memory and CPU
cycles then C compiled checks. If they support EPN
http://nagios.sourceforge.net/docs/3_0/embeddedperl.html, use it, it makes
your plugin faster and lighter.

Then, check your checks. Some checks return data slower then others. Let's
say, SNMP checks are not lightning fast.

Then, check your graphs. Graphing perfdata takes CPU cycles and uses
memory. Do you need all your graphs?

Then, get rid of NDOUtils. They are chocking all the way, not efficient,
clumsy, old and heavy. If you want to store your data in MySQL, use Merlin
instead.

Anyway, did you tune your MySQL? Is it causing too much I/O? Is it
munching too much RAM or CPU cycles?

Did you tune your Apache or http server? Does it cope with your needs? Is
it munching too much RAM or CPU cycles?

If you want live infos about your hosts and services, let's say to use
with Navis, grab MKlive: it's blazing fast and gives you access to the
core Nagios process.

Are you using a virtualized environment? If so, remember that I/O layer in
virtualized environments has a poor performance, use fast and real disks
and your I/O will drop dramatically.

Try to move status.dat to /dev/shm. The latter is a ram disk ready to use
and writing in ram is always faster then writing on disk.

Avoid logging too much, it increases I/O and takes CPU and RAM.

What iotop and iostat are telling you?

What do you see in top or htop?

If you can or wish, compile all from sources, it will go faster on your
system.

You can use passive checks with NSCA or NRDP to reduce load, even though I
do not like them a lot.

These are just few ideas that came to my mind.


Let's talk about sharing load.

You can use different methods:

Merlin
(http://www.op5.org/community/plugin-inventory/op5-projects/merlin): gives
you loadbalancing and redundancy. I use it for Ninja, never used for load
balancing and redundancy.

DNX (http://dnx.sourceforge.net/): Something new, it's gaining momentum,
good to offload the checks. Worth to give a try.

Mod_gearman (http://labs.consol.de/lang/de/nagios/mod-gearman/): Love at
first site :-) Easy, powerful, load balancing and fault tolerant. Compile
gearmand with memcached support and all the result checks will go directly
to ram, avoiding I/O on disk. It's really simple to setup, if one of the
workers go down, the others will share its work. Be careful: security is a
problem, there is not a good auth system, but using a VPN will solve the
problem. Efficient, I use a virtual machine with 2 cores and 2 gb of ram
to make about 5K checks. And the load is not a concern. You need more
horse power? Add a worker. You have some checks timing out due to poor
connections to the targets? Put a worker close to the target, but be
careful, the timing, let's say the rta of a ping, will be from the worker
perspective.

Well, hope it helps.










--
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] Large scale installation

2012-06-11 Thread Giorgio Zarrelli
Hi,

there are some key factors involved in high delays:

iowait


Ciao,

Giorgio

Il giorno 10/giu/2012, alle ore 14:38, Andreas Brandino  ha 
scritto:

> Hi all,
> 
> my nagios installation  has currently 400+ hosts and around 1400 checks.
> As the server load grows, delays are appearing.
> 
> Is any way to move a part of active checks to a second nagios server?
> And in that case how will these two nagios servers exchange data?
> If this is feasible can you point me to some documentation?
> 
> Thank you
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] send passive result without obsess over service

2012-04-19 Thread Giorgio Zarrelli
Use nrdp or nsca.

Ciao,

Giorgio

Il giorno 19/apr/2012, alle ore 14:44, "Marco Borsani"  ha 
scritto:

> Hi
> I need to send few service results from two Nagios servers, but not for all 
> the services configured on the main server.
>  
> When I sent all the service results I used obsess over service, but now ?
> How can I do ?
>  
> Regards
>  
> 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.
>  
> --
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> ___
> 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
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2___
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] Information about check_mysql_query plugin

2012-04-16 Thread Giorgio Zarrelli
Well Giovanni,

If you don't know so much about Nagios, this is an hard plugin to start with. 
Start configuring freetds.

Ciao,

Giorgio

Il giorno 16/apr/2012, alle ore 18:58, "Giovanni.bucci" 
 ha scritto:

> Goodmorning,
> I need some informatio to use the check_mysql_query Lunux plugin.
> 
> 1) First of all I need to download and install this plugin in a Linux server 
> where Nagios is runnung. 
> 
> 2) Some detail regarding how to install this plugin
> 
> 3) To configure the environment to define a new service.
> 
> 4) How to restart the daemons without damage the services/connections already 
> present.
> 
> More exactly I find this plugin useful for my needs because I need to connect 
> to Oracle and run the simple query select count(*). The numeric value 
> returned need to be check for alerrt or ok for this service.
> 
> Any help or suggestion wil be well appreciated.
> 
> Thanks in advance for your kind cooperation and support.
> 
> Regards,
> 
> Giovanni
> 
> Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP 
> autenticato? GRATIS solo con Email.it 
> 
> Sponsor:
> Conto Corrente Arancio. Carta di credito e prelievi gratis. Scopri i vantaggi!
> Clicca qui 
> --
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> ___
> 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
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
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] use_large_installation_tweaks

2012-04-05 Thread Giorgio Zarrelli
Hi,

that's right. My words were just an advice.

Ciao,

Giorgio

Il giorno 05/apr/2012, alle ore 16:42, Sven Nierlein  
ha scritto:

> On 05.04.2012 09:43, Giorgio Zarrelli wrote:
>> I usa gearman as well, nice stuff. But it lacks of authentication so it's 
>> fairly unsecure.
> 
> 1. It's up to you to use ssh or iptables or whatever solution you prefer to 
> make it secure.
> 2. Mod-Gearman uses encrypted communication, if thats not enough, see 1.
> 
>  Sven
> 
> --
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second 
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-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

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-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] use_large_installation_tweaks

2012-04-05 Thread Giorgio Zarrelli
I usa gearman as well, nice stuff. But it lacks of authentication so it's 
fairly unsecure.

You can use mklivestatus as a broker to notify nagios status check to 3rd part 
applications.

Ciao,

Giorgio

Il giorno 05/apr/2012, alle ore 08:53, MAD  ha scritto:

> On 04/04/2012 10:47 PM, Daniel Wittenberg wrote:
>> We did the same, too much over from NDO to justify any benefit.
>> 
>> Dan
>> 
>> -Original Message-
>> From: C. Bensend [mailto:be...@bennyvision.com]
>> Sent: Wednesday, April 04, 2012 10:18 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: Re: [Nagios-users] use_large_installation_tweaks
>> 
>> 
>>> Does anyone has configured it ?
>>> 
>>> Is it really a good way to follow to reduce memory usage ?
>> For me, it was a good way to reduce memory and CPU, and it helped
>> with check latencies.
>> 
>> Although, the absolute best way to reduce check latencies for me
>> has been to dump NDOUtils.  Good lord, that was awful, had to restart
>> Nagios three times a week.
>> 
>> Benny
>> 
>> 
> We use the Gearman module 
> (http://labs.consol.de/lang/en/nagios/mod-gearman/) to distribute the 
> load over several servers, and we still use NDOUtils for now but we had 
> to tune the MySQL database and we stopped dumping some of the data that 
> are useless to us.
> 
> Marc-André
> 
> --
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second 
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-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

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-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] use_large_installation_tweaks

2012-04-04 Thread Giorgio Zarrelli
I do not Like it. There are better strategies to reduce load. Try nrdp or nsca 
to distribute the load.

Ciao,

Giorgio

Il giorno 04/apr/2012, alle ore 16:46, "Marco Borsani"  ha 
scritto:

> Hi all
>  
> Does anyone has configured it ?
> Is it really a good way to follow to reduce memory usage ?
>  
> Regards
>  
> 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.
>  
> --
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second 
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-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
--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-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] use_large_installation_tweaks

2012-04-04 Thread Giorgio Zarrelli
Ndoutils have a low performance, they shoukd be trashed.

Ciao,

Giorgio

Il giorno 04/apr/2012, alle ore 17:18, "C. Bensend"  ha 
scritto:

> 
>> Does anyone has configured it ?
>> 
>> Is it really a good way to follow to reduce memory usage ?
> 
> For me, it was a good way to reduce memory and CPU, and it helped
> with check latencies.
> 
> Although, the absolute best way to reduce check latencies for me
> has been to dump NDOUtils.  Good lord, that was awful, had to restart
> Nagios three times a week.
> 
> Benny
> 
> 
> -- 
> "The problem with quotes on the internet is that it's very hard to
> verify their authenticity."   -- Abraham Lincoln
> 
> 
> 
> --
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second 
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-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

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-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] Permissions problem

2012-04-01 Thread Giorgio Zarrelli
Hi,

as user root you can su to any other user without being requested for any
passwords.

Anyway, if the nagios user has no valid shells in /etc/passwd, you won't
be able to su to it even though you are root.

Check the /etc/passwd, it's format is:


user:1020:1025:,,,:/home/user:/bin/bash

Look for user nagios and look and check for the last field, if it's
anything else thane /bin/bash or /bin/sh, change to one of these values.

Then, try to su to nagios again.

Giorgio



> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi, all.
>
> I've just installed Nagios 3.2.1-2 on GNU/Linux Debian Squeeze 6.0.4 &
> it's running fine but I have a permissions problem when trying to
> authenticate as the `nagios` user in order in the first instance to read
> the docs on the web interface (I get a 403).
>
> I've tried su'ing to root then su'ing to nagios but no luck as I've no
> idea what nagio's password is (I set the nagiosadmin password during
> installation & that works fine for the web interface but for nothing
> else).
>
> The only thing I can think of is chown'ing nagios's group to root but am
> wary of the consequences.
>
> Any help appreciated.
>
> Cheers,
>
>   Phil...
>
> - --
> But masters, remember that I am an ass.
> Though it be not written down,
> yet forget not that I am an ass.
>
>   Wm. Shakespeare - Much Ado About Nothing
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJPeCtoAAoJEKpMeDHWT5ADhy0IALAYm4/lX5wLTxhVr7O6WQdk
> m25suWLCg/0+D5zGpO6x1dqL9yTqJrVSDtfbN7yeznLi9GAv/fRr1xo7ihP48Je9
> eGfckD72pGgALos0epM4Qr2brPU3pyoZTawpg1GUnCmjR7chROGJujKsMWIEzOPZ
> jRKwi61Etl0qVloanX/4ExzRQ9yQ3udi2T/Rh2c1fRtB6QjL3qI6OZZ7aSw6/bKI
> uyrCSsMar2D3OzqXZRhLpMmBhhfVgRBKpNdGK/vJSBVel93R/b6BDek0L52Q7ozu
> 1Uc2HkZgdkfTFTj8do7z8VpeRNZwnzl0rohalaZTqqa3CPIsZkJFLjnAimHkzDU=
> =Hn9p
> -END PGP SIGNATURE-
>
> --
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
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] disabling e-mail notifications for nagiosadmin account

2011-12-05 Thread Giorgio Zarrelli
Leave the contact, remove the email address

Ciao,

Giorgio

Il giorno 05/dic/2011, alle ore 21:51, "Paul M. Dubuc"  ha 
scritto:

> Kaplan, Andrew H. wrote:
>> Hi there --
>> 
>> We are running Nagios 3.3.1, and have a two contacts set up for the e-mail
>> notifications. One of the contacts
>> is the nagiosadmin user. This is the user account that was first setup during
>> the initial installation of the application.
>> 
>> When the account was set up it was configured with the e-mail address of one
>> of our network administrators.
>> 
>> A second account was set up that was based on the administrator's login
>> account along with his e-mail address.
>> When notifications are sent out, he gets two notifications for each event due
>> to both contacts having the same
>> e-mail address.
>> 
>> We want to prevent the e-mail notifications being sent to the nagiosadmin
>> account with the administrator getting
>> only one notification per event as the intended result. One thought was to 
>> set
>> up a dummy account on the Nagios
>> server as a solution, and another idea was to set up a flag in the
>> contacts.cfg file, but we are not sure what the
>> would be the correct syntax for the latter.
>> 
>> What would be the best solution here?
>> 
>> Thanks.
> 
> nagiosadmin doesn't need to be a notification contact.  You can remove it 
> from 
> any contact lists in your contacts.cfg.   If you want that user to still be 
> able to see everything and run all commands from the Nagios display you can 
> put it in the "authorized_for_*" lists in your cgi.cfg if its not already 
> there.
> 
> Paul Dubuc
> 
> --
> All the data continuously generated in your IT infrastructure 
> contains a definitive record of customers, 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-novd2d
> ___
> 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 the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
___
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: nagiosgraf install prereq

2011-12-02 Thread Giorgio Zarrelli
perl -MCPAN -e shell

Then at The prompt:

install Time::HiRes


Ciao,

Giorgio

Il giorno 02/dic/2011, alle ore 10:19, "Marco Borsani"  ha 
scritto:

> Well
> 
> perl -MCPAN -e 'install CGI' --> work correctly
> 
> perl -MCPAN -e 'install Time::HiRes' --> give me following error message:
> Can't locate object method "install" via package "Time" at -e line 1.
> 
> Any idea?
> Marco
> 
> -Messaggio originale-
> Da: Giorgio Zarrelli [mailto:zarre...@linux.it] 
> Inviato: venerdì 2 dicembre 2011 09:21
> A: Nagios Users List
> Oggetto: Re: [Nagios-users] nagiosgraf install prereq
> 
> Hi,
> 
> in console, as root, execute the following commands:
> 
> perl -MCPAN -e 'install CGI'
> 
> perl -MCPAN -e 'install Time::HiRes'
> 
> 
> 
> 
> 
>>  CGI... ***FAIL***
>> 
>> 
>>  Time::HiRes... ***FAIL***
>> 
>> checking optional PERL modules
> 
> 
> 
> 
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, 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-novd2d
> ___
> 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 the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
___
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] nagiosgraf install prereq

2011-12-02 Thread Giorgio Zarrelli
Hi,

in console, as root, execute the following commands:

perl -MCPAN -e 'install CGI'

perl -MCPAN -e 'install Time::HiRes'





>   CGI... ***FAIL***
>
>
>   Time::HiRes... ***FAIL***
>
> checking optional PERL modules



--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
___
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: importing files inside NagiosQL

2011-11-21 Thread Giorgio Zarrelli
Hi,

drop the database, then recreate it using the file

nagiosQL_v31_db_mysql.sql

you find in the install/sql directory.


Giorgio



> Well
>
> How can I purge the DB ? I performed a "Delete config files" .. is it
> enough
> ? I'm afraid not ...
>
>
> -Messaggio originale-
> Da: Giorgio Zarrelli [mailto:zarre...@linux.it]
> Inviato: lunedì 21 novembre 2011 14:17
> A: Nagios Users List
> Oggetto: Re: [Nagios-users] importing files inside NagiosQL
>
> Hi,
>
> maybe some remnants from previous import tries? Purge MySQL db and try a
> new
> import, following the suggested (on import page) order of file processing.
>
> Giorgio
>
>
> 
>> Hi all
>>
>>
>>
>> I am testing NagiosQL and try to import old configuration files inside
>> its DB.
>>
>>
>>
>> No warnings/errors without NagiosQL, but when I import the data inside
>> the DB I see strange situations:
>>
>> 1)  ALL hosts/services keep only the first contact-groups associated
>> (usually are three or six)
>>
>> 2)  Appear some inactive contacts (seven contacts) similar at
>> existing
>> other , that are not anywhere in the original files.
>>
>> 3)  Appear some inactive contact-groups (five contact-group) similar
>> at
>> existing other , that are not anywhere in the original files.
>>
>> 4)  Appear some inactive hosts (ten hosts) similar at existing other
>> ,
>> that are not anywhere in the original files.
>>
>> 5)  Appear some inactive contacts (twenty services) similar at
>> existing
>> other , that are not anywhere in the original files.
>>
>>
>>
>> Any idea ?
>>
>> Regards
>>
>>
>>
>> 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 …
>>
>>
>>
>> --
>>  All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, 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-novd2d_
>> __
>> 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 the data continuously generated in your IT infrastructure contains a
> definitive record of customers, 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-novd2d
> ___
> 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 the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
___
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] importing files inside NagiosQL

2011-11-21 Thread Giorgio Zarrelli
Hi,

maybe some remnants from previous import tries? Purge MySQL db and try a
new import, following the suggested (on import page) order of file
processing.

Giorgio



> Hi all
>
>
>
> I am testing NagiosQL and try to import old configuration files inside its
> DB.
>
>
>
> No warnings/errors without NagiosQL, but when I import the data inside the
> DB I see strange situations:
>
> 1)  ALL hosts/services keep only the first contact-groups associated
> (usually are three or six)
>
> 2)  Appear some inactive contacts (seven contacts) similar at existing
> other , that are not anywhere in the original files.
>
> 3)  Appear some inactive contact-groups (five contact-group) similar
> at
> existing other , that are not anywhere in the original files.
>
> 4)  Appear some inactive hosts (ten hosts) similar at existing other ,
> that are not anywhere in the original files.
>
> 5)  Appear some inactive contacts (twenty services) similar at
> existing
> other , that are not anywhere in the original files.
>
>
>
> Any idea ?
>
> Regards
>
>
>
> 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 …
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, 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-novd2d___
> 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 the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
___
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] I: R: R: configuration tool

2011-11-17 Thread Giorgio Zarrelli
So, you are not Connecting as root from nagiosql

Please paste here The nagiosql install screenshot and The result of

use mysql ;

Select user,host,password from user;

Ciao,

Giorgio

Il giorno 17/nov/2011, alle ore 16:45, "Marco Borsani"  ha 
scritto:

> Nothing happen, I still have same problem.
> 
> Marco
> 
> -Messaggio originale-----
> Da: Giorgio Zarrelli [mailto:zarre...@linux.it]
> Inviato: giovedì 17 novembre 2011 14:39
> A: Marco Borsani
> Cc: 'Giorgio Zarrelli'; 'Nagios Users List'
> Oggetto: Re: R: R: [Nagios-users] configuration tool
> 
> Hi,
> 
>> MySQL> grant all on mysql.* to root@’' identified 
>> MySQL> by
>> 'password';
> 
> Try
> 
> MySQL> grant all on *.* to root@% identified by 'password';
> 
> It will allow connection as root from ANY host/hostname and will give ALL 
> privileges on ALL databases.
> 
> As I told before: REMOVE this user as soon as you complete NagioSQL 
> installation.
> 
> 
> --
> All the data continuously generated in your IT infrastructure 
> contains a definitive record of customers, 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-novd2d
> ___
> 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 the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
___
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: R: configuration tool

2011-11-17 Thread Giorgio Zarrelli
Hi,

> MySQL> grant all on mysql.* to root@’' identified by
> 'password';

Try

MySQL> grant all on *.* to root@% identified by 'password';

It will allow connection as root from ANY host/hostname and will give ALL
privileges on ALL databases.

As I told before: REMOVE this user as soon as you complete NagioSQL
installation.


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
___
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: configuration tool

2011-11-17 Thread Giorgio Zarrelli
It's just a MySQL right access problem. Please, describe what you are doing, 
step by step, so we can debug and help  you.

As a first hint I suggest you to create on mysql db a user 
''root'@'yournagiosqlwebserverip' Würth a GRANT ALL ON *.*  

Then on mysql server issue a 'flush privileges'

Then, ho on with nagiosql installation and at the end remote from mysql server 
the root'@'yournagiosqlwebserverip' and flush again the privileges.

Ciao,

Giorgio

Il giorno 17/nov/2011, alle ore 12:21, "Marco Borsani"  ha 
scritto:

> Now , web pages are ok.
>  
> Have anybody  installed nagiosql and MySQL in different hosts ?
>  
> I think to install nagiosql in the same server than Nagios and keeping MySQL 
> DB in the other … but I have some grant problem (“Access denied for user 
> root@ip-address” during the creation of NagiosQL MySQL user).
>  
> Marco
>  
> Da: Giorgio Zarrelli [mailto:zarre...@linux.it] 
> Inviato: martedì 15 novembre 2011 11:43
> A: Nagios Users List
> Cc: NAGIOS
> Oggetto: Re: [Nagios-users] configuration tool
>  
> I use NagioSQL and it supports remote configuration.
> 
> Ciao,
>  
> Giorgio
> 
> Il giorno 15/nov/2011, alle ore 10:08, "Marco Borsani"  ha 
> scritto:
> 
> Hi all
>  
> I am using following configurations:
>  
> Site A:  2 server in cluster – node “1” running nagios 3.3.1 (and NSCA), node 
> “2” running mysql
> Site B:  2 server in cluster – node “1” running nagios 3.3.1 (send info with 
> send_nsca to site A), node “2” running mysql
> Site C:  2 server in cluster – node “1” running nagios 3.3.1 (send info with 
> send_nsca to site A), node “2” running mysql
>  
> I’d like to use one of the configuration tool (one on each site , or one for 
> all the sites…it will depend if it is possible), but I am not sure that 
> “NConf”, “NagiosQL”, etc. can support this configuration.
> For example, I read that “NConf” require Nagios Core and Mysql both in the 
> same server, is it true ?
>  
> May you give me any info?
>  
> regards
>  
> 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 …
>  
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> 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 the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d___
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] configuration tool

2011-11-15 Thread Giorgio Zarrelli
I use NagioSQL and it supports remote configuration.

Ciao,

Giorgio

Il giorno 15/nov/2011, alle ore 10:08, "Marco Borsani"  ha 
scritto:

> Hi all
>  
> I am using following configurations:
>  
> Site A:  2 server in cluster – node “1” running nagios 3.3.1 (and NSCA), node 
> “2” running mysql
> Site B:  2 server in cluster – node “1” running nagios 3.3.1 (send info with 
> send_nsca to site A), node “2” running mysql
> Site C:  2 server in cluster – node “1” running nagios 3.3.1 (send info with 
> send_nsca to site A), node “2” running mysql
>  
> I’d like to use one of the configuration tool (one on each site , or one for 
> all the sites…it will depend if it is possible), but I am not sure that 
> “NConf”, “NagiosQL”, etc. can support this configuration.
> For example, I read that “NConf” require Nagios Core and Mysql both in the 
> same server, is it true ?
>  
> May you give me any info?
>  
> regards
>  
> 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 …
>  
> --
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> ___
> 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
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
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] Has anyone else seen this?

2011-06-03 Thread Giorgio Zarrelli
Pleae,

Paste the web-server template the http  service and commando definitions and 
related template.

Ciao,

Giorgio

Il giorno 03/giu/2011, alle ore 21:33, "Henry R. Prins" 
 ha scritto:

> Hey guys,
> 
>  
> 
> I have two web servers which I have been monitoring.
> 
>  
> 
> define host{
> 
> use web-server
> 
> host_name   MDS-Support
> 
> alias   MDS Support on Apache Web Server
> 
> address 67.88.41.150
> 
> parents rtr-t1-ext-150
> 
> contact_groups  webadmins
> 
> }
> 
>  
> 
> define host{
> 
> use web-server
> 
> host_name   MDS-Main-Website
> 
> alias   multidataservices main website
> 
> address www.multidataservices.com
> 
> parents Internet
> 
> contact_groups  webadmins
> 
> }
> 
>  
> 
>  
> 
> But somehow I got this message today when one of the two was not responding:
> 
>  
> 
> * Nagios *
> 
>  
> 
> Notification Type: PROBLEM
> 
>  
> 
> Service: HTTP
> 
> Host: MDS Support on Apache Web Server
> 
> Address: www.multidataservices.com
> 
> State: CRITICAL
> 
>  
> 
> Date/Time: Fri Jun 3 15:03:22 EDT 2011
> 
>  
> 
> Additional Info:
> 
>  
> 
> CRITICAL - Socket timeout after 10 seconds
> 
>  
> 
>  
> 
>  
> 
> It seems the Host Name is for one entry and the Address is from the other.  
> Anyone know what I am doing wrong?
> 
>  
> 
> Henry.
> 
> --
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Discover what all the cheering's about.
> Get your free trial download today. 
> http://p.sf.net/sfu/quest-dev2dev2
> ___
> 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
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 ___
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] Non obvious 127 plugin error

2011-06-02 Thread Giorgio Zarrelli
We are making guesses, so check ulimits.conf

Ciao,

Giorgio

Il giorno 02/giu/2011, alle ore 15:58, Craig Stewart 
 ha scritto:

> Giorgio,
> 
> It's bash.
> 
> [root@nms tmp]# ls -l /bin/sh
> lrwxrwxrwx. 1 root root 4 May 31 11:39 /bin/sh -> bash
> [root@nms tmp]#
> 
> I've been doing a bit of reading and it looks like the maximum arguments
> is a kernel setting built at compile time.  I'm having a hard time
> wrapping my head around how the check works when run directly and fails
> when called by the Nagios process.
> 
> I'm starting to wonder if I should point the /bin/sh to something like
> csh or some such as a test.
> 
> Craig
> --
> Craig Stewart
> Systems Integration Analyst
> craig.stew...@corp.xplornet.com Tel: (506) 328-1245 Cell: (506) 425-0111
> Xplornet - Broadband, Everywhere
> 
> On 06/02/2011 10:43 AM, Giorgio Zarrelli wrote:
>> Check wether your shell is a Dash or a Bash. That means, check where the
>> /bin/sh symlink is pointing to.
>> 
>> Ciao,
>> 
>> Giorgio
>> 
>> Il giorno 02/giu/2011, alle ore 14:43, Craig Stewart
>>  ha scritto:
>> 
>>> All,
>>> 
>>> SELinux was enabled (DOH!) and has been now disabled.  Didn't fix my
>>> problem though.  Thanks for that Clint, I don't know HOW many times
>>> SELinux has bitten me.  Should know by now.
>>> 
>>> I ran the strace as suggested by Justin and saw THIS little tidbit
>> flash by:
>>> 
>>> 11769 execve("/bin/sh", ["sh", "-c", "/usr/lib/nagios/plugins/check_dig
>>> -H 142.166.86.18 -l www.xplornet.com -a 142.166.86.46 -w 0.5 -c 1 -t
>>> 5"], [/* 189 vars */]) = -1 E2BIG (Argument list too long)
>>> 11751 --- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11769,
>>> si_status=127, si_utime=0, si_stime=0} (Child exited) --
>>> 
>>> Argument list too long  So, SOMETHING (I suspect the shell) doesn't
>>> like that many arguments passed.  Well, making progress.
>>> 
>>> By the way, this is a bone stock OS install (Fedora 15 currently) and I
>>> haven't tweaked anything.
>>> 
>>> Cheers all!
>>> 
>>> Craig
>>> --
>>> Craig Stewart
>>> Systems Integration Analyst
>>> craig.stew...@corp.xplornet.com
>>> Xplornet - Broadband, Everywhere
>>> 
>>> On 06/01/2011 05:36 PM, Clint Dilks wrote:
>>>> Hi
>>>> 
>>>> Just wondering if SE Linux is disabled on your system?  If not check
>>>> your audit log and see if access to the plugin is being denied
>>>> 
>>>> On Thu, Jun 2, 2011 at 8:15 AM, Justin T Pryzby >>> <mailto:just...@norchemlab.com>> wrote:
>>>> 
>>>>   You can also strace the main nagios process:
>>>>   strace -fs999 -e execve -p PID_OF_NAGIOS
>>>>   or
>>>>   sudo strace -fs999 -e execve -p `ps o pid h -C nagios3 --sort
>>>>   start_time |sed q` 2>&1 |grep -Fw execve |grep -Fw check_dig
>>>> 
>>>>   127 is the return status of the shell when a command isn't found:
>>>>   justinp@justinp:~$ asdf; echo $?
>>>>   bash: asdf: command not found
>>>>   127
>>>> 
>>>>   man sh => /EXIT STATUS/
>>>> 
>>>>   Justin
>>>> 
>>>>   On Wed, Jun 01, 2011 at 04:23:05PM -0300, Craig Stewart wrote:
>>>>> Giorgio
>>>>> 
>>>>> As apache user:
>>>>> 
>>>>> bash-4.2$ /usr/lib/nagios/plugins/check_dig -H 72.45.111.250
>>>>-l
>>>>> www.xplornet.com <http://www.xplornet.com> -a 142.166.86.46 -w 0.5
>>>>   -c 1 -t 5
>>>>> DNS OK - 0.096 seconds response time (www.xplornet.com
>>>>   <http://www.xplornet.com>. 864 IN A
>>>>> 142.166.86.46)|time=0.095553s;0.50;1.00;0.00
>>>>> 
>>>>> 
>>>>> You understand my confusion.
>>>>> 
>>>>> Craig
>>>>> 
>>>>> Craig Stewart
>>>>> Systems Integration Analyst
>>>>> craig.stew...@corp.xplornet.com
>>>>   <mailto:craig.stew...@corpxplornet.com
>> <mailto:craig.stew...@corp.xplornet.com>> Tel: (506) 328-1245
>>>>Cell: (506) 425-0111
>>>>   
>>>>> Xplornet - Broadband, Everywhere
>>>>> 
>>>>> On 06/01/2011 04:18 PM, Giorgio Zarrelli wrot

Re: [Nagios-users] Non obvious 127 plugin error

2011-06-02 Thread Giorgio Zarrelli
Check wether your shell is a Dash or a Bash. That means, check where the 
/bin/sh symlink is pointing to.

Ciao,

Giorgio

Il giorno 02/giu/2011, alle ore 14:43, Craig Stewart 
 ha scritto:

> All,
> 
> SELinux was enabled (DOH!) and has been now disabled.  Didn't fix my
> problem though.  Thanks for that Clint, I don't know HOW many times
> SELinux has bitten me.  Should know by now.
> 
> I ran the strace as suggested by Justin and saw THIS little tidbit flash by:
> 
> 11769 execve("/bin/sh", ["sh", "-c", "/usr/lib/nagios/plugins/check_dig
> -H 142.166.86.18 -l www.xplornet.com -a 142.166.86.46 -w 0.5 -c 1 -t
> 5"], [/* 189 vars */]) = -1 E2BIG (Argument list too long)
> 11751 --- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11769,
> si_status=127, si_utime=0, si_stime=0} (Child exited) --
> 
> Argument list too long  So, SOMETHING (I suspect the shell) doesn't
> like that many arguments passed.  Well, making progress.
> 
> By the way, this is a bone stock OS install (Fedora 15 currently) and I
> haven't tweaked anything.
> 
> Cheers all!
> 
> Craig
> --
> Craig Stewart
> Systems Integration Analyst
> craig.stew...@corp.xplornet.com
> Xplornet - Broadband, Everywhere
> 
> On 06/01/2011 05:36 PM, Clint Dilks wrote:
>> Hi
>> 
>> Just wondering if SE Linux is disabled on your system?  If not check
>> your audit log and see if access to the plugin is being denied
>> 
>> On Thu, Jun 2, 2011 at 8:15 AM, Justin T Pryzby > <mailto:just...@norchemlab.com>> wrote:
>> 
>>You can also strace the main nagios process:
>>strace -fs999 -e execve -p PID_OF_NAGIOS
>>or
>>sudo strace -fs999 -e execve -p `ps o pid h -C nagios3 --sort
>>start_time |sed q` 2>&1 |grep -Fw execve |grep -Fw check_dig
>> 
>>127 is the return status of the shell when a command isn't found:
>>justinp@justinp:~$ asdf; echo $?
>>bash: asdf: command not found
>>127
>> 
>>man sh => /EXIT STATUS/
>> 
>>Justin
>> 
>>On Wed, Jun 01, 2011 at 04:23:05PM -0300, Craig Stewart wrote:
>>> Giorgio
>>> 
>>> As apache user:
>>> 
>>> bash-4.2$ /usr/lib/nagios/plugins/check_dig -H 72.45.111.250
>> -l
>>> www.xplornet.com <http://www.xplornet.com> -a 142.166.86.46 -w 0.5
>>-c 1 -t 5
>>> DNS OK - 0.096 seconds response time (www.xplornet.com
>><http://www.xplornet.com>. 864 IN A
>>> 142.166.86.46)|time=0.095553s;0.50;1.00;0.00
>>> 
>>> 
>>> You understand my confusion.
>>> 
>>> Craig
>>> 
>>> Craig Stewart
>>> Systems Integration Analyst
>>> craig.stew...@corp.xplornet.com
>><mailto:craig.stew...@corp.xplornet.com> Tel: (506) 328-1245
>> Cell: (506) 425-0111
>>
>>> Xplornet - Broadband, Everywhere
>>> 
>>> On 06/01/2011 04:18 PM, Giorgio Zarrelli wrote:
>>>> Hi,
>>>> 
>>>> I'm curious. Please, do a su - as the apache user and execute
>>the check
>>>> as that user.
>>>> 
>>>> Ciao,
>>>> 
>>>> Giorgio
>>> 
>>> 
>>
>> --
>>> Simplify data backup and recovery for your virtual environment
>>with vRanger.
>>> Installation's a snap, and flexible recovery options mean your
>>data is safe,
>>> secure and there when you need it. Data protection magic?
>>> Nope - It's vRanger. Get your free trial download today.
>>> http://p.sf.net/sfu/quest-sfdev2dev
>>> ___
>>> Nagios-users mailing list
>>> Nagios-users@lists.sourceforge.net
>><mailto: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
>>> 
>> 
>>
>> --
>>Simplify data backup and recovery for your virtual environment with
>>vRanger.
>>Installation's a snap, and flexible recovery options mean your data
>>is safe,
>>secure and there when you need it. Data protection magic?
>>Nope - It's vRanger. Get your 

Re: [Nagios-users] Non obvious 127 plugin error

2011-06-01 Thread Giorgio Zarrelli
I understand your confusion. Undortunately I will be om holiday until monday 
and I won't be able to use a real computer for some tests.

Anyway, I will think about it.

Ciao,

Giorgio

Il giorno 01/giu/2011, alle ore 21:23, Craig Stewart 
 ha scritto:

> Giorgio
> 
> As apache user:
> 
> bash-4.2$ /usr/lib/nagios/plugins/check_dig -H 72.45.111.250 -l
> www.xplornet.com -a 142.166.86.46 -w 0.5 -c 1 -t 5
> DNS OK - 0.096 seconds response time (www.xplornet.com. 864 IN A
> 142.166.86.46)|time=0.095553s;0.50;1.00;0.00
> 
> 
> You understand my confusion.
> 
> Craig
> 
> Craig Stewart
> Systems Integration Analyst
> craig.stew...@corp.xplornet.com Tel: (506) 328-1245 Cell: (506) 425-0111
> Xplornet - Broadband, Everywhere
> 
> On 06/01/2011 04:18 PM, Giorgio Zarrelli wrote:
>> Hi,
>> 
>> I'm curious. Please, do a su - as the apache user and execute the check
>> as that user.
>> 
>> Ciao,
>> 
>> Giorgio

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-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] Non obvious 127 plugin error

2011-06-01 Thread Giorgio Zarrelli
Hi,

I'm curious. Please, do a su - as the apache user and execute the check as that 
user.

Ciao,

Giorgio

Il giorno 01/giu/2011, alle ore 20:50, Craig Stewart 
 ha scritto:

> Giorgio,
> 
> Here's the final command:
> 
> [1306952706.565337] [2048.1] [pid=3753]   Done.  Final output:
> '/usr/lib/nagios/plugins/check_dig -H 72.45.111.250 -l www.xplornet.com
> -a 142.166.86.46 -w 0.5 -c 1 -t 5'
> 
> I assume that's what you meant?
> 
> I'm also seeing this in the debug log:
> 
> [1306952721.202757] [016.1] [pid=3753] HOST: TS-WIN-DNS-1, SERVICE:
> DNS-Check, CHECK TYPE: Active, OPTIONS: 0, SCHEDULED: Yes, RESCHEDULE:
> Yes, EXITED OK: Yes, RETURN CODE: 127, OUTPUT: (null)
> 
> 
> 
> Craig Stewart
> Systems Integration Analyst
> craig.stew...@corp.xplornet.com
> Xplornet - Broadband, Everywhere
> 
> On 06/01/2011 02:20 PM, Giorgio Zarrelli wrote:
>> Please,
>> 
>> Switch on debug and paste here the "final command"
>> 
>> Ciao,
>> 
>> Giorgio
>> 
>> Il giorno 01/giu/2011, alle ore 16:47, Craig Stewart
>>  ha scritto:
>> 
>>> Good day folks,
>>> 
>>> I've spent the better part of a week using Google and combing forums for
>>> an answer to this question without much luck.  First the specs:
>>> 
>>> Nagios version 3.2.3
>>> Nagios and associated plugins installed on CentOS 5.6 and Fedora 15
>>> servers via package management (i.e. yum)
>>> 
>>> I have a couple plugins that simply won't execute.  One of which is the
>>> check_dig command.  I'll use this for an example.
>>> 
>>>> From the commands.cfg file for Nagios:
>>> 
>>> define command{
>>>   command_namecheck_dns
>>>   command_line/usr/lib/nagios/plugins/check_dig -H $HOSTADDRESS$ -l
>>> $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -t $ARG5$
>>>   }
>>> 
>>>> From the Nagios log file:
>>> 
>>> [1306863226] Warning: Return code of 127 for check of service
>>> 'DNS-Check' on host 'TS-TOR-DNS-1' was out of bounds. Make sure the
>>> plugin you're trying to run actually exists.
>>> 
>>> 
>>> Okay, first to see if it exists:
>>> 
>>> [root@nms ~]# locate check_dig
>>> /usr/lib/nagios/plugins/check_dig
>>> [root@nms ~]#
>>> 
>>> Ownership and permissions check:
>>> 
>>> [root@nms ~]# ls -l /usr/lib/nagios/plugins/check_dig
>>> -rwxr-xr-x. 1 nagios nagios 43292 Mar 23 15:42
>>> /usr/lib/nagios/plugins/check_dig
>>> [root@nms ~]#
>>> 
>>> Try running it as root:
>>> [root@nms ~]# /usr/lib/nagios/plugins/check_dig *BLANKED* -l *BLANKED*
>>> -a *BLANKED* -c 5 -w 0.25
>>> DNS OK - 0.005 seconds response time (*BLANKED*. 900 IN A
>>> *BLANKED*)|time=0.004967s;0.25;5.00;0.00
>>> 
>>> So it works as root.  Now to try as Nagios user:
>>> [root@nms ~]# su - nagios
>>> -bash-4.2$ /usr/lib/nagios/plugins/check_dig *BLANKED* -l *BLANKED* -a
>>> *BLANKED* -c 5 -w 0.25
>>> DNS OK - 0.005 seconds response time (*BLANKED*. 900 IN A
>>> *BLANKED*)|time=0.004967s;0.25;5.00;0.00
>>> 
>>> It works as the Nagios user as well.
>>> 
>>> So, I'm sure you can see my confusion.  The plugin exists and is
>>> executable for a user on the system, but even when called directly as
>>> opposed to using the $USER1$ macro, the Nagios process can't run it.
>>> 
>>> Any thoughts anyone?
>>> 
>>> Cheers!
>>> 
>>> Craig
>>> 
>>> --
>>> Craig Stewart
>>> Systems Integration Analyst
>>> craig.stew...@corp.xplornet.com
>>> Xplornet - Broadband, Everywhere
>>> 
>>> 
>> --
>>> Simplify data backup and recovery for your virtual environment with
>> vRanger.
>>> Installation's a snap, and flexible recovery options mean your data is
>> safe,
>>> secure and there when you need it. Data protection magic?
>>> Nope - It's vRanger. Get your free trial download today.
>>> http://p.sf.net/sfu/quest-sfdev2dev
>>> ___
>>> Nagios-users mailing list
>>> Nagios-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/na

Re: [Nagios-users] Non obvious 127 plugin error

2011-06-01 Thread Giorgio Zarrelli
Please,

Switch on debug and paste here the "final command"

Ciao,

Giorgio

Il giorno 01/giu/2011, alle ore 16:47, Craig Stewart 
 ha scritto:

> Good day folks,
> 
> I've spent the better part of a week using Google and combing forums for
> an answer to this question without much luck.  First the specs:
> 
> Nagios version 3.2.3
> Nagios and associated plugins installed on CentOS 5.6 and Fedora 15
> servers via package management (i.e. yum)
> 
> I have a couple plugins that simply won't execute.  One of which is the
> check_dig command.  I'll use this for an example.
> 
>> From the commands.cfg file for Nagios:
> 
> define command{
>command_namecheck_dns
>command_line/usr/lib/nagios/plugins/check_dig -H $HOSTADDRESS$ -l
> $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -t $ARG5$
>}
> 
>> From the Nagios log file:
> 
> [1306863226] Warning: Return code of 127 for check of service
> 'DNS-Check' on host 'TS-TOR-DNS-1' was out of bounds. Make sure the
> plugin you're trying to run actually exists.
> 
> 
> Okay, first to see if it exists:
> 
> [root@nms ~]# locate check_dig
> /usr/lib/nagios/plugins/check_dig
> [root@nms ~]#
> 
> Ownership and permissions check:
> 
> [root@nms ~]# ls -l /usr/lib/nagios/plugins/check_dig
> -rwxr-xr-x. 1 nagios nagios 43292 Mar 23 15:42
> /usr/lib/nagios/plugins/check_dig
> [root@nms ~]#
> 
> Try running it as root:
> [root@nms ~]# /usr/lib/nagios/plugins/check_dig *BLANKED* -l *BLANKED*
> -a *BLANKED* -c 5 -w 0.25
> DNS OK - 0.005 seconds response time (*BLANKED*. 900 IN A
> *BLANKED*)|time=0.004967s;0.25;5.00;0.00
> 
> So it works as root.  Now to try as Nagios user:
> [root@nms ~]# su - nagios
> -bash-4.2$ /usr/lib/nagios/plugins/check_dig *BLANKED* -l *BLANKED* -a
> *BLANKED* -c 5 -w 0.25
> DNS OK - 0.005 seconds response time (*BLANKED*. 900 IN A
> *BLANKED*)|time=0.004967s;0.25;5.00;0.00
> 
> It works as the Nagios user as well.
> 
> So, I'm sure you can see my confusion.  The plugin exists and is
> executable for a user on the system, but even when called directly as
> opposed to using the $USER1$ macro, the Nagios process can't run it.
> 
> Any thoughts anyone?
> 
> Cheers!
> 
> Craig
> 
> -- 
> Craig Stewart
> Systems Integration Analyst
> craig.stew...@corp.xplornet.com
> Xplornet - Broadband, Everywhere
> 
> --
> Simplify data backup and recovery for your virtual environment with vRanger. 
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today. 
> http://p.sf.net/sfu/quest-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

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-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] Check_NRPE on AIX

2011-05-18 Thread Giorgio Zarrelli
Sorry for the previous

Ciao,

Giorgio

Il giorno 18/mag/2011, alle ore 15:26, Daniel Ceola  ha 
scritto:

> Hello all!
> 
>  
> 
> I’ve recently been attempting to setup monitoring on my AIX 5.3 servers.  
> After some research, I determined that the best way to accomplish this is 
> through using NRPE. I downloaded the package here: 
> https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/AIX/AIX-5-3-NRPE-2-12-NSCA-2-7-2-Nagios-Plugins-1-4-11
>   and followed instructions here 
> http://nagioswiki.com/wiki/index.php/Installing_Nagios_NRPE_on_AIX  to 
> install NRPE on the AIX system.  I then found an item in the nagios-users 
> archive that suggested that I needed to install sudo on the AIX system and 
> change the NRPE config to use sudo for the commands.  
> http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31668.html
> 
>  
> 
>  
> 
> I have my nagios server’s IP in the allowed_hosts list within nrpe.cfg
> 
> I also have this set (per instructions in below link) 
> command_prefix=/usr/bin/sudo
> 
>  
> 
>  
> 
> At this point – when I run one of the check (check_disk) scripts locally (on 
> the AIX system) that the NRPE package installed, I am able to get a result
> 
>  
> 
> # check_disk -w 85 -c 95
> 
> DISK CRITICAL - free space: / 307 MB (79% inode=98%); (only copied the first 
> item, but there was a lot of output)
> 
>  
> 
> However, I cannot seem to get my check from my Nagios system to work properly.
> 
> nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_nrpe -H 192.168.3.15 -n 
> -c check_aix_disks
> 
> NRPE: Unable to read output
> 
>  
> 
> The corresponding command in the nrpe.cfg on the AIX system:  
> command[check_aix_disks]=/usr/local/nagios/libexec/check_disk -w 10m -c 2m -x 
> /proc
> 
>  
> 
>  
> 
>  
> 
> At this point, I’m unsure of what I need to do in order to get this working.  
> If anyone could provide a possible direction, I would be most grateful!
> 
>  
> 
>  
> 
>  
> 
> Thanks,
> 
>  
> 
> Daniel Ceola
> 
> Systems & DB Admin
> 
>  
> 
> The Wills Group
> 
> 6355 Crain Hwy
> 
> La Plata, MD 20646
> 
> 301-932-3600
> 
> 301-932-3643 (direct line)
> 
>  
> 
> --
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its 
> next-generation tools to help Windows* and Linux* C/C++ and Fortran 
> developers boost performance applications - including clusters. 
> http://p.sf.net/sfu/intel-dev2devmay
> ___
> 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
--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Check_NRPE on AIX

2011-05-18 Thread Giorgio Zarrelli
Hi

Make a test. Go on the system as the nrpe user, th

Ciao

Giorgio

Il giorno 18/mag/2011, alle ore 15:26, Daniel Ceola  ha 
scritto:

> Hello all!
> 
>  
> 
> I’ve recently been attempting to setup monitoring on my AIX 5.3 servers.  
> After some research, I determined that the best way to accomplish this is 
> through using NRPE. I downloaded the package here: 
> https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/AIX/AIX-5-3-NRPE-2-12-NSCA-2-7-2-Nagios-Plugins-1-4-11
>   and followed instructions here 
> http://nagioswiki.com/wiki/index.php/Installing_Nagios_NRPE_on_AIX  to 
> install NRPE on the AIX system.  I then found an item in the nagios-users 
> archive that suggested that I needed to install sudo on the AIX system and 
> change the NRPE config to use sudo for the commands.  
> http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31668.html
> 
>  
> 
>  
> 
> I have my nagios server’s IP in the allowed_hosts list within nrpe.cfg
> 
> I also have this set (per instructions in below link) 
> command_prefix=/usr/bin/sudo
> 
>  
> 
>  
> 
> At this point – when I run one of the check (check_disk) scripts locally (on 
> the AIX system) that the NRPE package installed, I am able to get a result
> 
>  
> 
> # check_disk -w 85 -c 95
> 
> DISK CRITICAL - free space: / 307 MB (79% inode=98%); (only copied the first 
> item, but there was a lot of output)
> 
>  
> 
> However, I cannot seem to get my check from my Nagios system to work properly.
> 
> nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_nrpe -H 192.168.3.15 -n 
> -c check_aix_disks
> 
> NRPE: Unable to read output
> 
>  
> 
> The corresponding command in the nrpe.cfg on the AIX system:  
> command[check_aix_disks]=/usr/local/nagios/libexec/check_disk -w 10m -c 2m -x 
> /proc
> 
>  
> 
>  
> 
>  
> 
> At this point, I’m unsure of what I need to do in order to get this working.  
> If anyone could provide a possible direction, I would be most grateful!
> 
>  
> 
>  
> 
>  
> 
> Thanks,
> 
>  
> 
> Daniel Ceola
> 
> Systems & DB Admin
> 
>  
> 
> The Wills Group
> 
> 6355 Crain Hwy
> 
> La Plata, MD 20646
> 
> 301-932-3600
> 
> 301-932-3643 (direct line)
> 
>  
> 
> --
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its 
> next-generation tools to help Windows* and Linux* C/C++ and Fortran 
> developers boost performance applications - including clusters. 
> http://p.sf.net/sfu/intel-dev2devmay
> ___
> 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
--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay___
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] RESOLVED - Services Not being checked

2011-05-18 Thread Giorgio Zarrelli
Hi,

great, but I did nothing, you found the solution. What a pity, I do not deserve 
the reward ;-)

Ciao,

Giorgio

Il giorno 18/mag/2011, alle ore 15:26, "Stephanie Gelder" 
 ha scritto:

> Hi Giorgio
>  
> THANK YOU.
>  
> What an idiot I am. I copied a load the stuff over from the old server but of 
> course, I had not copied over the printer-service settings, as a quick check 
> I changed it back to generic-service and it's started to work straight away, 
> as soon as you said that I realised what I have done.  I've tested and had 
> the services go onto the second attempt which is when they put it off for a 
> week, and it's worked. 
>  
> One last time.  THANK YOU, I could kiss you I'm so happy!!
>  
> Stephanie
> 
> >>>
> From: Giorgio Zarrelli 
> To:   Nagios Users List 
> CC:   "" 
> 
> Date: 18/05/2011 13:50
> Subject:  Re: [Nagios-users] Services Not being checked
> Hi
> 
> I'm on mobile so I can miss something.
> 
> Can you show me the printer-service template definition?
> 
> Ciao,
> 
> Giorgio
> 
> Il giorno 18/mag/2011, alle ore 13:54, "Stephanie Gelder" 
>  ha scritto:
> 
>> Hi.
>>  
>> I'm ok with Nagios, but I'm not linux guru so treat me gently :)
>>  
>> I have reinstalled Nagios onto a new Server it was running on a very old pc 
>> that had hardware issues.  So I've now re-installed it on a Dell R300 with 
>> 16 Gig of memory complete overkill but it's what I had available.
>>  
>> I am running Nagios Core 3.2.3 on Fedora Linux.
>> [root@nagios]# uname -a
>> Linux nagios.***.*** 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06 UTC 
>> 2011 x86_64 x86_64 x86_64 GNU/Linux
>>  
>> I have problems with checking services I have at the moment 107 devices on 
>> it printers and switches, (the old bashed up PC had around 300 devices on it 
>> and worked fine before the hardware died).  Anyway I am trying to monitor 
>> services and for all the switches it seems fine, but for all of the printers 
>> it's not working.  Automatically so I am wondering if i've done something 
>> wrong but I cannot work out what is wrong it all appears to be fine, please 
>> see below. But when I try monitoring services it will start and for the odd 
>> printer work fine but the next printer in the list it will not work for and 
>> what happens is it check the service once and it's fine but then when it 
>> comes to do the second check on either the check_ping or check_printer 
>> service it either disables checking the service or moves the date forward a 
>> week for the next check.
>>  
>> I'm stuck as to why these services are either not being checked or put 
>> forward to only check them in a weeks time.
>>  
>> All my switches that work are in a group called generic-switch 
>>  
>> I've tried putting half a dozen of the printers into generic-switch instead 
>> of novell-printer and they have exactly the same results so I don't think 
>> it's got anything to do with that.  Any help would be appreciated.
>>  
>> Stephanie
>>  
>> In the nagios.log file after trying to run a service the second time it 
>> shows up as below:-
>>  
>> Warning: Check of service 'PING' on host 'ANS-ACCOUNTS01' could not be 
>> rescheduled properly. Scheduling check for next week...
>> [1305715325] Warning: Check of service 'Printer Status' on host 
>> 'ANS-ACCOUNTS01' could not be rescheduled properly.  Scheduling check for 
>> next week...
>>  
>> So using this example:-
>>  
>> printers.cfg includes
>>  
>> define host{
>> use novell-printer
>> host_name   ANS-ACCOUNTS01
>> alias   Dell Colour Laser 5110cn 
>> parents LGH-242
>>  icon_image  printer.png
>> statusmap_image printer.gd2
>> address ***.***.***.***
>> }
>>  
>> 
>> define hostgroup{
>> hostgroup_name  LGH-NOV
>> alias   *** - Novell Printers
>> members **,ANS-ACCOUNTS01,**,**,**,**,**
>> }
>> define service{
>> use printer-service
>> host_name   ANS-ACCOUNTS01,**,**,**,**,**
>> service_description Printer Status
>> check_command   check_printer!
>> normal_check_interval   2
>> retry_check_interval1
>> }
&

Re: [Nagios-users] Services Not being checked

2011-05-18 Thread Giorgio Zarrelli
Hi

I'm on mobile so I can miss something.

Can you show me the printer-service template definition?

Ciao,

Giorgio

Il giorno 18/mag/2011, alle ore 13:54, "Stephanie Gelder" 
 ha scritto:

> Hi.
>  
> I'm ok with Nagios, but I'm not linux guru so treat me gently :)
>  
> I have reinstalled Nagios onto a new Server it was running on a very old pc 
> that had hardware issues.  So I've now re-installed it on a Dell R300 with 16 
> Gig of memory complete overkill but it's what I had available.
>  
> I am running Nagios Core 3.2.3 on Fedora Linux.
> [root@nagios]# uname -a
> Linux nagios.***.*** 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06 UTC 
> 2011 x86_64 x86_64 x86_64 GNU/Linux
>  
> I have problems with checking services I have at the moment 107 devices on it 
> printers and switches, (the old bashed up PC had around 300 devices on it and 
> worked fine before the hardware died).  Anyway I am trying to monitor 
> services and for all the switches it seems fine, but for all of the printers 
> it's not working.  Automatically so I am wondering if i've done something 
> wrong but I cannot work out what is wrong it all appears to be fine, please 
> see below. But when I try monitoring services it will start and for the odd 
> printer work fine but the next printer in the list it will not work for and 
> what happens is it check the service once and it's fine but then when it 
> comes to do the second check on either the check_ping or check_printer 
> service it either disables checking the service or moves the date forward a 
> week for the next check.
>  
> I'm stuck as to why these services are either not being checked or put 
> forward to only check them in a weeks time.
>  
> All my switches that work are in a group called generic-switch 
>  
> I've tried putting half a dozen of the printers into generic-switch instead 
> of novell-printer and they have exactly the same results so I don't think 
> it's got anything to do with that.  Any help would be appreciated.
>  
> Stephanie
>  
> In the nagios.log file after trying to run a service the second time it shows 
> up as below:-
>  
> Warning: Check of service 'PING' on host 'ANS-ACCOUNTS01' could not be 
> rescheduled properly. Scheduling check for next week...
> [1305715325] Warning: Check of service 'Printer Status' on host 
> 'ANS-ACCOUNTS01' could not be rescheduled properly.  Scheduling check for 
> next week...
>  
> So using this example:-
>  
> printers.cfg includes
>  
> define host{
> use novell-printer
> host_name   ANS-ACCOUNTS01
> alias   Dell Colour Laser 5110cn 
> parents LGH-242
>  icon_image  printer.png
> statusmap_image printer.gd2
> address ***.***.***.***
> }
>  
> 
> define hostgroup{
> hostgroup_name  LGH-NOV
> alias   *** - Novell Printers
> members **,ANS-ACCOUNTS01,**,**,**,**,**
> }
> define service{
> use printer-service
> host_name   ANS-ACCOUNTS01,**,**,**,**,**
> service_description Printer Status
> check_command   check_printer!
> normal_check_interval   2
> retry_check_interval1
> }
>  
> define service{
> use printer-service
> host_name   ANS-ACCOUNTS01,**,**,**,**
> service_description PING
> check_command   check_ping!3000.0,80%!5000.0,100%
> normal_check_interval   5
> retry_check_interval1
> }
> In the templates.cfg file:-
>  
> 
> define host{
> namegeneric-host; The name of this 
> host template
> notifications_enabled   1   ; Host notifications 
> are enabled
> event_handler_enabled   1   ; Host event handler 
> is enabled
> flap_detection_enabled  1   ; Flap detection is 
> enabled
> failure_prediction_enabled  1   ; Failure prediction 
> is enabled
> process_perf_data   1   ; Process performance 
> data
> retain_status_information   1   ; Retain status 
> information across program restarts
> retain_nonstatus_information1   ; Retain non-status 
> information across program restarts
> notification_period 24x7; Send host 
> notifications at any time
> register0   ; DONT REGISTER THIS 
> DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
> }
> 
> define host{
> namenovell-printer  ; The name of this 
> host template
> use generic-host; Inherit these 
> default values
> check_period24x7; By default, 
> printers are monitored round th

Re: [Nagios-users] Problem with Konica and Canon printer

2011-05-04 Thread Giorgio Zarrelli
Hi,

you have to find the right OIDs for the info you are trying to get from
the printer.

Imagine the OID as as dotted "address" string (like 1.3.6.x.x.x.x.x). Each
OID points to a value and what that value does mean is described into a
collection called MIB.

So, find the right MIBs for your printers, look into them, point out the
correct OIDS and then, using snmpget, you can query the printers for the
values you need.

Giorgio




> Hello everyone,
>
> my nagios works fine with the Kyocera printers through the plugin
> check_printer, but I still couldn't find out how to check these:
>
>   Canon iR 1024
>   Konica C252
>
> Has anyone a hint for me how I could make nagios talk to these two
> models?
>
> The Konica tells me through the check_printer plugin about the toner,
> but not about the paper tray.
> The Canon doesn't tell anything using check_printer plugin.
>
> Of course I have asked google, and heard about snmpwalk, but I don't
> know what to do with the information snmpwalk gives me.
>
> What can I do?
>
> --
> Andre Tann
>
>
> --
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> ___
> 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
>



--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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] from single server to distributed servers

2011-04-27 Thread Giorgio Zarrelli
NagioSQL stores the configurations in the db BUT from there it generates text 
config files, read by Nagios. In other words, Nagios stil reads it's configs 
from standard configuration files, but tris files are created, deployed, by 
NagioSQL from the infos stored in the MySQL db.

Ciao,

Giorgio

Il giorno 27/apr/2011, alle ore 09:42, "Marco Borsani"  ha 
scritto:

> Hi all
> 
> I use a single Nagios server since 2004, without any DB.
> 
>  
> 
> I test the distributed environment using text file configuration and it is 
> working fine.
> 
>  
> 
> Now we'd like to upgrade to last Nagios version and use mysql DB in a 
> distributed environment (1 central Nagios server with 2 remotes Nagios 
> servers).
> 
>  
> 
> 1) is there any documentation regarding nagiosQL and DB structure ?
> 
> 2) does anybody have any esperiences regarding an environment like that I 
> explained before ?
> 
>  
> 
> thanks
> 
>  
> 
> 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 WIND TELECOM S.p.A.
> 
>  
> 
> --
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> ___
> 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
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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: R: error in nagiosql install

2011-04-26 Thread Giorgio Zarrelli
No no no. 

The trick is to put nagios user in the apache group, so that the permissions on 
files Owned by apache group inherited by nagios user.

In nagiosql conf check the path to nagios commands file then check the user 
rights on it.

Ciao,

Giorgio

Il giorno 26/apr/2011, alle ore 16:00, "Marco Borsani"  ha 
scritto:

> Thank you very much.
> 
> To solve other permissions problems I changed group to many files (putting
> apache).
> 
> Moreover I have to change "nagios_group" inside nagios.cfg writtig "apache"
> instead of "nagios" .
> On the contrary I saw the message: 
> RESTART FAILED - NAGIOS COMMAND FILE NOT FOUND OR NO EXECUTE PERMISSIONS.
> Is it normal ?
> 
> After that ... I "just" have to understand how nagiosQL and Nagios works
> together ...
> 
> Regards
> Marco
> 
> 
> -Messaggio originale-
> Da: Giorgio Zarrelli [mailto:zarre...@linux.it] 
> Inviato: martedì 26 aprile 2011 12:59
> A: Marco Borsani
> Cc: zarre...@linux.it; 'Nagios Users List'
> Oggetto: Re: R: [Nagios-users] error in nagiosql install
> 
> Hi,
> 
> you can set NagioSQL paths under:
> 
> Administration -> Domains -> localhost
> 
> 
> 
>> That was the problem !
>> Thank you very much, now it has been solved.
>> 
>> Right now I just have an error on nagiosql web site... in the "Tools"
>> section I have the messages (see the attach) :
>> Could not open directory /etc/nagios
>> Could not open directory /etc/nagios/import But I have installed 
>> Nagios under /usr/local/nagios like always and I do not find any 
>> section to change this setting in the nagiosql pages (to point to the 
>> other directory).
>> 
>> Marco
>> 
>> 
>> -Messaggio originale-
>> Da: Giorgio Zarrelli [mailto:zarre...@linux.it]
>> Inviato: martedì 26 aprile 2011 10:49
>> A: Marco Borsani
>> Cc: zarre...@linux.it; 'Nagios Users List'
>> Oggetto: [Nagios-users] error in nagiosql install
>> 
>> Hi,
>> 
>> googling I found that the 'mysql.servers' error might be a mysql 
>> privileges bug that you can fix running  the
>> 
>> mysql_fix_privilege_tables
>> 
>> script.
>> 
>> See this bug report:
>> 
>> http://bugs.mysql.com/bug.php?id=28680
>> 
>> Or you can use this workaround creating the servers table by hands 
>> with the following statement (you have to log on your console and 
>> enter the mysql
>> cli):
>> 
>> CREATE TABLE `servers` (
>> `Server_name` char(64) NOT NULL,
>> `Host` char(64) NOT NULL,
>> `Db` char(64) NOT NULL,
>> `Username` char(64) NOT NULL,
>> `Password` char(64) NOT NULL,
>> `Port` int(4) DEFAULT NULL,
>> `Socket` char(64) DEFAULT NULL,
>> `Wrapper` char(64) NOT NULL,
>> `Owner` char(64) NOT NULL,
>> PRIMARY KEY (`Server_name`)
>> ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers 
>> table';
>> 
>> 
>> http://forums.mysql.com/read.php?11,142598,160503#msg-160503
>> 
>> 
>> Giorgio
>> 
> 
> 

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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: error in nagiosql install

2011-04-26 Thread Giorgio Zarrelli
Hi,

you can set NagioSQL paths under:

Administration -> Domains -> localhost



> That was the problem !
> Thank you very much, now it has been solved.
>
> Right now I just have an error on nagiosql web site... in the "Tools"
> section I have the messages (see the attach) :
> Could not open directory /etc/nagios
> Could not open directory /etc/nagios/import
> But I have installed Nagios under /usr/local/nagios like always and I do
> not
> find any section to change this setting in the nagiosql pages (to point to
> the other directory).
>
> Marco
>
>
> -Messaggio originale-
> Da: Giorgio Zarrelli [mailto:zarre...@linux.it]
> Inviato: martedì 26 aprile 2011 10:49
> A: Marco Borsani
> Cc: zarre...@linux.it; 'Nagios Users List'
> Oggetto: [Nagios-users] error in nagiosql install
>
> Hi,
>
> googling I found that the 'mysql.servers' error might be a mysql
> privileges
> bug that you can fix running  the
>
> mysql_fix_privilege_tables
>
> script.
>
> See this bug report:
>
> http://bugs.mysql.com/bug.php?id=28680
>
> Or you can use this workaround creating the servers table by hands with
> the
> following statement (you have to log on your console and enter the mysql
> cli):
>
> CREATE TABLE `servers` (
> `Server_name` char(64) NOT NULL,
> `Host` char(64) NOT NULL,
> `Db` char(64) NOT NULL,
> `Username` char(64) NOT NULL,
> `Password` char(64) NOT NULL,
> `Port` int(4) DEFAULT NULL,
> `Socket` char(64) DEFAULT NULL,
> `Wrapper` char(64) NOT NULL,
> `Owner` char(64) NOT NULL,
> PRIMARY KEY (`Server_name`)
> ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers
> table';
>
>
> http://forums.mysql.com/read.php?11,142598,160503#msg-160503
>
>
> Giorgio
>



--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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 check scheduler task in windows

2011-04-26 Thread Giorgio Zarrelli
Hi,

the best way to check wether a backup terminated successfully or not is to
instruct you backup software to send a SNMP trap to Nagios.

Giorgio


> hello every body
>
> please i need help for checking my scheduler task in windows with nagios ,
> like task start ,task error .and in the same way i want to know if
> there
> is anyway to tell nagios to check my output logfile for my backup like
> backup terminated successfully 
>
> my best regards
>
> --
>
> IT Engineer
> Euroestudios S.L
> Abu Dhabi (Western Region)
> P. O. Box: 58945
> Tel: +971 2 8840304 Ext: 177
> --
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd___
> 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



--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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] error in nagiosql install

2011-04-26 Thread Giorgio Zarrelli
Hi,

googling I found that the 'mysql.servers' error might be a mysql
privileges bug that you can fix running  the

mysql_fix_privilege_tables

script.

See this bug report:

http://bugs.mysql.com/bug.php?id=28680

Or you can use this workaround creating the servers table by hands with
the following statement (you have to log on your console and enter the
mysql cli):

CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';


http://forums.mysql.com/read.php?11,142598,160503#msg-160503


Giorgio


--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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] error in nagiosql install

2011-04-26 Thread Giorgio Zarrelli
Hi,


>  [root]# ls -la
> drwxr-xr-x 10 root root 4096 26 apr 10:13 .
> drwxr-xr-x  4 root root 4096 26 apr 10:13 ..
> drwxrwxrwx  3 root root 4096 26 apr 10:13 config

777 on the config dir makes me howling to the moon, anyway settings.php
will be created by the web wizard and with 777 you won't have any problems
writing in it.

> How can I verify/install  PEAR MODULE and the three PHP extensions ?

install php-pear with yum,

then:

 pear install HTML_Template_IT

Giorgio



--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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: error in nagiosql install

2011-04-23 Thread Giorgio Zarrelli
If you can wait till thue I can try to give you step Bu step instructions on 
how to install NagiosQl by hands.

Ciao,

Giorgio

Il giorno 22/apr/2011, alle ore 14:59, "Marco Borsani"  ha 
scritto:

> Hi 
> I saw that mysql.servers table does not exist, but I don't know how going on
> because I don't know what the automatic procedure has to do.
> 
> I find this guide:
> http://nolabnoparty.com/installare-nagios-nagiosql-su-linux-centos-per-il-mo
> nitoraggio-della-rete/
> 
> where you can see tha the steps after "Reloading MySQL User Table" are :
> - Testing database connection to db_nagiosql_v3
> - Writing global settings to database
> - Writing database configuration to settings php
> - Set Initial NagiosQL Administrator
> - Import Nagios sample data
> 
> 
> Any idea ?
> Thanks
> 
> Marco
> 
> 
> -Messaggio originale-
> Da: Giorgio Zarrelli [mailto:zarre...@linux.it] 
> Inviato: venerdì 22 aprile 2011 14:16
> A: Nagios Users List
> Oggetto: Re: [Nagios-users] error in nagiosql install
> 
> Hi,
> 
> mysql.servers does not exist:
> 
> mysql> use mysql
> Reading table information for completion of table and column names You can
> turn off this feature to get a quicker startup with -A
> 
> Database changed
> mysql> show tables;
> +---+
> | Tables_in_mysql   |
> +---+
> | columns_priv  |
> | db|
> | func  |
> | help_category |
> | help_keyword  |
> | help_relation |
> | help_topic|
> | host  |
> | proc  |
> | procs_priv|
> | tables_priv   |
> | time_zone |
> | time_zone_leap_second |
> | time_zone_name|
> | time_zone_transition  |
> | time_zone_transition_type |
> | user  |
> +---+
> 17 rows in set (0.00 sec)
> 
> Try to go on anyway. You can manually create a user, pass and db and the
> find, among the installation files, the one holding the db and load it.
> 
> 
> 
>> 
>> 
>> Hi all
>> 
>> 
>> 
>> During the nagiosQL 3.1.1 install I have this page with one error:
>> 
>> 
>> 
>> NagiosQL Installation: Finishing Setup
>> 
>> 
>> 
>> Create new NagiosQL database
>> 
>> 1. MySQL server connection (privileged user)
>> passed
>> 
>> 2. MySQL server version
>> 5.1.56
>> 
>> 3. MySQL server support
>> supported
>> 
>> 4. Delete existing NagiosQL database db_nagiosql_v3   done
>> 
>> 5. Creating new database db_nagiosql_v3
>> done
>> 
>> 6. Create NagiosQL MySQL user
>> done
>> 
>> 7. Update MySQL permissions
>> done
>> 
>> 8. Reloading MySQL User Table
>> failed  ( Table 'mysql.servers' doesn't exist )
>> 
>> Any idea ?
>> 
>> Regards
>> 
>> Marco
>> 
>> --
>> 
>> Fulfilling the Lean Software Promise
>> Lean software platforms are now widely adopted and the benefits have 
>> been demonstrated beyond question. Learn why your peers are replacing 
>> JEE containers with lightweight application servers - and what you can 
>> gain from the move.
>> http://p.sf.net/sfu/vmware-sfemails___
>> 
>> 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
> 
> 
> 
> 
> --
> Fulfilling the Lean Software Promise
> Lean software platforms are now widely adopted and the benefits have been
> demonstrated beyond question. Learn why your peers are replacing JEE
> containers with lightweight application servers - and what you can gain from
> the move. http://p.sf.net/sfu/vmware-sfemails
> ___
> 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 b

Re: [Nagios-users] error in nagiosql install

2011-04-22 Thread Giorgio Zarrelli
Hi,

mysql.servers does not exist:

mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+---+
| Tables_in_mysql   |
+---+
| columns_priv  |
| db|
| func  |
| help_category |
| help_keyword  |
| help_relation |
| help_topic|
| host  |
| proc  |
| procs_priv|
| tables_priv   |
| time_zone |
| time_zone_leap_second |
| time_zone_name|
| time_zone_transition  |
| time_zone_transition_type |
| user  |
+---+
17 rows in set (0.00 sec)

Try to go on anyway. You can manually create a user, pass and db and the
find, among the installation files, the one holding the db and load it.



>
>
> Hi all
>
>
>
> During the nagiosQL 3.1.1 install I have this page with one error:
>
>
>
> NagiosQL Installation: Finishing Setup
>
>
>
> Create new NagiosQL database
>
> 1. MySQL server connection (privileged user)
> passed
>
> 2. MySQL server version
> 5.1.56
>
> 3. MySQL server support
> supported
>
> 4. Delete existing NagiosQL database db_nagiosql_v3   done
>
> 5. Creating new database db_nagiosql_v3
> done
>
> 6. Create NagiosQL MySQL user
> done
>
> 7. Update MySQL permissions
> done
>
> 8. Reloading MySQL User Table
> failed  ( Table 'mysql.servers' doesn't exist )
>
> Any idea ?
>
> Regards
>
> Marco
>
> --
> Fulfilling the Lean Software Promise
> Lean software platforms are now widely adopted and the benefits have been
> demonstrated beyond question. Learn why your peers are replacing JEE
> containers with lightweight application servers - and what you can gain
> from the move.
> http://p.sf.net/sfu/vmware-sfemails___
> 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



--
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
___
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: nagios with mysql

2011-04-21 Thread Giorgio Zarrelli
Hi,

well, NagioSQL keeps most of the configs in the DB and regenerates the
config files each time you need to "deploy" them.

It makes easy to mantain a configuration, or to create new chacks or
hosts. I'ts a good tools for support crew.



> But are there any conveniences to use nagiosSLQ compared standard nagios ?



--
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] nagios with mysql

2011-04-21 Thread Giorgio Zarrelli
Hi,

it seems a bit beyond his needs :-)

Then, from your words it seems that in Opsview you attached a CMDB to
Nagios. Is it so? Could be interesting, lots.


Giorgio


>
> On 21 Apr 2011, at 08:32, Marco Borsani wrote:
>
>> I am using Nagios since 2004 with all the configuration in the text
>> files.
>>
>> Now, I’d like using mysql DB.
>>
>> I do not need a migration procedure, I just need to understand how to
>> configure a Nagios to start with mysql DB.
>
> If you create your own DB to hold all the relationships and information to
> create the nagios configuration files, you'll end up with Opsview
> (http://opsview.com)
>
> We model the data in the "proper" way
> (http://labs.opsview.com/2011/04/managing-security-permissions-for-large-teams-in-opsview/)
> and then we generate the nagios configuration files appropriately, with
> distributed monitoring thrown in for free.
>
> NagiosQL is mapping the Nagios configuration files into a sql database,
> which is okay, but try running queries to tell you what you want to know
> and you'll end up replicating Nagios' configuration algorithms to get the
> data you need.
>
> While our demo site doesn't give you access to the mysql db, I'd recommend
> you download our latest VM and poke around the DB structures. There's an
> import script so if you supply your Nagios object.dat file, we'll do a
> good job at importing your information into Opsview's DB.
>
> We've got users that now run DB queries against opsview to give them asset
> lists. We've got other users that have asset lists external to Opsview,
> but use the REST API
> (http://docs.opsview.com/doku.php?id=opsview-community:restapi) to update
> Opsview. All this is much easier by abstracting the Nagios specific
> information away.
>
> Ton
>
> --
> 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



--
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] nagios with mysql

2011-04-21 Thread Giorgio Zarrelli
Myst use NagioSQL and it will import tour magios files into a MySQL DB. 
Moreover, it will give you a web interface to configura Nagios. NagioSQL will 
be the backend for the upcoming Nagios official configuration tool.

Ciao,

Giorgio

Il giorno 21/apr/2011, alle ore 09:32, "Marco Borsani"  ha 
scritto:

> Hi
> 
>  
> 
> I am using Nagios since 2004 with all the configuration in the text files.
> 
>  
> 
> Now, I’d like using mysql DB.
> 
>  
> 
> I do not need a migration procedure, I just need to understand how to 
> configure a Nagios to start with mysql DB.
> 
>  
> 
> Regards
> 
>  
> 
> 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 WIND TELECOM S.p.A.
> 
>  
> 
> --
> 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
--
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] Ho to Deploy massively Nagios on more than 200 Windows servers?

2011-03-04 Thread Giorgio Zarrelli
Hi,

use a domain policy (Active Directory).


>
>
> Hi Gurus,I have to deploy  Nagios plugins on more than 200 Windows
> servers.
> Configuration: Nagios Server runs Nagios3.06 on linux Centos 5.5.So i
> would like to know how to do it  massively instead of server by server
> ?Thanks for your help.
>
>
>
>
> ntou...@hotmail.com
>
>
> 
> --
> What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions.
> http://p.sf.net/sfu/progress-d2d___
> 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



--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
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 NRPE for Windows. Error: "CHECK_NRPE: Error - Could not complete SSL handshake. "

2011-03-02 Thread Giorgio Zarrelli
Hi,

in nsc.ini

;# USE SSL SOCKET
;  This option controls if SSL should be used on the socket.
use_ssl=1


--
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] Availability report

2010-10-11 Thread Giorgio Zarrelli
If they use different ip addresses it could be a network outage or one of 
virtual sites being throwed down but not the web server.

Ciao,

Giorgio

Il giorno 11/ott/2010, alle ore 16:22, william pink  ha 
scritto:

> Hi,
> 
> I am running availability reports on two different services but with the same 
> command and they are throwing up different reports 
> 
> The command is
> 
> check_http -H $HOSTADDRESS$ -w 1 -c 10 -t 30
> 
> check_http -H www.foo.com -w 1 -c 10 -t 30
> 
> Both are using the same website so I am stumped in how they could be 
> different (one report says it was down for 15 hours 24 minutes! whereas the 
> other says it was down for 24 minutes)
> 
> Any help appreciated
> 
> Thanks,
> Will
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> 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
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
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 for iPhone

2010-07-14 Thread Giorgio Zarrelli
Nice hint, thank you!

Ciao,

Giorgio

Il giorno 14/lug/2010, alle ore 20:13, "Gius, Mark"  ha 
scritto:

> I'm not aware of any Iphone-specific interfaces, but I know that if you put
> 
> 
> 
> In the  element, the safari (and android) browser will attempt to do 
> things to make everything fit reasonably on the screen.
> 
> This site 
> (http://www.iphonemicrosites.com/articles/6-tips-to-optimize-your-current-site-for-the-iphone/)
>  seems to have some reasonable suggestions for quick fixes you can try to 
> make the default interface look better on mobile browsers.
> 
> -Gius
> 
>> -Original Message-
>> From: Giorgio Zarrelli [mailto:zarre...@linux.it]
>> Sent: Wednesday, July 14, 2010 8:31 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] Nagios for iPhone
>> 
>> Hi,
>> 
>> Anyone using an easy interface for Nagios on iPhone?
>> 
>> I do not mean some native iPhone app, I mean something server side like
>> Nagios 4 iPhone.
>> 
>> Any hints?
>> 
>> Ciao,
>> 
>> Giorgio
>> ---
>> ---
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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 for iPhone

2010-07-14 Thread Giorgio Zarrelli
Eheheheh,

Thanks for your advice, anyway I neve meant to' expose Nagios. It's for 
internal use only.

Ciao,

Giorgio

Il giorno 14/lug/2010, alle ore 18:19, Andrew Davis  ha 
scritto:

> I didn't want to expose our Nagios URL to the world as if it was compromised 
> it would give an attacker way too much "inside knowledge" of our network. I 
> believe Nagios is fairly secure, but its a lot of PHP and other open source 
> scripting languages, as well as third party addons that may not hold up too 
> well to brute force attempts or might even have some lazy coding. As such, I 
> have an outside server with a hardened access rule that acts as a proxy to 
> the inside Nagios URL, then use iNag to monitor it. Best $10 I've ever spent.
>   A. Davis
>   Email: ncc...@gmail.com
> 
>   "There is no limit to what a man can accomplish
>if he doesn't care who gets the credit." - Ronald Reagan
> 
> On 7/14/10 11:31 AM, Giorgio Zarrelli wrote:
>> 
>> Hi,
>> 
>> Anyone using an easy interface for Nagios on iPhone?
>> 
>> I do not mean some native iPhone app, I mean something server side like 
>> Nagios 4 iPhone.
>> 
>> Any hints?
>> 
>> Ciao,
>> 
>> Giorgio
>> --
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue. 
>> ::: Messages without supporting info will risk being sent to /dev/null
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
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 for iPhone

2010-07-14 Thread Giorgio Zarrelli
Hi,

Anyone using an easy interface for Nagios on iPhone?

I do not mean some native iPhone app, I mean something server side like Nagios 
4 iPhone.

Any hints?

Ciao,

Giorgio
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Sync state in failover scenario

2010-06-30 Thread Giorgio Zarrelli
Use drdb?

Ciao,

Giorgio

Il giorno 30/giu/2010, alle ore 16:40, Mattia Gandolfi  ha 
scritto:

> Hi all,
> 
> I'm running Nagios 3.2.1 on two RHEL boxes in a HA failover setup.
> Both the master and the slave run with execute_service_checks=1, only the 
> master has enable_notifications=1. The slave checks the master's status every 
> minute, and in case of error notifications get enabled. I guess a pretty 
> standard configuration...
> 
> If I manually disable notifications for a host or service, and the master 
> goes away for wathever reason, the slave enables notifications globally, but 
> it has no knowledge of hosts on wich notifications were disabled on the 
> master, so I get tons of alarms for those hosts.
> 
> Is there a way to sync states between the master and the slave?
> 
> Thanks
> 
> Cheers
> 
> Mattia
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
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: Re: Monitoring traffic

2010-06-29 Thread Giorgio Zarrelli
You can use netcat for this purpose and pipe whatever you watt from the net to 
Nagios

Ciao,

Giorgio

Il giorno 29/giu/2010, alle ore 16:29, "sandma...@libero.it" 
 ha scritto:

>> Messaggio originale
>> Da: j...@jimavery.me.uk
>> Data: 29/06/2010 14.51
>>> The router gives no SNMP information about it.
>> What options are available to you for querying the counter on the router?
> 
> It is possible to send a string from the router to a particular port of a 
> remote server.
> 
> Is there any way to make nagios act as a tcp server so it receives 
> notifications about it?
> 
> Thanks
> 
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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 fix excessive latency

2010-06-29 Thread Giorgio Zarrelli
I agree, better not to use Nagios on virtual machine. The I/O layer of vms have 
poor performances.

Ciao,

Giorgio

Il giorno 29/giu/2010, alle ore 14:23, Andreas Ericsson  ha 
scritto:

> On 06/29/2010 03:57 AM, wwanghongrui wrote:
>> Thanks your reply. We are writing to mysql database by ndoutils.We don't use 
>> nsca. About external_command_buffer_slots, we don't set it up.
>> status_update_interval =15
>> 
>> I use vmstate to capture system performance,like below.Maybe the bottleneck 
>> is not at system.
>> 
> 
> Endeavour to not run Nagios on a virtual server. If you must use a virtual 
> server,
> make very sure that your checkresult spooldirectory and status data files are 
> on
> a ramdisk, or you will certainly run into trouble.
> 
> -- 
> Andreas Ericsson   andreas.erics...@op5.se
> OP5 AB www.op5.se
> Tel: +46 8-230225  Fax: +46 8-230231
> 
> Considering the successes of the wars on alcohol, poverty, drugs and
> terror, I think we should give some serious thought to declaring war
> on peace.
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Monitoring traffic

2010-06-29 Thread Giorgio Zarrelli
Try an snmpwalk and check the output

Ciao,

Giorgio

Il giorno 29/giu/2010, alle ore 14:51, Jim Avery  ha 
scritto:

> On 29 June 2010 08:58, sandma...@libero.it  wrote:
>> Hi,
>> 
>> I'd need to keep traffic on a UMTS router monitored, i.e. I'd need to set up
>> something that counts bytes passed and gives an alarm when a particular
>> thresold is reached.
>> 
>> The router gives no SNMP information about it.
>> 
>> Is there any other way to do that with nagios?
>> 
>> Thanks
> 
> 
> What options are available to you for querying the counter on the router?
> 
> If, for example, there is a command-line interface you could use then
> you can at a pinch script something around that.  There are a bunch of
> old AS400 plugins which I think do that kind of thing at
> http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/AS400/details
> - it might give you some ideas on how to go about it.
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Unregister a service definition

2010-06-17 Thread Giorgio Zarrelli
Apply the service to the hostgroup AND in the definition of the  
service apply it ALSO to the hosts negating them (!) eg:

hostgroup_name HTTP
host_name !host-not-to-apply




Ciao,

Giorgio

Il giorno 17/giu/2010, alle ore 09.17, Matthew Angelo  
 ha scritto:

> Hi Nagios Users,
>
> I have an *extremely* modular configuration.  My template structure  
> is well defined and when it comes to monitoring a host, it's as  
> simple as including it as a Member of a Hostgroup.
>
> An example Linux server would be:
>
>
> # cat ./linux/LINUXSERVER.cfg
> define host{
> use PROD-SERVERS
> host_name   LINUXSERVER.local.lan
> alias   LINUXSERVER.local.lan
> address LINUXSERVER.local.lan
> hostgroups  LINUX, HTTP, SMTP
> }
>
>
> And that's it.  It auto inherits all service checks defined against  
> LINUX, HTTP and SMTP.
>
> 95% of my LINUX servers have a "/apps" mount point.  Therefore it  
> makes sense to include a service check for it inside the LINUX host  
> group and then inside the Host Definition for the remaining 5%  
> 'unregister' that service check.
>
> Is it possible, inside LINUXSERVER2.cfg, to say "Yes I know I'm a  
> member of hostgroup LINUX, but I *don't* want to inherit the service  
> check "Disk /apps"?
>
> I tried:
>
> define service{
> useGENERIC-SERVICE-TEMPLATE
> host_name  LINUXSERVER2.local.lan
> service_descriptionDisk /apps
> check_command  null
> }
>
> But obviously this fails with an "Already defined" error.
>
>
> Appreciate any info.
>
> Thanks,
> Matthew.
> --- 
> --- 
> --- 
> -
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> 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

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] [Q] Service config, go critical:HARD; Alert every 5 minutes until non-critical

2010-06-14 Thread Giorgio Zarrelli
You are right, I took one post I wrote here and I added some details.  
Now I am on the couch waiting for dinner but tomorrow I hope I can  
help you.

Ciao,

Giorgio

Il giorno 14/giu/2010, alle ore 19.22, "Roderick A. Anderson" 
 ha scritto:

> Giorgio Zarrelli wrote:
>> Hi,
>>
>> have a look at my little 2 cents on escalations, it will show you how
>> the checks timings and notification work.
>>
>>
>> http://www.zarrelli.org/blog/2010/04/26/nagios-notification-escalations-made-easy/
>
> Thanks. I now remember a (your?) your posting about this but I had
> forgotten it while I was researching.  This also it adds some more
> knowledge that I can use for what I would like to accomplish.
> "Bothersome alerts for the first hour then move to a really annoying
> alert interval after that.  :-)"
>
>
> \\||/
> Rod
> --
>>
>> Ciao,
>>
>> Giorgio
>>
>> Il giorno 14/giu/2010, alle ore 17.03, "Roderick A. Anderson" 
>> >> ha scritto:
>>
>>> My Nagios foo must leave a lot to be desired.  8-(
>>>
>>> I have not been able to figure out the correct combination of  
>>> service
>>> definition settings to get a check to go CRITICAL:HARD on the first
>>> try
>>> (no SOFT alerts), and keep sending alerts (every five minutes) until
>>> the
>>> check/alert clears.
>>>
>>> Either the complete answer or a clue-stick whack (the settings I
>>> should
>>> be looking at) would be greatly appreciated.
>>>
>>>
>>> TIA,
>>> Rod
>>> -- 
>>>
>>>
>>> ---
>>> ---
>>> ---
>>> --- 
>>> --
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> ___
>>> 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
>>
>> --- 
>> --- 
>> --- 
>> -
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> ___
>> 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
>
>
> --- 
> --- 
> --- 
> -
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> 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

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] [Q] Service config, go critical:HARD; Alert every 5 minutes until non-critical

2010-06-14 Thread Giorgio Zarrelli
Hi,

have a look at my little 2 cents on escalations, it will show you how  
the checks timings and notification work.


http://www.zarrelli.org/blog/2010/04/26/nagios-notification-escalations-made-easy/

Ciao,

Giorgio

Il giorno 14/giu/2010, alle ore 17.03, "Roderick A. Anderson" 
 ha scritto:

> My Nagios foo must leave a lot to be desired.  8-(
>
> I have not been able to figure out the correct combination of service
> definition settings to get a check to go CRITICAL:HARD on the first  
> try
> (no SOFT alerts), and keep sending alerts (every five minutes) until  
> the
> check/alert clears.
>
> Either the complete answer or a clue-stick whack (the settings I  
> should
> be looking at) would be greatly appreciated.
>
>
> TIA,
> Rod
> -- 
>
>
> --- 
> --- 
> --- 
> -
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> 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

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] Merlin/Ninja

2010-06-11 Thread Giorgio Zarrelli
Well,

Talking about Ninja, I installed on a Debian Lennt box. The  
installation process seemed a bit buggy and I see some problems like  
with scheduling scripts, but I find Ninja a useful tool.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 - Retention period for logrotate

2010-06-05 Thread Giorgio Zarrelli
Better to use log rotate and have the eldest log file mailed to an  
"archiving" mailbox, so you can recall them as you need.

Ciao,

Giorgio

Il giorno 05/giu/2010, alle ore 14.45, Marc Powell   
ha scritto:

>
> On Jun 5, 2010, at 3:57 AM, James Corteciano wrote:
>
>> Dear List,
>>
>> I am running Nagios version 3.2.0 and the archive logs are located  
>> in /var/log/nagios/archive which doing log rotation everyday. How  
>> can I configure nagios that the archive logs retention period is  
>> six (6) months?
>
> There isn't a configuration option for this. Nagios will keep the  
> log files indefinitely for reporting (you can go back 2+ years  
> through the web interface).
>
> You can cron a simple find -exec rm to do that but be aware that you  
> won't have any reporting capability beyond what you keep.
>
> Also, because you specifically mention it, using logrotate will  
> break reporting in nagios. The file naming convention must be exact  
> for nagios to find the files.
>
> --
> Marc
>
>
> --- 
> --- 
> --- 
> -
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> 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

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 not sending email notifications..

2010-06-05 Thread Giorgio Zarrelli

Hi,

It's not a Nagios problem. The problem is either at os level of your  
Nagios server (maybe you do not reaxh your mta or something wrong in  
your local to remote delivery) or it's a problem om you mta not  
accepting emails for delivery from Nagios server.


Login to your Nagios server then

su - nagios_user

Then issue the following command

mail

and check if there are any bounced mails from your mta or wathever else.

Ciao,

Giorgio

Il giorno 05/giu/2010, alle ore 04.52,  
 ha scritto:



Hi ,



I am using Nagios 3.0.6 on Linux with Fedora installed on it.



My Nagios suddenly stopped sending email notifications .When I tried  
sending manually using the command ‘echo "subject" | mail -s "messag 
e" contactem...@whatever ‘ I am not receiving any email.



Please someone guide me on this…



Here is my service template.



# Generic service definition template - This is NOT a real service,  
just a template!




define service{

namegeneric-service ;  
The 'name' of this service template


active_checks_enabled   1   ;  
Active service checks are enabled


passive_checks_enabled  1   ;  
Passive service checks are enabled/accepted


parallelize_check   1   ;  
Active service checks should be parallelized (disabling this can  
lead to major performance problems)


obsess_over_service 1   ; We  
should obsess over this service (if necessary)


check_freshness 0   ;  
Default is to NOT check service 'freshness'


notifications_enabled   1   ;  
Service notifications are enabled


event_handler_enabled   1   ;  
Service event handler is enabled


flap_detection_enabled  1   ;  
Flap detection is enabled


failure_prediction_enabled  1   ;  
Failure prediction is enabled


process_perf_data   1   ;  
Process performance data


retain_status_information   1   ;  
Retain status information across program restarts


retain_nonstatus_information1   ;  
Retain non-status information across program restarts


is_volatile 0   ;  
The service is not volatile


check_period24x7;  
The service can be checked at any time of the day


max_check_attempts  2   ; Re- 
check the service up to 3 times in order to determine its final  
(hard) state


normal_check_interval   5   ;  
Check the service every 10 minutes under normal conditions


retry_check_interval1   ; Re- 
check the service every two minutes until a hard state can be  
determined


#contact_groups  
stw_win_server,stw_network_devices,stw_app_server   ;  
Notifications get sent out to everyone in the 'admins' group


notification_optionsw,u,c   ;  
Send notifications about warning, unknown, critical, and recovery  
events


notification_interval   30  ; Re- 
notify about service problems every hour


notification_period 24x7;  
Notifications can be sent out at any time


register0   ;  
DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A  
TEMPLATE!


}



Thanks & Regards,

Ravi G

--- 
--- 
--- 
-

ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
___
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
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
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 w

Re: [Nagios-users] NagiosQL installation manual.

2010-06-01 Thread Giorgio Zarrelli
Enable php error log, or create a php cli script using that pear  
component and check the paths IT is looking for IT


Ciao,

Giorgio

Il giorno 01/giu/2010, alle ore 11.07, ntt broken  
 ha scritto:




Hello there..
thanks for replying back.

i'm almost in the end of the instllation.
right now i have problem with HTML_Template_IT.
in the beggining i succeded to do all of the "NagiosQL Installation:  
Checking requirements" in green except the mySQL thing.
when i did reboot the mySQL changed to ok and green status but the  
HTML_Template_IT changed to red and not ok status and i cannot fix it.
so it was working and all good from the NagiosQL side but it  
changeed status somehow becuase of the reboot.


it tells me that HTML_Template_IT is installed (using "#pear list"  
command and also when i try to install it again) but i cannot change  
it to green again in the NagiosQL screen.

uninstall and install again also don't work for me.

i cannot use pear-go since its an offline linux red hat machine. but  
there were no problems with the pear installation.


if you have an idea how can i continue it would be great.
thanks again.

also this reference exist (to add info to my previous message):
http://www.simsonlai.org/installing-nagios-with-nagiosql-backend-administration/




On Mon, May 31, 2010 at 11:38 PM, Giorgio Zarrelli  
 wrote:
I installes IT today. Didn't see any problems. Which problems did u  
meet?


Ciao,

Giorgio

Il giorno 31/mag/2010, alle ore 14.33, ntt broken  
 ha scritto:


I'm looking for more detailed NagiosQL installation manual/tutorial/ 
reference/notes etc.

Right now I have only those:
http://www.nagiosql.org/faq/31-general-documentation/49-documentation-for-nagiosql-2x.html
http://www.berhorst.net/index.php/nagiosmanually (section 6)

I found the installation notes not clear or missing – well, not fo 
r noobs.
I have working and kicking Nagios machine installed on RHE5 distro  
and I want to have for the first time NagiosQL installed working  
with it.
I went through the Nagios installation plus without problem since  
its well documented on the net.

if you have can you share some installation notes it would be great.

--- 
--- 
--- 
-


___
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 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 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 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] NagiosQL installation manual.

2010-05-31 Thread Giorgio Zarrelli
I installes IT today. Didn't see any problems. Which problems did u  
meet?


Ciao,

Giorgio

Il giorno 31/mag/2010, alle ore 14.33, ntt broken  
 ha scritto:


I'm looking for more detailed NagiosQL installation manual/tutorial/ 
reference/notes etc.

Right now I have only those:
http://www.nagiosql.org/faq/31-general-documentation/49-documentation-for-nagiosql-2x.html
http://www.berhorst.net/index.php/nagiosmanually (section 6)

I found the installation notes not clear or missing – well, not for  
noobs.
I have working and kicking Nagios machine installed on RHE5 distro  
and I want to have for the first time NagiosQL installed working  
with it.
I went through the Nagios installation plus without problem since  
its well documented on the net.

if you have can you share some installation notes it would be great.

--- 
--- 
--- 
-


___
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 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] having perl problem after upgrading

2010-05-16 Thread Giorgio Zarrelli
Try linking:

ln - s /usr/lib/libperl.so.5.8 /usr/lib/libperl.so.5.10

Ciao,

Giorgio

Il giorno 15/mag/2010, alle ore 15.38, "Miku, E. Cornelius"  ha scritto:

> I upgraded from Ubuntu 8.04 to Ubuntu 9.10, now when i run the "-v"  
> command to verify my configuration i get the below error...
>
> /usr/sbin/nagios3: error while loading shared libraries: libperl.so. 
> 5.8: cannot open shared object file: No such file or directory
>
> Please assist.
>
> i'm running Nagios 3.2
>
> If i try to locate libperl.so i get the below results;
>
> /usr/lib/libperl.so
> /usr/lib/libperl.so.5.10
> /usr/lib/libperl.so.5.10.0
>
> Thanks in advance,
>
> --
> Miku
> --- 
> --- 
> --- 
> -
>
> ___
> 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 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] Odd long URL

2010-05-11 Thread Giorgio Zarrelli
Try double quoting the URL.

Ciao,

Giorgio

Il giorno 11/mag/2010, alle ore 18.13,  
 ha scritto:

> Check_http returns an incorrect response code, check_http returns  
> the following
>
> [r...@pkinagios plugins]# HTTP WARNING: HTTP/1.1 404 Not Found -  
> 1099 bytes in 0.177 second response time |time=0.176506s;;;0.00  
> size=1099B;;;0
>
> While our BB server returns a 200 - which is correct.
>
> Of course I could very well be using check_http incorrectly, I have  
> tried both of the following and neither return the correct value
>
> ./check_http 
> http://server.domain.com/crltest/http?server=server-m3.domain.com&path=/CRL/&crl=ent.crl
> ./check_http -H server.domain.com -u /crltest/http?server=server- 
> m3.domain.com&path=/CRL/&crl=ent.crl
>
> -Original Message-
> From: Enrico Zimol [mailto:lomiz.m...@gmail.com]
> Sent: Tuesday, May 11, 2010 12:34 AM
> To: Nagios Users List
> Subject: Re: [Nagios-users] Odd long URL
>
> On 11 May 2010 01:45,   wrote:
>> Hello,
>> "How can I monitor the following URL with Nagios?"
>> http://server.domain.com/crltest/http?server=server-m3.domain.com&path=/CRL/&crl=test.crl
>>
> What do you mean with "check"?
> Check the result of your http request (202, 403 etc) or check the page
> to find an expression?
>
> -- 
> Enrico Zimol
>
> --- 
> --- 
> --- 
> -
>
> ___
> 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 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 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 newbie looking for guidance

2010-05-10 Thread Giorgio Zarrelli
Start with the online docs, they are really helpful

Ciao,

Giorgio

Il giorno 11/mag/2010, alle ore 00.29, Ari Echt   
ha scritto:

> Hello,
>
> Nagios newbie here looking to setup monitoring for 4 servers. Any
> helpful guides out there that anyone recommends would be greatly
> appreciated.
>
> Thanks!
>
>
>
>
>
>
> --- 
> --- 
> --- 
> -
>
> ___
> 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 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 Monitor for MSA500

2010-05-10 Thread Giorgio Zarrelli

Use snmp

Ciao,

Giorgio

Il giorno 10/mag/2010, alle ore 22.52, rmp dmd   
ha scritto:



Hi,

We have HP ProLiant DL380 G4 Packaged Cluster with MSA500 G2 and I  
need to monitor the MSA500 for not only HDD failure but also fan or  
PSU.


This (http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1273520258039+28353475&threadId=1262924 
) indicates check_hpasm plugin will help. But I found out that it  
only monitor the server but not the SAN.


I checked with HP support, hpaducli will generate HW report for the  
MSA500.


So two questions:
- any nagios plug-in which will check MSA500 hardware STATUS
- how can I incorporate hpaducli with nrpe?

Thanks!
--- 
--- 
--- 
-


___
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 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] Monitor network traffic

2010-05-10 Thread Giorgio Zarrelli
I do not see the problem. Enable snmp and use a plugin like

  
http://www.monitoringexchange.org/inventory/Check-Plugins/Software/SNMP/check_bandwidth3

Ciao,

Giorgio

Il giorno 10/mag/2010, alle ore 11.44, Brian O'Mahony 
 ha scritto:

> Thanks Patrick
>
> What I am looking for is something like this, but I would prefer  
> something more basic - I have only a handful of servers I want to  
> monitor the network bandwith on, and to be honest MRTG looks like it  
> has way more functionality than I need. I really just want something  
> basic.
>
> Regards
>
> B
>
> -Original Message-
> From: Morris, Patrick [mailto:patrick.mor...@hp.com]
> Sent: Friday, May 07, 2010 4:22 PM
> To: Nagios Users List
> Subject: Re: [Nagios-users] Monitor network traffic
>
> Brian O'Mahony wrote:
>>
>> I want to monitor the NIC usage on a  number of servers and graph
>> them. I currently have nagiosgraph installed and running, but I am
>> unsure of what plugin to use to perform the checks.
>>
>>
>>
>> I want to monitor the bandwidth usage of the NICs.
>>
>
> MRTG does a pretty good job of graphing network bandwidth usage.  You
> can then use one of the check_mrtg plugins if you want to alert  
> through
> Nagios based on thresholds.
>
> --- 
> --- 
> --- 
> -
>
> ___
> 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
>
>
> The information in this email is confidential and may be legally  
> privileged.
> It is intended solely for the addressee. Access to this email by  
> anyone else
> is unauthorized. If you are not the intended recipient, any  
> disclosure,
> copying, distribution or any action taken or omitted to be taken in  
> reliance
> on it, is prohibited and may be unlawful. If you are not the intended
> addressee please contact the sender and dispose of this e-mail.  
> Thank you.
>
>
> --- 
> --- 
> --- 
> -
>
> ___
> 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 mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Check for the IBM ds4000 series totalstorage cabinett - FIX

2010-05-06 Thread Giorgio Zarrelli
Hi,

yes you can. I splitted all the major files in smaller files and nested
directories, so it's easier for me to manage all the services and hosts.

And I assure you, I have an heavy "split" configuration.


> Hi at all,
> I'm newbie on nagios and I'm writing here to ask you for suggestions
> abut how to structure my monitoring situation.
> I've to monitor linux servers for about 15/20 customers, from 1 to 5
> server for each customer.
> We aren't on vpn with customers, so this servers are all behind NAT.
> That isn't a problem because we are the administrator of the firewall
> (other linux server) so we can manage any kind of DNAT and filter
> rule.
>
> I read on official documentation that suggest to use NCSA addon for
> distributed monitoring, but we choose to use NRPE addon for different
> motivations like:
> -customer force us to do that
> -the number of monitored servers for each customer will never grow up
> -the services to monitor for each server are the same (raid hw/sw,
> disk usage etc)
> -we need a completly centralized monitoring structure
>
> For last sentence I thought to use the arguments option on NRPE (yes,
> I read the SECURITY document).
> Besides, to solve the problem of NAT with NRPE I'll do DNAT on
> firewall and the port parameter on check_nrpe plugin (is there
> problems to do that? I did little tests but I prefear a confirm)
>
>
> To manage this structure I need to organized a well-formed config file
> structure on nagios server.
>
> I thinked to structure it like this
>
> obj--|
>   |-->templatelinuxserversgeneral.cfg
>   |
>   |-->customer_1_directory|->templateserver.cfg
>   |   |->server1.cfg
>   |   |->server2.cfg
>   |   |->servern.cfg
>   |
>   |-->customer_2_directory|->templateserver.cfg
>   |->server1.cfg
>   |->servern.cfg
>
>
> Where:
> -templatelinuxserversgeneral.cfg is a very basic template for server
> -customer_1_directory in wich there is 1 file for each customer's server
> -templateserver.cfg will use templatelinuxserversgeneral and will add
> more specific common variabiles for that customer's server like the
> public IPAddress that will be the same for each customer's server.
> -servern.cfg in wich there will be some very specific server variables
> like nrpe port (read up).
>
> What do you think?
> How can I organize that service-server combination?
>
>
> Thank's so much
>
> P.S. sorry for my bad english
>
> --
> Enrico Zimol
>
> --
> ___
> 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 mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Check for the IBM ds4000 series totalstorage cabinett - FIX

2010-05-06 Thread Giorgio Zarrelli
Hi,

after the latest firmware upgrade to a IBM DS 4700, the "Check for the IBM
ds4000 series totalstorage cabinet" stopped working.

I made a small fix to the perl plugin, just 2 lines. To have the plugin
working with the latest cli, make this substitutions:

Line 164

Change

if($line=~/Array status:\s*([^\s]*)/i) {

with

if(($line=~/Array status:\s*([^\s]*)/i) || ($line=~/Status:\s*([^\s]*)/i)) {


Line 167

Change

if(!defined($array_status) || !($array_status=~/online/i)) {

with

if(!defined($array_status) || !(($array_status=~/online/i) ||
($array_status=~/optimal/i))) {

Done, now it should work. The latest upgrade changes the output of cli
messages, that's why the script doesn't work anymore. The fix traps the
old and new status messages.

Hope it helps

Cheers,

Giorgio Zarrelli


--
___
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 restart httpd service on remote server

2010-05-03 Thread Giorgio Zarrelli

Non completely correctl. Event handlers can do the job for you.

Ciao,

Giorgio

Il giorno 03/mag/2010, alle ore 18.38, Robert Wolfe evolve.com> ha scritto:


If the HTTPD service stops running completely, you need to log into  
the server that runs your httpd server and restart the httpd process  
yourself.  The same thing goes for any other service on remote  
machines.




From: José Campos [mailto:jjscam...@gmail.com]
Sent: Monday, May 03, 2010 12:27 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] how to restart httpd service on remote server





Hello everyone.



I have a Web server witch is been monitorized with  
nagios and nrpe, but I don’t know how recover httpd service or other 
s if they faild.


I only found some how to recover on some machine.



 Atentamente,



 José Campos



--- 
--- 
--- 
-

___
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 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] event handler & flapping

2010-04-26 Thread Giorgio Zarrelli
Try with environment variables, they Are described in the manual.  
Mauve they can help!

Ciao,

Giorgio

Il giorno 26/apr/2010, alle ore 18.54, alexus  ha  
scritto:

> On Mon, Apr 26, 2010 at 11:20 AM, Flyinvap  wrote:
>> Le Mon, 26 Apr 2010 10:25:37 -0400,
>> alexus  a écrit :
>>
>>> is there a way to incorporate flapping state into event handler?
>>
>> May be test $HOSTPERCENTCHANGE$, $SERVICEPERCENTCHANGE$ or
>> $NOTIFICATIONTYPE$ macros in your event handler script ?
>>
>> --
>> Fly
>>
>>
>>
>> --- 
>> --- 
>> --- 
>> -
>> ___
>> 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
>
> I'm trying to pass $NOTIFICATIONTYPE$ into my event handler but I'm
> not sure why, it won't get passed...
> I even turn on debuging and I see my event handler kicks in, yet
> nothing get passed for NOTIFICATIONTYPE, yet all other stuff get
> passed that I was doing before such as SERVICESTATE SERVICESSTATETYPE
> and SERVICEATTEMPTS
>
> -- 
> http://alexus.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

--
___
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] passive host alive check?

2010-04-23 Thread Giorgio Zarrelli
Hi,

It is not clear what's your problem. Please, answer to the following  
question:

Are you able to ping 192.168.1.10 from  the Nagios server?
Ciao,

Giorgio

Il giorno 23/apr/2010, alle ore 08.31, "Klein, Oliver"  
 ha scritto:

> Hi Giorgio
>
> I know this with check-host-alive, but I don´t understand how to nag 
> ios resolve
> the name or IP address, cause it´s a private ip? here you can see th 
> e host definition
>
> define host{
>use  fuerstliche-server  ;  
> Inherit default values from a template
>parents  astaro
>host_name  sbs-server.fuerstliche.local; The name  
> we're giving to this host
>aliassbs-server.fuerstliche.local; A  
> longer name associated with the host
>address 192.168.1.10
>}
>
> Any hints again for me? ;-)
>
> regards olly
>
>
> Mit freundlichen Gruessen
>
> Oliver Klein
> System Engineer
>
> Tel:02506 / 93 20 214
> Mobil:  0163-5932004
> E-Mail: okl...@nccms.de
>
>
>
> NCC
> Noethen Computer Center GmbH
> Wolbecker Windmuehle 55
> 48167 Muenster
>
> Tel: 02506 93 20 0
> FAX: 02506 93 20 20
>
> E-Mail:   i...@nccms.de
> Homepage: www.nccms.de
>
>
>
>
>
>
>
> Amtsgericht Muenster HRB 5036Geschaeftsfuehrer: Ralf Bakenecker
> Uwe-Christian Surma
>
>
> _
> Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es  
> gerichtet
> ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
> Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
> aeusserung ist die des Autors und stellt nicht notwendigerweise die
> Ansicht oder Meinung von NCC GmbH dar.
> Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
> erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
> Abschrift oder jeglicher Druck dieser E-Mail ist strengstens  
> untersagt.
>
> Weder NCC GmbH noch der Absender (Oliver Klein)
> uebernehmen die Haftung fuer Viren; es obliegt Ihrer Verantwortung,
> die E-Mail und deren  Anhaenge auf Viren zu pruefen.
> Anhaenge:
>
> _
> Versand am 23.04.2010 08:32 von Klein Oliver
> Validation-Code: 3264606733340
>
> -Urspruengliche Nachricht-
> Von: Giorgio Zarrelli [mailto:zarre...@linux.it]
> Gesendet: Donnerstag, 22. April 2010 14:00
> An: Nagios Users List
> Betreff: Re: [Nagios-users] passive host alive check?
>
> Hi,
>
> let's have a glance to the check-host-alive definition:
>
> define command{
>command_namecheck-host-alive
>command_line$USER1$/check_ping -H $HOSTADDRESS$ -w  
> 3000.0,80%
> -c 5000.0,100% -p 5
>}
>
> As you can see, it uses $HOSTADDRESS$ so, as long as in you host  
> definition you write:
>
> host_name fantasy-name
> address   xxx.xxx.xxx.xxx
>
> and the address is a valid ip, your check-host-alive will never try  
> to resolve the fake (aka not dns) name and will use "address" ip as  
> the target for check_ping.
>
> In this way, on your web interface you will see the "fake" name but  
> the check will be done on the real ip address.
>
> Giorgio
>
> 
>> Hi
>>
>> what do you mean?
>>
>>
>> Mit freundlichen Gruessen
>>
>> Oliver Klein
>> System Engineer
>>
>> Tel:02506 / 93 20 214
>> Mobil:  0163-5932004
>> E-Mail: okl...@nccms.de
>>
>>
>>
>> NCC
>> Noethen Computer Center GmbH
>> Wolbecker Windmuehle 55
>> 48167 Muenster
>>
>> Tel: 02506 93 20 0
>> FAX: 02506 93 20 20
>>
>> E-Mail:   i...@nccms.de
>> Homepage: www.nccms.de
>>
>>
>>
>>
>>
>>
>>
>> Amtsgericht Muenster HRB 5036Geschaeftsfuehrer: Ralf Bakenecker
>> Uwe-Christian Surma
>>
>>
>> _
>> Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es
>> gerichtet ist und kann vertrauliches bzw. unter das Berufsgeheimnis
>> fallendes Material enthalten. Jegliche darin enthaltene Ansicht oder
>> Meinungs- aeusserung ist die des Autors und stellt nicht
>> notwendigerweise die Ansicht oder Meinung von NCC GmbH dar.
>> Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
>> erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
>> Abschrift oder jegl

Re: [Nagios-users] Host unreachable what's nagios do.

2010-04-22 Thread Giorgio Zarrelli

From the manual:

"When hosts change state (i.e. from UP to DOWN), the host reachability  
logic in Nagios kicks in. The reachability logic will initiate  
parallel checks of the parents and children of whatever hosts change  
state. This allows Nagios to quickly determine the current status of  
your network infrastructure when changes occur."


Ciao,

Giorgio

Il giorno 22/apr/2010, alle ore 23.16, Marcel  ha  
scritto:



(assuming nagios 3.x series) please read this: 
http://nagios.sourceforge.net/docs/3_0/toc.html

On Thu, Apr 22, 2010 at 5:14 PM, Albert Shih   
wrote:

Hi all.

I would like to known what nagios with the child host when a parent is
unreachable.

Does he continu to check something ? For example trying to known  
when a

child return to normal.

Regards.

JAS
--
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
Heure local/Local time:
Jeu 22 avr 2010 22:12:23 CEST

--- 
--- 
--- 
-

___
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 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 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] passive host alive check?

2010-04-22 Thread Giorgio Zarrelli
Hi,

let's have a glance to the check-host-alive definition:

define command{
command_namecheck-host-alive
command_line$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80%
-c 5000.0,100% -p 5
}

As you can see, it uses $HOSTADDRESS$ so, as long as in you host
definition you write:

host_name fantasy-name
address   xxx.xxx.xxx.xxx

and the address is a valid ip, your check-host-alive will never try to
resolve the fake (aka not dns) name and will use "address" ip as the
target for check_ping.

In this way, on your web interface you will see the "fake" name but the
check will be done on the real ip address.

Giorgio


> Hi
>
> what do you mean?
>
>
> Mit freundlichen Gruessen
>
> Oliver Klein
> System Engineer
>
> Tel:02506 / 93 20 214
> Mobil:  0163-5932004
> E-Mail: okl...@nccms.de
>
>
>
> NCC
> Noethen Computer Center GmbH
> Wolbecker Windmuehle 55
> 48167 Muenster
>
> Tel: 02506 93 20 0
> FAX: 02506 93 20 20
>
> E-Mail:   i...@nccms.de
> Homepage: www.nccms.de
>
>
>
>
>
>
>
> Amtsgericht Muenster HRB 5036Geschaeftsfuehrer: Ralf Bakenecker
>Uwe-Christian Surma
>
>
> _
> Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es gerichtet
> ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
> Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
> aeusserung ist die des Autors und stellt nicht notwendigerweise die
> Ansicht oder Meinung von NCC GmbH dar.
> Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
> erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
> Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.
>
> Weder NCC GmbH noch der Absender (Oliver Klein)
> uebernehmen die Haftung fuer Viren; es obliegt Ihrer Verantwortung,
> die E-Mail und deren  Anhaenge auf Viren zu pruefen.
>  Anhaenge:
>
> _____
> Versand am 22.04.2010 12:59 von Klein Oliver
> Validation-Code: 3152203752213
>
> -Urspruengliche Nachricht-
> Von: Giorgio Zarrelli [mailto:zarre...@linux.it]
> Gesendet: Donnerstag, 22. April 2010 12:46
> An: Nagios Users List
> Cc: Nagios Users List
> Betreff: Re: [Nagios-users] passive host alive check?
>
> IT works anyway.
>
> Ciao,
>
> Giorgio
>
> Il giorno 22/apr/2010, alle ore 12.35, "Klein, Oliver"
>  ha scritto:
>
>> Hi
>>
>> ok one more problem, so i changed the host check from "check-passiv"
>> to "check-host-alive" , so that works
>> for some domains with a really FQDN, but we have some domains with
>> f.e. *.local. So how can I get an answer from these hosts?
>>
>> check_ping: Ungültige(r) Hostname/Adresse - sbs-server.fuerstliche.
>> local
>> Usage:check_ping -H  -w ,% -c ,%
>> [-p packets] [-t timeout] [-4
>>
>> Regards Olly
>>
>>
>> Mit freundlichen Gruessen
>>
>> Oliver Klein
>> System Engineer
>>
>> Tel:02506 / 93 20 214
>> Mobil:  0163-5932004
>> E-Mail: okl...@nccms.de
>>
>>
>>
>> NCC
>> Noethen Computer Center GmbH
>> Wolbecker Windmuehle 55
>> 48167 Muenster
>>
>> Tel: 02506 93 20 0
>> FAX: 02506 93 20 20
>>
>> E-Mail:   i...@nccms.de
>> Homepage: www.nccms.de
>>
>>
>>
>>
>>
>>
>>
>> Amtsgericht Muenster HRB 5036Geschaeftsfuehrer: Ralf Bakenecker
>> Uwe-Christian Surma
>>
>>
>> _
>> Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es
>> gerichtet ist und kann vertrauliches bzw. unter das Berufsgeheimnis
>> fallendes Material enthalten. Jegliche darin enthaltene Ansicht oder
>> Meinungs- aeusserung ist die des Autors und stellt nicht
>> notwendigerweise die Ansicht oder Meinung von NCC GmbH dar.
>> Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
>> erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
>> Abschrift oder jeglicher Druck dieser E-Mail ist strengstens
>> untersagt.
>>
>> Weder NCC GmbH noch der Absender (Oliver Klein) uebernehmen die
>> Haftung fuer Viren; es obliegt Ihrer Verantwortung, die E-Mail und
>> deren  Anhaenge auf Viren zu pruefen.
>> Anhaenge:
>>
>> _
>> Versand am 22.04.2010 12:35 

Re: [Nagios-users] passive host alive check?

2010-04-22 Thread Giorgio Zarrelli
IT works anyway.

Ciao,

Giorgio

Il giorno 22/apr/2010, alle ore 12.35, "Klein, Oliver"  
 ha scritto:

> Hi
>
> ok one more problem, so i changed the host check from "check-passiv"  
> to "check-host-alive" , so that works
> for some domains with a really FQDN, but we have some domains with  
> f.e. *.local. So how can I get an answer
> from these hosts?
>
> check_ping: Ungültige(r) Hostname/Adresse - sbs-server.fuerstliche. 
> local
> Usage:check_ping -H  -w ,% -c ,%
> [-p packets] [-t timeout] [-4
>
> Regards Olly
>
>
> Mit freundlichen Gruessen
>
> Oliver Klein
> System Engineer
>
> Tel:02506 / 93 20 214
> Mobil:  0163-5932004
> E-Mail: okl...@nccms.de
>
>
>
> NCC
> Noethen Computer Center GmbH
> Wolbecker Windmuehle 55
> 48167 Muenster
>
> Tel: 02506 93 20 0
> FAX: 02506 93 20 20
>
> E-Mail:   i...@nccms.de
> Homepage: www.nccms.de
>
>
>
>
>
>
>
> Amtsgericht Muenster HRB 5036Geschaeftsfuehrer: Ralf Bakenecker
> Uwe-Christian Surma
>
>
> _
> Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es  
> gerichtet
> ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
> Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
> aeusserung ist die des Autors und stellt nicht notwendigerweise die
> Ansicht oder Meinung von NCC GmbH dar.
> Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
> erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
> Abschrift oder jeglicher Druck dieser E-Mail ist strengstens  
> untersagt.
>
> Weder NCC GmbH noch der Absender (Oliver Klein)
> uebernehmen die Haftung fuer Viren; es obliegt Ihrer Verantwortung,
> die E-Mail und deren  Anhaenge auf Viren zu pruefen.
> Anhaenge:
>
> _
> Versand am 22.04.2010 12:35 von Klein Oliver
> Validation-Code: 3152203752163
>
> -Urspruengliche Nachricht-
> Von: Klein, Oliver [mailto:okl...@nccms.de]
> Gesendet: Donnerstag, 22. April 2010 12:03
> An: Nagios Users List
> Betreff: Re: [Nagios-users] passive host alive check?
>
> Hi Assaf
>
> ok so i change the default check command fort he host to "check-host- 
> alive" in the templates.cfg  but host is still "down"
> in the webinterface. So where I have to do these changes? Can you  
> give a short explain?
>
> regards olly
>
>
> Mit freundlichen Gruessen
>
> Oliver Klein
> System Engineer
>
> Tel:02506 / 93 20 214
> Mobil:  0163-5932004
> E-Mail: okl...@nccms.de
>
>
>
> NCC
> Noethen Computer Center GmbH
> Wolbecker Windmuehle 55
> 48167 Muenster
>
> Tel: 02506 93 20 0
> FAX: 02506 93 20 20
>
> E-Mail:   i...@nccms.de
> Homepage: www.nccms.de
>
>
>
>
>
>
>
> Amtsgericht Muenster HRB 5036Geschaeftsfuehrer: Ralf Bakenecker
> Uwe-Christian Surma
>
>
> _
> Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es  
> gerichtet ist und kann vertrauliches bzw. unter das Berufsgeheimnis  
> fallendes Material enthalten. Jegliche darin enthaltene Ansicht oder  
> Meinungs- aeusserung ist die des Autors und stellt nicht  
> notwendigerweise die Ansicht oder Meinung von NCC GmbH dar.
> Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich  
> erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,  
> Abschrift oder jeglicher Druck dieser E-Mail ist strengstens  
> untersagt.
>
> Weder NCC GmbH noch der Absender (Oliver Klein) uebernehmen die  
> Haftung fuer Viren; es obliegt Ihrer Verantwortung, die E-Mail und  
> deren  Anhaenge auf Viren zu pruefen.
> Anhaenge:
>
> _
> Versand am 22.04.2010 12:02 von Klein Oliver
> Validation-Code: 3152203752122
>
> -Urspruengliche Nachricht-
> Von: Assaf Flatto [mailto:nag...@flatto.net]
> Gesendet: Donnerstag, 22. April 2010 10:57
> An: nagios-users@lists.sourceforge.net
> Betreff: Re: [Nagios-users] passive host alive check?
>
> Klein, Oliver wrote:
>>
>>
>> Hi
>>
>> i have a questions about passive checks, we use this option to  
>> monitor
>> some servers from our customers.
>>
>> Now our problem is, that the services are in the state "OK" but the
>> hosts are "down", but the host is "alive".
>>
>> How can I solve this? I read some docs about this issue, but I did 
>> n´t
>> really understand what to do now. Can anyone
>>
>> give a short howto about this issue?
>>
>> Big thx in advance
>>
>> Regards Olly
>>
>>
>>
>>
>
> AFAIK nagios passive checks ( defined usually by the users )are for  
> services ( most users do not enable passive checks for hosts) -  
> hence the host is never getting a status update as it is not check  
> as a "service" per say.
> you may need to set active checks on the host , and passive test for  
> the host-related services , or you can change the host status  
> manually with the use of the e

Re: [Nagios-users] $SERVICEOUTPUT$ missing from emails.. Nagios 3.2.1

2010-04-21 Thread Giorgio Zarrelli
Ok, found a workaround in this message:

http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg23566.html

Instead of

/usr/bin/printf "%b"

use

/bin/echo -e

so, notify-service-by-email becomes:

define command{
command_namenotify-service-by-email
command_line/bin/echo -e  "* Nagios *\n\nNotification
Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info
Aggiuntive:\n\n$SERVICEOUTPUT$ - $LONGSERVICEOUTPUT$" |
/usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert:
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}


Cheers.



--
___
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] $SERVICEOUTPUT$ missing from emails.. Nagios 3.2.1

2010-04-21 Thread Giorgio Zarrelli
Hi, this is the definition:

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


And this is the output from notify-service-by-email, not showing
$SERVICEOUTPUT$ - $LONGSERVICEOUTPUT$:

* Nagios *

Notification Type: PROBLEM

Service: Totale Processi
Host: Nagios
Address: 127.0.0.1
State: WARNING

Date/Time: Wed Apr 21 12:34:30 CEST 2010

Additional Info:



--
___
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] $SERVICEOUTPUT$ missing from emails.. Nagios 3.2.1

2010-04-21 Thread Giorgio Zarrelli
Hi,

I have the same problem. Just the %SERVICEOUTPUT$ and "LONGSERVICEOUTPUT$
are missing from notification emails. I am checking what can be the
problem.


> Hi Matt,
>   We receive the emails ok, just missing the $SERVICEOUTPUTS$ part..
>
> -Peter
>
>
> -Original Message-
> From: Matt Simmons [mailto:standalone.sysad...@gmail.com]
> Sent: Tuesday, April 20, 2010 7:46 AM
> To: Nagios Users List
> Subject: Re: [Nagios-users] $SERVICEOUTPUT$ missing from emails.. Nagios
> 3.2.1
>
> Have you verified that your MTA is operating correctly? Try sending mail
> from the command line (echo "test 1" | mail -s "test 1"
> em...@address.com) and see if that goes through, before you suspect
> Nagios.
>
> --Matt
>
>
> On Tue, Apr 20, 2010 at 7:34 AM, Marc Powell  wrote:
>>
>> On Apr 19, 2010, at 10:34 PM, Peter Kranz wrote:
>>
>>> It's the default that comes with the .tar:
>>>
>>> # 'notify-by-email' command definition define command{
>>>command_namenotify-by-email
>>>command_line/usr/bin/printf "%b" "* Nagios
>>> *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
>>> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
>>> $SERVICESTATE$\n\nDate/Time:$LONGDATETIME$\n\nAdditional
>>> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$
>>> alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
>>> $CONTACTEMAIL$
>>>}
>>
>> Make sure the contact is using 'notify-by-email' as their service
>> notification command. There have been no reports of this as a bug so I'd
>> greatly lean toward it being a configuration issue.
>>
>> --
>> Marc
>>
>>
>> --
>>  Download Intel® Parallel Studio Eval Try the new
>> software tools for yourself. Speed compiling, find bugs proactively,
>> and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> ___
>> 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
>>
>
>
>
> --
> LITTLE GIRL: But which cookie will you eat FIRST?
> COOKIE MONSTER: Me think you have misconception of cookie-eating process.
>
> COOKIE MONSTER: Boy, I wish I were a sysadmin so I could go to the NJ-PICC
> Sysadmin Conference! http://www.picconf.org
>
> --
> Download Intel® Parallel Studio Eval Try the new software tools for
> yourself. Speed compiling, find bugs proactively, and fine-tune
> applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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 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.lock file issue...

2010-04-17 Thread Giorgio Zarrelli

Check the ownership and permissions on Nagios lock file

Ciao,

Giorgio

Il giorno 17/apr/2010, alle ore 16.02,  
 ha scritto:



Hi,

 I am using Nagios 3.0.6 with Nagios plugins 1.4.14 on Linux with  
Fedora 10.1.


 I am having a tuff time getting my nagios box running. Even after  
doing the configuration changes they are not getting reflected.


After doing the changes ,when I run the below command it is not  
showing any errors or warnings.


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

But after this when I run the command service nagios restart,I get  
the following output.


[r...@ltcpnagprd01 objects]# service nagios restart

Running configuration check...done.

Stopping nagios: No lock file found in /usr/local/nagios/var/ 
nagios.lock


Starting nagios: done.

I have checked whether the nagios.lock file is present or not,please  
see below output.


[r...@ltcpnagprd01 ~]# cd /usr/local/nagios/var/

[r...@ltcpnagprd01 var]# ls

archives  nagios.lock  nagios.log  objects.cache  retention.dat  rw   
spool  status.dat




Please someone help me on this..

Thanks,

Ravi G



--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] Monitor IBM storage from nagios.

2010-04-16 Thread Giorgio Zarrelli
As I told privately to Chris, I am short on time but if you find the  
right oids I can code a plugin and release in GPL v.3. I have a ds4000  
and a ds4700 to test on. Just matter of spare tine, but if I can avoid  
gettin crazy in finding them,  I can save time to code.

Ciao,

Giorgio

Il giorno 16/apr/2010, alle ore 09.55, Chris  ha  
scritto:

> Hi,
>
> I am looking for exactly the same! On Monitoring Exchange is an check
> for ds4x00 systems. But it checks only array_status, device_status,
> logical_status and system_status. So its not that what we want.
>
> So is here anyone who can help?
>
> Thanks a lot!
>
>
>
> Am 15.04.2010 um 13:35 schrieb rakesh kakde :
>
>> Dear All,
>>
>> Is there any possibility to monitor IBM storage DS8100 and DS4800 so
>> that I can get the trend analysis in pnp4nagios for parameters like
>>
>> Allocated Capacity
>> Available Capacity
>> Allocated Capacity
>> Volume Group Capacity
>> Volume Group Freespace
>> %Allocated VG Capacity
>> Cache Size
>> Nonvolatile Storage
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg  Max  Avg
>> Max  Avg Max
>>
>> Tot Xfer (KB/op) Tot Hit%
>> (%) Wrt-cch delay% (%)
>> Avg   Max  Avg Max
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg   Max  Avg
>> Max  AvgMax
>>
>>
>> Any help is highly appriciated.
>>
>> Regards
>> Rakesh Kakde
>> ---
>> ---
>> ---
>> -
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> ___
>> 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
>
> --- 
> --- 
> --- 
> -
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Monitor IBM storage from nagios.

2010-04-16 Thread Giorgio Zarrelli
It's just a matter of Pisa

Ciao,

Giorgio

Il giorno 16/apr/2010, alle ore 09.55, Chris  ha  
scritto:

> Hi,
>
> I am looking for exactly the same! On Monitoring Exchange is an check
> for ds4x00 systems. But it checks only array_status, device_status,
> logical_status and system_status. So its not that what we want.
>
> So is here anyone who can help?
>
> Thanks a lot!
>
>
>
> Am 15.04.2010 um 13:35 schrieb rakesh kakde :
>
>> Dear All,
>>
>> Is there any possibility to monitor IBM storage DS8100 and DS4800 so
>> that I can get the trend analysis in pnp4nagios for parameters like
>>
>> Allocated Capacity
>> Available Capacity
>> Allocated Capacity
>> Volume Group Capacity
>> Volume Group Freespace
>> %Allocated VG Capacity
>> Cache Size
>> Nonvolatile Storage
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg  Max  Avg
>> Max  Avg Max
>>
>> Tot Xfer (KB/op) Tot Hit%
>> (%) Wrt-cch delay% (%)
>> Avg   Max  Avg Max
>>
>> Tot I/Os (ops/s) Tot MB (MB/
>> s)  Tot Time (ms/op)
>> Avg   Max  Avg
>> Max  AvgMax
>>
>>
>> Any help is highly appriciated.
>>
>> Regards
>> Rakesh Kakde
>> ---
>> ---
>> ---
>> -
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> ___
>> 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
>
> --- 
> --- 
> --- 
> -
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] bizarre Nagios 2.12 memory leak

2010-04-15 Thread Giorgio Zarrelli
Did you check zombie procs growth an iowait om cpu?

Ciao,

Giorgio

Il giorno 15/apr/2010, alle ore 17.24, Jeremy  ha  
scritto:

> We have a large distributed setup running Nagios 2.12 with 20  
> distributed servers sharing about 2 checks against 2500 hosts.  
> They are reporting into multiple master Nagios servers using a  
> modified OCP_daemon that handles multiple master servers. Recently  
> we nearly doubled our number of distributed servers. Our number of  
> checks had grown so we only were doing about 20-30% per minute on  
> some of our most busy distributed servers. Now we are doing 90% per  
> minute.
>
> Ever since we increased the frequency of all the checks, our oldest  
> Master server has started crashing randomly every so often. Nothing  
> else has changed. Memory use goes through the roof until eventually  
> there is 0 swap left and the server finally crashes and has to be  
> rebooted. If we restart the Nagios service while the memory usage is  
> going crazy, it drops back down to normal for quite a while, but  
> days later it will happen again. I started restarting Nagios on that  
> server once an hour but it hasn't helped. We tried upgrading to 16  
> GB of RAM which has made this happen a bit less often, but it  
> continues to happen sometimes.
>
> We are using NPCD to graph the performance data from all of our  
> checks, but all the graph .RRD files are on a dedicated partition,  
> and the crashing happens even when we disable graphing completely  
> and disk I/O is near 0% on both the system partitions and the graph  
> partition.
>
> So I was wondering how I could go about figuring out why Nagios is  
> freaking out on our older server (Dell PowerEdge 1950). Our other  
> Master server (a Dell PowerEdge R710) gets all the same checks  
> reported to it, and handles it just fine, but it using much newer  
> Xeon CPUs, faster memory, etc. The old crashing server handles  
> things just fine for days at a time until it randomly runs itself  
> out of swap space and crashes.
>
> I know I really should get around to upgrading to Nagios 3.x but no  
> time for that yet and it's going to be a pain to upgrade them all at  
> once without being blind for a little bit, so pretend Nagios 3.x  
> isn't an option just yet.
>
> Thanks for any insight!
> Jeremy
> --- 
> --- 
> --- 
> -
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_by_ssh failing - host key verification failed

2010-04-14 Thread Giorgio Zarrelli
If u try an ssh login from Nagios box to the remote box, u can login  
without been asked for a password?



Ciao,

Giorgio

Il giorno 14/apr/2010, alle ore 23.15, "O'Donnell, Robert L" > ha scritto:


Running nagios 3.0.6 on OpenSUSE and trying to get info from a SUSE  
enterprise machine.




Chk_by_ssh returns UNKNOWN and “Remote command execution failed: Hos 
t key verification failed”,  check_ping works.




I have played with every combo of options I could think of, but same  
results.  This is my first setup with remote checks on a linux  
machine (windows machine checks working fine), so it could be a newb  
problem.




(from commands.cfg)

# check_ssh_dummy command definition

define command{

 command_name  check_ssh_dummy

 command_line  $USER1$/check_by_ssh –H $HOSTADDRESS$ -l  
nagios -2  \


 –I /etc/nagios/.ssh/id_dsa –C “/usr/lib/nagios/plugins/ 
check_dummy 0”


 }



I took out the desired response text to eliminate possible double  
quote issues, but it made no difference






(from object config)



define service{

 uselocal-service

 host_name  (machine_name)

 service_descriptionPING

 check_command  check_ping!100.0,20%!500.o,60%

 }



define_service{

 use local-service

 host_name   (machine_name)

 service_description check_ssh_dummy!

 }





From the command line, I run:



/usr/lib/nagios/plugins/check_by_ssh –H (machine_ip) –l nagios – 
i /etc/nagios.ssh/id_dsa –C “usr/lib/nagios/plugins/check_dummy  
0”




It returns OK



I am having the same issue with check_ssh_disk.  I do not have a  
MOTD for the shell, I have tried putting explicit paths in place of  
USER1, putting in the actual address for HOSTADDRESS, and many  
options on the






Robert L. O'Donnell

Advanced Equipment Engineering, IMO

--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] Monitoring absense of bandwidth

2010-04-12 Thread Giorgio Zarrelli

Easy and brilliant :-)

Anyway:

Table 3. Example ranges

Range definition

Generate an alert if x...

10  < 0 or > 10, (outside the range of {0 .. 10})
10: < 10, (outside {10 .. ∞})
~:10> 10, (outside the range of {-∞ .. 10})
10:20   < 10 or > 20, (outside the range of {10 .. 20})
@10:20  ≥ 10 and ≤ 20, (inside the range of {10 .. 20})
10  < 0 or > 10, (outside the range of {0 .. 10})
Table 4. Command line examples

Command line

Meaning

check_stuff -w10 -c20	Critical if "stuff" is over 20, else warn if  
over 10 (will be critical if "stuff" is less than 0)

check_stuff -w~:10 -c~:20   Same as above. Negative "stuff" is OK
check_stuff -w10: -c20	Critical if "stuff" is over 20, else warn if  
"stuff" is below 10 (will be critical if "stuff" is less than 0)

check_stuff -c1:Critical if "stuff" is less than 1
check_stuff -w~:0 -c10	Critical if "stuff" is above 10; Warn if  
"stuff" is above zero

check_stuff -c5:6   The only noncritical range is 5:6
check_stuff -c10:20 Critical if "stuff" is 10 to 20

Ciao,

Giorgio

Il giorno 12/apr/2010, alle ore 22.17, Kevin Davison > ha scritto:



That looks like it will solve the problem just fine! Thanks muchly!

-Original Message-
From: patrick.mor...@hp.com [mailto:patrick.mor...@hp.com]
Sent: Monday, April 12, 2010 4:14 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Monitoring absense of bandwidth

On Mon, 12 Apr 2010, Kevin Davison wrote:

I have a few proxy servers that seem to get upset when too much  
traffic gets sent through them. I?ve resolved my problem but I?d  
really like to have a faster response time if something like this  
happens again. I would really love to find a way to know if the  
bandwidth usage on my server reaches 0Kbps. The machines I?m  
monitoring are used heavily enough that this shouldn?t ever happen.  
I took a look at check_snmp_int.pl but it appears to be set up  
specifically to monitor high bandwidth usage rather than low.


I?m not much of a scripter beyond Bash. Does anyone know of a pre- 
existing plugin that will provide this functionality?


How about using the negate plugin with check_snmp_int.pl to invert the
results?

--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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

--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] Monitoring absense of bandwidth

2010-04-12 Thread Giorgio Zarrelli

Read the manual and you will find how to setup threesholds.

Ciao,

Giorgio

Il giorno 12/apr/2010, alle ore 21.56, Kevin Davison > ha scritto:


I have a few proxy servers that seem to get upset when too much  
traffic gets sent through them. I’ve resolved my problem but I’d  
really like to have a faster response time if something like this ha 
ppens again. I would really love to find a way to know if the bandwi 
dth usage on my server reaches 0Kbps. The machines I’m monitoring ar 
e used heavily enough that this shouldn’t ever happen. I took a look 
 at check_snmp_int.pl but it appears to be set up specifically to mo 
nitor high bandwidth usage rather than low.




I’m not much of a scripter beyond Bash. Does anyone know of a pre-ex 
isting plugin that will provide this functionality?








Kevin Davison

Network Administrator

Innosphere SDG Ltd.

147 Wyndham St. N., Ste 306

Guelph, ON, N1H 4E9

(519) 766-9726 X223

Email: kdavi...@innosphere.ca

Website: www.innosphere.ca



--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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 Monitoring with out NRPE

2010-04-09 Thread Giorgio Zarrelli

Try


check_http -w 5 -c 10 -H www.mysite.com -u /subDomain/index.html

Here you find the man of check_http, describing -u usage, first result  
googling from my couch.


http://nagiosplugins.org/man/check_http

Ciao,

Giorgio

Il giorno 09/apr/2010, alle ore 22.22, akp geek  ha  
scritto:



Thank you. I am able to use the check_http

The problem that I am running into

./check_http -w 5 -c 10  -H www.mysite.com   works fine

but what we have is subdomains

if I do

/check_http -w 5 -c 10  -H www.mysite.com/subDomain/index.html

it does not work


Thanks again

Regards


On Fri, Apr 9, 2010 at 3:57 PM, Marcel  wrote:
/usr/local/nagios/libexec/check_http --help

On Fri, Apr 9, 2010 at 4:32 PM, akp geek  wrote:
Hi all -

Would it be possible to monitor a website, whether the web site is  
up or not using nagios. I have nagios sset up to monitor the   
databases


Appreciate your help

Regards

--- 
--- 
--- 
-


Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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

--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] Inteface traffic

2010-04-09 Thread Giorgio Zarrelli

Hi,

Check my plugin, it may help

 
http://www.monitoringexchange.org/inventory/Check-Plugins/Hardware/Network/Check-Bandwidth-with-SNMP-v3

Ciao,

Giorgio

Il giorno 09/apr/2010, alle ore 20.39, Robert Wolfe evolve.com> ha scritto:


Ok, a short script with an ifconfig and a strategically formatted  
grep command executed through NRPE will do wonders.




From: Paras pradhan [mailto:pradhanpa...@gmail.com]
Sent: Friday, April 09, 2010 1:53 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Inteface traffic



Real time = current In and Out traffic.



Paras.



On Fri, Apr 9, 2010 at 12:21 PM, Robert Wolfe   
wrote:


Define “real time” as it is used here.



From: Paras pradhan [mailto:pradhanpa...@gmail.com]
Sent: Friday, April 09, 2010 1:16 PM


To: Nagios Users List
Subject: Re: [Nagios-users] Inteface traffic





On Fri, Apr 9, 2010 at 12:03 PM, Robert Wolfe   
wrote:


Myself, I wrote a short custom plugin that requires NRPE to be  
installed on the remote machine being monitored.  The plugin  
basically shows the total amount of RX and TX data on an interface  
since last reboot.


Where I can see the detail about this plugin?. May be this would  
work but I am looking something that can see the real time traffic  
on the interfaces.




Paras.





From: Paras pradhan [mailto:pradhanpa...@gmail.com]
Sent: Friday, April 09, 2010 12:53 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Inteface traffic



Any non snmp plugins exists?



Paras.



On Thu, Apr 8, 2010 at 7:41 PM, Max   
wrote:


IF-MIB


On 4/8/10, Paras pradhan  wrote:
> Which is the correct SNMP MIB to see Data IN and Data out from  
interfaces?

>
> Thanks
> Paras.
>
>
> On Wed, Apr 7, 2010 at 12:14 PM, Paras pradhan
> wrote:
>
>> I have few Linux and Solaris hosts that I need to grab the total  
in and

>> out
>> traffic from there nics. Which plugin should i use? Do i need to  
configure

>> snmp on all of my hosts or there are some non snmp plugins.
>>
>> Thanks!
>> Paras.
>>
>>
>

--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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




--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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




--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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



--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio

Re: [Nagios-users] Nagios Monitoring with out NRPE

2010-04-09 Thread Giorgio Zarrelli
To monitor a "public" service you do not need nrpe, just call the  
appropriate plugin

Ciao,

Giorgio

Il giorno 09/apr/2010, alle ore 21.32, akp geek  ha  
scritto:

> Hi all -
>
> Would it be possible to monitor a website, whether the web site is  
> up or not using nagios. I have nagios sset up to monitor the   
> databases
>
> Appreciate your help
>
> Regards
> --- 
> --- 
> --- 
> -
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Return code of 139 is out of bounds!!!

2010-04-06 Thread Giorgio Zarrelli

Chanhe the ownership or permissions on the plugin file.

Ciao,

Giorgio

Il giorno 07/apr/2010, alle ore 03.28,  
 ha scritto:



Hi,



I am using Nagios 3.0.6 with Nagios plugins 1.4.14 on Linux with  
Fedora


10.1.



I have recently changed the warning and critical thresholds for E:  
drive of one server to 95% and 98% respectively.




The moment I changed, nagios started showing the status as ‘Return c 
ode of 139 is out of bounds’ for this drive.






define service{

use generic-service

host_name   lvecpp01

service_description E:\ Drive Space

check_command   check_nt!USEDDISKSPACE!-l J -w 95 -c  
98


}





Please let me know what might be the problem…





Thanks & Regards,

Ravi G

--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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] Setting up Escalations.

2010-04-06 Thread Giorgio Zarrelli
Hi,

the workflow for check/notification/escalation is the following:


1. The service/host is checked in OK state with the check_interval
timing;

2. As the service/host goes into a NON OK state, but didn't reach the
max_check_attempts, the service enters a SOFT NON OK state and the next
check is scheduled with the retry_interval timing;

3. As the service/host in NON OK state reaches the
max_check_attempts_value, the service enters an HARD NON OK STATE and
the next service/host check is scheduled with the check_interval timing;

4. Now, if you set first_notification_delay, this can alter the timing
for the first notification to be sent (0 means notifications to be sent
immediately);

5. If you didn't set the first_notification_delay, the first
notification is immediately sent and the following will be scheduled
with the notification_interval timing (0 means only the first
notification will be sent, the other will not be sent);

6. In your escalation, at the third notification (with the
notification_interval taking place), the notification interval changes
to 45 minutes, so the first notification will be sent after the
max_check_attempts value will be reached (assuming you didn't put any
delay), then the second after 10 time units, usually 10 minutes, the
third 10 mins after the second, the fourth 45 mins after the third, the
fifth 45 mins after the fourth, the sixth 45 mins after the fifth.


7. From the sixth notification, the new escalation comes into play. The
seventh notification will be sent after 60 minutes, and all the other
notifications will be sent 60 mins after each other. Keep in mind that
having used 0 as the last_notification value, you escalation will never
end till your check will return an OK status.


I do not know if I answered to your questions, I hope to have explained
the notification/escalation timings in a correct and clear manner.

On the Nagios wiki you will find a flowchart I wrote to clarify the
logic dealing with the notification framework.

Ciao,

Giorgio



Il giorno lun, 05/04/2010 alle 12.48 -0400, dOE ha scritto:
> Thanks Giorgia,
>
> Then for notification_interval for  production environment set to "10"
> would process the escalation after 10 minutes of the alert NIT being
> "ok"?, and subsequent notification_interval should be set to more than
> "10" so that they would then be notified too?
>
> Am I understanding this correctly?
>
> On Mon, Apr 5, 2010 at 6:34 AM, Giorgio Zarrelli 
> wrote:
> Hi,
>
> First, local definitions win over those written in templates,
> so if in the template you have a notification_interval value
> and in the escalation you have another, escalation wins and
> its value is adopted.
>
> Second, notification_interval il the interval between two
> consecutive notifications for a host or a service, after it
> enters a non ok status and has exceeded max_check_attempts
> value.
>
> Ciao,
>
> Giorgio
>
> Il giorno 05/apr/2010, alle ore 04.50, dOE 
> ha scritto:
>
>
> I am having a difficulty getting escalations to work
> on Nagios 3.0.3
>
> The following is pulled from the documentation:
>
> define serviceescalation{
>host_name   webserver
>service_description HTTP
>first_notification  3
>last_notification   5
>notification_interval   45
>contact_groups  ITOps_Oncall,managers
>}
>
> define serviceescalation{
>host_name   webserver
>service_description HTTP
>first_notification  6
>last_notification   0
>notification_interval   60
>contact_groups
> ITOps_Oncall,managers,everyone
>}
>
> I have read the documentation, but I don't understand
> what the "notification_interval" are based on, and
> sine we have hosts inheriting from a "core" template
> it is very difficult to test escalations.
> We use OpCfg to do our Nagios configuration, but it
> does not stop me from occasionally going into the
> actual configuration files to make changes either.
>
> If anyone has this working, and could shed some light
> on how I can get this to work, or clarify the
>  

Re: [Nagios-users] Not recieving email notifications??

2010-04-06 Thread Giorgio Zarrelli

Hi,

Check the ownership and permissions on the script called by notify- 
service-by-email


Ciao,

Giorgio

Il giorno 06/apr/2010, alle ore 09.02,  
 ha scritto:



   Hi,



Please see the notifications in web console…..I think notification-b 
y-email command is called.








   File:/usr/local/nagios/var/nagios.log















Host

Service

Type

Time

Contact

Notification Command

Information

LTCPETLDBPRD01

E:\ Drive Space

CRITICAL

04-06-2010 07:46:59

stw_app_server

notify-service-by-email

(Return code of 139 is out of bounds)

lvecpp01

E:\ Drive Space

CRITICAL

04-06-2010 07:40:09

stw_app_server

notify-service-by-email

E:\ - total: 49.98 Gb - used: 46.53 Gb (93%) - free 3.46 Gb (7%)

LVMDQ1

D:\ Drive Space

WARNING

04-06-2010 07:38:39

stw_app_server

notify-service-by-email

D:\ - total: 30.00 Gb - used: 26.82 Gb (89%) - free 3.17 Gb (11%)

LTCPETLDBPRD01

E:\ Drive Space

CRITICAL

04-06-2010 07:16:59

stw_app_server

notify-service-by-email

(Return code of 139 is out of bounds)

lvecpp01

E:\ Drive Space

CRITICAL

04-06-2010 07:10:09

stw_app_server

notify-service-by-email

E:\ - total: 49.98 Gb - used: 46.52 Gb (93%) - free 3.46 Gb (7%)

LVMDQ1

D:\ Drive Space

WARNING

04-06-2010 07:08:39

stw_app_server

notify-service-by-email

D:\ - total: 30.00 Gb - used: 26.82 Gb (89%) - free 3.17 Gb (11%)

LTCPETLDBPRD01

E:\ Drive Space

CRITICAL

04-06-2010 06:46:59

stw_app_server

notify-service-by-email

(Return code of 139 is out of bounds)

lvecpp01

E:\ Drive Space

CRITICAL

04-06-2010 06:40:09

stw_app_server

notify-service-by-email

E:\ - total: 49.98 Gb - used: 46.52 Gb (93%) - free 3.46 Gb (7%)

LVMDQ1

D:\ Drive Space

WARNING

04-06-2010 06:38:39

stw_app_server

notify-service-by-email

D:\ - total: 30.00 Gb - used: 26.82 Gb (89%) - free 3.17 Gb (11%)

LTCPETLDBPRD01

E:\ Drive Space

CRITICAL

04-06-2010 06:16:59

stw_app_server

notify-service-by-email

(Return code of 139 is out of bounds)

lvecpp01

E:\ Drive Space

CRITICAL

04-06-2010 06:10:09

stw_app_server

notify-service-by-email

E:\ - total: 49.98 Gb - used: 46.53 Gb (93%) - free 3.45 Gb (7%)

LVMDQ1

D:\ Drive Space

WARNING

04-06-2010 06:08:39

stw_app_server

notify-service-by-email

D:\ - total: 30.00 Gb - used: 26.82 Gb (89%) - free 3.17







Thanks & Regards,

Ravi G



P please consider the environment - do you really need to print this  
email?




From: Giorgio Zarrelli [mailto:zarre...@linux.it]
Sent: Tuesday, April 06, 2010 12:20 PM
To: Nagios Users List
Cc: 
Subject: Re: [Nagios-users] Not recieving email notifications??



First, check in the web interface the notifications history to see  
if the notification-by-email command is called along with the  
notification events.


Ciao,



Giorgio


Il giorno 06/apr/2010, alle ore 07.51, > ha scritto:


Hi,



I am receiving the email when Sent using the command from cmdline.



echo "subject" | mail -s "message" m...@mymail.com



I am not receiving the email notifications from Nagios….







Thanks & Regards,

Ravi G



From: Asrai khn [mailto:asrai...@gmail.com]
Sent: Tuesday, April 06, 2010 10:47 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Not recieving email notifications??



Check if your there is any email in your mail queue

mailq?

May be your MTA some problem in sending out bound emails?

also try to su to naigios user

su - nagios

and type

$mail

may be email are bouncing back?



On Tue, Apr 6, 2010 at 5:57 AM,   
wrote:


Hi ,



I am using Nagios 3.0.6 on Linux with Fedora installed on it.



My Nagios suddenly stopped sending email notifications .



Here is my service template.



# Generic service definition template - This is NOT a real service,  
just a template!




define service{

namegeneric-service ;  
The 'name' of this service template


active_checks_enabled   1   ;  
Active service checks are enabled


passive_checks_enabled  1   ;  
Passive service checks are enabled/accepted


parallelize_check   1   ;  
Active service checks should be parallelized (disabling this can  
lead to major performance problems)


obsess_over_service 1   ; We  
should obsess over this service (if necessary)


check_freshness 0   ;  
Default is to NOT check service 'freshness'


notifications_enabled   1   ;  
Service notifications are enabled


event_handler_enabled   1   ;  
Service event handler is enabled


flap_detection_enabled  1   ;  
Flap detection is enabled


failure_prediction_enabled  1   ;  
Failure prediction is enabled


process_perf_data   1

Re: [Nagios-users] Not recieving email notifications??

2010-04-05 Thread Giorgio Zarrelli
First, check in the web interface the notifications history to see if  
the notification-by-email command is called along with the  
notification events.


Ciao,

Giorgio

Il giorno 06/apr/2010, alle ore 07.51,  
 ha scritto:



Hi,



I am receiving the email when Sent using the command from cmdline.



echo "subject" | mail -s "message" m...@mymail.com



I am not receiving the email notifications from Nagios….







Thanks & Regards,

Ravi G



From: Asrai khn [mailto:asrai...@gmail.com]
Sent: Tuesday, April 06, 2010 10:47 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Not recieving email notifications??



Check if your there is any email in your mail queue

mailq?

May be your MTA some problem in sending out bound emails?

also try to su to naigios user

su - nagios

and type

$mail

may be email are bouncing back?


On Tue, Apr 6, 2010 at 5:57 AM,   
wrote:


Hi ,



I am using Nagios 3.0.6 on Linux with Fedora installed on it.



My Nagios suddenly stopped sending email notifications .



Here is my service template.



# Generic service definition template - This is NOT a real service,  
just a template!




define service{

namegeneric-service ;  
The 'name' of this service template


active_checks_enabled   1   ;  
Active service checks are enabled


passive_checks_enabled  1   ;  
Passive service checks are enabled/accepted


parallelize_check   1   ;  
Active service checks should be parallelized (disabling this can  
lead to major performance problems)


obsess_over_service 1   ; We  
should obsess over this service (if necessary)


check_freshness 0   ;  
Default is to NOT check service 'freshness'


notifications_enabled   1   ;  
Service notifications are enabled


event_handler_enabled   1   ;  
Service event handler is enabled


flap_detection_enabled  1   ;  
Flap detection is enabled


failure_prediction_enabled  1   ;  
Failure prediction is enabled


process_perf_data   1   ;  
Process performance data


retain_status_information   1   ;  
Retain status information across program restarts


retain_nonstatus_information1   ;  
Retain non-status information across program restarts


is_volatile 0   ;  
The service is not volatile


check_period24x7;  
The service can be checked at any time of the day


max_check_attempts  2   ; Re- 
check the service up to 3 times in order to determine its final  
(hard) state


normal_check_interval   5   ;  
Check the service every 10 minutes under normal conditions


retry_check_interval1   ; Re- 
check the service every two minutes until a hard state can be  
determined


#contact_groups  
stw_win_server,stw_network_devices,stw_app_server   ;  
Notifications get sent out to everyone in the 'admins' group


notification_optionsw,u,c   ;  
Send notifications about warning, unknown, critical, and recovery  
events


notification_interval   30  ; Re- 
notify about service problems every hour


notification_period 24x7;  
Notifications can be sent out at any time


register0   ;  
DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A  
TEMPLATE!


}



Thanks & Regards,

Ravi G


--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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




--
I sense much NT in you, NT leads to Blue Screen.
Blue Screen leads to downtime, downtime leads to suffering. NT is  
the path to the darkside


--- 
--- 
--- 
-

Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed c

  1   2   >