Re: [Nagios-users] Configuration Planning

2011-04-04 Thread Greg Pangrazio
Cory,

If you have specific questions about the nagios install on alienvault we may
be able to help you.  There is probably a different list that would be
better for these questions.


Greg Pangrazio


On Mon, Apr 4, 2011 at 3:18 PM, Cory Clouse  wrote:

> Hello,
>
> This is my first time using AlienVault and I would really like some
> directions to take for planning my system. I have tried picking function by
> function to install but I cannot get anything working. I would really
> appreciate someone telling me what I need to work on first so that I can
> correctly walk through each specific task.
>
>
>
> My plan is to have one central server which is hosted on a VM. This will
> not have any sensors, just the framework, server, and the database. I will
> also have two sensors with 2 network cards a piece. I want one of them to do
> snort and then I want the other sensor dealing with nagios and ntop.
>
>
>
> Thanks
>
>
>
>
>
>
>
> Cory
>
> Fecon Inc.
>
>
>
> [image: mini logo]
>
>
>
>
> --
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
<>--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Check_snmp -d & -s

2011-02-11 Thread Greg Pangrazio
You might think about putting an "else" clause that returns "unknown"
just to cover all of your bases.  Right now if the line doesn't match
the script will not return anything.

Greg Pangrazio





On Fri, Feb 11, 2011 at 11:57 AM, Tristan Drinkwater
 wrote:
> Hi,
>
> Just in case anyone wanted to know..
>
> I resolved my issue my created a wrap script for the check_snmp plugin.
>
> Quite simple really :)
>
>  script
>
>
> #!/bin/bash
>
> # Run check_snmp with param
> check=$(/usr/local/nagios/libexec/check_snmp -H $1 -o $2 -C nas-drive -P 2c)
>
> # echo result (testing)
> # echo $check
>
> # return result if CRITICAL
> if [[ $check == *dead* ]]
> then
>        echo "Disk OFFLINE - CRITICAL";
>        exit 2
> fi
>
> # return result if OK
> if [[ $check == *ok* ]]
> then
>        echo "Disk Online - OK";
>        exit 0
> fi
>
> # end script
>
>
>
>
> -Original Message-
> From: Tristan Drinkwater [mailto:trist...@micro-p.com]
> Sent: 11 February 2011 11:34
> To: Nagios Users List
> Subject: Re: [Nagios-users] Check_snmp -d & -s
>
> Interesting.
>
> How do I go about a wrap script then?
>
> I take it I call the script from the command_check line?  Anything special 
> about outputting the result so Nagios can see it?
>
> thanks
>
> -Original Message-
> From: Yueh-Hung Liu [mailto:yuehung@gmail.com]
> Sent: 11 February 2011 11:24
> To: Nagios Users List
> Subject: Re: [Nagios-users] Check_snmp -d & -s
>
> you can write a wrap script, which would be the check command, to deal the 
> return string and report correct status to Nagios.
> of course this script will use check_snmp in it.
>
>
> On Fri, Feb 11, 2011 at 7:08 PM, Tristan Drinkwater  
> wrote:
>> Morning all,
>>
>>
>>
>> I'm trying to refine a few snmp checks I do.
>>
>>
>>
>> My command looks like this;
>>
>>
>>
>> ./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive
>> -P 2c -v
>>
>>
>>
>>
>>
>> This produces the following;
>>
>>
>>
>> /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
>> READYNAS-MIB::diskState.1
>>
>> READYNAS-MIB::diskState.1 = STRING: "dead"
>>
>> SNMP OK - "dead" |
>>
>>
>>
>>
>>
>> Now, as you can see from above, my disk 2 is 'dead' but Nagios reports
>> this as ok. I'm under the impression I need to use the '-s' switch to
>> specify what is good and what is bad, based on matching a string from the 
>> output.
>>
>>
>>
>> To me, the output above would suggest that the returning string is
>> "dead" so to get it to report that this is actually bad I should use "-s 
>> ok"  as "ok"
>> is the string returned on all the other disks that are working ok.
>>
>>
>>
>> - working disk---
>>
>> /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
>> READYNAS-MIB::diskState.2
>>
>> READYNAS-MIB::diskState.2 = STRING: "ok"
>>
>> SNMP OK - "ok" |
>>
>> - working disk---
>>
>>
>>
>>
>>
>>
>>
>> Sadly, this doesn't work as it seems that "ok" and "dead" aren't the
>> returning strings. Neither are 1 and 0 as stated in the readynas MIB
>> documentation.
>>
>>
>>
>> Anyone got any ideas??
>>
>>
>>
>> Have I messed up the syntax??
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>> Tristan
>>
>>
>>
>>
>>
>>
>>
>> 
>> Micro Peripherals Limited.
>> Registered Office: Shorten Brook Way, Altham Business Park, Altham,
>> Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790
>> Micro Peripherals Limited. Registered in England No. 1511931. VAT No.
>> GB 864
>> 4387 91
>>
>> DISCLAIMER:
>> This e-mail and attachments are confidential and are intended solely
>> for the use of the individual to whom it is addressed. Any views or
>> opinions presented are solely those of the author and do not
>> necessarily represent those of Micro Peripherals Limited.
>> If you are not the intended recipient, be advised that you have
>> received this Email in error and that any use, dissemination,
>> forwarding, printing, or copying of this Emai

Re: [Nagios-users] Checking multiple TCP ports for a single status?

2010-12-29 Thread Greg Pangrazio
check out check_service_cluster command.

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

I use this for what you are looking at.

Greg Pangrazio





On Wed, Dec 29, 2010 at 12:39 PM, stan  wrote:
>
> I think I need to verify that both port 135, and 445 are avaialble on some
> Windows amchines. As I understand it, both of these need to be up. I'd like
> to make this a single check. Looks like check_tcp will only accept a single
> -p argument. Is this correct? If so, is there a way I can AND to different
> check_tcp runs, and report a single status back to Nagios?
>
>
> --
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
>
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Alert host down with passive check

2010-12-11 Thread Greg Pangrazio
You can use a macro for another service but why don't you use that service
as the host check?
On Dec 11, 2010 2:00 AM, "Rikard Dahlberg"  wrote:
>
> Thanks for the fast answer.
> Freshenss seems to do the tric, to a point anyway.
> I can see if the host services dies now, just like an active check as its
down. However it doesn't report correctly on the host status.
>
> Since freshness last resport option is to ping the host IP adress, and if
the server goes down and are behind a firewall, the ping will just go to
that gateway. Is there any way to "fake" nagios to thinking that the host is
down if some service goes down?
> Rikard
>
>> From: pangr...@gmail.com
>> Date: Fri, 10 Dec 2010 09:28:13 -0600
>> To: rik.dahlb...@gmail.com; nagios-users@lists.sourceforge.net
>> Subject: Re: [Nagios-users] Alert host down with passive check
>>
>> Please keep the list on the replies so others can learn from this as
well.
>>
>> define service{
>> use generic-service
>> host_name HOST
>> service_description Logged In users
>> active_checks_enabled 0;
>> passive_checks_enabled 1;
>> check_freshness 1;
>> freshness_threshold 600;
>> check_command check_stale!2!'This Service is stale'
>> }
>>
>> Greg Pangrazio
>>
>>
>>
>>
>>
>> On Fri, Dec 10, 2010 at 9:18 AM, Rikard Dahlberg 
wrote:
>> > Thanks.
>> >
>> > I've now edited nagios.cfg to use freshness and looked up the manual..
:)
>> > Would you mind giving me an example of the service and command? Mine
still
>> > isn't working..
>> >
>> > Rikard
>> >
>> >> From: pangr...@gmail.com
>> >> Date: Fri, 10 Dec 2010 08:05:45 -0600
>> >> To: nagios-users@lists.sourceforge.net
>> >> Subject: Re: [Nagios-users] Alert host down with passive check
>> >>
>> >> You are looking for "Freshness"
>> >>
>> >> check out http://nagios.sourceforge.net/docs/3_0/freshness.html
>> >>
>> >> I use this with all of my passive checks.
>> >>
>> >> Greg Pangrazio
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Dec 10, 2010 at 7:56 AM, Rikard Dahlberg 
>> >> wrote:
>> >> > Heya guys!
>> >> >
>> >> > Is there any possible way to configure nagios to report host as
DOWN, if
>> >> > nagios havn't got any passive checkresult within like 5 minutes?
>> >> > Can I change that somehow? For now, when a host dies in my current
>> >> > configuration, it actually doesn't report is as DOWN, since im using
>> >> > passive
>> >> > checks. But i want to set nagios to if i havn't got a new
passive.-check
>> >> > result in 5 minutes, i want nagios to automaticly set it as DOWN...
>> >> >
>> >> > Any idea please? :)
>> >> >
>> >> > Regards
>> >> > Rikard
>> >> >
>> >> >
>> >> >
--
>> >> >
>> >> > ___
>> >> > Nagios-users mailing list
>> >> > Nagios-users@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/nagios-users
>> >> > ::: Please include Nagios version, plugin version (-v) and OS when
>> >> > reporting
>> >> > any issue.
>> >> > ::: Messages without supporting info will risk being sent to
/dev/null
>> >> >
>> >>
>> >>
>> >>
--
>> >> ___
>> >> Nagios-users mailing list
>> >> Nagios-users@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> >> ::: Please include Nagios version, plugin version (-v) and OS when
>> >> reporting any issue.
>> >> ::: Messages without supporting info will risk being sent to /dev/null
>> >
>>
>>
--
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>
--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev ___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Alert host down with passive check

2010-12-10 Thread Greg Pangrazio
Please keep the list on the replies so others can learn from this as well.

define service{
use generic-service
host_name  HOST
service_description Logged In users
active_checks_enabled   0;
passive_checks_enabled  1;
check_freshness 1;
freshness_threshold 600;
check_command   check_stale!2!'This Service is stale'
    }

Greg Pangrazio





On Fri, Dec 10, 2010 at 9:18 AM, Rikard Dahlberg  wrote:
> Thanks.
>
> I've now edited nagios.cfg to use freshness and looked up the manual.. :)
> Would you mind giving me an example of the service and command? Mine still
> isn't working..
>
> Rikard
>
>> From: pangr...@gmail.com
>> Date: Fri, 10 Dec 2010 08:05:45 -0600
>> To: nagios-users@lists.sourceforge.net
>> Subject: Re: [Nagios-users] Alert host down with passive check
>>
>> You are looking for "Freshness"
>>
>> check out http://nagios.sourceforge.net/docs/3_0/freshness.html
>>
>> I use this with all of my passive checks.
>>
>> Greg Pangrazio
>>
>>
>>
>>
>>
>> On Fri, Dec 10, 2010 at 7:56 AM, Rikard Dahlberg 
>> wrote:
>> > Heya guys!
>> >
>> > Is there any possible way to configure nagios to report host as DOWN, if
>> > nagios havn't got any passive checkresult within like 5 minutes?
>> > Can I change that somehow? For now, when a host dies in my current
>> > configuration, it actually doesn't report is as DOWN, since im using
>> > passive
>> > checks. But i want to set nagios to if i havn't got a new passive.-check
>> > result in 5 minutes, i want nagios to automaticly set it as DOWN...
>> >
>> > Any idea please? :)
>> >
>> > Regards
>> > Rikard
>> >
>> >
>> > --
>> >
>> > ___
>> > Nagios-users mailing list
>> > Nagios-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/nagios-users
>> > ::: Please include Nagios version, plugin version (-v) and OS when
>> > reporting
>> > any issue.
>> > ::: Messages without supporting info will risk being sent to /dev/null
>> >
>>
>>
>> --
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Alert host down with passive check

2010-12-10 Thread Greg Pangrazio
You are looking for "Freshness"

check out http://nagios.sourceforge.net/docs/3_0/freshness.html

I use this with all of my passive checks.

Greg Pangrazio





On Fri, Dec 10, 2010 at 7:56 AM, Rikard Dahlberg  wrote:
> Heya guys!
>
> Is there any possible way to configure nagios to report host as DOWN, if
> nagios havn't got any passive checkresult within like 5 minutes?
> Can I change that somehow? For now, when a host dies in my current
> configuration, it actually doesn't report is as DOWN, since im using passive
> checks. But i want to set nagios to if i havn't got a new passive.-check
> result in 5 minutes, i want nagios to automaticly set it as DOWN...
>
> Any idea please? :)
>
> Regards
> Rikard
>
> --
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How can i show remote nagios results in one interface?

2010-12-03 Thread Greg Pangrazio
I was wrong i use check_service_cluster

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


Greg Pangrazio



On Thu, Dec 2, 2010 at 9:25 PM, Greg Pangrazio  wrote:

> I do this with one service check that looks at all 4 of the statuses and
> there is a warning and a critical for each.  I will have to look up the name
> of the service check but it used the status macros from the services it
> might be check_multi
> Greg Pangrazio
> On Thu, Dec 2, 2010 at 4:05 PM, Steve Kemp <
> st...@dedicatedserversaustralia.com.au> wrote:
>
>>  We have 4 remotely located Nagios installs each monitoring the same set
>> of infrastructure
>>
>>
>>
>> Currently we have to naturally login to each one individually to see
>> results etc
>>
>>
>>
>> What we are looking for is a solution that will show results from each
>> location on the one page, and perhaps has a policy setup where if 2 out of
>> the 4 locations report issues it sends a warning or if 3 or all four report
>> an issue that it then sends a warning
>>
>>
>>
>> For example service xyz
>>
>>
>>
>> NewYork OK
>>
>> London WARN
>>
>> Sydney CRITICAL
>>
>> Los Angeles OK
>>
>>
>>
>> This its hoped will remove the need for us to receive up to 4 sms’s and 4
>> eamils each time something happens to a server or service
>>
>>
>>
>> We have looked at passive results using NSCA but it doesn’t display the
>> results as we had hoped
>>
>>
>>
>> Anyone know of an addon or mod that will allow us to achieve this?
>>
>>
>>
>> Regards
>>
>>
>>
>> *Steve Kemp*
>>
>> *Dedicated Servers Australia*
>>
>> [image: Description: Description: ded-aus-logo]
>>
>> *www.dedicatedserversaustralia.com.au*
>>
>> *Tel:* *+61 7 30187567*  *Fax:* *+61 7 38476684*
>>
>> *Support: **https://accounts.dedicatedserversaustralia.com.au*
>>
>> *Sales Email:* *dedaus.sa...@dedicatedserversaustralia.com.au*
>>
>>
>>
>>
>>
>>
>> --
>> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
>> Tap into the largest installed PC base & get more eyes on your game by
>> optimizing for Intel(R) Graphics Technology. Get started today with the
>> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
>> http://p.sf.net/sfu/intelisp-dev2dev
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
<>--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] How can i show remote nagios results in one interface?

2010-12-02 Thread Greg Pangrazio
I do this with one service check that looks at all 4 of the statuses and
there is a warning and a critical for each.  I will have to look up the name
of the service check but it used the status macros from the services it
might be check_multi
Greg Pangrazio
On Thu, Dec 2, 2010 at 4:05 PM, Steve Kemp <
st...@dedicatedserversaustralia.com.au> wrote:

>  We have 4 remotely located Nagios installs each monitoring the same set
> of infrastructure
>
>
>
> Currently we have to naturally login to each one individually to see
> results etc
>
>
>
> What we are looking for is a solution that will show results from each
> location on the one page, and perhaps has a policy setup where if 2 out of
> the 4 locations report issues it sends a warning or if 3 or all four report
> an issue that it then sends a warning
>
>
>
> For example service xyz
>
>
>
> NewYork OK
>
> London WARN
>
> Sydney CRITICAL
>
> Los Angeles OK
>
>
>
> This its hoped will remove the need for us to receive up to 4 sms’s and 4
> eamils each time something happens to a server or service
>
>
>
> We have looked at passive results using NSCA but it doesn’t display the
> results as we had hoped
>
>
>
> Anyone know of an addon or mod that will allow us to achieve this?
>
>
>
> Regards
>
>
>
> *Steve Kemp*
>
> *Dedicated Servers Australia*
>
> [image: Description: Description: ded-aus-logo]
>
> *www.dedicatedserversaustralia.com.au*
>
> *Tel:* *+61 7 30187567*  *Fax:* *+61 7 38476684*
>
> *Support: **https://accounts.dedicatedserversaustralia.com.au*
>
> *Sales Email:* *dedaus.sa...@dedicatedserversaustralia.com.au*
>
>
>
>
>
>
> --
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
<><>--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nsclient wrong password

2010-11-30 Thread Greg Pangrazio
If you are using the standard Ubuntu apt-get install the comand
definitions are located in /etc/nagios-plugins/config you can modifiy
the check_nt command from there in the nt.cfg file

Greg Pangrazio




On Tue, Nov 30, 2010 at 8:56 AM, Maxime Alarie  wrote:
>
>
>
>
> From: trm asn [mailto:trm.nag...@gmail.com]
> Sent: 29 November 2010 10:48
>
> To: Nagios Users List
> Subject: Re: [Nagios-users] nsclient wrong password
>
>
>
>
>
> On Mon, Nov 29, 2010 at 8:28 PM, Maxime Alarie 
> wrote:
>
> From: trm asn [mailto:trm.nag...@gmail.com]
> Sent: 27 November 2010 05:20
>
> To: Nagios Users List
> Subject: Re: [Nagios-users] nsclient wrong password
>
>
>
> check nsc.ini for the password & set the same password in nagios command.cfg
> file
>
> On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie 
> wrote:
>
> Hi, I keep getting this error and I don’t know why..  When I install
> nsclient on a windows macine, I provide the nagiosadmin password in the
> client, as well as my nagios server IP address.   For some reason, I keep
> having the Invalid password error message both on nsclient.log and on the
> server logs, on th e server I also have Connection Refused.
>
>
>
> Nsclient.log:
>
> \NSClientListener.cpp:160: Invalid password (None).
>
>
>
> Server:
>
> [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient -
> ERROR: Invalid password.
>
> [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive
> Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.
>
> [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226
>
> [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR:
> Invalid password.
>
> [1290806235] SERVICE NOTIFICATION:
> root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid
> password.
>
> [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR:
> Invalid password.
>
> [1290806275] SERVICE NOTIFICATION: root;Penang;CPU
> Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.
>
> [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR:
> Invalid password.
>
> [1290806335] SERVICE NOTIFICATION:
> root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR:
> Invalid password.
>
> [1290806515] SERVICE ALERT: Penang;C:\ Drive
> Space;CRITICAL;HARD;4;Connection refused
>
> [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive
> Space;CRITICAL;notify-service-by-email;Connection refused
>
> [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused
>
> [1290806535] SERVICE NOTIFICATION:
> root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused
>
> [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection
> refused
>
> [1290806575] SERVICE NOTIFICATION: root;Penang;CPU
> Load;CRITICAL;notify-service-by-email;Connection refused
>
>
>
>
>
> What am I doing  wrong here?
>
>
>
> I don’t have any password in my commands.cfg looks like this:
>
> cat /etc/nagios3/commands.cfg
>
> ###
>
> # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS
> ###
>
>
>
>
>
> 
>
> # NOTIFICATION COMMANDS
>
> 
>
>
>
>
>
> # 'notify-host-by-email' command definition
>
> 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/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert:
> $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
>
>   }
>
>
>
> # 'notify-service-by-email' command definition
>
> 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/bin/mail -s "** $NOTIFICATIONTYPE$ Servi

Re: [Nagios-users] nsclient wrong password

2010-11-29 Thread Greg Pangrazio
Can you send us the definition for the nagios command you are using?


Greg Pangrazio





On Mon, Nov 29, 2010 at 8:58 AM, Maxime Alarie  wrote:
> From: trm asn [mailto:trm.nag...@gmail.com]
> Sent: 27 November 2010 05:20
> To: Nagios Users List
> Subject: Re: [Nagios-users] nsclient wrong password
>
>
>
> check nsc.ini for the password & set the same password in nagios command.cfg
> file
>
>
> On Sat, Nov 27, 2010 at 2:53 AM, Maxime Alarie 
> wrote:
>
> Hi, I keep getting this error and I don’t know why..  When I install
> nsclient on a windows macine, I provide the nagiosadmin password in the
> client, as well as my nagios server IP address.   For some reason, I keep
> having the Invalid password error message both on nsclient.log and on the
> server logs, on th e server I also have Connection Refused.
>
>
>
> Nsclient.log:
>
> \NSClientListener.cpp:160: Invalid password (None).
>
>
>
> Server:
>
> [1290806215] SERVICE ALERT: Penang;C:\ Drive Space;UNKNOWN;HARD;4;NSClient -
> ERROR: Invalid password.
>
> [1290806215] SERVICE NOTIFICATION: root;Penang;C:\ Drive
> Space;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.
>
> [1290806227] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_CHECK;Penang;1290806226
>
> [1290806235] SERVICE ALERT: Penang;W3SVC;UNKNOWN;HARD;4;NSClient - ERROR:
> Invalid password.
>
> [1290806235] SERVICE NOTIFICATION:
> root;Penang;W3SVC;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid
> password.
>
> [1290806275] SERVICE ALERT: Penang;CPU Load;UNKNOWN;HARD;4;NSClient - ERROR:
> Invalid password.
>
> [1290806275] SERVICE NOTIFICATION: root;Penang;CPU
> Load;UNKNOWN;notify-service-by-email;NSClient - ERROR: Invalid password.
>
> [1290806335] SERVICE ALERT: Penang;Explorer;UNKNOWN;HARD;4;NSClient - ERROR:
> Invalid password.
>
> [1290806335] SERVICE NOTIFICATION:
> root;Penang;Explorer;UNKNOWN;notify-service-by-email;NSClient - ERROR:
> Invalid password.
>
> [1290806515] SERVICE ALERT: Penang;C:\ Drive
> Space;CRITICAL;HARD;4;Connection refused
>
> [1290806515] SERVICE NOTIFICATION: root;Penang;C:\ Drive
> Space;CRITICAL;notify-service-by-email;Connection refused
>
> [1290806535] SERVICE ALERT: Penang;W3SVC;CRITICAL;HARD;4;Connection refused
>
> [1290806535] SERVICE NOTIFICATION:
> root;Penang;W3SVC;CRITICAL;notify-service-by-email;Connection refused
>
> [1290806575] SERVICE ALERT: Penang;CPU Load;CRITICAL;HARD;4;Connection
> refused
>
> [1290806575] SERVICE NOTIFICATION: root;Penang;CPU
> Load;CRITICAL;notify-service-by-email;Connection refused
>
>
>
>
>
> What am I doing  wrong here?
>
>
>
> I don’t have any password in my commands.cfg looks like this:
>
> cat /etc/nagios3/commands.cfg
>
> ###
>
> # COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS
> ###
>
>
>
>
>
> 
>
> # NOTIFICATION COMMANDS
>
> 
>
>
>
>
>
> # 'notify-host-by-email' command definition
>
> 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/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert:
> $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
>
>   }
>
>
>
> # 'notify-service-by-email' command definition
>
> 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/bin/mail -s "** $NOTIFICATIONTYPE$ Service
> Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>
>   }
>
>
>
>
>
>
>
>
>
>
>
> 
>
> # HOST CHECK COMMANDS
>
> 
>
>
>
> # On Debian, check-host-alive is being defined from within the
>
> # nagios-plugins-basic 

Re: [Nagios-users] Nagios passive checks, client?

2010-11-11 Thread Greg Pangrazio
If they are just windows, i would check out check_nt and the NSClient.
 I use that to monitor about 20 hosts and probably 200 services behind
a firewall.

That requires a client software to be installed on the windows boxes
though.  Some people balk at that.

I do go the passive route as well but that requires a host in the
network to do the "active" side of the check or a client on each
system.

I like the reporting I get out of the NSClient a bit better personally.

Greg Pangrazio





On Thu, Nov 11, 2010 at 10:05 AM, Rikard Dahlberg
 wrote:
>
> Hello!
>
> only a couple of windows servers... (sadly ;) )
> im however planning on monitor the firewall, but that is for later ..
>
>> From: pangr...@gmail.com
>> Date: Thu, 11 Nov 2010 09:59:07 -0600
>> To: nagios-users@lists.sourceforge.net
>> Subject: Re: [Nagios-users] Nagios passive checks, client?
>>
>> What kind of hosts are you monitoring on the remote end?
>>
>> Greg Pangrazio
>>
>>
>>
>>
>>
>> On Thu, Nov 11, 2010 at 7:42 AM, Rikard Dahlberg 
>> wrote:
>> > Hello!
>> >
>> > I'm fairly new to nagios, and im hoping that someone of you have had a
>> > similiar situation which i am currently facing.
>> > The active servers i got on my local network is being monitored fine,
>> > with
>> > all the services i have written.
>> >
>> > BUT, how do i monitor a server BEHIND a firewall? can i filter on ports
>> > on
>> > the firewall to accept active checks from nagios, or can i walk around
>> > the
>> > problem by configuring pasive checks? Meaning klient -> server, instead
>> > of
>> > server -> klient.
>> > Ive read that this particular option is when i want to use NSCA, which
>> > im
>> > trying to  get to work, but so far no success. I do want some kind of
>> > client-agent that sends out notifications to my nagios server, but at
>> > this
>> > point, i havn't got anything to work...
>> >
>> > Could someone please help me out? Is nsca the best option? Or are there
>> > other choices?
>> >
>> >
>> > --
>> > Centralized Desktop Delivery: Dell and VMware Reference Architecture
>> > Simplifying enterprise desktop deployment and management using
>> > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>> > client virtualization framework. Read more!
>> > http://p.sf.net/sfu/dell-eql-dev2dev
>> > ___
>> > Nagios-users mailing list
>> > Nagios-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/nagios-users
>> > ::: Please include Nagios version, plugin version (-v) and OS when
>> > reporting
>> > any issue.
>> > ::: Messages without supporting info will risk being sent to /dev/null
>> >
>>
>>
>> --
>> Centralized Desktop Delivery: Dell and VMware Reference Architecture
>> Simplifying enterprise desktop deployment and management using
>> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>> client virtualization framework. Read more!
>> http://p.sf.net/sfu/dell-eql-dev2dev
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>
> --
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios passive checks, client?

2010-11-11 Thread Greg Pangrazio
What kind of hosts are you monitoring on the remote end?

Greg Pangrazio





On Thu, Nov 11, 2010 at 7:42 AM, Rikard Dahlberg  wrote:
> Hello!
>
> I'm fairly new to nagios, and im hoping that someone of you have had a
> similiar situation which i am currently facing.
> The active servers i got on my local network is being monitored fine, with
> all the services i have written.
>
> BUT, how do i monitor a server BEHIND a firewall? can i filter on ports on
> the firewall to accept active checks from nagios, or can i walk around the
> problem by configuring pasive checks? Meaning klient -> server, instead of
> server -> klient.
> Ive read that this particular option is when i want to use NSCA, which im
> trying to  get to work, but so far no success. I do want some kind of
> client-agent that sends out notifications to my nagios server, but at this
> point, i havn't got anything to work...
>
> Could someone please help me out? Is nsca the best option? Or are there
> other choices?
>
> --
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-11-02 Thread Greg Pangrazio
Go ask your Database admin for a query that will return a few rows.  I can't
write the query for you I have no idea what your SQL schemas are or how your
database is configured.
Greg Pangrazio




On Tue, Nov 2, 2010 at 9:50 AM,  wrote:

>  Hi ,
>
>
>
> Please let me know which plugin I can use to resolve this issue.
>
>
>
> Also please let me know the query which I have to use.
>
>
>
> Thanks,
>
> Ravi G
>
>
>
> *From:* Greg Pangrazio [mailto:pangr...@gmail.com]
> *Sent:* Tuesday, November 02, 2010 8:07 PM
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] SQL-DB Services-Unknown Status
>
>
>
> I don't use this plugin, but it looks like it doesn't like the "*" between
> the first and second "!".  That spot holds the sql query so try a real query
> that will return some rows like a select statement.
>
> Greg Pangrazio
>
>
>  On Tue, Nov 2, 2010 at 9:13 AM,  wrote:
>
> Hi,
>
>  I am using Nagios Version 3.0.6 on a Linux server to monitor the
> SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers.
>
> For the many of the servers the status information is showing following
> errors. Please see the screenshots below
>
> 1)  UNKNOWN: No handler for that command
>
> 2)  Unknown - * query: No row returned.
>
> 3) Unknown - No data received from WMI:
>
>
>
> I am using the following the check commands
>
> check_nrpe_mssql_log_used!*!50!90
>
> check_nrpe_mssql_log_growths!*!5000!9000
>
>
>
> Please someone let me know how can I resolve this.
>
>
>
>  Please see the service definition and command definition which I am using
> for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH.
>
>
>
> Request you to provide a clue on this.
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name  abcd
>
> service_description SQL-DB-LOG-USED
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command check_nrpe_mssql_log_used!*!50!90
>
>   }
>
>
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name abcd
>
> service_description SQL-DB-LOG-GROWTH
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command
> check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence
> 5000 and 9000
>
>   }
>
>
>
>
>
> define command {
>
> command_namecheck_nrpe_mssql_log_used
>
> command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
>
>
> define command {
>
> command_name
> check_nrpe_mssql_log_growths
>
> command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
>
>
> Thanks & Regards,
>
> *Ravi G*
>
>
>
>
>
>
>
> --
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lis

Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-11-02 Thread Greg Pangrazio
I don't use this plugin, but it looks like it doesn't like the "*" between
the first and second "!".  That spot holds the sql query so try a real query
that will return some rows like a select statement.

Greg Pangrazio



On Tue, Nov 2, 2010 at 9:13 AM,  wrote:

> Hi,
>
>  I am using Nagios Version 3.0.6 on a Linux server to monitor the
> SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers.
>
> For the many of the servers the status information is showing following
> errors. Please see the screenshots below
>
> 1)  UNKNOWN: No handler for that command
>
> 2)  Unknown - * query: No row returned.
>
> 3) Unknown - No data received from WMI:
>
>
>
> I am using the following the check commands
>
> check_nrpe_mssql_log_used!*!50!90
>
> check_nrpe_mssql_log_growths!*!5000!9000
>
>
>
> Please someone let me know how can I resolve this.
>
>
>
>  Please see the service definition and command definition which I am using
> for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH.
>
>
>
> Request you to provide a clue on this.
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name  abcd
>
> service_description SQL-DB-LOG-USED
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command check_nrpe_mssql_log_used!*!50!90
>
>   }
>
>
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name abcd
>
> service_description SQL-DB-LOG-GROWTH
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command
> check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence
> 5000 and 9000
>
>   }
>
>
>
>
>
> define command {
>
> command_namecheck_nrpe_mssql_log_used
>
> command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
>
>
> define command {
>
> command_name
> check_nrpe_mssql_log_growths
>
> command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
>
>
> Thanks & Regards,
>
> *Ravi G*
>
>
>
>
>
>
>
> --
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> __

Re: [Nagios-users] Wrong Next Scheduled Check

2010-11-01 Thread Greg Pangrazio
Here is a link to the information from the list archives.

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

Greg Pangrazio





On Mon, Nov 1, 2010 at 7:35 AM, Leif J.  wrote:
> But if you "Freshness Threshold" is for example 10min. it should
> automatically reschedule the check, is does here.
>
> /Leif
>
> On 01-11-2010 13:19, Maesen Carlo (ICTS) wrote:
>
> Is this a known bug for version 3.2.0 ?
>
> I can not find some info about this.
>
>
>
> ____
>
> From: Greg Pangrazio [mailto:pangr...@gmail.com]
> Sent: maandag 1 november 2010 12:42
> To: Nagios Users List
> Subject: Re: [Nagios-users] Wrong Next Scheduled Check
>
>
>
> Did daylight saving end in your timeline this weekend?
>
> If so check out the dst patches or upgrade nagios to fix the scheduled check
> problem
>
> Greg
>
> On Nov 1, 2010 6:38 AM, "Maesen Carlo (ICTS)"
>  wrote:
>> Hello,
>>
>> Nagios shows a wrong Wrong Next Scheduled Check for all services and
>> hosts.
>>
>> Here is an example:
>> Current Status: OK (for 60d 1h 55m 0s)
>> Status Information: DISK OK - free space: / 9235 MB (96% inode=98%):
>> Performance Data: /=335MB;9578;9578;0;10083
>> Current Attempt: 1/3 (HARD state)
>> Last Check Time: 10-31-2010 22:36:44
>> Check Type: ACTIVE
>> Check Latency / Duration: 1233.755 / 0.910 seconds
>> Next Scheduled Check: 11-01-2010 23:00:00
>> Last State Change: 09-02-2010 11:26:26
>> Last Notification: N/A (notification 0)
>> Is This Service Flapping? NO (0.00% state change)
>> In Scheduled Downtime? NO
>> Last Update: 11-01-2010 12:21:23 ( 0d 0h 0m 3s ago)
>>
>> The config of nagios did not change.
>>
>> The service-template
>> 
>>
>> define service{
>> name generic-service
>> active_checks_enabled 1
>> passive_checks_enabled 1
>> parallelize_check 1
>> obsess_over_service 1
>> check_freshness 0
>> notifications_enabled 1
>> event_handler_enabled 1
>> flap_detection_enabled 1
>> failure_prediction_enabled 1
>> process_perf_data 1
>> retain_status_information 1
>> retain_nonstatus_information 1
>> is_volatile 0
>> check_period 24x7
>> max_check_attempts 1
>> normal_check_interval 5
>> retry_check_interval 2
>> # contact_groups admins
>> notification_options w,u,c,r
>> # notification_interval 0
>> # notification_period 24x7
>> register 1
>> }
>>
>>
>> # Production service definition template
>>
>> define service{
>> name service-prod
>> use generic-service
>> max_check_attempts 3
>> normal_check_interval 5
>> retry_check_interval 1
>> notification_interval 240
>> notification_period 24x7
>> register 1
>> }
>>
>> A service example:
>> ==
>> define service{
>> use service-prod
>> host_name serverx
>> service_description FS /
>> check_command check_nrpe_disk!5%!5%!/
>> }
>>
>> Can someone explain this issue ?
>> Thanks in advance.
>>
>> Carlo
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
> --
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
>

Re: [Nagios-users] Wrong Next Scheduled Check

2010-11-01 Thread Greg Pangrazio
Did daylight saving end in your timeline this weekend?

If so check out the dst patches or upgrade nagios to fix the scheduled check
problem

Greg
On Nov 1, 2010 6:38 AM, "Maesen Carlo (ICTS)" <
carlo.mae...@maastrichtuniversity.nl> wrote:
> Hello,
>
> Nagios shows a wrong Wrong Next Scheduled Check for all services and
hosts.
>
> Here is an example:
> Current Status: OK (for 60d 1h 55m 0s)
> Status Information: DISK OK - free space: / 9235 MB (96% inode=98%):
> Performance Data: /=335MB;9578;9578;0;10083
> Current Attempt: 1/3 (HARD state)
> Last Check Time: 10-31-2010 22:36:44
> Check Type: ACTIVE
> Check Latency / Duration: 1233.755 / 0.910 seconds
> Next Scheduled Check: 11-01-2010 23:00:00
> Last State Change: 09-02-2010 11:26:26
> Last Notification: N/A (notification 0)
> Is This Service Flapping? NO (0.00% state change)
> In Scheduled Downtime? NO
> Last Update: 11-01-2010 12:21:23 ( 0d 0h 0m 3s ago)
>
> The config of nagios did not change.
>
> The service-template
> 
>
> define service{
> name generic-service
> active_checks_enabled 1
> passive_checks_enabled 1
> parallelize_check 1
> obsess_over_service 1
> check_freshness 0
> notifications_enabled 1
> event_handler_enabled 1
> flap_detection_enabled 1
> failure_prediction_enabled 1
> process_perf_data 1
> retain_status_information 1
> retain_nonstatus_information 1
> is_volatile 0
> check_period 24x7
> max_check_attempts 1
> normal_check_interval 5
> retry_check_interval 2
> # contact_groups admins
> notification_options w,u,c,r
> # notification_interval 0
> # notification_period 24x7
> register 1
> }
>
>
> # Production service definition template
>
> define service{
> name service-prod
> use generic-service
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 1
> notification_interval 240
> notification_period 24x7
> register 1
> }
>
> A service example:
> ==
> define service{
> use service-prod
> host_name serverx
> service_description FS /
> check_command check_nrpe_disk!5%!5%!/
> }
>
> Can someone explain this issue ?
> Thanks in advance.
>
> Carlo
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] How to determine the login duration of current user?

2010-10-14 Thread Greg Pangrazio
Another option would be to check the number of logged in users via
check_nt or wmi.

Say you have the service check set to 5 min and the retry set to 5 min
(or what ever is convenient) you then divide the time "x" from above
by 5 and that is the number of retries before an alert.

As soon as someone logs in the service would go back to OK and the
"timeout" would restart.

not as elegant as the vmware solution but much cheaper.

Greg Pangrazio
pangr...@gmail.com




On Thu, Oct 14, 2010 at 9:29 AM, Kevin Davison  wrote:
> I like the sound of that. I agree with you on the passive vs active issue. I 
> often find that setting something up active gets me where I need to go faster 
> and then I never get back to finding a passive way to do it. We'll need to 
> make the modification to each of the VM's (~200) but I think that will do 
> what I want. I'll take a look at doing that. Thank you very much!
>
> -Original Message-
> From: Diego Roccia [mailto:diego.roc...@gmail.com]
> Sent: October-14-10 9:34 AM
> To: Nagios Users List
> Subject: Re: [Nagios-users] How to determine the login duration of current 
> user?
>
>  There's another solution: you could setup a logon script that sends
> an nsca every time a user login to the server. Then, you can check the
> service  freshness against a 1 or 2 days threshold. It's a completely
> different approach, but I prefer to use passive checks when I need to
> trigger user created events, as I think it makes more sense (and less
> load and traffic) than checking continously the logs.
>
> Diego
>
>
> On Thu, Oct 14, 2010 at 3:22 PM, C. Bensend  wrote:
>>
>>> VMware's version of this is VDI - it's pretty good, but it's not cheap -
>>> it needs a special kind of ESX license so you can't run those desktops
>>> on your existing servers, they need to be on dedicated ESX/VDI servers.
>>
>> This statement is not accurate, at least not in our locale.  While
>> VDI *does* require a separate license, it will run just fine on
>> existing ESX infrastructure and does not have to be on a separate,
>> "special" ESX host.  We have many virtual desktops and some of them
>> are intermingled with our virtual servers.
>>
>> Good idea/bad idea is still an exercise left up to the reader.  :)
>>
>> Benny
>>
>>
>> --
>> "Because you have arms like noodles, while I am vigorous and
>> burly."                               -- Hodgins, "Bones"
>>
>>
>>
>> --
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and  rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today.
>> http://p.sf.net/sfu/beautyoftheweb
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> --
> Diego Roccia
> diego.roccia (at) gmail (dot) com
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Ple

Re: [Nagios-users] Conditional checks between different hours?

2010-09-21 Thread Greg Pangrazio
I have in the past used a wrapper script that took the different
inputs and issued the command differently based on the time of day.
The answer is that it looks the same to nagios but the return value
from the plugin (my wrapper) is different based on time of day.
Basically my script called the original command with different inputs
and passed what ever it got back to nagios.

I don't have any examples right now but I have done it in the past and
it worked fine.

Greg Pangrazio





On Tue, Sep 21, 2010 at 1:14 PM, Scott Lofland  wrote:
>
>>-Original Message-
>>From: Jim Avery [mailto:j...@jimavery.me.uk]
>>
>>On 20 September 2010 16:27, Ricardo F  wrote:
>>>
>>> Hello,
>>>     Is it possible to put different checks values
>>> (max_check_attempts, retry_check_interval, normal_check_interval, notification_interval)
>>> and check each one if is one hour on another?
>>
>>I'm pretty sure it isn't (not without a cludge of some sort anyway).
>>
>>I'm intrigued to know what would drive such a requirement as I don't
>>think you're the first to ask this and doubt you'll be the last.
>>
>
> I've been about this type of functionality in my environment to take into 
> account variable network and hardware conditions based on expected high user 
> load at different times of the day as well as differing loads on different 
> network segments during standard backup times or regular maintenance windows.
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
> --
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Large NDO Table

2010-09-20 Thread Greg Pangrazio
Does anyone have a good link for getting version 1.4b7 from cvs?

Greg Pangrazio





On Mon, Sep 20, 2010 at 10:28 AM, Breandan Dezendorf
 wrote:
> On Thu, Sep 16, 2010 at 6:33 AM, Michael Friedrich
>  wrote:
>> this is not the current 1.4b9 schema. either it's modified for your
>> usage or you still have the old 1.4b7 schema or something else. 1.b8
>> changed the db engine from innodb to myisam (which is not good, but
>> that's the main difference).
>
> You are right - I thought I was on 1.4b9, but I'm still on 1.4b7.
> Even better, there is the note in the change log referencing an issue
> with the tables I'm having problems with.  For others who may stumble
> across the same issue:
>
> http://tracker.nagios.org/view.php?id=37
>
>
> --
> Breandan Dezendorf
> brean...@dezendorf.com
> bwdez...@gmail.com
>
> --
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-09-15 Thread Greg Pangrazio
Did you write get_mssql_log_used?  It does not seem to be returning
according to the standard nagios requirements.

see http://nagiosplug.sourceforge.net/developer-guidelines.html

Greg Pangrazio




On Mon, Sep 13, 2010 at 4:21 AM,  wrote:

>  Hi All,
>
>
>
> Request you to provide any clue on this.
>
>
>
> Thanks,
>
> Ravi G
>
>
>
> *From:* Ravishankar Gundlapali (WT01 - Energy and Utilities)
> *Sent:* Friday, September 10, 2010 9:43 PM
> *To:* Nagios Users List
> *Cc:* 'pangr...@gmail.com'
> *Subject:* RE: [Nagios-users] SQL-DB Services-Unknown Status
>
>
>
> When I ran the command ./check_nrpe -t 60 -H  -p 5666
> get_mssql_log_used
>
>
>
>  I got the below output….
>
> I (0.3.5.1 2008-09-24) seem to be doing fine...
>
>
>
> Please provide any clue…
>
>
>
> Regards,
>
> Ravi G
>
>
>
>
>
> *From:* Greg Pangrazio [mailto:pangr...@gmail.com]
> *Sent:* Friday, September 10, 2010 8:22 PM
>
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] SQL-DB Services-Unknown Status
>
>
>
> what does the NRPE config look like on the remote end?  Are you allowed to
> run commands?  What result do you get if you run
>
> check_nrpe -t 60 -H $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a
> $HOSTADDRESS$
>
> with the proper variables from the command line on your nagios server?
> Greg Pangrazio
>
>
>  On Fri, Sep 10, 2010 at 8:49 AM, 
> wrote:
>
> Hi,
>
>
>
> Please see the service definition and command definition which I am using
> for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH.
>
>
>
> Request you to provide a clue on this.
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name  abcd
>
> service_description SQL-DB-LOG-USED
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command check_nrpe_mssql_log_used!*!50!90
>
>   }
>
>
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name abcd
>
> service_description SQL-DB-LOG-GROWTH
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command
> check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence
> 5000 and 9000
>
>   }
>
>
>
>
>
> define command {
>
> command_namecheck_nrpe_mssql_log_used
>
>     command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
>
>
> define command {
>
> command_name
> check_nrpe_mssql_log_growths
>
> command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
> Thanks,
>
> Ravi G
>
> *From:* Greg Pangrazio [mailto:pangr...@gmail.com]
> *Sent:* Friday, September 10, 2010 6:40 PM
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] SQL-DB Services-Unknown Status
>
>
>
> before anyone can help you we need the parts of the config that are
> important here.  Can you give us the command definition, service definition
> and any other relevant part of the config?
>
> On Fri, Sep 10, 2010 at 2:28 AM,  wrote:
>
> Hi All,
>
>
>
> Request you to help me on this.
>
>
>
> Thanks,
>
> Ravi G
>
>
>
> *From:* Ravishankar Gundlapali (WT01 - Energy and Utilities)
> *Sent:* Thursday, Sep

Re: [Nagios-users] How do you wake up an iPhone user???

2010-09-10 Thread Greg Pangrazio
The only drawback to the android version is that your nagios server
has to be publically accessable.  Mine is not and so those do not
work.  I did set up a test server and was pretty happy with the
results.

I have not used the iPhone version.

Greg Pangrazio





On Fri, Sep 10, 2010 at 9:45 AM, Dorfman, Justin  wrote:
> Have you checked out:
> iNag? http://idevelop.fullnet.com/iapps/modules/apps/inag.php
> For Android peeps:
> I have Nagroid for my Droid
> (http://frugalinfotech.com/woot/4-free-must-have-android-apps-for-sysadmins/)
> Regards,
>
> Justin Dorfman
> Mahalo.com Inc. > Jr. Systems Engineer
> 818.485.1458
> @jdorfman |�...@mahalosysops | Blog: http://bit.ly/aNiWSk
>
>
> On Fri, Sep 10, 2010 at 1:04 AM, Furnish, Trever G
>  wrote:
>>
>> Thought I would poll the list on this one to see what everyone else is
>> doing.
>>
>> The iphone won't let a user specify a custom sound for a text message
>> alert (unless it's jailbroken).  It won't repeat the notification sound
>> frequently (once every three seconds, for example).  The existing
>> notification sounds aren't loud enough or long enough to wake up most
>> people.  Most of the folks I serve have started to complain that Nagios
>> can't wake them up -- it's really an iphone problem though.
>>
>> Has anyone else come up with a good solution and actually put it into
>> use?  I am considering several options:
>>
>> 1. Write my own iphone app to make the thing go nuts when a text message
>> is ignored for more than a few minutes.
>>
>> 2. Write my own  system to cause a simple v.Everything modem to call
>> someone and read them an alert using speex or set up an asterix gateway
>> to allow such a call to be placed.
>>
>> 3. Use an outside service such as pagerduty or alarmtilt.
>>
>> I don't quite have the skill for #1, and I don't want to deal with
>> detecting answering machines for #2, so I'm surprised to find myself
>> leaning towards #3.
>>
>> But what has everyone else done?  Is no one else having to deal with
>> this?
>>
>> --
>> Trever Furnish, tgfurn...@herffjones.com
>> Herff Jones, Inc. Solutions Architect
>> Phone: 317.612.3519
>> Any sufficiently advanced technology is indistinguishable from Unix.
>>
>>
>>
>> --
>> Automate Storage Tiering Simply
>> Optimize IT performance and efficiency through flexible, powerful,
>> automated storage tiering capabilities. View this brief to learn how
>> you can reduce costs and improve performance.
>> http://p.sf.net/sfu/dell-sfdev2dev
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> --
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-09-10 Thread Greg Pangrazio
what does the NRPE config look like on the remote end?  Are you allowed to
run commands?  What result do you get if you run

check_nrpe -t 60 -H $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a
$HOSTADDRESS$

with the proper variables from the command line on your nagios server?
Greg Pangrazio




On Fri, Sep 10, 2010 at 8:49 AM,  wrote:

>  Hi,
>
>
>
> Please see the service definition and command definition which I am using
> for SQL-DB-LOG-USED and SQL-DB-LOG-GROWTH.
>
>
>
> Request you to provide a clue on this.
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name  abcd
>
> service_description SQL-DB-LOG-USED
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command check_nrpe_mssql_log_used!*!50!90
>
>   }
>
>
>
>
>
>
>
> define service{
>
> use generic-service ; Name of
> service template to use
>
> host_name abcd
>
> service_description SQL-DB-LOG-GROWTH
>
> is_volatile 0
>
> check_period24x7
>
> max_check_attempts  3
>
> normal_check_interval   5
>
> retry_check_interval1
>
> contact_groups  sql-admins
>
> notification_interval   0
>
> notification_period 24x7
>
> notification_optionsc,r
>
> check_command
> check_nrpe_mssql_log_growths!*!5000!9000 ; Log growth scale is 0.01 hence
> 5000 and 9000
>
>   }
>
>
>
>
>
> define command {
>
> command_namecheck_nrpe_mssql_log_used
>
> command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_used -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
>
>
> define command {
>
> command_name
> check_nrpe_mssql_log_growths
>
> command_line$USER1$/check_nrpe -t 60 -H
> $HOSTADDRESS$ -p 5666 -c get_mssql_log_growth -a $HOSTADDRESS$ "$ARG1$"
> "$ARG2$" "$ARG3$"
>
> }
>
>
>
> Thanks,
>
> Ravi G
>
> *From:* Greg Pangrazio [mailto:pangr...@gmail.com]
> *Sent:* Friday, September 10, 2010 6:40 PM
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] SQL-DB Services-Unknown Status
>
>
>
> before anyone can help you we need the parts of the config that are
> important here.  Can you give us the command definition, service definition
> and any other relevant part of the config?
>
>
>  On Fri, Sep 10, 2010 at 2:28 AM, 
> wrote:
>
> Hi All,
>
>
>
> Request you to help me on this.
>
>
>
> Thanks,
>
> Ravi G
>
>
>
> *From:* Ravishankar Gundlapali (WT01 - Energy and Utilities)
> *Sent:* Thursday, September 09, 2010 3:42 PM
> *To:* 'Nagios Users List'
> *Subject:* SQL-DB Services-Unknown Status
>
>
>
> Hi,
>
>
>
> I am using Nagios Version 3.0.6 on a Linux server to monitor the
> SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers.
>
>
>
> For the many of the servers the status information is showing following
> errors. Please see the screenshots below
>
>
>
> 1)  UNKNOWN: No handler for that command
>
> 2)  Unknown - * query: No row returned.
>
> 3)  CHECK_NRPE: Received 0 bytes from daemon. Check the remote server
> logs for error messages.
>
> 4) Unknown - No data received from WMI:
>
>
>
> I am using the following the check commands
>
>
>
> check_nrpe_mssql_log_used!*!50!90
>
> check_nrpe_mssql_log_growths!*!5000!9000
>
>
>
> Please someone let me know how can I resolve this.
>
>
>
>
>
> Thanks & Regards,
>
> *Ravi G*
>
>
>
>
>
>
>
> --
> Automate Storage Tiering Simply
> Optimize IT performance and ef

Re: [Nagios-users] SQL-DB Services-Unknown Status

2010-09-10 Thread Greg Pangrazio
before anyone can help you we need the parts of the config that are
important here.  Can you give us the command definition, service definition
and any other relevant part of the config?



On Fri, Sep 10, 2010 at 2:28 AM,  wrote:

>  Hi All,
>
>
>
> Request you to help me on this.
>
>
>
> Thanks,
>
> Ravi G
>
>
>
> *From:* Ravishankar Gundlapali (WT01 - Energy and Utilities)
> *Sent:* Thursday, September 09, 2010 3:42 PM
> *To:* 'Nagios Users List'
> *Subject:* SQL-DB Services-Unknown Status
>
>
>
> Hi,
>
>
>
> I am using Nagios Version 3.0.6 on a Linux server to monitor the
> SQL-DB-LOG-GROWTH and SQL-DB-LOG-USED on the Windows servers.
>
>
>
> For the many of the servers the status information is showing following
> errors. Please see the screenshots below
>
>
>
> 1)  UNKNOWN: No handler for that command
>
> 2)  Unknown - * query: No row returned.
>
> 3)  CHECK_NRPE: Received 0 bytes from daemon. Check the remote server
> logs for error messages.
>
> 4) Unknown - No data received from WMI:
>
>
>
> I am using the following the check commands
>
>
>
> check_nrpe_mssql_log_used!*!50!90
>
> check_nrpe_mssql_log_growths!*!5000!9000
>
>
>
> Please someone let me know how can I resolve this.
>
>
>
>
>
> Thanks & Regards,
>
> *Ravi G*
>
>
>
>
>
>
> --
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
<><><><>--
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Enumerating Interfaces

2010-09-08 Thread Greg Pangrazio
That is the solution we are working towards now as well.  we didn't
have a good way at the start and just needed to track the states of
the ports.  Most of ours are redundant wan links anyway so if the host
is down we don't need to be alerted on the ports anyway.

Greg Pangrazio





On Wed, Sep 8, 2010 at 11:48 AM, Max  wrote:
> What I have done in the past and currently do is that each port that
> is connected to another networking device is modelled as a Nagios host
> - the host check is then the SNMP port status and the IF stats are
> collected as services on the host.  The parent of the port is the
> network device itself and that way any child devices can be associated
> with the port and will be marked as unreachable should the port be
> administratively or operationally turned down.
>
> - Max
>
> On Wed, Sep 8, 2010 at 12:22 PM, Jason Frisvold  
> wrote:
>> -BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 09/07/2010 05:45 PM, Greg Pangrazio wrote:
>>> Well we use similar switches here.  what we do is create the host then
>>> services for the interfaces and if we have port channels I use the
>>> multiple check_service_cluster for all the interfaces in the port
>>> channel.  I just use check snmp for the interfaces.  If you want more
>>> specifics i can give you config definitions and command defs etc.
>>
>> Yeah, that's kind of what I settled with so far..  Testing it out on the
>> SAN switches and maybe I'll move that config to other switches too..
>> I'm using PNP4Nagios, so I wrote a custom script to check the
>> ifOperStatus and get the traffic information on the port as well.  So a
>> single check is telling me status, throughput, errors, and discards...
>>
>> I am running into one problem, though, and I'm not sure how to handle
>> it..  How are you handling parent/child for these ports, or are you?  In
>> other words, I'd like to pair the device connected to the port with the
>> port itself.  However, I'm enumerating each switch for the ports, so I
>> don't have individual services for each device/port combo...  My config
>> looks something like this :
>>
>> define service {
>>   use                     service-standard
>>   hosts                   fcswitch1.example.com,fcswitch2.example.com
>>   servicegroups           fc-switch-standard
>>   service_description     Switch Port fc1/1
>>   check_command           check_snmp_traffic!fc1/1!-C $USER2$
>> }
>>
>> I think I'm going to have to enumerate each host/port combo, or live
>> without parent/child...  *sigh*
>>
>>> Greg Pangrazio
>>
>>
>> - --
>> - ---
>> Jason Frisvold
>> Network Engineer
>> frisv...@lafayette.edu
>> - ---
>> "What I cannot create, I do not understand"
>>   - Richard Feynman
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v2.0.14 (GNU/Linux)
>> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkyHuFwACgkQO80o6DJ8UvmAsACaAugytCgxrgsePwlNbrw27Cpi
>> rkgAn0e4leboXWricN/+5CtiC07TkUm0
>> =rEMU
>> -END PGP SIGNATURE-
>>
>> --
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
> --
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Enumerating Interfaces

2010-09-07 Thread Greg Pangrazio
Well we use similar switches here.  what we do is create the host then
services for the interfaces and if we have port channels I use the
multiple check_service_cluster for all the interfaces in the port
channel.  I just use check snmp for the interfaces.  If you want more
specifics i can give you config definitions and command defs etc.


Greg Pangrazio




On Tue, Sep 7, 2010 at 3:41 PM, Jason Frisvold  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 09/07/2010 03:17 PM, Greg Pangrazio wrote:
>> What kind of switch are we talking about?
>
> Cisco 3750, Cisco MDS-9100 series, umm...  Probably some Catalyst 6500's ..
>
> Standard ifTable interfaces.
>
>> Greg Pangrazio
>
> - --
> - ---
> Jason Frisvold
> Network Engineer
> frisv...@lafayette.edu
> - ---
> "What I cannot create, I do not understand"
>   - Richard Feynman
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkyGo5EACgkQO80o6DJ8Uvl6sgCfRdkYiCe7Ub9fnpT7XckT3wft
> wr8AoJIhCvMouh8O9io7oGbMObN73OrL
> =fFjA
> -END PGP SIGNATURE-
>
> --
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Enumerating Interfaces

2010-09-07 Thread Greg Pangrazio
What kind of switch are we talking about?

Greg Pangrazio






On Tue, Sep 7, 2010 at 1:27 PM, Jason Frisvold  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi there,
>
>        I'm looking for "easy" ways to handle devices with multiple interfaces
> that do not have per-interface IPs.  For instance, we have a layer two
> switch that needs to be monitored.  On that switch, we need to monitor a
> subset of the ports that are used as uplinks to the network.  I can
> enumerate this in the config by using "fake" names for the ports, but
> this is tedious, at best, and I believe there may be some drawbacks as
> well since these aren't "real" hosts.
>
>        So is there a way to add a single device and have the ports enumerated
> in such a way as to be able to down specific ports?
>
>        One possibility I was thinking about was to create a service for each
> port and add the switch to that service.  I think I'm going to give that
> a shot, but I was wondering if anyone else has alternative ideas.
>
> Thanks,
>
> - --
> - ---
> Jason Frisvold
> Network Engineer
> frisv...@lafayette.edu
> - ---
> "What I cannot create, I do not understand"
>   - Richard Feynman
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkyGhCgACgkQO80o6DJ8Uvny6gCfYU3l2kq4ktPRWbc2U74tPtLP
> VB0An3+ICjXMP+INKX9H7CGsCg+Np1B7
> =nzRT
> -END PGP SIGNATURE-
>
> --
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] monitoring remote windows machines over vpn

2010-09-07 Thread Greg Pangrazio
Is the tunnel always active or are you building the tunnel every time?

I am monitoring about 200 hosts all windows using standard tcp and
icmp checks (not nsca).  If the tunnel gets torn down between checks i
often miss the first check as the tunnel is renegotiated.  There are
two choices, you can change your nagios config so that it requires
more checks to fail or turn ISAKMP keepalives on the tunnels.  Not all
VPNs will support this.  I know that Nortel Contivity VPN appliances
have a memory leak that if ISAKMP keepalives are on the box will
eventually run out of memory.

I use three checks before marking the host down.  The first check is
at 5 min the others at 1 min.  This seems to reduce my false positives
as the VPNs usually have a lifetime of tens of minutes.

Greg Pangrazio




On Mon, Sep 6, 2010 at 9:59 AM, Stefan Fuhrmann
 wrote:
> Hello all,
>
> Im running nagios 3.2 on ubuntu server 10.04 and want to monitor win 2003/
> 2008 over  vpn connections. I do a host check:
> check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 30 -t 60
>
> I get often a host check time out but when I have a look all is running well
>
> also I do a check_nt with nsclient++ and having also errors :
>  could not fetch information
> but service is running.
>
> There are hours all is running well, but then I often having notifications 
> with
> host cehck time out and check_nt
> the VPN firewalls are also monitored and I have no problems there, so the
> connections are okay
>
> I googled but can not find further information how to solve this.
>
> Can someone help?
>
>
> tia
> stefan
>
> --
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios Deployment

2010-08-09 Thread Greg Pangrazio
I use nagios on Ubuntu both 10.04 and 8.04.  I recommend installing
from source as it is much more stable and works better with the
plugins etc. than the default Ubuntu package.

Other than that since you look to be monitoring lots of windows hosts
i would suggest checking out wmi which was not too difficult to
install on Ubuntu 10.04LTS.

Greg Pangrazio





On Mon, Aug 9, 2010 at 1:00 PM, Jim Avery  wrote:
> On 9 August 2010 17:49, Shane Killian  wrote:
>
>> I've read a reasonable amount of documentation and learned a little from 
>> trial and error but if someone could. Point me in the right direction I'd 
>> really appreciate it.
>
> I think that's the thing - the documentation is great for sorting out
> the nitty-gritty but not always so good for understanding how it's all
> supposed to work together.
>
> What I did, and what I recommend anyone new to Nagios to do is to get
> hold of one of the books about Nagios - my favourite (and I won't
> pretend I've read them all) is the one by Wolfgang Barth published by
> No Starch Press.
>
> http://nostarch.com/nagios.htm
>
> --
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] setting up nagios to monitor other systems load, mem, disk

2010-08-06 Thread Greg Pangrazio
Niel,

You can do this many ways.  It might be a good idea for you to start
with some background info and such.  I have really had good luck with
James Turnbull's "Pro Nagios 2.0" book as well as "Building a
Monitoring Infrastructure with Nagios" by David Josephsen.

These books both help with deciding the trade offs between check by
ssh, nrpe, snmp etc.

Greg Pangrazio





On Fri, Aug 6, 2010 at 10:59 AM, Dombrowski, Neil
 wrote:
> I have nagios 3.2.1 installed on a RH5.5 box, and it is monitoring ssh on
>
> client systems (and host check/ping). I now want to be able to check disk
>
> capacity, cpu load, etc., on other systems(clients). It's not clear to me
>
> how to do this in the documentation. Do I need to use check_by_ssh or nrpe?
>
> Is there a way to package up part of the nagios install and distribute it to
>
> all systems I want to monitor? I would much appreciate it if someone could
>
> send me a link to the right document for this.
>
> Thanks,
>
>     Neil
>
> --
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Required plugins to monitor PIX

2010-08-06 Thread Greg Pangrazio
Check out the generic switch template that is in the config files.

here is a set of plugins that are designed for cisco devices.
http://exchange.nagios.org/directory/Plugins/Uncategorized/Software/SNMP/Cisco-SNMP-device-monitoring/details

If you run "show snmp-server oidlist" on the asa it will give you the
SNMP OID you should poll for a value.  Here are the basics for CPU.

[128]   1.3.6.1.4.1.9.9.109.1.1.1.1.2.  cpmCPUTotalPhysicalIndex
[129]   1.3.6.1.4.1.9.9.109.1.1.1.1.3.  cpmCPUTotal5sec
[130]   1.3.6.1.4.1.9.9.109.1.1.1.1.4.  cpmCPUTotal1min
[131]   1.3.6.1.4.1.9.9.109.1.1.1.1.5.  cpmCPUTotal5min

I personally use the values above and do a check_snmp on the oid to
get the results i need.

Greg Pangrazio





On Fri, Aug 6, 2010 at 8:00 AM, Kiran Kumar P
 wrote:
> Hi There,
>
>
>
> Can you please provide me the plugins to monitor PIX (Cisco) CPU and Memory
> usage.
>
>
>
> Regards,
>
> Kiran
>
> --
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nsclient++ and WMI looking for examples and ideas

2010-07-20 Thread Greg Pangrazio
I use the WMI checks since it requires less work on the end machine,
nsclient required me to login and install software on like 300
machines.

What are you running nagios on?  Linux(flavor) or windows?

Greg Pangrazio
pangr...@gmail.com





On Tue, Jul 20, 2010 at 12:02 AM, prengel  wrote:
> Hallo,
>
> I m looking for examples and ideas about using the combination
> nsclient++ and wmi to check windows-systems.
> I found some basic tutorials.
>
> Thanks
>  Ralf Prengel
> Manager
> Customer Care
> Comline AG
> Hauert 8
> D-44227 Dortmund/Germany
>
> Fon +49 231 97575 904
> Fax +49 231 97575 257
> Mobil +49 151 10831 157
> EMail ralf.pren...@comline.de
>
>
> www.comline.de
> Vorstand Stephan Schilling, Erwin Leonhardi
> Aufsichtsrat Dr. Franz Schoser (Vorsitzender) HR Dortmund B 14570 USt.-ID-Nr. 
> DE 124727422
>
> Für die Erstellung unserer Dokumente benutzen wir die Produkte aus dem 
> Microsoft Office 2007 Paket.
> Sollte sich ein Anhang in der Mail befinden, der mit einer älteren Office 
> Version nicht geöffnet werden kann,
> installieren Sie bitte das Compatibility Pack für Office 2007.
> http://www.microsoft.com/downloads/details.aspx?FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466&DisplayLang=de
>
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NDO only processing some hosts

2010-07-15 Thread Greg Pangrazio
So i set data_processing_options to 12480
moved the timeouts back to the standards

I am still seeing the same behavior.

As soon as I start ndoutils the service and host checks stop.  In the
performance info the number of checks in the last 1min goes to 0 and
if i wait long enough the 5 min also goes to 0.

As soon as I stop ndoutils it picks right up.

Greg Pangrazio
pangr...@gmail.com





On Thu, Jul 15, 2010 at 10:13 AM, Greg Pangrazio  wrote:
> I don't really care about historical data so i was reducing those
> times to get data out of the DB faster and improve startup times.
>
> Should I go back to the defaults there?
>
> Here is the SQL
> +--+
> | CNT  |
> +--+
> | 3232 |
> +--+
>
> Really I only need service and host status nothing else is of use to me.
>
> Does that mean i want the service status data and/or the service check
> data.  I assume that the host should match.
>
> Greg Pangrazio
> pangr...@gmail.com
>
>
> On Thu, Jul 15, 2010 at 9:37 AM, Michael Friedrich
>  wrote:
>> Hi,
>>
>> Greg Pangrazio wrote:
>>> max_timedevents_age=60
>>>
>> If you remove that from data_processing_options, it won't be used in the
>> future.
>>
>>> max_systemcommands_age=90
>>> max_servicechecks_age=90
>>> max_hostchecks_age=90
>>> max_eventhandlers_age=1440
>>>
>>
>> Quite low values, could be that the cleanup interferes with the inserts
>> (it's cyclic every 60 seconds), but that's just a minor thought.
>>
>> Can you show me a
>>
>> SQL> SELECT COUNT(*) AS CNT FROM nagios_objects;
>>
>> and the summary count of your host and services for futher recommendations.
>>
>>> data_processing_options=-1
>>>
>>
>> Check on that. Do you really need all data or is it just for pulling
>> status data?
>> You might wanna check this nifty calculator too
>> http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/
>>
>> The first thing you won't ever need are the timed events. Icinga
>> IDOUtils sample configs have been patched in order to prevent timed
>> event data inserts by default.
>>
>>  182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2)
>>  183
>>  184 data_processing_options=67108861
>>
>> If you consider far less than that, you might want to check the proposed
>> settings for NagVis (found somewhere at nagios-portal.org)
>>
>>  186 # If you are planning to use NagVis you may want to use the
>> following setting:
>>  187 #
>>  188 #data_processing_options=4061953
>>
>> But, this is the most common recommandation ;-)
>>
>>  189 #
>>  190 # You may have to experiment in your environment and find the best
>> value yourself!
>>
>>
>>> NDO2DB 1.4b7
>>>
>>
>> good. read the other thread about newer versions if interested.
>>
>> Kind regards,
>> Michael
>>
>>>
>>> Thanks,
>>> Greg Pangrazio
>>> pangr...@gmail.com
>>>
>>>
>>>
>>>
>>> On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich
>>>   wrote:
>>>
>>>> Greg Pangrazio wrote:
>>>>
>>>>> Is there a way to limit which hosts get put into the NDO database?  My
>>>>> install is getting a bit big and NDO is taking up too much of the CPU
>>>>> and making the system sluggish.  If i turn of NDO it works fine.
>>>>>
>>>>> I use ndo for some custom pages for groups that do not have access to
>>>>> nagios and only need to check like 80 services and 40 hosts for those
>>>>> pages and the other 800 hosts and 3000 services don't need to be in
>>>>> the database.
>>>>>
>>>>> Maybe I am missing some NDO optimizations too?
>>>>>
>>>>>
>>>> egrep -v "^#|^%" ndo2db.cfg
>>>> egrep -v "^#|^%" ndomod.cfg
>>>>
>>>> version?
>>>>
>>>> and consider like mentioned setting data processing options, and the
>>>> data trimming options.
>>>>
>>>>
>>>>> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should
>>>>> not be having any problems.
>>>>>
>>>>>
>>>> normally I/O problems if the RDBMS is on the same host.
>>>>
>>>> Kind regards,
>>>> Michael
>>>>
>>>>
>>>>
>

Re: [Nagios-users] NDO only processing some hosts

2010-07-15 Thread Greg Pangrazio
I don't really care about historical data so i was reducing those
times to get data out of the DB faster and improve startup times.

Should I go back to the defaults there?

Here is the SQL
+--+
| CNT  |
+--+
| 3232 |
+--+

Really I only need service and host status nothing else is of use to me.

Does that mean i want the service status data and/or the service check
data.  I assume that the host should match.

Greg Pangrazio
pangr...@gmail.com


On Thu, Jul 15, 2010 at 9:37 AM, Michael Friedrich
 wrote:
> Hi,
>
> Greg Pangrazio wrote:
>> max_timedevents_age=60
>>
> If you remove that from data_processing_options, it won't be used in the
> future.
>
>> max_systemcommands_age=90
>> max_servicechecks_age=90
>> max_hostchecks_age=90
>> max_eventhandlers_age=1440
>>
>
> Quite low values, could be that the cleanup interferes with the inserts
> (it's cyclic every 60 seconds), but that's just a minor thought.
>
> Can you show me a
>
> SQL> SELECT COUNT(*) AS CNT FROM nagios_objects;
>
> and the summary count of your host and services for futher recommendations.
>
>> data_processing_options=-1
>>
>
> Check on that. Do you really need all data or is it just for pulling
> status data?
> You might wanna check this nifty calculator too
> http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/
>
> The first thing you won't ever need are the timed events. Icinga
> IDOUtils sample configs have been patched in order to prevent timed
> event data inserts by default.
>
>  182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2)
>  183
>  184 data_processing_options=67108861
>
> If you consider far less than that, you might want to check the proposed
> settings for NagVis (found somewhere at nagios-portal.org)
>
>  186 # If you are planning to use NagVis you may want to use the
> following setting:
>  187 #
>  188 #data_processing_options=4061953
>
> But, this is the most common recommandation ;-)
>
>  189 #
>  190 # You may have to experiment in your environment and find the best
> value yourself!
>
>
>> NDO2DB 1.4b7
>>
>
> good. read the other thread about newer versions if interested.
>
> Kind regards,
> Michael
>
>>
>> Thanks,
>> Greg Pangrazio
>> pangr...@gmail.com
>>
>>
>>
>>
>> On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich
>>   wrote:
>>
>>> Greg Pangrazio wrote:
>>>
>>>> Is there a way to limit which hosts get put into the NDO database?  My
>>>> install is getting a bit big and NDO is taking up too much of the CPU
>>>> and making the system sluggish.  If i turn of NDO it works fine.
>>>>
>>>> I use ndo for some custom pages for groups that do not have access to
>>>> nagios and only need to check like 80 services and 40 hosts for those
>>>> pages and the other 800 hosts and 3000 services don't need to be in
>>>> the database.
>>>>
>>>> Maybe I am missing some NDO optimizations too?
>>>>
>>>>
>>> egrep -v "^#|^%" ndo2db.cfg
>>> egrep -v "^#|^%" ndomod.cfg
>>>
>>> version?
>>>
>>> and consider like mentioned setting data processing options, and the
>>> data trimming options.
>>>
>>>
>>>> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should
>>>> not be having any problems.
>>>>
>>>>
>>> normally I/O problems if the RDBMS is on the same host.
>>>
>>> Kind regards,
>>> Michael
>>>
>>>
>>>
>>> --
>>> DI (FH) Michael Friedrich
>>> michael.friedr...@univie.ac.at
>>> Tel: +43 1 4277 14359
>>>
>>> Vienna University Computer Center
>>> Universitaetsstrasse 7 A-1010 Vienna, Austria
>>>
>>>
>>> --
>>> This SF.net email is sponsored by Sprint
>>> What will you do first with EVO, the first 4G phone?
>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>>> ___
>>> Nagios-users mailing list
>>> Nagios-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>> ::: Please include Nagios version, plugin version (-v) and OS when 
>>> reporting any issue.
>>> ::: Messages without supporting info will risk being sent to /dev/null
>>>
>>>

Re: [Nagios-users] NDO only processing some hosts

2010-07-15 Thread Greg Pangrazio
ndo2db:
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/var/cache/nagios3/ndo.sock
tcp_port=5668
db_servertype=mysql
db_host=localhost
db_port=
db_name=ndoutils
db_prefix=nagios_
db_user=php_user
db_pass=ph...@ssw0rd
max_timedevents_age=60
max_systemcommands_age=90
max_servicechecks_age=90
max_hostchecks_age=90
max_eventhandlers_age=1440
debug_level=0
debug_verbosity=1
debug_fi...@localstatedir@/ndo2db.debug
max_debug_file_size=100

ndomod:
instance_name=default
output_type=unixsocket
output=/var/cache/nagios3/ndo.sock
tcp_port=5668
output_buffer_items=5000
buffer_file=/var/cache/nagios3/ndomod.tmp
file_rotation_interval=14400
file_rotation_timeout=60
reconnect_interval=15
reconnect_warning_interval=15
data_processing_options=-1
config_output_options=2

NDO2DB 1.4b7


Thanks,
Greg Pangrazio
pangr...@gmail.com




On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich
 wrote:
> Greg Pangrazio wrote:
>> Is there a way to limit which hosts get put into the NDO database?  My
>> install is getting a bit big and NDO is taking up too much of the CPU
>> and making the system sluggish.  If i turn of NDO it works fine.
>>
>> I use ndo for some custom pages for groups that do not have access to
>> nagios and only need to check like 80 services and 40 hosts for those
>> pages and the other 800 hosts and 3000 services don't need to be in
>> the database.
>>
>> Maybe I am missing some NDO optimizations too?
>>
> egrep -v "^#|^%" ndo2db.cfg
> egrep -v "^#|^%" ndomod.cfg
>
> version?
>
> and consider like mentioned setting data processing options, and the
> data trimming options.
>
>> The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should
>> not be having any problems.
>>
>
> normally I/O problems if the RDBMS is on the same host.
>
> Kind regards,
> Michael
>
>
>
> --
> DI (FH) Michael Friedrich
> michael.friedr...@univie.ac.at
> Tel: +43 1 4277 14359
>
> Vienna University Computer Center
> Universitaetsstrasse 7 A-1010 Vienna, Austria
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] NDO only processing some hosts

2010-07-14 Thread Greg Pangrazio
Is there a way to limit which hosts get put into the NDO database?  My
install is getting a bit big and NDO is taking up too much of the CPU
and making the system sluggish.  If i turn of NDO it works fine.

I use ndo for some custom pages for groups that do not have access to
nagios and only need to check like 80 services and 40 hosts for those
pages and the other 800 hosts and 3000 services don't need to be in
the database.

Maybe I am missing some NDO optimizations too?

The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should
not be having any problems.

Greg Pangrazio
pangr...@gmail.com

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NRPE: No output returned from plugin error

2010-07-01 Thread Greg Pangrazio
I had a very similar problem with checks coming from Ubuntu 8.04 and
10.04 destined for RHEL.  I had to disable SSL on both ends and set
the encryption method to 0.

I would also check the NRPE config to make sure the passphrases match
if you are using them.


Greg Pangrazio





On Thu, Jul 1, 2010 at 6:49 AM, Julius Kidubuka  wrote:
> Yuris,
>
> You could try compiling nrpe without ssl and then in your commands.cfg file
> have something like this;
>
> # 'check_nrpe' command definition
> define command{
>     command_name    check_nrpe_no_ssl
>     command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n
>     }
>
> Then in your specific service definitions have the check_command line read;
>
>  check_command   check_nrpe_no_ssl!
>
>
> Hope this helps.
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_snmp_mem.pl Numeric value for warning or critical

2010-06-08 Thread Greg Pangrazio
I am trying to use the check_snmp_mem plugin v1.1 from nagios 3.2.0
installed from the Ubuntu repos.

When i run it from the command line ie:
/usr/bin/perl /usr/lib/nagios/plugins/check_snmp_mem.pl -H  -C
 -w90,20 -c95,30
i get the following response
Ram : 15%, Swap : 0% : ; OK


when i try to run it as a defined service in nagios I get
Current Status:  UNKNOWN   (for 0d 3h 13m 25s)
Status Information: Numeric value for warning or critical !
Usage: /usr/lib/nagios/plugins/check_snmp_mem.pl [-v] -H  -C
 [-2]
Performance Data:   (-l login -x passwd [-X pass -L ,])
[-p ] -w  -c  [-I|-N|-E] [-f] [-m] [-t
] [-V]

#snmp Check Mem
define command{
command_namecheck_snmp_mem
command_line/usr/bin/perl
/usr/lib/nagios/plugins/check_snmp_mem.pl -H $HOSTADDRESS -C $ARG1$ -w
$ARG2$,$ARG3$ -c $ARG4$,$ARG5$
}



define service{
host_name   ;
service_description Memory;
use generic-service;
contact_groups  v3locity;
check_command   check_snmp_mem!lcinfra33!90!20!95!30
}

anyone have any suggestions?  Other snmp checks from this same family
run just fine, i am using check_snmp_storage on other hosts.
Greg Pangrazio

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] managing a large number of server

2010-05-04 Thread Greg Pangrazio
If you are looking for an "old school" method of doing this, check out sed.

it is a very powerful tool to edit multiple files at once.

Greg Pangrazio
pangr...@gmail.com





On Tue, May 4, 2010 at 8:14 AM, Assaf Flatto  wrote:
> Leonardo Carneiro - Veltrac wrote:
>> Hi list,
>>
>> I have the following situation: I'm monitoring a bunch of services on a
>> bunch of servers (ok, nothing new so far).
>> All machines run the same services, but not all services is being
>> monitored by now (since they are custom services, i'm still writing
>> plugins for all of them). New machines are being added every day, and
>> also, i'm writing new plugins to check the services.
>>
>> When a new machine is added, is relatively easy: i copy the config file
>> from another machine and change the name of the host and other unique
>> attributes, but when a new service is added (a.k.a. i have finish
>> another plugin), i need to edit all the dozens of config files for each
>> server to add this new service.
>>
>> There is a smarter way to do this?
>> Sorry for my poor english. Tks in advance.
>>
> Try using templates and hostgroups
> Templates will allow you to use a central base definition to the service
> or host .
> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html
>
> you can assign a service to a hostgroup and thus all host in the group
> will have the service checked on them.
>
> http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service
>
> --
> Never,Ever Cut A Deal With a Dragon
>
>
> I am doing a Charity Bike ride On the 27 of June for the
> Capital to Coast Charity. Please help by Donating
> http://www.justgiving.com/Lovefilm-capital-to-coast
>
>
>
> --
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring Cisco Ironport

2010-04-20 Thread Greg Pangrazio
I have been monitoring some of the output via snmp for about 7 months,
but would be interested in seeing what you have.

I use Cacti to graph the cache response time and a few other small things.


Greg Pangrazio
pangr...@gmail.com





On Mon, Apr 19, 2010 at 9:52 PM, Steve Shipway  wrote:
> Hello all.
>
> Here, we have recently acquired a Cisco Ironport Email gateway appliance, and 
> this makes all sorts of useful data available via an XML interface.  
> Therefore, I have created a plugin for Nagios and MRTG that can collect and 
> threshold this data using the HTTPS/XML interface.
>
> The plugin is written in Perl using LWP.  It is still in its infancy, but can 
> retrieve any of the counters, gauges and rates available on the standard web 
> status screen; if anyone would like to have a copy of the v0.1 or has their 
> own experiences in monitoring Ironports, please let me know...
>
> Due to impending growth of my family I may take a bit longer to reply that 
> normal
>
> Steve
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

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


[Nagios-users] OOB alerting

2010-04-08 Thread Greg Pangrazio
I am looking for a method to send email and or SMS messages out from
our Nagios server.  These messages should not rely on any network
connectivity.

The idea here is that I still need to be able to alert users outside
the company when the mail system goes down or all the internet access
goes down and email no longer works.  This would also apply to the
switch that the Nagios server is connected to.  I know one option is
an POTS line with a modem, but anyone used a Cellular system
successfully?

Thanks!

Greg Pangrazio
pangr...@gmail.com
847-707-7933 (c)
847-973-0307 (h)

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


Re: [Nagios-users] Monitor Cisco Switches

2009-12-13 Thread Greg Pangrazio
For the first error, do you have something plugged into port 1 on the
switch and is the port in the Up/UP state?


For the check_mrtg plugin you must have mrtg installed and graphing
utilization before you can configure the alterts via nagios.  You
should check out the MRTG site for more information on that.


Greg Pangrazio
pangr...@gmail.com





On Sat, Dec 12, 2009 at 12:33 AM, VIKRAM MS  wrote:
> Hello,
>
>  I am trying to monitor Cisco switches and routers. I am able to
> ping and check the uptime of the switch.
> 1) But for the port 1 link status, I am getting "SNMP CRITICAL - *down(2)*"
> error.
>
> 2) For port 1 bandwidth usage, the error is "check_mrtgtraf: Unable to open
> MRTG log file"
>     I have installed MRTG, but I am not able to go any further. Also
> for the http://localhost/mrtg/10.111.100.102_43.html check, I am getting the
> following error
> 404 Not found
> The requested URL /mrtg/10.111.100.102_43.html was not found on this server.
>
> I have checked for assistance in
> http://www.mail-archive.com/nagios-users@lists.sourceforge.net/ but in vain.
> I am using Nagios Core version 3.2.0.
> Thanks in advance
>
> Regards
> Vikram
>
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Alternatives to NSCA?

2009-12-11 Thread Greg Pangrazio
I just used nsca with encryption turned off and if you need the
security on your local network wrap it in ssl via stunnel.

this works on my rhel5.2 boxes and my Ubuntu servers (which have
libmcrypt in repo)

Greg Pangrazio
pangr...@gmail.com





On Fri, Dec 11, 2009 at 6:05 AM,   wrote:
> Greetings,
>
> does anybody know of a NSCA replacement, which does the job without the need
> of unsupported libraries? The requirement of libmcrypt makes NSCA a real
> hassle
> to use for us, since we have to manually install third party libraries -
> which we really
> do not want to. RedHat won't support libmcrypt, as its development is long
> dead.
>
> Any alternatives out there, my google searches didn't come up with anything
> sadly.
>
> Or might it be easier to patch NSCA to use libgcrypt for example, which is
> available
> in every distribution?
>
> Regards
>         Sascha
>
>
> GFKL Financial Services AG
> Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp
> Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
> Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_snmp with regular expression

2009-12-10 Thread Greg Pangrazio
did you mean
"^*.some string.*$"

notice the period before the second *

Greg Pangrazio
pangr...@gmail.com





On Thu, Dec 10, 2009 at 9:18 AM, shadih rahman  wrote:
> List,
>    I am trying to use check_snmp plugin with the following regular
> expression and I am getting an error, can someone point out what am I doing
> wrong.  Thanks
>
>
>
> /usr/lib64/nagios/plugins/check_snmp -H hostname -C community -o
> .1.3.6.1.2.1.1.6.0 -r "^*.some string*$"
>
> Could Not Compile Regular Expressioncheck_snmp: Could not parse arguments
>
>
>
>
> --
> Cordially,
> Shadhin Rahman
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios2 process overwhelmed by NSCA daemon?

2009-12-10 Thread Greg Pangrazio
Are you running the full nagios on the "slaves"?  Do the checks seem
to be working on those hosts?

Greg Pangrazio
pangr...@gmail.com





On Wed, Dec 9, 2009 at 5:06 PM, Jonathan Call  wrote:
> I recently added two new slaves to a distributed Nagios system. The
> central server now passively processes 17,000+ service checks on 3000+
> servers.
>
> It's been over an hour and a half since I brought those new slaves
> online and I have about 150 hosts still stuck in 'Pending' and about
> 1300 services in the same state. In addition to that it seems that the
> service check results from the other slaves that were working normally
> are now arbitrarily disappearing. For example, on one host three of the
> service checks have been updated relatively recently (i.e. 5-30 minutes
> ago) but three other service checks haven't been updated for almost an
> hour. The slaves all appear operational and the hosts are being checked
> on time. Is it possible I've overwhelmed Nagios' ability to process data
> from the NSCA daemon or struck some internal Nagios bottleneck? Any
> suggestions would be appreciated.
>
> Jonathan
>
>
> This email message is intended for the use of the person to whom it has been 
> sent, and may contain information that is confidential or legally protected. 
> If you are not the intended recipient or have received this message in error, 
> you are not authorized to copy, distribute, or otherwise use this message or 
> its attachments. Please notify the sender immediately by return e-mail and 
> permanently delete this message and any attachments. Verio, Inc. makes no 
> warranty that this email is error or virus free.  Thank you.
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios does not send email notifications

2009-12-08 Thread Greg Pangrazio
Can you send a command using the "mail" command via the command line?

If you don't have mail configured on the server nagios cannot send mail.

Greg Pangrazio
pangr...@gmail.com





On Tue, Dec 8, 2009 at 1:41 PM, ReynierPM  wrote:
> Hi every:
> I have problems now with email notification unless I didn't receive one.
>   I check Nagios Event Logs and see this:
>
> [12-08-2009 14:53:28] Warning: Attempting to execute the command
> "/usr/bin/printf "%b" "* Nagios *\n\nNotification Type:
> PROBLEM\n\nService: Bacula Dir Daemon\nHost: bacula\nAddress:
> 10.128.50.11\nState: UNKNOWN\n\nDate/Time: Tue Dec 8 14:53:28 CST
> 2009\n\nAdditional Info:\n\nRemote command execution failed: Permission
> denied, please try again." | /bin/mail -s "** PROBLEM Service Alert:
> bacula/Bacula Dir Daemon is UNKNOWN **" rper...@uci.cu" resulted in a
> return code of 127. Make sure the script or binary you are trying to
> execute actually exists...
>
> But the mail never arrive to my Inbox. Why? My config is as follow:
>
> 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" |
> /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is
> $HOSTSTATE$ **" $CONTACTEMAIL$
> }
>
> # 'notify-service-by-email' command definition
> 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$" | /bin/mail -s
> "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is
> $SERVICESTATE$ **" $CONTACTEMAIL$
> }
>
> Cheers and thanks in advance
> --
> ReynierPM
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_ssh and check_ping not working with NRPE on remote host

2009-12-08 Thread Greg Pangrazio
Some of this depends upon the security of the system.  Maybe on a host
with protected information you should run a standalone version of
Nagios and submit the results to the main server, just like a
distributed setup.

Likely for most instances this is not a problem especially if you run
a firewall on the system and restrict the nsca port to only your
nagios server.

In the version i am running there is a section for allowed hosts and
this should only contain your Nagios server, and the password should
be difficult to guess and SSL should be enabled.

Greg Pangrazio
pangr...@gmail.com
847-707-7933 (c)
847-973-0307 (h)




On Tue, Dec 8, 2009 at 11:46 AM, ReynierPM  wrote:
> Greg Pangrazio wrote:
>>
>> The security risks are that there is a potential for remote command
>> execution on the system.  This is exactly the section I was refering
>> to.
>>
> Concerning this, what's your recommendation? I'm newbie on this topics and
> want to learn from those who are gurus of the theme
> --
> Cheers
> ReynierPM
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_ssh and check_ping not working with NRPE on remote host

2009-12-08 Thread Greg Pangrazio
The security risks are that there is a potential for remote command
execution on the system.  This is exactly the section I was refering
to.


Greg Pangrazio
pangr...@gmail.com





On Tue, Dec 8, 2009 at 11:41 AM, ReynierPM  wrote:
> Greg Pangrazio wrote:
>>
>> I use commands similar to what you are doing, did you enable command
>> processing from remote submissions?
>
> What you mean with "command processing remote submissions"? I can't
> understand this part.
>
>> In the windows version it says something about "don't blame me"
>
> I don't know what you mean with "windows version" but I found this line:
>
> # COMMAND ARGUMENT PROCESSING
> # This option determines whether or not the NRPE daemon will allow clients
> # to specify arguments to commands that are executed.  This option only
> works
> # if the daemon was configured with the --enable-command-args configure
> script
> # option.
> #
> # *** ENABLING THIS OPTION IS A SECURITY RISK! ***
> # Read the SECURITY file for information on some of the security
> implications
> # of enabling this variable.
> #
> # Values: 0=do not allow arguments, 1=allow command arguments
>
> dont_blame_nrpe=0
>
> So if I enable thi, which are the main security risks?
> --
> Cheers
> ReynierPM
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_ssh and check_ping not working with NRPE on remote host

2009-12-08 Thread Greg Pangrazio
I use commands similar to what you are doing, did you enable command
processing from remote submissions?

In the windows version it says something about "don't blame me"

Greg Pangrazio
pangr...@gmail.com





On Tue, Dec 8, 2009 at 11:23 AM, Morris, Patrick  wrote:
> ReynierPM wrote:
>> Hi every:
>> I've experimenting some problems when trying to use check_ssh and
>> check_ping plugins. The configuration at remote server (where NRPE
>> resides) is as follow:
>>
>> command[check_ssh]=/usr/local/nagios/libexec/check_ssh
>> command[check_ping]=/usr/local/nagios/libexec/check_ping!100.0,20%!500.0,60%
>>
>> And then at server where .cfg resides the config is this one:
>> define service{
>>          use                             generic-service
>>          host_name                       bacula-server
>>          service_description             SSH
>>          check_command                   check_nrpe!check_ssh
>>          notifications_enabled           0
>> }
>>
>> define service{
>>          use                             generic-service
>>          host_name                       bacula-server
>>          service_description             PING
>>          check_command                   check_nrpe!check_ping
>> }
>>
>> The error for check_ping command is this:
>> NRPE: Unable to read output
>> and for check_ssh is this:
>> check_ssh: Could not parse arguments
>>
>> What I'm doing wrong or what I'm not doing?
>>
> For check_ssh, you aren't passing any arguments, and it requires at
> least a host:
>
> [pmor...@sf3-bb6 ~]$ /opt/nagios/lib/plugins/check_ssh
> check_ssh: Could not parse arguments
> Usage:check_ssh [-46] [-t ] [-r ] [-p ]
> 
>
> For check_ping, you're not passing the arguments correctly. The "!"
> syntax only works in Nagios command definitions, and does not apply to NRPE.
>
>
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NSCA strange behaviour

2009-12-08 Thread Greg Pangrazio
It sounds like there is something that changed with the re-install.

Is the IP address of the system the same?

Did you pick the same encryption type in the nsca config?

Can you diff the nsca config with a working host?
Greg Pangrazio
pangr...@gmail.com





On Tue, Dec 8, 2009 at 8:14 AM, Cedric Jeanneret
 wrote:
> Hello,
>
> As far as I can see, only new one. Even if they are just reinstalled 
> (client22 was in nagios config before it was reinstalled).
>
> Best regards,
>
> C.
>
> On Tue, 8 Dec 2009 08:08:03 -0600
> Greg Pangrazio  wrote:
>
>> Do all of your clients fail, or just the new one?
>>
>> Greg Pangrazio
>> pangr...@gmail.com
>>
>>
>>
>>
>> On Tue, Dec 8, 2009 at 4:40 AM, Cedric Jeanneret
>>  wrote:
>> > Hello,
>> >
>> > I'm having troubles with NSCA.
>> > What we have :
>> >
>> > - about 47 passive hosts
>> > - about 220 passive services
>> >
>> > Versions : all are redhat servers, with:
>> > - NSCA 2.7.2 (latest one)
>> > - Nagios 3.1.2
>> >
>> > We have a single "nagios aggregator", which collect all NSCA status from 
>> > the other hosts.
>> >
>> > What's happening:
>> > a host was reinstalled yesterday (say client22), and now it seems NSCA 
>> > daemon on the aggregator (say server01) doesn't seem to collect data.
>> >
>> > What I've done:
>> >
>> > - tcpdump on both client22 and server01, both show me traffic between 
>> > them, on NSCA default port (5667)
>> >
>> > - checked iptables rules, all is ok (as tcpdump shows me traffic, that's a 
>> > confirmation)
>> >
>> > - trying to push status by hand from client22 to server01; ALL packets are 
>> > sent successfully """1 data packet(s) sent to host successfully.""". I've 
>> > done this with a loop like that:
>> > for i in $(seq 1000); do /usr/local/bin/submit_ochp $(hostname -f) UP 
>> > 'Host is up'; sleep 2; done
>> >
>> > - Enbling debug for nsca on server01 doesn't show me anything interesting. 
>> > I just don't see where nsca catch up client22 status, and it keeps on 
>> > saying :
>> > Warning: The results of host 'client22.domain.lt' are stale by 0d 0h 2m 0s 
>> > (threshold=0d 0h 6m 0s).  I'm forcing an immediate check of the host.
>> >
>> > On another hand, it shows me:
>> > [1260267958.216051] [016.1] [pid=23191] Check results for service 'Cron 
>> > service' on host 'client22.domain.lt' are fresh.
>> >
>> >
>> > I really don't know where to find a solution, neither where is the real 
>> > problem. We have another network with about 200 passive hosts and over 350 
>> > passive services, and it works fine.
>> >
>> > The only differences are :
>> > - the working network is debian-only
>> > - the working network's NSCA server doesn't do anything else than central 
>> > nagios server. server01 does some other stuff, like syslog server and 
>> > collectd server... maybe there's a bottleneck in there, but I can't be 
>> > sure about that.
>> >
>> > Does anyone of you have an idea ?
>> >
>> > Thank you in advance.
>> >
>> > Best regards,
>> >
>> > C.
>> >
>> >
>> >
>> > --
>> > Cédric Jeanneret                 |  System Administrator
>> > 021 619 10 32                    |  Camptocamp SA
>> > cedric.jeanne...@camptocamp.com  |  PSE-A / EPFL
>> >
>> > --
>> > Return on Information:
>> > Google Enterprise Search pays you back
>> > Get the facts.
>> > http://p.sf.net/sfu/google-dev2dev
>> >
>> > ___
>> > Nagios-users mailing list
>> > Nagios-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/nagios-users
>> > ::: Please include Nagios version, plugin version (-v) and OS when 
>> > reporting any issue.
>> > ::: Messages without supporting info will risk being sent to /dev/null
>> >
>
>
> --
> Cédric Jeanneret                 |  System Administrator
> 021 619 10 32                    |  Camptocamp SA
> cedric.jeanne...@camptocamp.com  |  PSE-A / EPFL
>
> ---

Re: [Nagios-users] NSCA strange behaviour

2009-12-08 Thread Greg Pangrazio
Do all of your clients fail, or just the new one?

Greg Pangrazio
pangr...@gmail.com




On Tue, Dec 8, 2009 at 4:40 AM, Cedric Jeanneret
 wrote:
> Hello,
>
> I'm having troubles with NSCA.
> What we have :
>
> - about 47 passive hosts
> - about 220 passive services
>
> Versions : all are redhat servers, with:
> - NSCA 2.7.2 (latest one)
> - Nagios 3.1.2
>
> We have a single "nagios aggregator", which collect all NSCA status from the 
> other hosts.
>
> What's happening:
> a host was reinstalled yesterday (say client22), and now it seems NSCA daemon 
> on the aggregator (say server01) doesn't seem to collect data.
>
> What I've done:
>
> - tcpdump on both client22 and server01, both show me traffic between them, 
> on NSCA default port (5667)
>
> - checked iptables rules, all is ok (as tcpdump shows me traffic, that's a 
> confirmation)
>
> - trying to push status by hand from client22 to server01; ALL packets are 
> sent successfully """1 data packet(s) sent to host successfully.""". I've 
> done this with a loop like that:
> for i in $(seq 1000); do /usr/local/bin/submit_ochp $(hostname -f) UP 'Host 
> is up'; sleep 2; done
>
> - Enbling debug for nsca on server01 doesn't show me anything interesting. I 
> just don't see where nsca catch up client22 status, and it keeps on saying :
> Warning: The results of host 'client22.domain.lt' are stale by 0d 0h 2m 0s 
> (threshold=0d 0h 6m 0s).  I'm forcing an immediate check of the host.
>
> On another hand, it shows me:
> [1260267958.216051] [016.1] [pid=23191] Check results for service 'Cron 
> service' on host 'client22.domain.lt' are fresh.
>
>
> I really don't know where to find a solution, neither where is the real 
> problem. We have another network with about 200 passive hosts and over 350 
> passive services, and it works fine.
>
> The only differences are :
> - the working network is debian-only
> - the working network's NSCA server doesn't do anything else than central 
> nagios server. server01 does some other stuff, like syslog server and 
> collectd server... maybe there's a bottleneck in there, but I can't be sure 
> about that.
>
> Does anyone of you have an idea ?
>
> Thank you in advance.
>
> Best regards,
>
> C.
>
>
>
> --
> Cédric Jeanneret                 |  System Administrator
> 021 619 10 32                    |  Camptocamp SA
> cedric.jeanne...@camptocamp.com  |  PSE-A / EPFL
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
>
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Exact same swap + root / partition info showing up for different hosts(?)

2009-12-02 Thread Greg Pangrazio
The commands as you have them defined execute the check commands on
the local machine.  First you need to verify that in the nrpe config
on the remote hosts you have the check users command defined.  Then
you need to define a command on the monitoring station similar to

define command{
command_name check_users_nrpe;
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_users
}

That is why you are getting the results for the local machine when it
is run via nagios.  The NRPE docs are located here
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

Greg Pangrazio
pangr...@gmail.com





On Wed, Dec 2, 2009 at 8:21 AM, Juki  wrote:
> Hi Greg,
>
> My configuration is as below;
>
> For host definition;
>
> define host{
>     host_name   emm4
>     use generic-host
>     alias   Old BGW
>     address 10.151.28.32
>     check_command   check-host-alive
>     check_period    24x7
>     check_interval  5
>     contact_groups  admins
>     retry_interval  1
>     max_check_attempts  10
>     notification_interval   120
>     notification_period 24x7
>     notification_options    d,u,r
>     }
>
>
> For service definitions;
>
> define service{
>     use generic-service
>
>     host_name   emm4
>     service_description Users
>     is_volatile 0
>     check_period    24x7
>     max_check_attempts  3
>     normal_check_interval   3
>     retry_check_interval    1
>     contact_groups  admins
>     notification_interval   120
>     notification_period 24x7
>     notification_options    w,u,c,r
>     check_command   check_users!5!10
>     }
>
> define service{
>     use generic-service
>
>     host_name   emm4
>     service_description Load
>     is_volatile 0
>     check_period    24x7
>     max_check_attempts  3
>     normal_check_interval   3
>     retry_check_interval    1
>     contact_groups  admins
>     notification_interval   120
>     notification_period 24x7
>     notification_options    w,u,c,r
>     check_command   check_load!5.0,4.0,3.0!10.0,6.0,4.0
>     }
>
> define service{
>     use generic-service
>
>     host_name   emm4
>     service_description Total Processes
>     is_volatile 0
>     check_period    24x7
>     max_check_attempts  3
>     normal_check_interval   3
>     retry_check_interval    1
>     contact_groups  admins
>     notification_interval   120
>     notification_period 24x7
>     notification_options    w,u,c,r
>     check_command   check_procs!250!400!RSZDT
>     }
>
> define service{
>     use generic-service
>
>     host_name   emm4
>     service_description Disk Usage
>     is_volatile 0
>     check_period    24x7
>     max_check_attempts  3
>     normal_check_interval   3
>     retry_check_interval    1
>     contact_groups  admins
>     notification_interval   120
>     notification_period 24x7
>     notification_options    w,u,c,r
>     check_command   check_disk!/
>     }
>
>
> And finally the command definitions;
>
>
> # 'check_users' command definition
> define command{
>     command_name    check_users
>     command_line    $USER1$/check_users -w $ARG1$ -c $ARG2$
>     }
>
> # 'check_load' command definition
> define command{
>     command_name    check_load
>     command_line    $USER1$/check_load -w $ARG1$ -c $ARG2$
>     }
>
> # 'check_procs' command definition
> define command{
>     command_name    check_procs
>     command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
>     }
>
> # 'check_disk' command definition
> define c

Re: [Nagios-users] Exact same swap + root / partition info showing up for different hosts(?)

2009-12-02 Thread Greg Pangrazio
Without your config file I cannot be sure, but likely the services are
either using the wrong command ie not the nrpe version, or your check
command is not configured properly..

Can you provide your host and service definitions as well as the
command configuration for the commands you are using?

Greg Pangrazio
pangr...@gmail.com




On Wed, Dec 2, 2009 at 7:46 AM, Juki  wrote:
> Hi list,
>
> I am facing a similar problem as posted by Bill.
>
> I'm running Nagios-3.2.0 on openSUSE 11.1 and monitoring a number of hosts
> using NRPE v2.12. When I look at the web GUI, it reports/shows
> the exact stats about disk size/usage, no. of users, swap usage etc.. for
> the monitored hosts (target machines) and the localhost (Nagios server).
>
> The check_disk plugin is installed and running on the target (remote) hosts.
> I also tested this on each of the remote hosts and it returns the
> right results as shown;
>
> bash-3.00$ /usr/local/nagios/libexec/check_disk /var/opt/BGw/Server1
> DISK OK - free space: /var/opt/BGw/Server1 41643 MB (80% inode=99%);|
> /var/opt/BGw/Server1=10192MB;;;0;54272
>
>
> However, from the web GUI, it shows the exact stats as those of the
> localhost. This means it is reporting the localhosts's statistics and not
> those
> of the remote (target) hosts.
>
> Anyone with an idea about how to go about this?
>
>
> Regards,
> Juki
>
>
>
> --
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Integrating Nagios & Cacti

2009-11-19 Thread Greg Pangrazio
I thing you are going to have to configure them twice.  the npc plugin
only populates its database tables from the nagios output so you can't
configure nagios from cacti.  As for configuring cacti from nagios,
you should be able to create a device template and then apply it to
bulk hosts but that will have to be through the sql back end.

The entire cacti config is in the cacti database and the actual data
is RRD files located usually in the $cacti_install/rra folder.  there
aren't any "config files" in cacti like there are in nagios.

Greg Pangrazio





On Thu, Nov 19, 2009 at 9:52 AM, Kevin Holleran  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Thanks for your help.  Is there a config file anywhere in Cacti where
> I can write something to automate this as opposed to entering the
> devices twice?  Basically, to set up this infrastructure I have about
> 350 devices to set up if I have to do it twice
>
> Thanks.
>
> Kevin
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)
>
> iQEcBAEBAgAGBQJLBWmjAAoJELwJyEr2hjSxVY0IAIgcJp9/2UppG+HoZsTv60US
> +cbOYyKmznHB/68bj9GSPTlOxMc5YIxBjFCxxhoWc3mXHsKDqZd8hUSRr+0w7YbZ
> XpVT2KrzFUdZdjq4PWvEaLE/6wgfn9OfowQKL8Ceigh0xzceVkKhlRtWigioOIwL
> 6laWFk1S+/+9UYsTFhbvAXXljIZ6QbCCwtn/LqrhBO4KTAZDSjwahQZfRrceWImT
> bXh5CeekQaIoC4d/q1VLmKdZ7j0MDd44Y2e+rJzqE8yjII2tvKGbopBbnSg7YGib
> bJi+heuVbCqRUFH7CHiPDHHEuywaTaiqlunW+tuaZWrXXQzk1jOQeFArukSNVeU=
> =1d+/
> -END PGP SIGNATURE-
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Integrating Nagios & Cacti

2009-11-19 Thread Greg Pangrazio
I use it right now.  You do set up the devices in both places and
"link" the two devices together.  If you have any specific questions.


Greg Pangrazio
pangr...@gmail.com





On Thu, Nov 19, 2009 at 9:03 AM, Kevin Holleran  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Tue, Nov 17, 2009 at 2:36 PM, Kevin Holleran  wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Hello,
>>
>> I installed and setup PNP4Nagios but am not really liking it.  I have
>> used Cacti in the past (on its own) and would like to integrate Nagios
>> and Cacti.  Is there a HOWTO page or anything that can help me
>> configure Cacti to integrate with Nagios?  I do not want to have to
>> manage two sets of devices or two data areas and it appears that Cacti
>> and Nagios can integrate.
>>
>> Thanks for your help.
>>
>> Kevin
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1.4.9 (MingW32)
>> Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)
>>
>> iQEcBAEBAgAGBQJLAvtIAAoJELwJyEr2hjSxDxgIAKiovV0yQ9RuyOtO+u7FkQT0
>> CcVafR4JcbixAOBBJTm0ryzhF6G5AEccE5Erxg7kqnE9p+JES3VBnu8SLMFFiGR2
>> phoigHk8xibMIiWOnSF8fK97Om/yXaBcVSFfhiQWgkLH3m/wqEAFLK4n1CdZCzQf
>> ejBfzjwgJ3/EmOfPTRFm1J4I7mnrDm2zdsB/DJL5Jzr92LAzhrwptpMx7E1poJVQ
>> AizvK9uAUXPWMDVpDUME1Vcsx4NAT2QKgx9x87FVxasLcuDYBvAqTxRpHdXrI2t8
>> feojO3TR/M5FhBrIJOeC47JAw1D0qf6BMM2s+Hr5VHcmsexojYtHGINZgJCB358=
>> =DWtQ
>> -END PGP SIGNATURE-
>>
>
>
> I have downloaded and followed the documentation for the Nagios2Cacti
> (http://code.google.com/p/nagios2cacti/) but I am having trouble and
> documentation is severely limited.  Has anyone used this?  Do I have
> to setup the devices in Cacti AND Nagios?
>
> Thanks for any help.
>
> Kevin
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)
>
> iQEcBAEBAgAGBQJLBV4rAAoJELwJyEr2hjSx4JMH/20AVO7IAC0sHq48JmKzzvD1
> j4mbvHu8o6myY18sDaQDZGpiho+r9ZtvjtP788TDzwDEYA84vPYzVgEn5HxkWiYx
> PgXA1gExAa/GFiO8HR4O8JOvpY2gEIGJ8R/bsZLd5hU7Wu0f2ADtar/Nn0ipHMg9
> mI3Ib213oF2XqbRf/vZmshIRP2O3PbrK0uxnTFENhqfCLDvJTD4nIavvrgqDeFsb
> jpqtWP4kJx98IDafqPgI9DguD8H2tcn4OcAX5fCQphCaS0ajGWcCy2xzCQoCovuK
> qJ1AIfcMkhhvVNN2culoLIO7jIda9JlsM3jTKkXMhCwwe0qBBj4cOLneP1PjHGQ=
> =Mt2+
> -END PGP SIGNATURE-
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Final stage of getting MRTG working with Nagios v2

2009-11-16 Thread Greg Pangrazio
I may be wrong here but i thought you had to point the check_mrtg to a rrd
file and not the rrdtool log file.


Greg Pangrazio
pangr...@gmail.com




On Sun, Nov 15, 2009 at 8:24 PM, AJay  wrote:

> Your mrtg is probably not working correctly, check you mrtg.cfg and
> /var/spool/mail/root to see what's going on with mrtg.
>
>  --
>  AJay
>
>
>
>  -- Original --
>  *From: * "xmanhosting";
> *Date: * Sat, Nov 14, 2009 12:27 PM
> *To: * "nagios-users";
>  *Subject: * [Nagios-users] Final stage of getting MRTG working with
> Nagios v2
>
> Hello,
>
> I have been fluffing around with Nagios for a couple of weeks, and have
> nearly finally nailed it.
>
> I just have one thing to go.
>
> I am trying to get MRTG to work with Nagios.
>
> I have got MRGT working locally on my machine , and can see it working 
> bygoing to these 2 sites  (locally)
>  in a browser:
>
> file:///usr/local/mrtg-2/share/mrtg2/icons/index.html<http://m33.mail.qq.com/cgi-bin/frame_html?sid=6AuAxsNrmrW1bmsg&r=31ef6d4e0997510a3066d059ab83e370#>
>  and
>
>
> file:///usr/local/mrtg-2/share/mrtg2/icons/localhost_2.html<http://m33.mail.qq.com/cgi-bin/frame_html?sid=6AuAxsNrmrW1bmsg&r=31ef6d4e0997510a3066d059ab83e370#>
>
> I followed the tutorial below to set up my router with Nagios:
>
>
> http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/
>
> however I am yet to get MRTG working with Nagios:
>
> PING OK 11-14-2009 13:13:56 21d 16h 10m 13s 1/3 PING OK - Packet loss = 0%,
> RTA = 1.38 ms
> Port 1 Bandwidth Usage UNKNOWN 11-14-2009 13:09:49 21d 16h 8m 43s 3/3 
> *check_mrtgtraf:
> Unable to open MRTG log file*
> Port 1 Link Status OK 11-14-2009 13:11:29 12d 22h 37m 5s 1/3 SNMP OK -
> up(1)
> Uptime OK 11-14-2009 13:10:29 12d 22h 27m 57s 1/3 SNMP OK - Timeticks:
> (152738042) 17 days, 16:16:20.42
>
> My switch.cfg currently has the following:
>
> # Monitor bandwidth via MRTG logs
> define service{
> use generic-service ; Inherit values from a template
> host_nameBillion
> service_description   Port 1 Bandwidth Usage
> check_command*
> check_local_mrtgtraf!/usr/local/mrtg-2/share/mrtg2/icons/localhost2.log!AVG!100,100!500,500!10
> *
> }
>
> My localhost2.log is at the location above: *
> /usr/local/mrtg-2/share/mrtg2/icons/localhost2.log* ,however I still must
> have something wrong for it to not work.
>
> When I run: /usr/local/nagios/bin/nagios -v
> /usr/local/nagios/etc/nagios.cfg , it says: "*Things look okay - No
> serious problems were detected during the pre-flight check*"
>
> When I run: /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg , it says:
>
> ---
> ERROR: Mrtg will most likely not work properly when the environment
>variable LANG is set to UTF-8. Please run mrtg in an environment
>where this is not the case. Try the following command to start:
>
>env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg
> ---
>
> When I run: env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg
> , there are no errors.
>
> Does anyone know what I am still doing wrong
>
> Thanks for any help,
>
> Kind regards,
> Anthony
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Groupings

2009-11-09 Thread Greg Pangrazio
Kevin,

Hosts and services can be members of multiple groups.  I am doing
exactly what you are saying.

I define the host group and then the members.  Some systems are in
multiple host group definitions.

Greg Pangrazio
pangr...@gmail.com





On Mon, Nov 9, 2009 at 1:38 PM, Kevin Holleran  wrote:
> Hello,
>
> I am relatively new to Nagios.  I have laid out a structure for Nagios
> configs for all our servers, network gear, and 100 remote offices that we
> monitor.  My question is can I group devices by multiple ways?  For
> instance, I would like one group to be all the remote offices and include
> only their edge routers.  However, I would also like a group for each remote
> office that includes the router as well as devices within the office.  Can
> this be done so that I can click on a service group for all remote routers
> at the offices and then another series of groups to just see everything in
> that office?
>
> Thanks.
>
> Kevin
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check-host-alive and ping service check

2009-11-04 Thread Greg Pangrazio
You could also assign that check to a user that is not you, ie hide
them from yourself.


Greg Pangrazio
pangr...@gmail.com




On Wed, Nov 4, 2009 at 11:39 AM, Khanh Truong  wrote:
> Most of the time I use the Services view, and the problem with disabling the
> PING is that I have some hosts i.e.  switches that doesn't have any other
> services besides PING so getting rid of it would mean it would stop showing
> up under the Services view.
> I guess there is no way to customize views with Nagios is there? Anyone have
> any other ideas? I think I'll just keep both of them enabled for now so that
> I get my detailed view and hopefully down the road there it will be possible
> to create customized Nagios views.
>
> On Tue, Nov 3, 2009 at 5:05 PM, AJay  wrote:
>>
>> I think you just get things complicated. These two checks are both default
>> definition. In my case, I just disabled the PING service.
>>
>>
>>
>> AJay - nagios beginner
>>
>> -- Original --
>> From:  "Khanh Truong";
>> Date:  Wed, Nov 4, 2009 07:55 AM
>> To:  "nagios-users";
>> Subject:  [Nagios-users] check-host-alive and ping service check
>>
>> Hi,
>> I noticed that the check-host-alive and the PING service are the same
>> checks. This unecessarily creates double checks and duplicate rrd data if
>> you have both of them on. But the dashboard views are better when you have
>> both of them so my question is... how can I consolidate these two checks so
>> that either the PING uses the check-host-alive data or the check-host-alive
>> uses the PING's data and checks?
>> Ken
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Help with install

2009-10-20 Thread Greg Pangrazio
This is not a nagios problem but an apache problem.  That message is
telling you that there is another service already using that port.
You can either change the port apache is bound to in the httpd.conf
file, or add another address to the server and bind apache to just
that single IP.

Details can be found at httpd.apache.org in the docs.

Greg Pangrazio
pangr...@gmail.com





2009/10/20 xmanhosting :
> Hello,
>
> I am looking for some installation help/advice
>
> I have followed the tutorial here:
>
> http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html
>
>
>
> up to service httpd restart, and it says:
>
> [r...@onlinebackup ~]# service httpd restart
>
> Stopping httpd: [FAILED]
>
> Starting httpd: (98)Address already in use: make_sock: could not bind to
> address [::]:80 (98)Address already in use: make_sock: could not bind to
> address 0.0.0.0:80 no listening sockets available, shutting down Unable to
> open logs
>
> [FAILED] [r...@onlinebackup ~]#
>
>
>
> I have other software on the server that is using port 80 (Ahsay Online
> Backup Manager)
>
> Do I need to change the port on which Nagios works? If so, how would I do
> this?
>
> I did restart the server, and continued with the tutorial, right up to:
>
> http://localhost/nagios/ or http://203.59.254.217/nagios
>
> However I get a 404 error page.
>
> Is this related to the error message above?
>
> Thanks for any help.
>
> Kind regards,
>
> Anthony
>
>
>
>
>
>
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Notify only when both services are down.

2009-10-13 Thread Greg Pangrazio
Thanks for both of these, It looks like either will do the job so now
I just have to get to work.

Thanks again for the quick answer.
Greg Pangrazio
pangr...@gmail.com





On Tue, Oct 13, 2009 at 1:54 PM, Marc Powell  wrote:
>
> On Oct 13, 2009, at 1:45 PM, Greg Pangrazio wrote:
>
>> I have a pair of redundant services each with their own service
>> checks.  They are VPN connections to a remote site.  I would like to
>> notify specific people only when BOTH are down.  Anyone seen/done
>> something like this?
>
> http://nagios.sourceforge.net/docs/3_0/clusters.html
>
> --
> Marc
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Notify only when both services are down.

2009-10-13 Thread Greg Pangrazio
I have a pair of redundant services each with their own service
checks.  They are VPN connections to a remote site.  I would like to
notify specific people only when BOTH are down.  Anyone seen/done
something like this?

Greg Pangrazio
pangr...@gmail.com

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] DHCP hosts

2009-10-02 Thread Greg Pangrazio
If you don't control the router that is handing out DHCP, check to see
if it is cisco, I used to have one dump a file with the dhcp leases to
an ftp server every time a lease was renewed or granted.  You could
also get the admin to send you the dhcp logs and use syslog-ng to
parse them out and provide you with the leases.

Greg Pangrazio
pangr...@gmail.com





On Fri, Oct 2, 2009 at 3:32 AM, Hari Sekhon  wrote:
> Morris, Patrick wrote:
>> G. S. Marzot wrote:
>>> Thank you for the pointer to this cool plugin...
>>>
>>> Unfortunately no solutions to date really fill the bill as the leases
>>> are allocated by a router that does not publish them in a way I know
>>> how to get... nor can I put anything on the DHCP hosts... they are
>>> not under my control...
>>>
>>> Maybe there is a way to hack into my router and get the lease info...
>>> or maybe I need a little daemon that will just go and probe for all
>>> possible hosts... I would just like to see an accurate depiction of
>>> who is on the net at any given time... maybe this is not something
>>> nagios is good at (i.e., dynamic host groups).
>>
>> Nagios is good at what it does, and it really sounds like this just
>> isn't it.
>>
>> However, I don't see a reason you couldn't hack together a really
>> simple check using a tool that *is* good at this sort of thing (like,
>> say, nmap), and based on the results of that tool, feed the results
>> back to Nagios .
>
> I would say that the best thing to do would be to turn off dhcp on that
> router and use dhcpd instead. Open and accessible and then you can just
> use the plugin I wrote... at least I think that would be least amount of
> work for you to get to working solution.
>
> Dhcpd isn't hard and doesn't take long to set up, but I'm not sure on
> your wording, you mean the hosts aren't under your control or the router
> isn't under your control to replace the dhcp service with dhcpd?
>
> If turning off the dhcp from the router isn't an option then you need to
> go back to the drawing board, consider how you can access the system, if
> you have a shell, if you have snmp etc and then come up with another
> solution using that, possibly custom writing your own plugin to
> integrate this in to Nagios.
>
> -h
>
> --
> Hari Sekhon
> http://www.linkedin.com/in/harisekhon
>
>
> --
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Object Definitions with Multiple Templates

2009-09-23 Thread Greg Pangrazio
I agree that this would be much simpler, but I have no experience there.

Greg Pangrazio
pangr...@gmail.com





On Wed, Sep 23, 2009 at 10:32 AM, Tata, Joseph  wrote:
> It does, but I'm trying to avoid this because I have rather large number 
> configurations in my environment that I need to cover (various clients, 
> platforms, production levels, etc).  Chaining templates to cover every 
> possible combination will be very complicated.
> It would be much easier if I could actually use multiple templates where 
> necessary.
>
>
> Joseph P. Tata
>
>
>
> -Original Message-
> From: Greg Pangrazio [mailto:pangr...@gmail.com]
> Sent: Wednesday, September 23, 2009 11:28 AM
> To: Tata, Joseph
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Object Definitions with Multiple Templates
>
> When you define win-host can you put "use prod-host" in the definition?  Then 
> in the host, only put "use win-host"?
>
> Does this do what you are trying to accomplish?
>
> Greg Pangrazio
> pangr...@gmail.com
>
>
>
>
>
> On Wed, Sep 23, 2009 at 10:05 AM, Tata, Joseph  wrote:
>> I am having a problem getting Nagios to accept multiple templates in
>> object definitions.
>>
>> Here is an example.  I have two templates defined in templates.cfg:
>>
>>
>> define host {
>> use                             host #This is my "generic" template
>> with all my basic options in it name
>> prod-host hostgroups                      prod_servers #Production
>> server host group notification_period             24x7 register
>> 0 }
>>
>>
>> define host {
>> use                             host
>> name                            win-host
>> hostgroups                      win_servers #Windows server host group
>> register                        0
>> }
>>
>> Defining an object with either of these templates works fine.  However
>> what I really need to do is:
>>
>> define host {
>> use                             prod-host,win-host
>> name                            windows-server
>> address                           192.1.1.1
>> alias                                     My Windows Production Server
>> }
>>
>> Instead when I run nagios -v I get:
>>
>> "Error: Template 'prod-host,win-host' specified in host definition could
>> not be not found" etc.
>>
>> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html indicates
>> this should be possible, and that the resulting object should have
>> properties of both hosts, but something isn't working.  Am I not
>> defining something correctly or is this possibly a bug/documentation
>> error?
>>
>> Thanks
>>
>>
>> --
>> Come build with us! The BlackBerry® Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9-12, 2009. Register now!
>> http://p.sf.net/sfu/devconf
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Object Definitions with Multiple Templates

2009-09-23 Thread Greg Pangrazio
When you define win-host can you put "use prod-host" in the
definition?  Then in the host, only put "use win-host"?

Does this do what you are trying to accomplish?

Greg Pangrazio
pangr...@gmail.com





On Wed, Sep 23, 2009 at 10:05 AM, Tata, Joseph  wrote:
> I am having a problem getting Nagios to accept multiple templates in
> object definitions.
>
> Here is an example.  I have two templates defined in templates.cfg:
>
>
> define host {
> use                             host #This is my "generic" template with
> all my basic options in it
> name                            prod-host
> hostgroups                      prod_servers #Production server host
> group
> notification_period             24x7
> register                        0
> }
>
>
> define host {
> use                             host
> name                            win-host
> hostgroups                      win_servers #Windows server host group
> register                        0
> }
>
> Defining an object with either of these templates works fine.  However
> what I really need to do is:
>
> define host {
> use                             prod-host,win-host
> name                            windows-server
> address                           192.1.1.1
> alias                                     My Windows Production Server
> }
>
> Instead when I run nagios -v I get:
>
> "Error: Template 'prod-host,win-host' specified in host definition could
> not be not found" etc.
>
> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html indicates
> this should be possible, and that the resulting object should have
> properties of both hosts, but something isn't working.  Am I not
> defining something correctly or is this possibly a bug/documentation
> error?
>
> Thanks
>
>
> --
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios Clustering for failover using drdb?

2009-09-22 Thread Greg Pangrazio
I found Pro Nagios 2.0 b James Turnbull to have a very good set of
instructions and different scenarios for monitoring.  I am currently
using 2 active systems reporting to a single non-redundant "master"
that does all of the alerting.  I know this is not fully redundant,
but it is all i need in my environment.  The book walks through
several different methods and the pros and cons to each.

I do not use drdb so i cannot comment on that.

Greg Pangrazio
pangr...@gmail.com





On Tue, Sep 22, 2009 at 3:32 AM, Jelle Smet  wrote:
> Hi list,
>
> We're looking into a some techniques to have reliable fail over capability
> for our Nagios server.
> We were thinking about an active/passive setup, with the passive one to
> become alive when the primary node goes down.
>
> We are looking to our options how to make sure the passive node has the
> latest state of the monitoring results.
>
> The documentations suggests to tackle this with nsca and ocsp
> (http://ussrvud-mon01/nagios/docs/redundancy.html).
>
> We are thinking to use drdb on a dedicated lan to sync the rrd's, config
> files and the nagios state and log files.
> This should, to our opinion, work relatively well.
>
> Are there any people doing something similar for the moment?
> If so, are there any constraints, tips or things to take into account?
>
> Thanks in advance,
>
> --
> Jelle Smet
> http://www.smetj.net
>
> --
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Webpage Plugin

2009-09-21 Thread Greg Pangrazio
I have a Cisco ASA with an IronPort webproxy restricting access to non
work related sites.  I would like to monitor the WCCP status.  As far
as i can tell there is no snmp OID for the wccp process.  What I was
thinking of doing was "monitoring" a page that I know is blocked like
"pokerroom.net" and if the page is different than my "access
restricted" base line send out an alert.

Does anyone know of a good plugin that actually checks the page contents?

Greg Pangrazio
pangr...@gmail.com

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NSClient++ - Anyone else having difficulty reaching the site?

2009-09-10 Thread Greg Pangrazio
I can get to it fine.  Seems to be up and responding quickly.


Greg Pangrazio





On Thu, Sep 10, 2009 at 1:39 AM, Anthony wrote:
> Regarding NSClient++
>
> Anyone else having issues reaching its homepage at nsclient.org?
>
> Still able to reach files at http://sourceforge.net/projects/nscplus/
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null