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

2012-09-17 Thread Aravinth Anto
On Mon, Sep 17, 2012 at 7:34 AM, PRA nagios...@gmail.com wrote:

  if your echo statement has $stacktrace it will print that only till to
 the limit Additional Info field.

 NAGIOS gets string and return code from its plugins.String is to print the
 message and return code is to identify the type of alert
 (ok,warning,critical).
 So as long as you send it to nagios to this format it identifies.

 Now coming to your script, you echo statements at the last part of IF ,
 Should have your stack trace.

 SNIP=

 then
 echo $stacktrace The stack trace should hold the
 stack trace string.
 exit $ST_CR

 ===SNIP===


 -PRA


Thanks for your reply. It works now.


 On 9/15/2012 8:56 AM, Aravinth Anto wrote:

 Hi

  Thanks for the reply. I have attached my script. And if I say I'm
 returning the stack trace from my script, how come Nagios will know that? I
 can name the hole stack trace a name and can use $stacktrace in nagios will
 work?

  Thanks in advance.

 On Sat, Sep 15, 2012 at 12:31 AM, PRA nagios...@gmail.com wrote:

  The script shoud generate two types of out put (return code and text ),
 If the can be anything if you pass the stack trace to text it would print
 that only
 in the alerts
 -S


 On 9/14/2012 7:22 PM, Aravinth Anto wrote:

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




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




 --
 How fast is your code?
 3 out of 4 devs don\\\'t know how their code performs in production.
 Find out how slow your code is with AppDynamics 
 Lite.http://ad.doubleclick.net/clk;262219672;13503038;z?http://info.appdynamics.com/FreeJavaPerformanceDownload.html



 ___
 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

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

[Nagios-users] Alerts are not generated.

2012-09-14 Thread Aravinth Anto
Hi all,

I'm trying to generate an alert for log in tomcat ( I wrote my own plugin
). But I can see the log files of nagios that the alert have been generated
but it seems that the mail haven't sent.


What all will be reason for it?
--
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] Alerts are not generated.

2012-09-14 Thread Aravinth Anto
In my sudo less /var/log/sendEmail file. I see these errors:


sendEmail[13886]: ERROR = You must specify a 'from' field!  Try --help.
sendEmail[13891]: ERROR = You must specify a 'from' field!  Try --help.
sendEmail[13896]: ERROR = You must specify a 'from' field!  Try --help.

What does this mean?
On Fri, Sep 14, 2012 at 4:45 PM, Aravinth Anto t-aravi...@juspay.in wrote:

 Hi all,

 I'm trying to generate an alert for log in tomcat ( I wrote my own plugin
 ). But I can see the log files of nagios that the alert have been generated
 but it seems that the mail haven't sent.


 What all will be reason for it?

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

[Nagios-users] How to customize nagios alerts?

2012-09-14 Thread Aravinth Anto
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

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

2012-09-14 Thread Aravinth Anto
Hi ,

Thanks for the reply. I have attached my script. And if I say I'm returning
the stack trace from my script, how come Nagios will know that? I can name
the hole stack trace a name and can use $stacktrace in nagios will work?

Thanks in advance.

On Sat, Sep 15, 2012 at 12:31 AM, PRA nagios...@gmail.com wrote:

  The script shoud generate two types of out put (return code and text ),
 If the can be anything if you pass the stack trace to text it would print
 that only
 in the alerts
 -S


 On 9/14/2012 7:22 PM, Aravinth Anto wrote:

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




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



check_match_pattern.sh
Description: Bourne shell script
--
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
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 in Installing the graph plugin.

2012-09-07 Thread Aravinth Anto
I tried an followed the instruction on
http://docs.pnp4nagios.org/pnp-0.6/start

Everything seems to be fine. But when I went to
http://localhost/pnp4nagios/http://localhost/pnp4nagios/graph

I have been asked to remove the file. I removed it, which redirects me to :

http://localhost/pnp4nagios/graph

Where I get the error of :
*
*
*perfdata directory /usr/local/pnp4nagios/var/perfdata/ is empty. *
*
*
*Please check your Nagios config. Read FAQ online  file [line]:
 application/models/data.php [109]:  back*

What will be my mistake?

Kindly help me out.

On Thu, Sep 6, 2012 at 7:19 PM, Tech Support supp...@voipbusiness.uswrote:

 ** **

 When I try to view the contents on browser I get 404 error.

  Basically it says that 

 The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on
 this server.

 ** **

 ** **

 One thing that I see is that the URL should be
 /nagiosgraph/cgi-bin/show.cgi, not /nagiosgraph/cgi/chow.cgi. Could that be
 your problem?

 Regards;

 John

 ** **

 ** **

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* Thursday, September 06, 2012 9:36 AM

 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

 ** **

 I have installed the RRD package. But still I'm getting a 404 error when I
 try to visit graphs in my browser. 

 On Thu, Sep 6, 2012 at 6:49 PM, FTL Nagios ftlnag...@gmail.com wrote:***
 *

 Install the RRD package like you have previously have been asked too.

  

 sudo apt-get install rrdtool

  

 Then rerun the install.pl script again.

  

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 14:07


 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

  

 I'm using Ubuntu 12.04 and I installed the nagios3 using :

  

 sudo apt-get install -y nagios3

  

 Can anyone say me how to install this graph plugin. I'm spending days on
 it!!!

 On Thu, Sep 6, 2012 at 6:09 PM, Aravinth Anto t-aravi...@juspay.in
 wrote:

 I have installed it. And then I run the install.pl script. And I also
 replaced the /usr/local/nagios/share/side.php file with required changes.
 

  

 When I try to view the contents on browser I get 404 error.

  

 Basically it says that :

  

 The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on
 this server.

  

 Eventhough I can view that file!

  

 On Thu, Sep 6, 2012 at 5:50 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 You will need to install the RRD package.  How you do this will depend on
 your operating system.

  

 James

  

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 13:08
 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

  

 I run this command : 

  

 sudo ./install.pl --check-prereq

  

 checking required PERL modules

   Carp...1.20

   CGI...3.52

   Data::Dumper...2.130_02

   File::Basename...2.82

   File::Find...1.19

   MIME::Base64...3.13

   POSIX...1.24

   RRDs... ***FAIL***

   Time::HiRes...1.972101

 checking optional PERL modules

   GD...2.46

 checking nagios installation

   found nagios at /usr/local/nagios/bin/nagios

 checking web server installation

   found apache at /usr/sbin/apache2

  

 *** one or more problems were detected!

  

  

 It seems that RRDs... ***FAIL*** . So how can I skip this error?

  

  

  

 On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 Did you run the install and check your prerequisites, I found that some of
 these are not present by default, You can run

  

 sudo ./install –check=prereq

  

 If everything is ok, you can proceed, otherwise you will need to install
 the missing packages

  

 At install time you may need to pass the argument for a standalone
 installation, this all depends on your environment

  

 sudo ./install –standalone

  

 Once installation has completed you can test that the server is working
 by  going to one of the following websites

  

 http://server/nagiosgraph/cgi-bin/showconfig.cgi or
 http://server/nagiosgraph/cgi-bin/show.cgi

  

 This assumes your cgi data is located in cgi-bin and that you are running
 apache.

  

 This should help to get nagiosgraph working, you will then need to update
 Nagios to use the graphing plugin.

  

 James

  

 *From:* Aravinth Anto Intern [mailto:t-aravi...@juspay.in]
 *Sent:* 02 August 2012 14:38
 *To:* Nagios Users List
 *Subject:* [Nagios-users] Problem in Installing the graph plugin.

  

 Hi all, I'm trying to install Nagios Plugin :
 http://exchange.nagios.org/directory

Re: [Nagios-users] Problem in Installing the graph plugin.

2012-09-07 Thread Aravinth Anto
And also I tried to debug it :

I tried running:

 sudo perl verify_pnp_config --mode npcdmod
--config=/etc/nagios3/nagios.cfg --pnpcfg=/usr/local/pnp4nagios/etc

I get the following output:

[INFO]  == Starting Environment Checks 
[INFO]  My version is: verify_pnp_config-0.6.19-R.35
[INFO]  Start Options: verify_pnp_config --mode npcdmod
--config=/etc/nagios3/nagios.cfg --pnpcfg=/usr/local/pnp4nagios/etc
[INFO]  Reading /etc/nagios3/nagios.cfg
[OK  ]  Running product is 'nagios'
[OK  ]  object_cache_file is defined
[OK  ]  object_cache_file=/var/cache/nagios3/objects.cache
[INFO]  Reading /var/cache/nagios3/objects.cache
[OK  ]  resource_file is defined
[OK  ]  resource_file=/etc/nagios3/resource.cfg
[INFO]  Reading /etc/nagios3/resource.cfg
[INFO]  Reading /usr/local/pnp4nagios/etc/process_perfdata.cfg
[INFO]  Reading /usr/local/pnp4nagios/etc/pnp4nagios_release
[OK  ]  Found PNP4Nagios version 0.6.19
[OK  ]  Effective User is 'nagios'
[OK  ]  User nagios exists with ID '122'
[OK  ]  Effective group is 'nagios'
[OK  ]  Group nagios exists with ID '132'
[INFO]  == Checking npcdmod Mode Config  
[OK  ]  process_performance_data is 1 compared with '/1/'
[CRIT]  service_perfdata_file is defined
(service_perfdata_file=/tmp/perfdata.log)
[CRIT]  service_perfdata_file is not allowed in mode 'npcdmod'
[CRIT]  service_perfdata_file_template is defined
(service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$)
[CRIT]  service_perfdata_file_template is not allowed in mode 'npcdmod'
[CRIT]  service_perfdata_file_mode is defined (service_perfdata_file_mode=a)
[CRIT]  service_perfdata_file_mode is not allowed in mode 'npcdmod'
[CRIT]  service_perfdata_file_processing_interval is defined
(service_perfdata_file_processing_interval=30)
[CRIT]  service_perfdata_file_processing_interval is not allowed in mode
'npcdmod'
[CRIT]  service_perfdata_file_processing_command is defined
(service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph)
[CRIT]  service_perfdata_file_processing_command is not allowed in mode
'npcdmod'
[HINT]  Config options are not allowed in bulk mode with npcd (5)


What does these critical messages says? [CRIT]
 service_perfdata_file_template is not allowed in mode 'npcdmod'

I'm very new to Ubuntu. I need some help.

Thanks in advance



On Fri, Sep 7, 2012 at 12:43 PM, Aravinth Anto t-aravi...@juspay.in wrote:

 I tried an followed the instruction on
 http://docs.pnp4nagios.org/pnp-0.6/start

 Everything seems to be fine. But when I went to
 http://localhost/pnp4nagios/ http://localhost/pnp4nagios/graph

 I have been asked to remove the file. I removed it, which redirects me to :

 http://localhost/pnp4nagios/graph

 Where I get the error of :
 *
 *
 *perfdata directory /usr/local/pnp4nagios/var/perfdata/ is empty. *
 *
 *
 *Please check your Nagios config. Read FAQ online  file [line]:
  application/models/data.php [109]:  back*

 What will be my mistake?

 Kindly help me out.


 On Thu, Sep 6, 2012 at 7:19 PM, Tech Support supp...@voipbusiness.uswrote:

 ** **

 When I try to view the contents on browser I get 404 error.

  Basically it says that 

 The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on
 this server.

 ** **

 ** **

 One thing that I see is that the URL should be
 /nagiosgraph/cgi-bin/show.cgi, not /nagiosgraph/cgi/chow.cgi. Could that be
 your problem?

 Regards;

 John

 ** **

 ** **

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* Thursday, September 06, 2012 9:36 AM

 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

 ** **

 I have installed the RRD package. But still I'm getting a 404 error when
 I try to visit graphs in my browser. 

 On Thu, Sep 6, 2012 at 6:49 PM, FTL Nagios ftlnag...@gmail.com wrote:**
 **

 Install the RRD package like you have previously have been asked too.

  

 sudo apt-get install rrdtool

  

 Then rerun the install.pl script again.

  

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 14:07


 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

  

 I'm using Ubuntu 12.04 and I installed the nagios3 using :

  

 sudo apt-get install -y nagios3

  

 Can anyone say me how to install this graph plugin. I'm spending days on
 it!!!

 On Thu, Sep 6, 2012 at 6:09 PM, Aravinth Anto t-aravi...@juspay.in
 wrote:

 I have installed it. And then I run the install.pl script. And I also
 replaced the /usr/local/nagios/share/side.php file with required changes.
 

  

 When I try to view the contents on browser I get 404 error.

  

 Basically it says that :

  

 The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on
 this server.

  

 Eventhough I can

[Nagios-users] Created my new plugin. Suggestions please!

2012-09-06 Thread Aravinth Anto
Hi all,

I created a new plugin of our own use. We need some way to find whether 5xx
errors appears in our log mainly in apache log. And also connection
failed, error in syslogs. So overall it can used to match any pattern (
which user might think ) for a particular file

I'm a newbie to Nagios and too in bash. I wish I could publish this plugin
as it would save time for others in the community.

I have attached my plugin ( written in bash ). I want suggestions from our
side.

Thanks.


check_match_pattern.sh
Description: Bourne shell script
--
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] Created my new plugin. Suggestions please!

2012-09-06 Thread Aravinth Anto
Typical use case is. If you want to make sure that your apache log doesn't
have more than 10 5xx errors then you can do this :

check_match_pattern -f /var/log/apache2/error.log -r ^5[0-9]{2}$ -wl 7 -cl
10

This will generate an CRITICAL alert.

Suggestions welcome.

On Thu, Sep 6, 2012 at 2:26 PM, Aravinth Anto t-aravi...@juspay.in wrote:

 Hi all,

 I created a new plugin of our own use. We need some way to find whether
 5xx errors appears in our log mainly in apache log. And also connection
 failed, error in syslogs. So overall it can used to match any pattern (
 which user might think ) for a particular file

 I'm a newbie to Nagios and too in bash. I wish I could publish this plugin
 as it would save time for others in the community.

 I have attached my plugin ( written in bash ). I want suggestions from our
 side.

 Thanks.


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

Re: [Nagios-users] Problem in Installing the graph plugin.

2012-09-06 Thread Aravinth Anto
I run this command :

sudo ./install.pl --check-prereq

checking required PERL modules
  Carp...1.20
  CGI...3.52
  Data::Dumper...2.130_02
  File::Basename...2.82
  File::Find...1.19
  MIME::Base64...3.13
  POSIX...1.24
  RRDs... ***FAIL***
  Time::HiRes...1.972101
checking optional PERL modules
  GD...2.46
checking nagios installation
  found nagios at /usr/local/nagios/bin/nagios
checking web server installation
  found apache at /usr/sbin/apache2

*** one or more problems were detected!


It seems that RRDs... ***FAIL*** . So how can I skip this error?



On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn james.osbo...@citrix.comwrote:

 Did you run the install and check your prerequisites, I found that some of
 these are not present by default, You can run

 ** **

 sudo ./install –check=prereq

 ** **

 If everything is ok, you can proceed, otherwise you will need to install
 the missing packages

 ** **

 At install time you may need to pass the argument for a standalone
 installation, this all depends on your environment

 ** **

 sudo ./install –standalone

 ** **

 Once installation has completed you can test that the server is working
 by  going to one of the following websites

 ** **

 http://server/nagiosgraph/cgi-bin/showconfig.cgi or
 http://server/nagiosgraph/cgi-bin/show.cgi

 ** **

 This assumes your cgi data is located in cgi-bin and that you are running
 apache.

 ** **

 This should help to get nagiosgraph working, you will then need to update
 Nagios to use the graphing plugin.

 ** **

 James

 ** **

 *From:* Aravinth Anto Intern [mailto:t-aravi...@juspay.in]
 *Sent:* 02 August 2012 14:38
 *To:* Nagios Users List
 *Subject:* [Nagios-users] Problem in Installing the graph plugin.

 ** **

 Hi all, I'm trying to install Nagios Plugin :
 http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details


 I downloaded it, unzip it and then I run the install.pl as

 *sudo ./install.pl
 *

 I accepted every directory as default and done with installation.

 I changed the side.php to add my Trends link that are supported by this
 plugin. I restarted the server. But when I click on certain links. I get an
 error :


 *The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found
 on this server.
 *

 Why this is happening? I can go into the directory
 /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi.

 But why its not working?


 Thanks in adavnce 


 --
 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] Problem in Installing the graph plugin.

2012-09-06 Thread Aravinth Anto
I have installed it. And then I run the install.pl script. And I also
replaced the /usr/local/nagios/share/side.php file with required changes.

When I try to view the contents on browser I get 404 error.

Basically it says that :

The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on this
server.

Eventhough I can view that file!

On Thu, Sep 6, 2012 at 5:50 PM, James Osbourn james.osbo...@citrix.comwrote:

 You will need to install the RRD package.  How you do this will depend on
 your operating system.

 ** **

 James

 ** **

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 13:08
 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

 ** **

 I run this command : 

 ** **

 sudo ./install.pl --check-prereq

 ** **

 checking required PERL modules

   Carp...1.20

   CGI...3.52

   Data::Dumper...2.130_02

   File::Basename...2.82

   File::Find...1.19

   MIME::Base64...3.13

   POSIX...1.24

   RRDs... ***FAIL***

   Time::HiRes...1.972101

 checking optional PERL modules

   GD...2.46

 checking nagios installation

   found nagios at /usr/local/nagios/bin/nagios

 checking web server installation

   found apache at /usr/sbin/apache2

 ** **

 *** one or more problems were detected!

 ** **

 ** **

 It seems that RRDs... ***FAIL*** . So how can I skip this error?

 ** **

 ** **

 ** **

 On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 Did you run the install and check your prerequisites, I found that some of
 these are not present by default, You can run

  

 sudo ./install –check=prereq

  

 If everything is ok, you can proceed, otherwise you will need to install
 the missing packages

  

 At install time you may need to pass the argument for a standalone
 installation, this all depends on your environment

  

 sudo ./install –standalone

  

 Once installation has completed you can test that the server is working
 by  going to one of the following websites

  

 http://server/nagiosgraph/cgi-bin/showconfig.cgi or
 http://server/nagiosgraph/cgi-bin/show.cgi

  

 This assumes your cgi data is located in cgi-bin and that you are running
 apache.

  

 This should help to get nagiosgraph working, you will then need to update
 Nagios to use the graphing plugin.

  

 James

  

 *From:* Aravinth Anto Intern [mailto:t-aravi...@juspay.in]
 *Sent:* 02 August 2012 14:38
 *To:* Nagios Users List
 *Subject:* [Nagios-users] Problem in Installing the graph plugin.

  

 Hi all, I'm trying to install Nagios Plugin :
 http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details


 I downloaded it, unzip it and then I run the install.pl as

 *sudo ./install.pl
 *

 I accepted every directory as default and done with installation.

 I changed the side.php to add my Trends link that are supported by this
 plugin. I restarted the server. But when I click on certain links. I get an
 error :


 *The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found
 on this server.
 *

 Why this is happening? I can go into the directory
 /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi.

 But why its not working?


 Thanks in adavnce 



 --
 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] Problem in Installing the graph plugin.

2012-09-06 Thread Aravinth Anto
I'm using Ubuntu 12.04 and I installed the nagios3 using :

sudo apt-get install -y nagios3

Can anyone say me how to install this graph plugin. I'm spending days on
it!!!

On Thu, Sep 6, 2012 at 6:09 PM, Aravinth Anto t-aravi...@juspay.in wrote:

 I have installed it. And then I run the install.pl script. And I also
 replaced the /usr/local/nagios/share/side.php file with required changes.

 When I try to view the contents on browser I get 404 error.

 Basically it says that :

 The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on
 this server.

 Eventhough I can view that file!


 On Thu, Sep 6, 2012 at 5:50 PM, James Osbourn james.osbo...@citrix.comwrote:

 You will need to install the RRD package.  How you do this will depend on
 your operating system.

 ** **

 James

 ** **

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 13:08
 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

 ** **

 I run this command : 

 ** **

 sudo ./install.pl --check-prereq

 ** **

 checking required PERL modules

   Carp...1.20

   CGI...3.52

   Data::Dumper...2.130_02

   File::Basename...2.82

   File::Find...1.19

   MIME::Base64...3.13

   POSIX...1.24

   RRDs... ***FAIL***

   Time::HiRes...1.972101

 checking optional PERL modules

   GD...2.46

 checking nagios installation

   found nagios at /usr/local/nagios/bin/nagios

 checking web server installation

   found apache at /usr/sbin/apache2

 ** **

 *** one or more problems were detected!

 ** **

 ** **

 It seems that RRDs... ***FAIL*** . So how can I skip this error?

 ** **

 ** **

 ** **

 On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 Did you run the install and check your prerequisites, I found that some
 of these are not present by default, You can run

  

 sudo ./install –check=prereq

  

 If everything is ok, you can proceed, otherwise you will need to install
 the missing packages

  

 At install time you may need to pass the argument for a standalone
 installation, this all depends on your environment

  

 sudo ./install –standalone

  

 Once installation has completed you can test that the server is working
 by  going to one of the following websites

  

 http://server/nagiosgraph/cgi-bin/showconfig.cgi or
 http://server/nagiosgraph/cgi-bin/show.cgi

  

 This assumes your cgi data is located in cgi-bin and that you are running
 apache.

  

 This should help to get nagiosgraph working, you will then need to update
 Nagios to use the graphing plugin.

  

 James

  

 *From:* Aravinth Anto Intern [mailto:t-aravi...@juspay.in]
 *Sent:* 02 August 2012 14:38
 *To:* Nagios Users List
 *Subject:* [Nagios-users] Problem in Installing the graph plugin.

  

 Hi all, I'm trying to install Nagios Plugin :
 http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details


 I downloaded it, unzip it and then I run the install.pl as

 *sudo ./install.pl
 *

 I accepted every directory as default and done with installation.

 I changed the side.php to add my Trends link that are supported by this
 plugin. I restarted the server. But when I click on certain links. I get an
 error :


 *The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not
 found on this server.
 *

 Why this is happening? I can go into the directory
 /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi.

 But why its not working?


 Thanks in adavnce 



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

Re: [Nagios-users] Problem in Installing the graph plugin.

2012-09-06 Thread Aravinth Anto
I have installed the RRD package. But still I'm getting a 404 error when I
try to visit graphs in my browser.

On Thu, Sep 6, 2012 at 6:49 PM, FTL Nagios ftlnag...@gmail.com wrote:

 Install the RRD package like you have previously have been asked too.

 ** **

 sudo apt-get install rrdtool

 ** **

 Then rerun the install.pl script again.

 ** **

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 14:07

 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

 ** **

 I'm using Ubuntu 12.04 and I installed the nagios3 using :

 ** **

 sudo apt-get install -y nagios3

 ** **

 Can anyone say me how to install this graph plugin. I'm spending days on
 it!!!

 On Thu, Sep 6, 2012 at 6:09 PM, Aravinth Anto t-aravi...@juspay.in
 wrote:

 I have installed it. And then I run the install.pl script. And I also
 replaced the /usr/local/nagios/share/side.php file with required changes.
 

 ** **

 When I try to view the contents on browser I get 404 error.

 ** **

 Basically it says that :

 ** **

 The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on
 this server.

 ** **

 Eventhough I can view that file!

 ** **

 On Thu, Sep 6, 2012 at 5:50 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 You will need to install the RRD package.  How you do this will depend on
 your operating system.

  

 James

  

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 13:08
 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

  

 I run this command : 

  

 sudo ./install.pl --check-prereq

  

 checking required PERL modules

   Carp...1.20

   CGI...3.52

   Data::Dumper...2.130_02

   File::Basename...2.82

   File::Find...1.19

   MIME::Base64...3.13

   POSIX...1.24

   RRDs... ***FAIL***

   Time::HiRes...1.972101

 checking optional PERL modules

   GD...2.46

 checking nagios installation

   found nagios at /usr/local/nagios/bin/nagios

 checking web server installation

   found apache at /usr/sbin/apache2

  

 *** one or more problems were detected!

  

  

 It seems that RRDs... ***FAIL*** . So how can I skip this error?

  

  

  

 On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 Did you run the install and check your prerequisites, I found that some of
 these are not present by default, You can run

  

 sudo ./install –check=prereq

  

 If everything is ok, you can proceed, otherwise you will need to install
 the missing packages

  

 At install time you may need to pass the argument for a standalone
 installation, this all depends on your environment

  

 sudo ./install –standalone

  

 Once installation has completed you can test that the server is working
 by  going to one of the following websites

  

 http://server/nagiosgraph/cgi-bin/showconfig.cgi or
 http://server/nagiosgraph/cgi-bin/show.cgi

  

 This assumes your cgi data is located in cgi-bin and that you are running
 apache.

  

 This should help to get nagiosgraph working, you will then need to update
 Nagios to use the graphing plugin.

  

 James

  

 *From:* Aravinth Anto Intern [mailto:t-aravi...@juspay.in]
 *Sent:* 02 August 2012 14:38
 *To:* Nagios Users List
 *Subject:* [Nagios-users] Problem in Installing the graph plugin.

  

 Hi all, I'm trying to install Nagios Plugin :
 http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details


 I downloaded it, unzip it and then I run the install.pl as

 *sudo ./install.pl
 *

 I accepted every directory as default and done with installation.

 I changed the side.php to add my Trends link that are supported by this
 plugin. I restarted the server. But when I click on certain links. I get an
 error :


 *The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found
 on this server.
 *

 Why this is happening? I can go into the directory
 /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi.

 But why its not working?


 Thanks in adavnce 



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

Re: [Nagios-users] Problem in Installing the graph plugin.

2012-09-06 Thread Aravinth Anto
Here is my commands.cfg:

# 'process-host-perfdata' command definition
define command{
command_name process-host-perfdata
command_line /usr/bin/printf %b
$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n
 /var/lib/nagios3/host-perfdata.out
}


# 'process-service-perfdata' command definition
define command{
command_name process-service-perfdata
command_line /usr/bin/printf %b
$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n
 /var/lib/nagios3/service-perfdata.out
}



# begin nagiosgraph configuration
# command to process nagios performance data for nagiosgraph
define command {
  command_name process-service-perfdata-for-nagiosgraph
  command_line  /usr/local/nagios/libexec/insert.pl
}
# end nagiosgraph configuratio

And nagios.cfg (added for nagios graph) :

# begin nagiosgraph configuration
# process nagios performance data using nagiosgraph
process_performance_data=1
service_perfdata_file=/var/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph
# end nagiosgraph configuration

Are they correct?



On Thu, Sep 6, 2012 at 7:19 PM, FTL Nagios ftlnag...@gmail.com wrote:

 Apologies I misses your latest reply saying you had installe dit.

 ** **

 Have you got the correct lines in your command.cfgs file?

 Also have you double checked you have entered the correct details in the
 nagios.cfg file for the broker options etc?

 ** **

 ** **

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 14:36

 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

 ** **

 I have installed the RRD package. But still I'm getting a 404 error when I
 try to visit graphs in my browser. 

 On Thu, Sep 6, 2012 at 6:49 PM, FTL Nagios ftlnag...@gmail.com wrote:***
 *

 Install the RRD package like you have previously have been asked too.

  

 sudo apt-get install rrdtool

  

 Then rerun the install.pl script again.

  

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 14:07


 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

  

 I'm using Ubuntu 12.04 and I installed the nagios3 using :

  

 sudo apt-get install -y nagios3

  

 Can anyone say me how to install this graph plugin. I'm spending days on
 it!!!

 On Thu, Sep 6, 2012 at 6:09 PM, Aravinth Anto t-aravi...@juspay.in
 wrote:

 I have installed it. And then I run the install.pl script. And I also
 replaced the /usr/local/nagios/share/side.php file with required changes.
 

  

 When I try to view the contents on browser I get 404 error.

  

 Basically it says that :

  

 The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on
 this server.

  

 Eventhough I can view that file!

  

 On Thu, Sep 6, 2012 at 5:50 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 You will need to install the RRD package.  How you do this will depend on
 your operating system.

  

 James

  

 *From:* Aravinth Anto [mailto:t-aravi...@juspay.in]
 *Sent:* 06 September 2012 13:08
 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] Problem in Installing the graph plugin.

  

 I run this command : 

  

 sudo ./install.pl --check-prereq

  

 checking required PERL modules

   Carp...1.20

   CGI...3.52

   Data::Dumper...2.130_02

   File::Basename...2.82

   File::Find...1.19

   MIME::Base64...3.13

   POSIX...1.24

   RRDs... ***FAIL***

   Time::HiRes...1.972101

 checking optional PERL modules

   GD...2.46

 checking nagios installation

   found nagios at /usr/local/nagios/bin/nagios

 checking web server installation

   found apache at /usr/sbin/apache2

  

 *** one or more problems were detected!

  

  

 It seems that RRDs... ***FAIL*** . So how can I skip this error?

  

  

  

 On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn james.osbo...@citrix.com
 wrote:

 Did you run the install and check your prerequisites, I found that some of
 these are not present by default, You can run

  

 sudo ./install –check=prereq

  

 If everything is ok, you can proceed, otherwise you will need to install
 the missing packages

  

 At install time you may need to pass the argument for a standalone
 installation, this all depends on your environment

  

 sudo ./install –standalone

[Nagios-users] Monitoring my log files.

2012-09-05 Thread Aravinth Anto
I using this plugin :
http://exchange.nagios.org/directory/Plugins/Log-Files/check_logfiles/details

I want to monitor apache log using this plugin. Say if there more than 5
5xx errors in my apache log I need to trigger an alert.

I'm very new to Nagios and I wonder how do I specify this constraint!

Can anyone help me out?

Thanks in advance.
--
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] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
It seems that certificate verification is getting failed. I can do
something like this :

curl https://localhost --insecure

Which is returning the page. But in my case how do I specify the plugin to
not to use ssl certificate?

Thanks in advance. Kindly help me out.

On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto t-aravi...@juspay.in wrote:

 Hi all,

 I downloaded the plugin from this page :
 http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details


 I tested in my local machine like this :

 ./check_apache2.sh -H https://localhost -P 8443

 I get an error like this:

 (standard_in) 2: syntax error
 OK - Apache serves  Requests per second with an average CPU utilization of
 0.5%. Busy workers: , idle:  | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'=
 'bytes_preq'= 'workers_busy'= 'workers_idle'=

 Why there is an error stating `(standard_in) 2: syntax error`?

 Can anyone say me where I'm making the mistake?

--
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] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
On Tue, Sep 4, 2012 at 11:47 AM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:

 Read the documentation. It says:

 -S|--secure)
 Enables HTTPS (no certificate check though). Default is: off

 Thanks for the reply. But Doing so:
$ ./check_apache2.sh -H localhost -S

Gives me the same sort of error:

(standard_in) 2: syntax error
OK - Apache serves  Requests per second with an average CPU utilization of
2.4%. Busy workers: , idle:  | 'cpu_load'=2.4 'req_psec'= 'bytes_psec'=
'bytes_preq'= 'workers_busy'= 'workers_idle'=



 So the certificate is not checked.
 And if you manually check with curl, you should check the correct URL:
 curl https://localhost/server-status

 On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto t-aravi...@juspay.inwrote:

 It seems that certificate verification is getting failed. I can do
 something like this :

 curl https://localhost --insecure

 Which is returning the page. But in my case how do I specify the plugin
 to not to use ssl certificate?

 Thanks in advance. Kindly help me out.


 On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto t-aravi...@juspay.inwrote:

 Hi all,

 I downloaded the plugin from this page :
 http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details


 I tested in my local machine like this :

 ./check_apache2.sh -H https://localhost -P 8443

 I get an error like this:

 (standard_in) 2: syntax error
 OK - Apache serves  Requests per second with an average CPU utilization
 of 0.5%. Busy workers: , idle:  | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'=
 'bytes_preq'= 'workers_busy'= 'workers_idle'=

 Why there is an error stating `(standard_in) 2: syntax error`?

 Can anyone say me where I'm making the mistake?




 --
 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] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
I'm very new to apache. I tried to enable the server status page of apache.

I added the `status.conf` and `status.load` to `mods-enabled` directory.

I changed the config of `apache2.conf` to include all `mods-enabled`
directory.

This is the config of `staus.conf`:


IfModule mod_status.c
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the 192.0.2.0/24 to allow access from other
hosts.
#
Location /server-status
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 ::1
#Allow from 192.0.2.0/24
/Location

# Keep track of extended status information for each request
ExtendedStatus On

# Determine if mod_status displays the first 63 characters of a request
or
# the last 63, assuming the request itself is greater than 63 chars.
# Default: Off
#SeeRequestTail On


IfModule mod_proxy.c
# Show Proxy LoadBalancer status in mod_status
ProxyStatus On
/IfModule


/IfModule

The default settings. I restarted my server.

And when I try `wget localhost/server-status --no-check-certificate` . I
get an `404` error message :

--2012-09-04 07:04:08--  http://localhost/server-status
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://localhost/server-status [following]
--2012-09-04 07:04:08--  https://localhost/server-status
Connecting to localhost (localhost)|127.0.0.1|:443... connected.
WARNING: no certificate subject alternative name matches
requested host name `localhost'.
HTTP request sent, awaiting response... 404 Not Found
2012-09-04 07:04:08 ERROR 404: Not Found.


I'm very new to apache. Where I went wrong?

Thanks in advance.


On Tue, Sep 4, 2012 at 12:27 PM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:

 Note that now you're accessing port 80, instead of 8443...
 Also before you use the plugin, you should make sure that you have
 correctly enabled mod_status and the server-status URL is accessible.
 You can test this with curl or lynx.

 e.g.:
 lynx localhost/server-status

 If this page is not shown, then the plugin won't work.


 On Tue, Sep 4, 2012 at 8:34 AM, Aravinth Anto t-aravi...@juspay.inwrote:



 On Tue, Sep 4, 2012 at 11:47 AM, Claudio Kuenzler c...@claudiokuenzler.com
  wrote:

 Read the documentation. It says:

 -S|--secure)
 Enables HTTPS (no certificate check though). Default is: off

 Thanks for the reply. But Doing so:
 $ ./check_apache2.sh -H localhost -S

 Gives me the same sort of error:

 (standard_in) 2: syntax error
 OK - Apache serves  Requests per second with an average CPU utilization
 of 2.4%. Busy workers: , idle:  | 'cpu_load'=2.4 'req_psec'= 'bytes_psec'=
 'bytes_preq'= 'workers_busy'= 'workers_idle'=



 So the certificate is not checked.
 And if you manually check with curl, you should check the correct URL:
 curl https://localhost/server-status

 On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto t-aravi...@juspay.inwrote:

  It seems that certificate verification is getting failed. I can do
 something like this :

 curl https://localhost --insecure

 Which is returning the page. But in my case how do I specify the plugin
 to not to use ssl certificate?

 Thanks in advance. Kindly help me out.


 On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto t-aravi...@juspay.inwrote:

 Hi all,

 I downloaded the plugin from this page :
 http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details


 I tested in my local machine like this :

 ./check_apache2.sh -H https://localhost -P 8443

 I get an error like this:

 (standard_in) 2: syntax error
 OK - Apache serves  Requests per second with an average CPU
 utilization of 0.5%. Busy workers: , idle:  | 'cpu_load'=0.5 'req_psec'=
 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'=

 Why there is an error stating `(standard_in) 2: syntax error`?

 Can anyone say me where I'm making the mistake?




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

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
On Tue, Sep 4, 2012 at 12:55 PM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:

 You should write to Apache mailing list, not to Nagios  ;-)
 Read http://httpd.apache.org/docs/2.2/mod/mod_status.html

 The status.conf seems correct.
 You should be able to access the server-status page from the same host.
 Try to access it with and without SSL (are you forcing a SSL redirect?).
 You can also run apache2ctl status to check if the module is correctly
 loaded.

 Yes I'm redirecting it!  When tried running sudo apache2ctl status

w3m: Can't load http://localhost:80/server-status.

And when I hit with curl http://localhost:80/server-status.

I'm getting the document :

!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title302 Found/title
/headbody
h1Found/h1
pThe document has moved a href=https://localhost/server-status
here/a./p
/body/html

But doing curl http://localhost/server-status again getting in 404 page!!!

Kindly help me out.


 On Tue, Sep 4, 2012 at 9:11 AM, Aravinth Anto t-aravi...@juspay.inwrote:

 I'm very new to apache. I tried to enable the server status page of
 apache.

 I added the `status.conf` and `status.load` to `mods-enabled` directory.

 I changed the config of `apache2.conf` to include all `mods-enabled`
 directory.

 This is the config of `staus.conf`:


 IfModule mod_status.c
 #
 # Allow server status reports generated by mod_status,
 # with the URL of http://servername/server-status
 # Uncomment and change the 192.0.2.0/24 to allow access from other
 hosts.
 #
 Location /server-status
 SetHandler server-status
 Order deny,allow
 Deny from all
 Allow from 127.0.0.1 ::1
 #Allow from 192.0.2.0/24
 /Location

 # Keep track of extended status information for each request
 ExtendedStatus On

 # Determine if mod_status displays the first 63 characters of a
 request or
 # the last 63, assuming the request itself is greater than 63 chars.
 # Default: Off
 #SeeRequestTail On


 IfModule mod_proxy.c
 # Show Proxy LoadBalancer status in mod_status
 ProxyStatus On
 /IfModule


 /IfModule

 The default settings. I restarted my server.

 And when I try `wget localhost/server-status --no-check-certificate` . I
 get an `404` error message :

 --2012-09-04 07:04:08--  http://localhost/server-status
 Resolving localhost (localhost)... 127.0.0.1
 Connecting to localhost (localhost)|127.0.0.1|:80... connected.
 HTTP request sent, awaiting response... 302 Found
 Location: https://localhost/server-status [following]
 --2012-09-04 07:04:08--  https://localhost/server-status
 Connecting to localhost (localhost)|127.0.0.1|:443... connected.
 WARNING: no certificate subject alternative name matches
 requested host name `localhost'.
 HTTP request sent, awaiting response... 404 Not Found
 2012-09-04 07:04:08 ERROR 404: Not Found.


 I'm very new to apache. Where I went wrong?

 Thanks in advance.


 On Tue, Sep 4, 2012 at 12:27 PM, Claudio Kuenzler c...@claudiokuenzler.com
  wrote:

 Note that now you're accessing port 80, instead of 8443...
 Also before you use the plugin, you should make sure that you have
 correctly enabled mod_status and the server-status URL is accessible.
 You can test this with curl or lynx.

 e.g.:
 lynx localhost/server-status

 If this page is not shown, then the plugin won't work.


 On Tue, Sep 4, 2012 at 8:34 AM, Aravinth Anto t-aravi...@juspay.inwrote:



 On Tue, Sep 4, 2012 at 11:47 AM, Claudio Kuenzler 
 c...@claudiokuenzler.com wrote:

 Read the documentation. It says:

 -S|--secure)
 Enables HTTPS (no certificate check though). Default is: off

 Thanks for the reply. But Doing so:
 $ ./check_apache2.sh -H localhost -S

 Gives me the same sort of error:

 (standard_in) 2: syntax error
 OK - Apache serves  Requests per second with an average CPU utilization
 of 2.4%. Busy workers: , idle:  | 'cpu_load'=2.4 'req_psec'= 'bytes_psec'=
 'bytes_preq'= 'workers_busy'= 'workers_idle'=



 So the certificate is not checked.
 And if you manually check with curl, you should check the correct URL:
 curl https://localhost/server-status

 On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto t-aravi...@juspay.inwrote:

  It seems that certificate verification is getting failed. I can do
 something like this :

 curl https://localhost --insecure

 Which is returning the page. But in my case how do I specify the
 plugin to not to use ssl certificate?

 Thanks in advance. Kindly help me out.


 On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto 
 t-aravi...@juspay.inwrote:

 Hi all,

 I downloaded the plugin from this page :
 http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details


 I tested in my local machine like this :

 ./check_apache2.sh -H https://localhost -P 8443

 I get an error like this:

 (standard_in) 2: syntax error
 OK - Apache serves  Requests per second with an average

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
On Tue, Sep 4, 2012 at 11:38 AM, Claudio Kuenzler 
c...@claudiokuenzler.comwrote:

 In your case I'd do:

 ./check_apache2.sh -H localhost -P 8443 -S

 And you must have mod_status enabled.

 I just tested this on a Debian machine. You will also have to install bc
 if you haven't already.


Thanks finally I figured that out. The problem was with the redirect rule.
I just disabled the redirect rule for localhost alone. And now everything
is working fine. We have our nagios monitoring our apache. Thanks for your
help.


 On Tue, Sep 4, 2012 at 7:58 AM, Aravinth Anto t-aravi...@juspay.inwrote:

 Hi all,

 I downloaded the plugin from this page :
 http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details


 I tested in my local machine like this :

 ./check_apache2.sh -H https://localhost -P 8443

 I get an error like this:

 (standard_in) 2: syntax error
 OK - Apache serves  Requests per second with an average CPU utilization
 of 0.5%. Busy workers: , idle:  | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'=
 'bytes_preq'= 'workers_busy'= 'workers_idle'=

 Why there is an error stating `(standard_in) 2: syntax error`?

 Can anyone say me where I'm making the mistake?


 --
 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] (no subject)

2012-08-31 Thread Aravinth Anto
Spam!!!

On Fri, Aug 31, 2012 at 5:04 PM, Dei Bertine deibert...@yahoo.com wrote:

 http://www.karleenviro.com/WpDev/ikhkjskl.php?htxp=htxp


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

[Nagios-users] What all ports need to be opened?

2012-08-23 Thread Aravinth Anto Intern
HI all,

I'm very new to Nagios. I want to know what all ports need to be opened in
order to work with Nagios.

Thanks in advance.
--
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] What all ports need to be opened?

2012-08-23 Thread Aravinth Anto Intern
I'm doing some checks on my client side. Say running cpu load check ,
apache check and others.

On Thu, Aug 23, 2012 at 7:45 PM, Steven Carr sjc...@gmail.com wrote:

 You don't really specify what about Nagios you are firewalling.
 Inbound/outbound? NRPE?

 Outbound you will need to ensure that any ports Nagios is testing are
 open, NRPE uses port 5666 by default. Inbound depends on what is
 trying to contact Nagios.

 Steve


 On 23 August 2012 14:10, Aravinth Anto Intern t-aravi...@juspay.in
 wrote:
  HI all,
 
  I'm very new to Nagios. I want to know what all ports need to be opened
 in
  order to work with Nagios.
 
  Thanks in advance.
 
 
 --
  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

[Nagios-users] How to set up sending alerts?

2012-08-22 Thread Aravinth Anto Intern
Hi all,

I'm very new to nagios. I followed this blog to set up the smtp server for
sending emails :
http://danxlog.blogspot.in/2010/07/nagios-use-external-smtp-server-to-send.html
.

But that doesn't seem to be working for me. I have
my /usr/local/nagios/etc/resource.cfg file as :


$USER1$=/usr/local/nagios/libexec

$USER5$=smtp.gmail.com:587

$USER9$=myacco...@gmail.com
$USER10$=mypassword

And in my commands file I added these two as said in the blog post :

define command{
command_name notify-host-by-email
command_line /usr/bin/printf %b * Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n | /usr/local/bin/sendEmail -s $USER7$ -t $CONTACTEMAIL$
-f $USER5$ -l /var/log/sendEmail -u ** $NOTIFICATIONTYPE$ Host Alert:
$HOSTNAME$ is $HOSTSTATE$ ** -m * Nagios *\n\nNotification Type:
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n
 }


define command{
command_name notify-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$ | /usr/local/bin/sendEmail -s $USER7$ -t
$CONTACTEMAIL$ -f $USER5$ -l /var/log/sendEmail -u ** $NOTIFICATIONTYPE$
Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** -m *
Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$
 }

I restarted it. But it seems to be working! Can anyone help in this regard?
--
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] Installing Plugin In Nagios.

2012-08-02 Thread Aravinth Anto Intern
Lets say I need to download this plugin :
http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/Apache-Tomcat/check_tomcat-2Epl/details

I obtained the file check_tomcat.pl.. But how do I install it? Sorry,
I'm very new to Nagios.. Kindly help me out.

On Thu, Aug 2, 2012 at 11:44 AM, Perfors, Henny hdperf...@che.nl wrote:
 http://nagios.sourceforge.net/docs/nagios-3.pdf


 -Oorspronkelijk bericht-
 Van: Aravinth Anto Intern [mailto:t-aravi...@juspay.in]
 Verzonden: donderdag 2 augustus 2012 5:02
 Aan: Nagios Users List
 Onderwerp: [Nagios-users] Installing Plugin In Nagios.

 Hi all,

 I'm very new to nagios. I need to install several other plugins in nagios 
 system.

 I'm using Ubuntu 12.04 and I installed the nagios system using :

 sudo apt-get install -y nagios3

 This command. Its up and running.

 Lets say for example I need to install check_tomcat plugin.. How I can do 
 that?


 Thanks in advance.

 --
 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] How Do I Generally Specify timing constraint in Nagios?

2012-08-02 Thread Aravinth Anto Intern
Thanks for replying. Is it possible for me to specify this via any
Object configuration file? Is so provide me an example. I can't find
this detail in docs.

On Thu, Aug 2, 2012 at 12:22 PM, Mark Elsen mark.el...@gmail.com wrote:




 Hi all,


 I'm new to nagios. I need to know how I can specify the timing
 constraints. For example if I want to do something :


 if something is down for 10 min then alert me.

 In this case where do I specify the timing constraints?




  There are numerous timing vars, determining these  result(s) and or
 behavior,it would be a good idea
 to study examples in the doc(s) and or look at the template files.

 M.

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


[Nagios-users] Problem in Installing the graph plugin.

2012-08-02 Thread Aravinth Anto Intern
Hi all, I'm trying to install Nagios Plugin :
http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details


I downloaded it, unzip it and then I run the install.pl as

*sudo ./install.pl
*

I accepted every directory as default and done with installation.

I changed the side.php to add my Trends link that are supported by this
plugin. I restarted the server. But when I click on certain links. I get an
error :


*The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found
on this server.
*

Why this is happening? I can go into the directory
/usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi.

But why its not working?


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

[Nagios-users] How Do I Find the no of connections in Tomcat?

2012-08-01 Thread Aravinth Anto Intern
Hi all,

I'm very new to Nagios. I have certain doubts.


I need to find a way to find the number of tomcat connections. More
precisely, I need to know:

If Number of connections ( 500 for 1 min) or else alert.


Is that possible to do so?


Thanks in advance.










Regard's,
Anto.

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


[Nagios-users] Creating a criteria:

2012-08-01 Thread Aravinth Anto Intern
Hi all, I'm new to nagios. And trying to figure out how do I do this :

Response time  2s for 10 continuous requests in a 5 minutes.

If this is the case then I need to create a alert.

I defined a template for this :


define host{

host_nametest

;other stufs

;check command so that response time is less than 2s

check_interval  5

retry_interval  1

max_check_attempts  10

check_period24x7

}

For my criteria :

Response time  2s for 10 continuous requests in a 5 minutes.

Is that correct?

Thanks in advance.

--
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] Creating a criteria:

2012-08-01 Thread Aravinth Anto Intern
Thanks for replying.

So doing this :


define host{

host_nametest

;other stufs

;check command so that response time is less than 2s

check_interval  0.5

retry_interval  1

max_check_attempts  10

check_period24x7

}


Will do the job?

On Wed, Aug 1, 2012 at 10:24 PM, Paul Dubuc w...@paul.dubuc.org wrote:
 Alex Griffin wrote:

 Aravinth Anto Intern wrote:
 Hi all, I'm new to nagios. And trying to figure out how do I do this :

 Response time  2s for 10 continuous requests in a 5 minutes.

 If this is the case then I need to create a alert.

 I defined a template for this :


 define host{

  host_nametest

  ;other stufs

   ;check command so that response time is less than 2s

  check_interval  5

  retry_interval  1

  max_check_attempts  10

  check_period24x7

  }

 For my criteria :

 Response time  2s for 10 continuous requests in a 5 minutes.

 Is that correct?

 Thanks in advance.
  
 No, this will only check once every 5 minutes. The max_check_attempts
 directive is for retrying after a failed check. You need to find or
 write a plugin that does all 10 requests itself and then set it up as a
 *passive* check in Nagios. I believe it must be passive, otherwise
 Nagios will kill it for running too long.

 Alex Griffin
 ---

 Another way would be to set the retry interval to 0.5.  If the whole purpose
 of the check is to fail when the response time is greater than 2 seconds, then
 the check would be run every 30 seconds as long as it keeps failing and would
 enter a hard state, generating a notification, if it kept failing for 5 
 minutes.


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


[Nagios-users] Installing Plugin In Nagios.

2012-08-01 Thread Aravinth Anto Intern
Hi all,

I'm very new to nagios. I need to install several other plugins in
nagios system.

I'm using Ubuntu 12.04 and I installed the nagios system using :

sudo apt-get install -y nagios3

This command. Its up and running.

Lets say for example I need to install check_tomcat plugin.. How I can do that?


Thanks in advance.

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


[Nagios-users] How Do I Generally Specify timing constraint in Nagios?

2012-08-01 Thread Aravinth Anto Intern
Hi all,


I'm new to nagios. I need to know how I can specify the timing
constraints. For example if I want to do something :


if something is down for 10 min then alert me.

In this case where do I specify the timing constraints?


Thanks in advance.

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