Re: [Nagios-users] R: smstools3 with nagios

2011-05-12 Thread Diego Roccia
try from the nagios user 
 
Diego Roccia - from mobile

-Original Message-
From: Marco Borsani m.bors...@it.net
Date: Thu, 12 May 2011 08:49:10 
To: 'Ennis Ibarra - NMCOURTS.GOV'en...@nmcourts.gov; 'Nagios Users 
List'nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] R:  smstools3 with nagios

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Upgrade from Nagios 1.x

2010-12-27 Thread Diego Roccia
I'd use host templates to replicate the configuration you need 
Sent from my BlackBerry® wireless device

-Original Message-
From: Sebastian Ries sebastian.r...@dtnet.de
Date: Mon, 27 Dec 2010 11:14:57 
To: nagios-users-MLnagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Upgrade from Nagios 1.x

Hi

I have an old Nagios installation where they made much use of
hostgroups. Hosts are arranged and contacts are configured to these
groups. (which isn't allowed in Nagios2 and newer)

Does anyone know if there is a nice way to convert this config to the
new format?
(contacts as part of the host not part of the hostgroup)

Regards
Sebastian Ries

-- 

DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36   Fax: +49-711-849910-936
WEB: http://www.dtnet.de/ email: sebastian.r...@dtnet.de

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

2010-11-19 Thread diego . roccia
I think you're right about the problem.
In nagios.cfg file you can find the user you're running these commands as. It's 
usually nagios

Sent from my BlackBerry® wireless device

-Original Message-
From: Luis Gustavo de Andrade Jordão Carneiro
luis.carne...@compsisnet.com.br
Date: Fri, 19 Nov 2010 16:27:13 
To: 'nagios-users@lists.sourceforge.net'nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] CHECK_SVN

Hello People!!



Can you help me?

I installed plugin check_svn in my Nagios 3.2.3. When I run check_svn using 
prompt, that's work. But not when Nagios running check_svn.



nagiosql:~# su - nagios

nag...@nagiosql:/usr/local/nagios/libexec$ ./check_svn -H 10.0.0.33 --https -U 
lcarneiro -P  --dir /svn/aocsw_config

SVN OK: svn repository online - directory listing successful



But, when Service Nagios run, not work. See:



SVN CRITICAL: Error connecting to svn server - OPTIONS of 
'https://svnaero/svn/aocsw_desenv': Server certificate verification failed: 
issuer is not trusted (https://svnaero)



Commands.cfg:   $USER1$/check_svn -H $HOSTADDRESS$ --https -U $ARG1$ -P $ARG2$ 
--dir $ARG3$

Service:

$ARG1$ lcarneiro

$ARG2$ x

$ARG2$/svn/aocsw_desenv



check_command   check_svn!lcarneiro!x!/svn/aocsw_desenv





I already accept certificate permanent (p) using svn info SVN PATH.
How can i know which USER run check_svn?
I think this could be the problem, because i need to accept certificate to user 
that run check_svn.


Luis Gustavo de A. J. Carneiro



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


Re: [Nagios-users] Check_http_Multipple_port

2010-10-27 Thread diego . roccia
As far as I remember there are no options for this in the standard check_http 
plugin. You can create 2 checks (and maybe a third one that aggregates them and 
trigger the notifications), or use a wrapper plugin running the 2 checks and 
merging the results. Or you can use check_multi, but maybe it's too much for 
your needs.

Diego
Sent from my BlackBerry® wireless device

-Original Message-
From: Rajesh Kumar ras.kuma...@gmail.com
Date: Wed, 27 Oct 2010 22:33:08 
To: Nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Check_http_Multipple_port

--
Nokia and ATT 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
--
Nokia and ATT 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] passive service and notification email

2010-10-27 Thread diego . roccia
Freshness threshold is the word :)
Sent from my BlackBerry® wireless device

-Original Message-
From: Andrea Imparato imparato.and...@gmail.com
Date: Tue, 26 Oct 2010 11:09:26 
To: nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] passive service and notification email

Hello to all ml,


I have a simple request for you. I have a passive service check
scheduled on my nagios server and a cron script on my clients (they are
all natted) that send me the informations. The question is: which is the
parameter for nagios that say after some period send me an email if you
see nothing happens?. Sorry but I found the documentation a bit
chaotic :\

Thank you


--
Nokia and ATT 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 ATT 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] question about macros

2010-10-19 Thread Diego Roccia
In the past I configured some custom variables to be shown in extinfo,
so that they are displayed in objects' details page.
So I think it should work. I've no time to test at this moment, but you could :)

On Tue, Oct 19, 2010 at 5:10 PM, Paul M. Dubuc w...@paul.dubuc.org wrote:

 Joel Brooks wrote:
 hey gang,

 can macros be used in configuration objects?

 i.e. can i use $HOSTNAME$ in the display_name directive on a host object?


 That would be nice, but I don't think you can.  You can use them in the
 command arguments in the check_command directive though.

 --
 Download new Adobe(R) Flash(R) Builder(TM) 4
 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
 Flex(R) Builder(TM)) enable the development of rich applications that run
 across multiple browsers and platforms. Download your free trials today!
 http://p.sf.net/sfu/adobe-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




-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-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] can't get host to display in Host Detail panel

2010-10-14 Thread Diego Roccia
Actually the init script is not ran if you're running it via xinetd.
you should look for server_args in /etc/xinet.d/nrpe (usually this is
the file name)

Diego

On Thu, Oct 14, 2010 at 12:53 PM, Assaf Flatto nag...@flatto.net wrote:
 On 13/10/10 00:04, Jonathan Wiggins wrote:

 snip

 the place to look is in the nrpe init script , usually found in the
 /etc/init.d directory

 you are looking for the NrpeCfg parameter .

 Make sure to point it to the nrpe.cfg file you found.

 Assaf

 but then I see this also in the logs
 nrpe[11817]: Unable to open config file '/usr/local/nagios/etc/nrpe.cfg' for
 reading
 when I do a locate nrpe.cfg, its only found in one location:
  /etc/nagios/nrpe.cfg   --- looking at that file below- looks normal to me,
 and where is the application pulling this other nrpe.cfg location from, and
 how to change it? ((Or does that really not matter in this issue - seems
 like it would - and I need to focus elsewhere?))


 log_facility=daemon

 pid_file=/var/run/nrpe/nrpe.pid

 server_port=5666

 #server_address=127.0.0.1

 nrpe_user=nagios
 nrpe_group=nagios

 allowed_hosts=127.0.0.1,10.0.100.130
 dont_blame_nrpe=0
 # command_prefix=/usr/bin/sudo

 debug=0 -- 1

 command_timeout=60
 connection_timeout=300

 #allow_weak_random_seed=1

 #include=somefile.cfg

 include_dir=/etc/nrpe.d/

 --
 Never,Ever Cut A Deal With a Dragon


 Next year I will be doing the London to Paris bike ride to
 raise money for the DogTrust (www.dogstrust.co.uk) .
 Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

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

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

2010-10-14 Thread Diego Roccia
  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 be...@bennyvision.com 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

Re: [Nagios-users] can't get host to display in Host Detail panel

2010-10-12 Thread diego . roccia
If you run nrpe via xinetd, the standalone service has to be stoppedm if it's 
not, xinetd can't bind the port.
Regarding the plugin location, you can change it in nrpe.cfg

Sent from my BlackBerry® wireless device

-Original Message-
From: Jonathan Wiggins jwigg...@salon.com
Date: Mon, 11 Oct 2010 19:15:06 
To: Nagios Users Listnagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] can't get host to display in Host Detail panel

--
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
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios and mrtg

2010-09-30 Thread diego . roccia
Are the old directories still being filled with performance data? Maybe you 
should check the service perfdata command. Though It's only a spool directory 
and it could stay in the old position, maybe you moved them.

Sent from my BlackBerry® wireless device

-Original Message-
From: Wade Blackwell captainbab...@gmail.com
Date: Wed, 29 Sep 2010 16:56:03 
To: nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios and mrtg

--
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
--
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] passing a string with spaces to nrpe

2010-09-29 Thread diego . roccia
Have you tried with single quotes in commando line configuration?

Sent from my BlackBerry® wireless device

-Original Message-
From: Lori Adams lad...@cloudmark.com
Date: Wed, 29 Sep 2010 10:00:05 
To: nagios-users@lists.sourceforge.netnagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] passing a string with spaces to nrpe

--
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
--
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] Nagios Change Config via email

2010-09-23 Thread Diego Roccia
Using procmail you can pipe emails trough scripts, so you're able to
create a script that parse the email subject/body and commit external
commands to nagios

regards
Diego


On Thu, Sep 23, 2010 at 5:38 AM, Ron Wilson r...@tvnz.co.nz wrote:
 I would like to be able to disable nagios notifications by using email.

 Situation is we are investing in automating patching of our servers. The
 patching software can send an email out at the beginning of each server
 patch and another at the end of patch

 I want Nagios to be able to receive the email which would have something
 like servername and stop en email subject line.

 If I set up an inwards mail client on the nagios server which would receive
 the email and drop it into a directory where Nagios would scan it and
 disable alerting for the server. At the end of patching the patch server
 will issue another email saying servername start and Nagios would receive
 email and re-enable alerting

 Anyone got any good ideas how to avhieve this?



 

 --

 Ron Wilson

 Systems Engineer

 Television New Zealand

 P.O. Box 3819

 Auckland, New Zealand

 Phone 649-916-7560

 If you find yourself in a hole, the first thing to do is stop diggin'.

 
 ==
 For more information on the Television New Zealand Group, visit us
 online at tvnz.co.nz
 ==
 CAUTION:  This e-mail and any attachment(s) contain information that
 is intended to be read only by the named recipient(s).  This information
 is not to be used or stored by any other person and/or organisation.
 --
 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




-- 
Diego Roccia
diego.roccia (at) gmail (dot) 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

Re: [Nagios-users] Nagios Change Config via email

2010-09-23 Thread Diego Roccia
If you implement some sort of email signing (like GPG) you can have
enough security with email commands.
Moreover, via email you can send commands to nagios even if its
interface is firewalled to the outside.


On Thu, Sep 23, 2010 at 2:38 PM, Breandan Dezendorf
brean...@dezendorf.com wrote:
 On Thu, Sep 23, 2010 at 5:38 AM, Ron Wilson r...@tvnz.co.nz wrote:
 I would like to be able to disable nagios notifications by using email.

 Situation is we are investing in automating patching of our servers. The
 patching software can send an email out at the beginning of each server
 patch and another at the end of patch

 I want Nagios to be able to receive the email which would have something
 like servername and stop en email subject line.

 If I set up an inwards mail client on the nagios server which would receive
 the email and drop it into a directory where Nagios would scan it and
 disable alerting for the server. At the end of patching the patch server
 will issue another email saying servername start and Nagios would receive
 email and re-enable alerting

 Anyone got any good ideas how to avhieve this?

 Rather than email, it might be a good idea to host a CGI which is
 locked down to monitored hosts, and let servers call the CGI as needed
 to disable notifications/monitoring for themselves (only) when needed.
  I think this would be *slightly* harder to spoof than an email.
 (Email is really bad that way).

 For any automated disabling of notifications, the other thing to keep
 in mind is: what happens if a server fails in the middle of patching?
 Will it sit for hours, waiting?  Depending on your setup, you could
 setup a cron job to look for a comment associated with the
 server/service, that contains a timestamp.  If the timestamp is longer
 than [x] [time] ago, go ahead and turn notifications/alerting back on,
 so administrators are notified that something went wrong.

 We are doing much of the above with our production systems, and it
 works well, especially for the Windows hosts that patch at least once
 a month.  Server can call a CGI, and if the server is in the database
 (DNS and IP resolve exactly to the name in the DB), it can disable
 notifications for itself.  After 45 minutes, if a host is still in
 this maintenance state, alerts are enabled again, and we get woken up
 as the server needs handholding while we still have a patch window to
 do the work in.

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




-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
Nokia and ATT 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] question about check_by_ssh

2010-09-17 Thread diego . roccia
Actually, if nagios command definition is calling the dummy script, it won't 
receive 2 statuses, but only one. Btw, you could pass more commands to a single 
check_by_ssh, removing the dummy.

Diego


Sent from my BlackBerry® wireless device

-Original Message-
From: Mirza Dedic mi...@oppy.com
Date: Fri, 17 Sep 2010 09:23:42 
To: 'nagios-users@lists.sourceforge.net'nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] question about check_by_ssh

--
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
--
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] execute script on event - wol when UPS status becomeOK

2010-09-15 Thread diego . roccia
Maybe you can use ocsp:
http://nagios.sourceforge.net/docs/3_0/configmain.html
But mind that obsessive command is executed after EVERY service check, not only 
on a state change.

Diego
Sent from my BlackBerry® wireless device

-Original Message-
From: Trnka Tomáš tomas.tr...@podravka.cz
Date: Wed, 15 Sep 2010 09:10:57 
To: Nagios Users Listnagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] execute script on event - wol when UPS status become
OK

--
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
--
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] Having single or double quotes in a custom variable

2010-09-06 Thread Diego Roccia
You must to escape them

_blah   \one two three four\ a b c d

Diego


On Mon, Sep 6, 2010 at 1:57 PM, Jelle Smet nag...@smetj.net wrote:
 Hi I have a custom host variable define likes this:

 _blah           one two three four a b c d

 I want to use this custom variable in a command to execute like this:

 define command{

 command_name    check_linux_nrpe_all_disks

 command_line    /bin/echo $_HOSTBLAH$  /tmp/fubar.txt

 }

 In /tmp/fubar.txt I have this line of text without the quotes:

 one two three fou a b c d

 How can I keep the quotes?  They can be single or double quotes it doesn't
 matter.

 --
 Jelle Smet
 http://www.smetj.net

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




-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
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] Having single or double quotes in a custom variable

2010-09-06 Thread Diego Roccia
Single quotes are quite good, but, as Marc said, He needs to preserve them, too.
The only simple idea I can give is escaping them. I don't know why
it's not working, I'd advice to turn on command logging

bye
Diego

On Mon, Sep 6, 2010 at 3:32 PM, Marc Powell li...@xodus.org wrote:

 On Sep 6, 2010, at 6:57 AM, Jelle Smet wrote:

 _blah           one two three four a b c d

 I want to use this custom variable in a command to execute like this:

 define command{

 command_name    check_linux_nrpe_all_disks

 command_line    /bin/echo $_HOSTBLAH$  /tmp/fubar.txt

 }


 In /tmp/fubar.txt I have this line of text without the quotes:
 one two three fou a b c d

 That's what 'echo one two three four a b c d  /tmp/fubar.txt' does on the 
 command line --

 $ echo one two three four a b c d  /tmp/fubar.txt
 $ cat /tmp/fubar.txt
 one two three four a b c d

 How can I keep the quotes?  They can be single or double quotes it doesn't 
 matter.

 command_line    /bin/echo '$_HOSTBLAH$'  /tmp/fubar.txt

 $ echo 'one two three four a b c d'  /tmp/fubar.txt
 $ cat /tmp/fubar.txt
 one two three four a b c d

 --
 Marc


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




-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
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] Tuning for Passive Check latency

2010-09-02 Thread diego . roccia
Better to go with the 3.0 version :)

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

There is a common problem I experience with google indexing: every time I look 
for nagios docs, i'm redirected to old, (v2.0) one.

Sent from my BlackBerry® wireless device

-Original Message-
From: Dorfman, Justin jus...@mahalo.com
Date: Thu, 2 Sep 2010 11:01:28 
To: Nagios Users Listnagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Tuning for Passive Check latency

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

2010-09-01 Thread diego . roccia
  I'm thinking to use jasper reports for this, but I haven't tried it yet.
  
Sent from my BlackBerry® wireless device

-Original Message-
From: Marius Roets roets.mar...@gmail.com
Date: Wed, 1 Sep 2010 15:53:35 
To: nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Reporting

--
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
--
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 script output issue

2010-08-31 Thread Diego Roccia
clearly there something wrong with the check configuration.
Maybe some duplicated conf.
you could debug the script output (see nagios.cfg file)

On Mon, Aug 30, 2010 at 10:16 PM, newme me allan...@gmail.com wrote:
 One more thing I would like to add here , I have 5 URLs check , 2 thru
 check_http and 3 thru my own curl script and all of them fail at the same
 time, initially for 2-3 hrs all are returning the right status.
 The error  that I am getting from Nagios(check_http) - nodename nor
 servname provided, or not known HTTP CRITICAL - Unable to open TCP socket
 is somewhat as if the dns server becomes inaccessible but when I run the
 commands from the command line, the status is fine. Is there something
 within Nagios that I need to set/configure?
 Please help!
 Thanks,
 Allan.
 On Mon, Aug 30, 2010 at 10:47 AM, newme me allan...@gmail.com wrote:

 Hi Marc,

 Thanks for your reply, I checked on the multiple process of Nagios but
 there is only one running.

 Any other thing you can think of which might be causing this odd
 behaviour?

 Thanks,
 Allan.

 On Sun, Aug 29, 2010 at 6:12 PM, newme me allan...@gmail.com wrote:

 Folks,

 I switched to check_http plugin (official nagios plugin) but that also
 has same problem.

 Initially when I start nagios then the status on the Nagios Web interface
 is same as the one returned from commandline.

 After some time the status becomes critical but is not as same as the
 commandline. Command line returns the correct status of OK instead of what
 the Nagios web interface shows as CRITICAL

 Result from commandline( browser) -
 ./check_http -H xyz.com -p  -u /abc -t 3
 OK

 Result from Nagios Interface -
 nodename nor servname provided, or not known
 HTTP CRITICAL - Unable to open TCP socket

 I am thinking that this has something to do with Nagios as the box is
 behaving just fine based on the commandline result(and verified on the URL
 through the browser).

 Please help!

 Thanks,
 Allan.

 On Thu, Aug 26, 2010 at 10:26 PM, newme me allan...@gmail.com wrote:

 Hi Folks,

 Nagios is acting a little weird for me, I have this external script
 which I hooked into Nagios, it merely does a curl/wget on a URL and returns
 the status based on string in the content/output. Initially for 2-3 hrs the
 script returns the right status and Nagios reports correctly i.e. OK, WARN,
 ERROR based on the exit from the script. After 2-3 hrs output which was 
 (and
 should be) OK or WARN starts returning CRITICAL and the output line says
 Application is and not even Application is ERROR or Application is
 FATAL.

 There is nothing in the logs to suggest what could be the problem. Have
 you experienced this before and let me know the corrective action. I am
 running Nagios on Mac OSX.

 Here is the script for the curious -

 #!/bin/bash

 read URL  $1

 STATUS=`curl -s $URL |grep summary|awk -F\ '{print $2}'`
 echo Application is $STATUS
 echo curl $URL

 case $STATUS in
 OK)
    exit 0
    ;;
 WARN)
   exit 1
   ;;
 ERROR)
   exit 2
   ;;
 FATAL)
   exit 2
   ;;
 *)
   exit 2
   ;;
 esac

 Thanks,

 Allan.



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




-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
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] Different notification_interval for warnings andcritical notifications?

2010-08-31 Thread diego . roccia
you can use service escalations:
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#serviceescalation
Sent from my BlackBerry® wireless device

-Original Message-
From: Robert Swerdlow rswerd...@emergentdiscovery.com
Date: Tue, 31 Aug 2010 12:13:33 
To: nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Different notification_interval for warnings and
critical notifications?

With Nagios 3.0.5, we have monitoring of our servers and hosts.

Currently, we get warning, unknown, critical, and recovery event  
notifications sent to our contacts with escalations as expected.

We want to change the configuration to get warnings every 30 minutes  
and other event notifications every 5 minutes with escalations.   
Unfortunately,
notification_interval
which controls how often the notification is set can have only one  
value for each service. 

The only way I see to do get the warnings and other notifications on  
different schedules is to have duplicate service checks for every  
service.

Is there any way to do this without duplicating all of the service  
checks?

Thanks,
Bob


--
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] Bonding/Teaming Monitoring

2010-08-30 Thread diego . roccia
On the server part, you should go with:
 - monitor physical interfaces (snmp)
 - monitor bonding sytatus (in /proc/net/bonding/bond0, or the sysfs equivalent)

Moreover, you could monitor network interfaces on the switch side. You can for 
example, use custom variables to store switch ports on server side.

Sent from my BlackBerry® wireless device

-Original Message-
From: Jones, Stuart stuart.jo...@health.wa.gov.au
Date: Mon, 30 Aug 2010 09:29:00 
To: Nagios Users Listnagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Bonding/Teaming Monitoring

--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios script output issue

2010-08-30 Thread diego . roccia
You aren't passing that http://xyz.com thing to the server, are you?

Sent from my BlackBerry® wireless device

-Original Message-
From: newme me allan...@gmail.com
Date: Sun, 29 Aug 2010 18:12:10 
To: nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios script output issue

--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios script output issue

2010-08-27 Thread diego . roccia
Hi,
  You should add the whole output of the page as additional info, so that you 
can fully understand what's happening
/D
Sent from my BlackBerry® wireless device

-Original Message-
From: newme me allan...@gmail.com
Date: Thu, 26 Aug 2010 22:26:25 
To: nagios-users@lists.sourceforge.net
Reply-To: Nagios Users List nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Nagios script output issue

--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios plugins return code issue

2010-08-17 Thread diego . roccia
Hi Melissa,
  if you disable the embedded perl interpreter in nagios.cfg, does the script 
start to work?
Diego
Sent from my BlackBerry® wireless device

-Original Message-
From: Matthew J. Salerno vagabond_k...@yahoo.com
Date: Tue, 17 Aug 2010 12:45:29 
To: Huber, Melissamhu...@ascentdata.com; Nagios Users 
Listnagios-users@lists.sourceforge.net
Reply-To: Matthew J. Salerno vagabond_k...@yahoo.com,
Nagios Users List nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios plugins return code issue

What is your command line?  Are you calling the script directly or is it 
wrapped 
in a shell script?  I took a quick look at the script, and it needs quite a bit 
of improvement.  Not sure if it was a result of my copy and paste, but there is 
only so much I can blame on bad formatting.  I would recommend looking for a 
different script that does the same thing.




- Original Message 
From: Huber, Melissa mhu...@ascentdata.com
To: Matthew J. Salerno vagabond_k...@yahoo.com; Nagios Users List 
nagios-users@lists.sourceforge.net
Sent: Tue, August 17, 2010 3:20:42 PM
Subject: RE: [Nagios-users] nagios plugins return code issue

Umm... Not sure.  I just tried uncommenting and got the same results though.  
I'm taking over managing the nagios server that we have from another collegue 
who left the company.  I've actually migrated everything over to another server 
that is now running the latest nagios.  The previous server was 3.0.6 I 
believe.  I tried searching for an updated version of these plugins, but 
couldn't find any.  I'm not that great with perl scripting either.  :/

Missy

-Original Message-
From: Matthew J. Salerno [mailto:vagabond_k...@yahoo.com] 
Sent: Tuesday, August 17, 2010 2:58 PM
To: Nagios Users List
Cc: Huber, Melissa
Subject: Re: [Nagios-users] nagios plugins return code issue

For starters, why is use strict commented out?




From: Huber, Melissa mhu...@ascentdata.com
To: nagios-users@lists.sourceforge.net
Sent: Tue, August 17, 2010 2:41:23 PM
Subject: [Nagios-users] nagios plugins return code issue


Hello all,

I've googled around everywhere trying to find an answer here and came up 
unsuccessful, so if anyone has had experience in this situation, I'd appreciate 
help!  


Basically, the issue that I'm having is that I have a couple of temperature 
plugins that are reporting errors in Nagios and at the command line they're 
exiting in 0:

check7204temp.pl  - Return code of 255 is out of bounds and checkciscotemp.pl - 
Return code of 9 is out of bounds

If I run a echo $? at the command line after running the command 
successfully, 
I get 0.

Thanks for any help anyone can provide!!  My perms are 755 and nagios user owns 
the plugins and I've run successfully with nagios user and got 0 output.  I'm 
really stumped!!

Here's the code for the plugins:

***
check7204temp.pl:

#!/usr/bin/perl -w

# check_ciscotemp.pl

#

# Copyright (C) 2000 Leland E. Vandervort lel...@mmania.com # # This program 
is free software; you can redistribute it and/or # modify it under the terms of 
the GNU General Public License # as published by the Free Software Foundation; 
either version 2 # of the License, or (at your option) any later version.

#

# This program is distributed in the hope that it will be useful, # but WITHOUT 
ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS 
FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details.

#

# you should have received a copy of the GNU General Public License # along 
with 
this program (or with Nagios); if not, write to the # Free Software Foundation, 
Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA 


# Nagios pluging to check inlet and outlet temperatures on # Cisco router 
platforms which support environmental monitoring # (7200, 7500, GSR12000...) 


# default temperature thresholds are 30C for inlet, 40C outlet.

# if input or output is less than thresholds, returns OK # if equal to (the 
temps don't change that rapidly) returns WARNING # if greater than threshold, 
returns CRITICAL # if undetermined, or cannot access environmental, returns 
UNKNOWN # (in accordance with the plugin coding guidelines) 


use Net::SNMP;

use Getopt::Long;

#use strict;

Getopt::Long::config('auto_abbrev');

#my $critical_vals;

#my $warning_vals;

#my $inlet_warn;

#my $outlet_warn;

#my $status;

my $response = ;

my $timeout = 10;

my $community = blah;

my $port = 161;

my $INTAKE_TEMP = 1.3.6.1.4.1.9.9.13.1.3.1.3.1; my $OUTLET_TEMP = 
1.3.6.1.4.1.9.9.13.1.3.1.3.3; my $in_temp; my $out_temp; my $inlet_thresh = 
30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my 
$error;

my %STATUSCODE = ( 'UNKNOWN' = '-1',

'OK' = '0',

'WARNING' = '1',

'CRITICAL' = 

[Nagios-users] embedded option in cgi

2010-08-16 Thread Diego Roccia
Hi guys,
  I'm integrating nagios in an homemade monitoring and asset
management solution, with dokuwiki and request tracker. In order to
accomplish it, I need the cgi not to print head part of the page.
running through the code, I've found out that I've to pass the
embedded=true option. Awesome; Exactly what I was looking for. But
the links in the generated page will not inherit the embedded
options, so, with the next click I will receive a complete HTML page.
I did not find any cgi.conf option for adding a static part to all
links.
Before I'll start to patch all CGIs, do you have some advice?

thanks in advance
Diego



-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

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


[Nagios-users] Modifying custom variables via external commands

2009-12-11 Thread Diego Roccia
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,
 I'm having some problem in changing custom object variables via
external commands. Using nagios 3.0.6 and 3.2.0 but it seems to ignore
*almost* completely my command.

 define service{
 namegeneric-service
 [...]
 _PRIORITY   1
 _SUPPORT_TEAM   Tech Db - Generic
 action_url  
 /wiki/doku.php?id=procedures:$SERVICEDESC$
 notes   
 empriority:/em$_SERVICEPRIORITY$br/emSupport 
 Team(s):/em$_SERVICESUPPORT_TEAM$
 }

In the debug I see:

 [1260547711.216663] [128.2] [pid=18837] Raw command entry: [1260547696] 
 CHANGE_CUSTOM_SVC_VAR;blinkongdbslave1;SSH Service;_PRIORITY;1
 [1260547711.216970] [001.0] [pid=18837] process_external_command2()
 [1260547711.216974] [128.1] [pid=18837] External Command Type: 148
 [1260547711.216979] [128.1] [pid=18837] Command Entry Time: 1260547696
 [1260547711.216983] [128.1] [pid=18837] Command Arguments: 
 blinkongdbslave1;SSH Service;_PRIORITY;1

but the value of the variable is not being changed.
Any ideas? thanks in advance

Diego
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLInCOAAoJEMJ8KUrKt830Z04H/1Bmq4xNjdZEfqXvrP8kSEar
7w9+KnPb0SvtLwIEAG9HWk2sdqcJg4qhq9vnsu079XWBjeCNFRrFW37fUqhi2Oio
5t5flyJuatDGFhFUA+w8oRImhiTmi0/QKzYeJSzMuXlgSFqUDlvQ6JlPlDL6go2z
R5fJBSC4vbwhGlxcLhdswXV/FVbzNc363P7IBQJbjI9mL1r1gk+rPx2pDoqKvjig
K5hI25OVmXe+QTOEKY4HqeBwu0dx9LiSTvdk17WzwsKjqlj4WwCZ41OZm9VqEpO1
TGfyhiQ92yw3rft/M5oI/AoaW0TTPMgs3wY3TFv6UQsZhmv/LTsAFNt7SsKHkyw=
=Y84l
-END PGP SIGNATURE-

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