Re: [Nagios-users] OS & Application version information

2008-09-27 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

adam brooke wrote:
> Is is possible to use Nagios to audit server OS and Apllication release 
> versions?

Please explain what you mean by audit. Because in my book audit has
little to do with a monitoring tool like Nagios.

But then again you may understand audit differently.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFI3qYHBvzDRVjxmYERAlEdAKC3mItr8coml0VpnirEM3rj6YGRowCfUjbZ
vx1k3uuCXQPhrYjc4ZEcSq8=
=URg4
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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 monitor databases on windows through nagios`

2008-09-27 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 18 Sep 2008 18:55:03 +0530, [EMAIL PROTECTED] wrote:

>Hi All,
>
>I've installed nagios 3.0 server on red hat linux and monitoring windows
>boxes  by installng nsclient++ add on. I was able to install and configure
>fine on win box, now all c drive and memory paramters are showing on nagios
>interface for windows. my question is how do we monitor oracle database and
>it's services on windows box through nsclient?

How good are you at writing scripts?  I'd imagine it probably wouldn't
be too difficult to cobble together a small batch script that calls
the oracle client to do some tests.  Or, even writing something in VBS
to build a client connection using ODBC.

I don't have Oracle, and my VBS is rusty... but something like this
would probably be a basis:

<%
On Error Goto ErrHandler

ConStr = "DRIVER={Microsoft ODBC for Oracle};SERVER=oracle_server;User
Id=user;Password=password;"

set Conn = CreateObject("ADODB.Connection")
Conn.Open ConStr

ErrHandler:
  Print "Something Bad Happened"
  exit 1
%>


Then you call that script from nsclient++.. 


A more complex example can be found here [1]. But googling around
you'll probably find some easy to understand examples to get you
going.  If you read over the check_oracle client, you should be able
to see what it's doing, and duplicate the behavior in the script. 
That is assuming the code cannot be "ported" to windows.


[1]:
http://www.idevelopment.info/data/Oracle/DBA_scripts/WINDOWS_Shell_Scr
ipts/oracle_ADO_example.vbs

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjemP4ACgkQK4PoFPj9H3NQnACggWkyNjuQEG98b9SbUgtp81zz
5hcAoNDj4O9d/R1ORoD5TetsDbnajUNe
=iHS4
-END PGP SIGNATURE-


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] OS & Application version information

2008-09-27 Thread Jon Angliss
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 24 Sep 2008 13:48:00 +, adam brooke
<[EMAIL PROTECTED]> wrote:

>
>Is is possible to use Nagios to audit server OS and Apllication release 
>versions?

It entirely depends on what platforms/software you plan on monitoring.

>If so are there plugins already written for this purpose?

As Brian suggested, SNMP can certainly be used.  Custom scripts might
be required for other stuff.  There is a check_yum, and check_deb
plugins (see Nagios Exchange [1]), for example.  A custom WMI script
could be written for windows [2].  There are certainly some solutions
already floating about, you might just have to play with them a bit.


[1]: http://www.nagiosexchange.org
[2]:
http://www.microsoft.com/technet/scriptcenter/scripts/apps/user/usapvb
11.mspx

- -- 
Jon Angliss

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkjelKMACgkQK4PoFPj9H3NyKwCg6P04RWNyHjO9tZaTNfICIgfd
LjUAn0Cmt+ZYgDP0H2+u/HKetBk0ghUd
=wdH4
-END PGP SIGNATURE-


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] Database based nagios configuration

2008-09-27 Thread [EMAIL PROTECTED]
Hello List,

we are a little ISP and we have currently nagio3 with normal config files.

Now we would like to automake some tasks such as adding/cloning/copying 
a host or something.

Is there a way to use a (mysql) database as configuration source? Then 
we could code some GUI which will cover our main tasks and scripts :)

Thanks,
Mario

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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