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

[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

[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

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


Re: [Nagios-users] Installing Plugin In Nagios.

2012-08-01 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  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


[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


[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


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


[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