Re: [Nagios-users] tactical background

2006-06-28 Thread Hans Engelen
Wild guess, http://www.nagvis.org/ what you mean ?Cheers,HansOn 6/28/06, Gregory Malsack <
[EMAIL PROTECTED]> wrote:Hello All,I saw a demo site where the tactical page was not the standard black
screen that nagios 2.0 has. They somehow got a nice jpg file to backgroundthat their tac page. Does anyone know how to do this?Gregory MalsackUsing Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 MS Terminal Services

2006-06-28 Thread Hans Engelen
The thread mentions one already :
 
WMI, though if you can not install anything at all on the server you will need 1 additional machine (on which you can install some soft, namely the soft from the url below) to act as a 'probe'
 
http://www.nagiosexchange.org/NRPE_Plugins.66.0.html?&tx_netnagext_pi1[p_view]=235
 
With these you set up one machine (wintel machine) as your gatherer of information, the machine uses WMI (which is standard on all Wintel boxes) to query the information you nee (see above) and forwards it to the Nagios machine via nrpe_nt. The need for this 1 wintel machine (the probe if you wish) arises from the fact that WMI is M$-only. No way to query it from a unix box afaik.

 
cheers,
Hans 
On 6/28/06, Williard, Jason <[EMAIL PROTECTED]> wrote:
Does anyone have any suggestions that do not involve installing additional software on the Windows servers?
Jason WilliardI would suggest nc_net instead.NSClient does not work with Windows 2003 SP1, nc_net does. Only downside (i guess) is that it needs the .NET redistributable on there. Which is standard on 2003 unless I am much mistaken (don't install many windows boxes myself nomore).
Cheers,HansOn 6/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:Use NSclient to check windows services.
install nsclient on windows server and check TS service by nagios plugin.Thanks & regards**Vinay SharmaInformation Systems and SolutionsAdvanex Inc (
www.advanex.co.jp)Fon : 813-3822-5863Fax : 813-5815-7881Email : [EMAIL PROTECTED]"Williard, Jason"
< [EMAIL PROTECTED]>宛先: 送信者:cc:
[EMAIL PROTECTED]: [Nagios-users] Check MS Terminal Servicesceforge.net2006/06/28 09:42I have several Windows 2003 Servers that I would like to check the
status of the terminal services on.What is the best method of doingthis?Is there a special plugin available for this purpose?Jason WilliardE-MAIL CONFIDENTIALITY NOTICE:
The contents of this e-mail message andany attachments are intended solely for theaddressee(s) and may contain confidentialand/or legally privileged information. If youare not the intended recipient of this message
or if this message has been addressed to youin error, please immediately alert the senderby reply e-mail and then delete this messageand any attachments. If you are not theintended recipient, you are notified that
any use, dissemination, distribution, copying,or storage of this message or any attachmentis strictly prohibited.Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your jobeasierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.::: Messages without supporting info will risk being sent to /dev/nullUsing Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Nagios-users mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null
E-MAIL CONFIDENTIALITY NOTICE:The contents of this e-mail message andany attachments are intended solely for theaddressee(s) and may contain confidentialand/or legally privileged information. If you
are not the intended recipient of this messageor if this message has been addressed to youin error, please immediately alert the senderby reply e-mail and then delete this messageand any attachments. If you are not the
intended recipient, you are notified thatany use, dissemination, distribution, copying,or storage of this message or any attachmentis strictly prohibited.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 MS Terminal Services

2006-06-28 Thread Hans Engelen
I would suggest nc_net instead.
 
NSClient does not work with Windows 2003 SP1, nc_net does. Only downside (i guess) is that it needs the .NET redistributable on there. Which is standard on 2003 unless I am much mistaken (don't install many windows boxes myself nomore).

 
Cheers,
Hans 
On 6/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
Use NSclient to check windows services.install nsclient on windows server and check TS service by nagios plugin.
Thanks & regards**Vinay SharmaInformation Systems and SolutionsAdvanex Inc (www.advanex.co.jp)Fon   : 813-3822-5863
Fax : 813-5815-7881Email   : [EMAIL PROTECTED] "Williard, Jason" <
[EMAIL PROTECTED]>宛先:  送信者:cc: 
[EMAIL PROTECTED]件名: [Nagios-users] Check MS Terminal Services ceforge.net
 2006/06/28 09:42I have several Windows 2003 Servers that I would like to check thestatus of the terminal services on.  What is the best method of doingthis?  Is there a special plugin available for this purpose?
Jason WilliardE-MAIL CONFIDENTIALITY NOTICE:The contents of this e-mail message andany attachments are intended solely for theaddressee(s) and may contain confidential
and/or legally privileged information. If youare not the intended recipient of this messageor if this message has been addressed to youin error, please immediately alert the senderby reply e-mail and then delete this message
and any attachments. If you are not theintended recipient, you are notified thatany use, dissemination, distribution, copying,or storage of this message or any attachmentis strictly prohibited.
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your jobeasierDownload IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Nagios-users mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS whenreporting any issue.::: Messages without supporting info will risk being sent to /dev/null
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Nagios-users mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 automate availability reports monthly ?

2006-06-28 Thread Hans Engelen
There is a perl module for this, which seems to do the trick pretty good.
 
That being said it does take a bit of trial and error to get what you need perhaps.
 
The module in question is on CPAN under H/HO/HOPCROFTS/Nagios-Report-0.002.tar.gz (at the time of this mail).
 
Easiest way to get and install it is using the CPAN tool that comes with most distrubs these days :
 
~# perl -MCPAN -eshell
cpan> install Nagios::Report
 
Note that if you have never used this tool before you will get a bunch of configuration questions the first time. The options are well explained so this should be easy.
 
The only problem with this setup is if you have Nagios installed via the rpm's made by Dag. The paths are different and Nagios::Report uses the default paths to find the Nagios CGI applications from which it gets its info. (So it does not need a DB or somesuch).

 
There are also a number of examples that come with the package, those you can still find in the CPAN tools cache (~/.cpan usually). You could also recompile the module from there should you need to.
 
Cheers,
Hans 
On 6/27/06, lobo epx <[EMAIL PROTECTED]> wrote:

Hello,I generate availability reports in CSV format each month, and i try to find if it is possible to automate this sytem (in command-line or anything else), and to save the report directly in a file.Is there any solution ?
My Nagios version is 2.2-1, Debian EtchThanks, 
[EMAIL PROTECTED]Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 report the number of RDP session on a W2K3 Terminal Server

2006-06-23 Thread Hans Engelen
Indeed thats a WMI Query you could use already.
 
The counters for perfmon are :
Terminal Services\Active Sessions
Terminal Services\Inactive Sessions
Terminal Services\Total Sessions
 
Which do not distinguish between RDP or ICA sessions I might add. So if you have say 2 admins logged in via RDP, 10 users logged in via ICA and 5 users logged in via ICA but disconnected your counters would respectivly be 12, 5 and 17.

 
At first glance I see no quick way however to split the 12 active sessions into two values (one for RDP and one for ICA sessions). Other then enumerating the actual sessions and doing the math on it in your check (which means you are as good as obligated to run something like a small _vbscript_ on your winbox and have it relay the result through nsca).

 
Maybe I am overlooking a way to sidestep this.
 
Cheers,
Hans 
On 6/23/06, Thibault Genessay <[EMAIL PROTECTED]
> wrote: 
Hans Engelen wrote:> I believe it is available as a perfmon counter. Using an agent such as> nc_net will allow you 
to poll that value via the agent. Citrix is > harder. Will have to check that myself first.
>For TSE, more precisely, the WQL query is something like:SELECT  ActiveSessions FROMWin32_Perf[Raw/Formatted]Data_TermService_TerminalServicesCitrix is, AFAIK, based on TSE so that counter might also work for
Citrix sessions.Thibault
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 report the number of RDP session on a W2K3 Terminal Server

2006-06-23 Thread Hans Engelen
I believe it is available as a perfmon counter. Using an agent such as nc_net will allow you to poll that value via the agent. Citrix is harder. Will have to check that myself first.Cheers,Hans
On 6/20/06, Rainer Duffner <[EMAIL PROTECTED]> wrote:
Hi,I would like to monitor the number of RDP sessions that a W2K3-servercurrently uses.Preferrably via SNMP.Is there a way to do this?Also, I would need the same functionality for Citrix Presentation Server
4.0, later.cheers,Rainer___Nagios-users mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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_oracle

2006-06-23 Thread Hans Engelen
Hi,actually if you look inside the check_oracle script you will see that it is trying to determiing the oracle home based on whats in /etc/oratab or /opt/var/etcoratab (not sure about the last one, have to work from memory here). Failure to get a valid oracle_home from that it falls back to a default and hardcoded (in the check_oracle shell script) setting. I just cannot remember if it uses the oratab method even with an ORACLE_HOME already being defined.
Also you might want to check permissions on the tnsping binary and for that matter most of the other stuff installed by the oracle client setup. Possibly the nagios user (the one running the nagios process) does not have the right to execute the tnsping binary which, again if memory serves, leads to the, in this case misleading, no tns listener output. Much of all this depends on which client version you have installed. Everytime I install a new one I spend a lot of time figuring out silly little quirks and changes.
Cheers,HansOn 6/21/06, Mohan, Ajit (CFSA) <[EMAIL PROTECTED]> wrote:













Hi,

 

I am trying to monitor the oracle database using the "check_oracle"
plugin. I have installed Oracle client on the machine and configured the
TNSNAMES.ORA file to point to the oracle server. However when I try to test the
connection using "check_oracle" I get the below error message. I
have verified the ORA_HOME and the TNSNAMES use the IP address of the Oracle
server

 

"No TNS Listener on XXX"

 

The database is up and running

 

Any ideas?

 

Thank you 







All the advantages of Linux Managed Hosting--Without the Cost and Risk!Fully trained technicians. The highest number of Red Hat certifications inthe hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___Nagios-users mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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-Report-0.002 on CPAN/NagiosExchange.

2006-03-20 Thread Hans Engelen
Hmm,
 
it would be a pitty not to develop this thing further. Like you say it provides the kind of reports management likes and up until now it is the only way I have found to create biased reporting.
 
What do I mean ? I mean I don't care about how many hours application or server xyz was down during the weekend. Those hours are of no importance to me in terms of management reports. The information and especially metrics outside of these hours need to be taken for administration purposes of course. But the weekend is used here for maintenance as is the case in many places. For my SLA's these hours should not be counted. Up until now your tool is the only tool I have found that can ignore data based on time-tables in its reports.

 
So as far as I am concerned please keep up the good work.
 
Question though .. DB NEB modules ?
 
Cheers,
Hans 
On 3/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
Dear Folks,I am writing to say that Nagios::Report 0.002 has been 'released' and isavailable at
the usual places.This relase fixes a bug, and adds limited charting capability and aweaker alternate interface (provided by the Perl DBD::AnyData module)that allows client code to select the report data with SQL (the small
subset that AnyData accepts).0.002 Fri Mar 17 14:44:36 EST 2006- fix bug in mkreport() processing of MUNGE_CALLBACK (would not changereport values).*** This entailed a change _non_ backward compatible change in the
MUNGE_CALLBACK interface.*** Client code that calls the alter->() callback _requires_ changing.*** The alter callback is now called with one parm, a ref to a hash ofthe field values*** indexed by field name. See examples/ for scripts that have been
changed.- added to_dbh() method to allow DBD::AnyData provided use of SQL(simple) on report data- added primitive support for chart templates to excel_dump. Theworkbook written by Spreadsheet::WriteExcel can contain _one_ (1) chart
of the availability data.This project does not scale very well. It provides a limited capabilityto provide a Data source for processing by Reporting tools such asExcel.This module has probably reached the end of development (some may say it
would better have not started) apart from bug fixes.If you are serious about reporting look at the DB NEB modules or SteveShipways stuff on NagiosExchange. This module provides however, alimited capacity to provide reports in the format beloved by PHBs.
Yours sincerely.---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___Nagios-users mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: 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 Fileserver

2006-03-03 Thread Hans Engelen
Oh yeah been there done that ...Still should be enough to monitor the diskspace issue.There you go Josh, install one of the common SNMP toolsets (most linux distros have it already) and if unsure do an snmpwalk to see what infos you might get.
Cheers,HansOn 2/27/06, Frank, Jason <[EMAIL PROTECTED]> wrote:





NetApp certainly has SNMP support.  It's not
wonderful, it only supports v1.  As a result, it has the usual problems
with overflowing COUNTER32's.  But, it's fairly easy to set up and will let
you monitor just about anything you want.
 
Jason


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Hans
EngelenSent: Monday, February 27, 2006 4:01 PMTo: Nagios
Users MailinglistSubject: Re: [Nagios-users] Monitor
Fileserver

Ah, i see.
 
Question ... is there no SNMP access for these blackboxes ? Most blackboxes
do from my experience (though I usually steer clear of them so I haven't used
that many of them really).
 
SNMP access will most likely allow you to poll a fair number of interesting
metrics. Free space, network utilization, load ... that kind of thing.
 
Worth checking into should my other suggestion fail. Incidentally don't
forget to give the service-user enough rights to do its work, i.e. on the share
and also for other checks it might have to do or you might get other unexplained
errors. Start out with adding it to the local admins group to test the general
idea first (and get a baseline check) then bump it down to normal user and
add rights as you need. But I am sure you know that drill. 
 
Cheers,
Hans 
On 2/27/06, Josh
<[EMAIL PROTECTED]> wrote:

Hans
  / Ryan,Thanks for your input...I thought the question might
  arise about "why don't I monitor the server housing the shares"... well,
  theproblem there is the machine is a NetApp device (notrunning windows
  and won't allow me to install anythingon it of course... it's an
  appliance).I've tried touching the
  /root/.smb/smb.conf...  theproblem is most likely related to the
  nagios usercan't even see inside /root.I like your idea of mapping
  the drives under thenagios user and then running the service as the nagios
  user... I'll give that a shot.On a side note, I did try getting
  the nrpe checks towork on the windows server but am getting
  thefollowing error:"CScript Error: Execution of the Windows Script
  Host failed. (Catastrophic failure)"A little research shows it is
  most likely related to asoftware security policy in
  place.  Anyone on thislist know what I need to
  change?Thanks again for all your help. Josh--- Hans
  Engelen <[EMAIL PROTECTED]>
  wrote:> Dangit replied privately and not to the list,
  anyway> heres a forward.>> Also just checked the
  /root/.smb/smb.conf reference > is actually a workaround> for a
  problem with samba's libsmbclient in the perl> module>
  Filesys::SmbClient (used by check_smb_shares.pl).> Aparantly
  libsmbclient> segfaults if it does not exist. Therefor if it does
  > not exist the perl> module Filesys::SmbClient tries to make
  one (an> empty one) but has no> permission to do so from what
  you wrote. I supose> you could make it yourself> (touch
  /root/.smb/smb.conf; chmod og+r > /root/.smb/smb.conf). Maybe that
  will> solve your issues with that particular check> allowing you
  to use it to> monitor the remote shares you spoke of>>
  Cheers,> Hans>>> On 2/27/06, Hans Engelen <[EMAIL PROTECTED]> wrote:
>
  >> > For mapped drives that is quite normal since> mapped
  drives are, barring a > > small number of special cases, only
  accessible for> the user that did the> > actual mapping. It's
  the same problem you get for> other NT services trying> > to
  access a drive mapping made from another user. > Also most likely
  your> > pNSClient (or NC_Net or NSClient++) or whatever>
  agent you have running on> > the Windows box is running under the
  System> security setting. This security > > context is only
  valid for that windows box> internally and as such has no> >
  credentials to access anything beyond that> machine. This includes (but
  is> > not limited to) shares. > >> >
  Theoretically you could of course run your Nagios> Agent under an
  actual> > user account, log in interactively on that same>
  account and create a> > persistent mapping (net use * \\server\share
  > /persist:yes, if memory serves)> > to the shares in
  question. Since the service will> use the same profile when>
  > logging in that should solve the issue. But why> even monitor a
  remote disk > > in this way. Just install the Nagios Agent on
  the> server that houses the> > share and monitor it directly
  instead of> indirectly (with all the quirks and> &g

Re: [Nagios-users] Monitor Fileserver

2006-02-27 Thread Hans Engelen
Ah, i see.
 
Question ... is there no SNMP access for these blackboxes ? Most blackboxes do from my experience (though I usually steer clear of them so I haven't used that many of them really).
 
SNMP access will most likely allow you to poll a fair number of interesting metrics. Free space, network utilization, load ... that kind of thing.
 
Worth checking into should my other suggestion fail. Incidentally don't forget to give the service-user enough rights to do its work, i.e. on the share and also for other checks it might have to do or you might get other unexplained errors. Start out with adding it to the local admins group to test the general idea first (and get a baseline check) then bump it down to normal user and add rights as you need. But I am sure you know that drill.

 
Cheers,
Hans 
On 2/27/06, Josh <[EMAIL PROTECTED]> wrote:
Hans / Ryan,Thanks for your input...I thought the question might arise about "why don't I
monitor the server housing the shares"... well, theproblem there is the machine is a NetApp device (notrunning windows and won't allow me to install anythingon it of course... it's an appliance).
I've tried touching the /root/.smb/smb.conf...  theproblem is most likely related to the nagios usercan't even see inside /root.I like your idea of mapping the drives under thenagios user and then running the service as the nagios
user... I'll give that a shot.On a side note, I did try getting the nrpe checks towork on the windows server but am getting thefollowing error:"CScript Error: Execution of the Windows Script Host
failed. (Catastrophic failure)"A little research shows it is most likely related to asoftware security policy in place.  Anyone on thislist know what I need to change?Thanks again for all your help.
Josh--- Hans Engelen <[EMAIL PROTECTED]> wrote:> Dangit replied privately and not to the list, anyway> heres a forward.>> Also just checked the /root/.smb/smb.conf reference
> is actually a workaround> for a problem with samba's libsmbclient in the perl> module> Filesys::SmbClient (used by check_smb_shares.pl).> Aparantly libsmbclient> segfaults if it does not exist. Therefor if it does
> not exist the perl> module Filesys::SmbClient tries to make one (an> empty one) but has no> permission to do so from what you wrote. I supose> you could make it yourself> (touch /root/.smb/smb.conf; chmod og+r
> /root/.smb/smb.conf). Maybe that will> solve your issues with that particular check> allowing you to use it to> monitor the remote shares you spoke of>> Cheers,> Hans
>>> On 2/27/06, Hans Engelen <[EMAIL PROTECTED]> wrote:> >> > For mapped drives that is quite normal since> mapped drives are, barring a
> > small number of special cases, only accessible for> the user that did the> > actual mapping. It's the same problem you get for> other NT services trying> > to access a drive mapping made from another user.
> Also most likely your> > pNSClient (or NC_Net or NSClient++) or whatever> agent you have running on> > the Windows box is running under the System> security setting. This security
> > context is only valid for that windows box> internally and as such has no> > credentials to access anything beyond that> machine. This includes (but is> > not limited to) shares.
> >> > Theoretically you could of course run your Nagios> Agent under an actual> > user account, log in interactively on that same> account and create a> > persistent mapping (net use * \\server\share
> /persist:yes, if memory serves)> > to the shares in question. Since the service will> use the same profile when> > logging in that should solve the issue. But why> even monitor a remote disk
> > in this way. Just install the Nagios Agent on the> server that houses the> > share and monitor it directly instead of> indirectly (with all the quirks and> > pitfalls that come with it).
> >> > Of course in this case the check_smb_shares is a> solution too. As to why> > it insists on writing to /root/.smb/smb.conf is a> bit strange. Possibly this> > was defined somewhere in the check_smb_shares.pl
> file. Open it up in a text> > editor and see.> >> > Cheers,> > Hans> > Cheers,> > Hans> >> > On 2/27/06, Ryan Wilcox <
[EMAIL PROTECTED]>> wrote:> > >> > > yeah... i got the same error as you did with a> mapped drive. we aren't> > > monitoring any mapped drives right now, hence
> the confusion.> > >> > > not sure about the mapped drives... anyone else> have an idea for josh?> > >> > > >> -Original Message-> > > >> From: 

Re: [Nagios-users] Monitor Fileserver

2006-02-27 Thread Hans Engelen
Dangit replied privately and not to the list, anyway heres a forward.Also just checked the /root/.smb/smb.conf reference is actually a workaround for a problem with samba's libsmbclient in the perl module Filesys::SmbClient (used by check_smb_shares.pl). Aparantly libsmbclient segfaults if it does not exist. Therefor if it does not exist the perl module Filesys::SmbClient tries to make one (an empty one) but has no permission to do so from what you wrote. I supose you could make it yourself (touch /root/.smb/smb.conf; chmod og+r /root/.smb/smb.conf). Maybe that will solve your issues with that particular check allowing you to use it to monitor the remote shares you spoke of
Cheers,HansOn 2/27/06, Hans Engelen <[EMAIL PROTECTED]> wrote:
For mapped drives that is quite normal since mapped drives are, barring a small number of special cases, only accessible for the user that did the actual mapping. It's the same problem you get for other NT services trying to access a drive mapping made from another user. Also most likely your pNSClient (or NC_Net or NSClient++) or whatever agent you have running on the Windows box is running under the System security setting. This security context is only valid for that windows box internally and as such has no credentials to access anything beyond that machine. This includes (but is not limited to) shares. 
Theoretically you could of course run your Nagios Agent under an actual user account, log in interactively on that same account and create a persistent mapping (net use * \\server\share /persist:yes, if memory serves) to the shares in question. Since the service will use the same profile when logging in that should solve the issue. But why even monitor a remote disk in this way. Just install the Nagios Agent on the server that houses the share and monitor it directly instead of indirectly (with all the quirks and pitfalls that come with it).
Of course in this case the check_smb_shares is a solution too. As to why it insists on writing to /root/.smb/smb.conf is a bit strange. Possibly this was defined somewhere in the check_smb_shares.pl file. Open it up in a text editor and see.
Cheers,HansCheers,HansOn 2/27/06, Ryan Wilcox <
[EMAIL PROTECTED]> wrote:
yeah... i got the same error as you did with a mapped drive. we aren'tmonitoring any mapped drives right now, hence the confusion.
not sure about the mapped drives... anyone else have an idea for josh?>> -Original Message->> From: Josh [mailto:
[EMAIL PROTECTED]]>> Sent: Monday, February 27, 2006 11:38 AM
>> To: Ryan Wilcox; nagios-users@lists.sourceforge.net>> Subject: RE: [Nagios-users] Monitor Fileserver
>>>> Hmm...  Got it working for local drives on the windows
>> box but I get an "Invalid drive" error from the>> check_nt script when I check a drive that is mapped.>> Any way to check networked drives on that windows box?>>  Or will I have to go with nrpe checks for that?
>>>> --- Ryan Wilcox <[EMAIL PROTECTED]> wrote:>>>> > actually i am using check_nt right from the nagios
>> > (fedora core 4) box.
>> >>> > ./check_nt -H 10.0.0.32 -v USEDDISKSPACE -lc -w 75>> > -c 90>> >
>> > output looks like:>> >>> > c:\ - total: 
74.52 Gb - used: 52.98 Gb (71%) - free>> > 21.54 Gb (29%) |>> > 'c:\ Used Space'=52.98Gb;55.89;67.07;0.00;74.52>> >>> >>> >>> > >> -Original Message-
>> > >> From: Josh [mailto:[EMAIL PROTECTED]]>> > >> Sent: Monday, February 27, 2006 10:57 AM
>> > >> To: Ryan Wilcox;>> > 
nagios-users@lists.sourceforge.net>> > >> Subject: RE: [Nagios-users] Monitor Fileserver
>> > >>>> > >> I'm assuming you are using NRPE and executing the
>> > >> check_nt_disk from a windows machine...  I might>> > end>> > >> up doing that.>> > >>>> > >> I was attempting to use smb checks directly from
>> > the>> > >> linux box running Nagios.>> > >>>> > >>>> > >>>> > >> --- Ryan Wilcox <

[EMAIL PROTECTED]> wrote:>> > >>>> > >> >>> > >> >>> > >> > >> -Original Message->> > >> > >> From:
>> > [EMAIL PROTECTED]>> > >> > [mailto:
nagios-users->> > >> > >> 
[EMAIL PROTECTED]] On Behalf Of>> > Josh>> > >> > >> Sent: Monday, February 27, 2006 10:19 AM
>> > >> > >> To: 
nagios-users@lists.sourceforge.net>> > >> > >> Subject: [Nagios-users] Monitor Fileserver
&g

Re: [Nagios-users] Nagios VM Player?

2006-02-25 Thread Hans Engelen
I have to agree with Brian here.
 
The timedrift issue is present on VMware too. There are a fair number of documents on the matter on the VMware site and it is a major showstopper indeed. Possibly they will get this fixed and sorted out someday but I don't think they are quite there yet. The latency issue is a problem too on vmware. That being said the VMware player is a good way of demonstrating a Nagios setup. It just is not a good production/permanent solution. 
 
I am not sure I understand where your problem lies though. I am guessing it lies with the installation of the OS and Nagios & Co by non-linux-familiars. A better choice in this case might be to prepare a fully setup image that has everything presetup for them. Something along the lines of a Ghost image maybe. Maybe even a live-cd that keeps it's configs on say a USB-stick (a old 32mb stick would be more then enough) or even a floppy disk (if theres not too much to monitor). The latter would even make it really easy for you to send them updates. Just prepare a new Live-CD with the latest Nagios/Plugins/Graphical Nagios Config tools and they would be all sorted out. You could even go sofar as to actually make the whole Linux/Nagios install live on a USB stick of 128 or 256 mb. Most recent machines can boot from USB sticks too now and I have one like it for whenever I want to boot my PC at work into a linux OS. This way you could have them use a cheap diskless machine even which could run extremely silently.

 
As you can see, plenty of options that don't have to cost much at all. VMware is nice in that way that it does complete hardware abstraction but it's not that much of a problem anyway on Linux. Most hardware is automatically detected and setup already and the few things that are not can easily be reconfigured. In fact on live-cd's like Knoppix and DamnSmallLinux even that is done automatically (think of the X server config).

 
Come to think about it, EchelonLinux (based on DamnSmallLinux) already has Nagios on-board as a live-cd (along with a few other network tools). It might not be exactly what you need but would probably be a good start with minimal modification needed to suit your goal.

 
Cheers,
Hans 
On 2/25/06, Brian Desmond <[EMAIL PROTECTED]> wrote:
I had Nagios going on a MS Virtual Server and the lack of additionscaused a lot of issues. The continuous cock drift caused false alarm
pages constantly, plugin timeouts, and other problems. VMWare with theadditions hopefully won't have this issue, but, fundamentally the VMsare prone to the same issue. I was also seeing much higher pinglatencies (5ms vs .5 ms generally). Moved to a piece of hardware and
works fine now.Thanks,Brian Desmond[EMAIL PROTECTED]c - 312.731.3132


Re: [Nagios-users] Nagios VM Player?

2006-02-25 Thread Hans Engelen
Hehe,
 
shoulda googled some before I replied, heres an even better idea maybe. Live-CD too, complete with a nagios config tool (nag2web) to configure nagios via webpages. Iso to be had here : 
http://nag2web.de/index.php?page=85 .. they are making VMware images soon too they say so :). Only thing is it seems to be german in origina and I have tested it yet to see if there is an english set too. Still it shows exactly what I meant.

 
Cheers, 


Re: [Nagios-users] Question: is there any interest in a WMI client for Linux?

2006-02-15 Thread Hans Engelen
Well in terms of need, I have (and I am sure there are others, seen messages to that effect pass the mailing lists on a regular basis) a defenite need to also monitor more then WMI provides and for that matter check_nt does not have either. I am sure there are many such things but these are high on my list right now :
- Monitor file sizes (got a couple of processes that dare write transaction logs that sometimes go up to 2 GB in a matter of days at which point the 2 GB filesize problem on Windows causes the application to die a horrible death)
- Monitor Directory Sizes (not so much for me but saw that pass by on the list a few days ago)- File Age (nc_net has this) to detect hanging processes for example.- Log parser with a read-mark (so it only reads new lines since last check). Mind you not clear on how to work this into Nagios. I mean, I would want to have nagios monitor a log file for say an error like 'ORA-x no active database connection' (or whatever the exact error is) and raise an alert at that point. What I am not sure about is how to then let Nagios know the error has been fixed. I suppose I coul parse the whole log every time and archive logs when I restart the process at which point the ORA-x would no longer be present in the log but the problem is these logs are huge and would probably constitute a huge performance hit if read completely on a regular basis. It's a tricky one.
Either way unless I am mistaken these things are not easily done in WMI if they are even possible at all. But there is no denying that WMI gives you access to a wealth of information. It will be interesting to see how you do it though. Securitywise it seems like a challenge for sure.  And performance wise it is not easy either. Count me in though if you want it tested.
Cheers.HansOn 2/14/06, Ron Gage <[EMAIL PROTECTED]> wrote:
Quoting Ryan Wilcox <[EMAIL PROTECTED]>:> ron... it is understood that WMI would give users the ability to go way> above and beyond the 'check_nt' command... what other capability are you
> interested in building in that 'check_nt' doesn't provide? From a monitoring perspective, what more would you need than WMI?  You getdirect access to the perfmon counters and hardware enumeration.  You can even
enumerate services and their state via WMI (the Win32_BaseService object).


Re: [Nagios-users] Question: is there any interest in a WMI client for Linux?

2006-02-14 Thread Hans Engelen
Is that a trick question :-) ? Short answer : Oooh yeah.Cheers.On 2/14/06, Ron Gage <[EMAIL PROTECTED]
> wrote:Hi everyone:I am thinking about writing a WMI (Windows Management Instrumentation) client
for Linux. Would there be any interest in such a program?


Re: [Nagios-users] Subdirectories in Nagios installation dir.

2006-02-14 Thread Hans Engelen
On 2/14/06, Jim Perrin <[EMAIL PROTECTED]> wrote:
On 2/14/06, Toby Kraft <[EMAIL PROTECTED]> wrote:> Replace the "$releasever" with "3"So is working in the IT sector right now (at least in Europe) yet ..
Have had to do the same thing too on a number of occasions. Beats me why though.Cheers.


Re: [Nagios-users] I have a problem!!! Help

2006-02-14 Thread Hans Engelen
I have to go with Thomas here, my money is on SElinux. I had the worst time with that on my RHEL4 setup. The premature end of headers error had me fooled for ages back then. My suggestion is, at least so you can verify and test, to turn off SElinux temporarily and see what that gives.
I am almost convinced you will find that has solved the issue. If you want to check if SELinux is enabled run 'getenforce'. This will tell you if it is. To set it to permissive (to disable it completely you need to modify /etc/grub.conf or /etc/selinux/config) temporarily use 'setenforce 0'. Please note however this is only temporary and will not survive a reboot. If memory serves there is an audit log for SELinux somewhere too but since I do not use SELinux I must admit I am not sure where exactly that lives. I believe the tool 'seaudit' allows you to examine the log too and even gives you a peek on the policy enforced. My apologies if my explanation is not more descriptive. I decided long ago that SELinux was not something I was willing to endure on my systems since they are used too extensivly for testing purposes and SELinux slowed me down way too much.
Hope it helps,Cheers.On 2/13/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:Do your cgis live in this directory? (/usr/lib/nagios/cgi/)
Does the apache user have full access to the directory (for test)?Are you running SE linux?Thomas ZimmerProduktservice & BetriebBetrieb & SupportSal. Oppenheim jr. & Cie., Frankfurt a. Main
Telefon: +49 69 7134 5192Internet: http://www.oppenheim.deE-Mail: [EMAIL PROTECTED]-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]
] Im Auftrag von João PauloVazGesendet: Montag, 13. Februar 2006 16:06An: nagios-users@lists.sourceforge.netBetreff: RE: [Nagios-users] I have a problem!!! Help
This my configuration file:ScriptAlias /nagios/cgi-bin /usr/lib/nagios/cgiOptions ExecCGIAllowOverride NoneOrder allow,deny
Allow from allAlias /nagios /usr/share/nagiosOptions NoneAllowOverride NoneOrder allow,denyAllow from all
João Paulo Vaz-Original Message-From: [EMAIL PROTECTED][mailto:
[EMAIL PROTECTED]] On Behalf Of[EMAIL PROTECTED]Sent: Monday, February 13, 2006 11:58 AMTo: 
[EMAIL PROTECTED]; nagios-users@lists.sourceforge.netSubject: RE: [Nagios-users] I have a problem!!! Help Could you show us what your apache configuration file looks like as well.
What does the ScriptAlias section look like for your Nagios install?> -Original Message-> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf> Of Marc Haber> Sent: February 13, 2006 9:52 AM> To: 
nagios-users@lists.sourceforge.net> Subject: Re: [Nagios-users] I have a problem!!! Help>> On Mon, Feb 13, 2006 at 11:49:21AM -0300, João Paulo Vaz wrote:> > [Mon Feb 13 12:24:40 2006] [error] [client 
200.252.90.21]> > (13)Permission> > denied: exec of '/usr/lib/nagios/cgi/extinfo.cgi' failed, referer:> > 
http://200.252.90.27/nagios/side.html[Mon Feb 13 12:24:40 2006]> > [error]>> Looks like a permission problem on /usr/lib/nagios/cgi/extinfo.cgi.>> Sheesh.>> Greetings
> Marc>> --> --> ---> Marc Haber | "I don't trust Computers. They |> Mailadresse im Header
> Mannheim, Germany  |  lose things."Winona Ryder | Fon:> *49 621 72739834> Nordisch by Nature |  How to make an American Quilt | Fax:> *49 621 72739835>>> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep> through log files> for problems?  Stop!  Download the new AJAX search engine that makes> searching your log files as easy as surfing the  web.
> DOWNLOAD SPLUNK!> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642> ___
> Nagios-users mailing list> Nagios-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: 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: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reportingany issue.::: Messages without supporting info will risk being sent to /dev/null---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your

Re: [Nagios-users] check_mem giving wrong values

2006-02-04 Thread Hans Engelen
Seems correct to me or am I missing the point.
Mind you  the 11 % is not counting what is used up for buffers and cache.
So if you look at the second line of your result from free you will see 54168 used which is your 11 % (before some hefty rounding). Note that the first line of free gives you the amount of mem used for caching and buffers on top of what applications use to come to a grand total of 253588 mem used. I am guessing thats the value you are looking at and thats what got you confused.

 
Cheers,
Hans 
On 2/4/06, Dirk H. Schulz <[EMAIL PROTECTED]> wrote:
Hi folks,> OK: 11% Used Memory | MemUsed=11%;70;90So 11 % of used memory? Now that is what free offers:
> Mem:515892 253588 262304  0  78564 120856> -/+ buffers/cache:  54168 461724


Re: [Nagios-users] [Announce] Nagios_Simple_Report on NagiosExchange/CPAN.

2006-01-20 Thread Hans Engelen
Ok,
 
this is pretty nice ... 
 
I was infact brainstorming on a similar thing albeit more centered around perfparse.
 
As for reporting from DB's ... aside from http://reportman.sourceforge.net I have yet to find a decent tool capable of mining MySQL. Anyone got any suggestions ?

 
Thanks.
Hans 
On 1/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
Dear Folks,I am writing to announce that Nagios::Report, a Perl module to mungedata from the Nagios all hosts/services availability report is on CPAN
and NagiosExchange(where it is called Nagios_Simple_Report).


Re: [Nagios-users] Nagios and a Microsoft "cluster"

2005-12-15 Thread Hans Engelen
Could you provide a little more information on the issue at hand ?
 
A short description of your setup would help. We are defenitly talking about clustering here right, not load balancing ? The double ping response issue sounds more like a load balancing issue. 
 
Cheers,
Hans 
On 12/8/05, Bill Mathews <[EMAIL PROTECTED]> wrote:
We are trying to monitor (with Nagios, of course) a Microsft web serverset up in a Microsoft "clustered" environment. We have a couple of
issues, one is that when try to ping the cluster address we seeduplicate ping responses:64 bytes from www.example.com (1.2.3.4): icmp_seq=3 ttl=116 time=
32.5 ms64 bytes from www.example.com (1.2.3.4): icmp_seq=3 ttl=116 time=32.8 ms(DUP!)The other issue is that routinely (a few times a day) this site shows as
down, even though it isn't (confirmed through observation). I amsomewhat unfamiliar with MS-Clustering but from the description on theirwebsite it's a lot like any other kind of clustering (we monitor a lot
of clusters). Anyone every see anything similar? I have some theoriesbut none really make a lot of sense in any cluster I am familiar with.Thanks in advance for any assistance.Bill---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null