Re: [Nagios-users] submit_check_result always critical

2007-11-13 Thread Robert Gil
Getting a similar error. Still critical every time.


Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!)
Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection...
Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5',
Service Description: 'Time', Return Code: '2', Output: '(No output!)'
Nov 13 22:17:03 SERVER nsca[10294]: End of connection...
Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!)


define command{
command_namesubmit_check_result
command_line
/usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$
'$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$'
}


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Tuesday, November 13, 2007 6:19 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] submit_check_result always critical



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Robert Gil
> Sent: Tuesday, November 13, 2007 3:34 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] submit_check_result always critical
> 
> I am setting up a distributed nagios environment for the first time
and
> have come into a couple road blocks.
> 
> 
> 
> For some reason the passive checks always come back as critical. From
the
> command line they show correctly. Also the $OUTPUT$ variable does not
> appear to return any information in the submit_check_result script. I
got
> the script out of the documentation. Perhaps the variable is
incorrect?

Looks to me like you might have been referencing the 1.0 documentation
($OUTPUT$ is a 1.x only macro). The 2.0 documentation on Distributed
Monitoring uses the correct macros.

http://nagios.sourceforge.net/docs/2_0/distributed.html

--
Marc



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Need help setting up NODUtils with Postgres

2007-11-13 Thread Yana Millis
Hello!
I've grabbed the postgres version of NDOUtils from nagios exchange
(http://www.nagiosexchange.org/Utilities.16.0.html?&tx_netnagext_pi1%5Bp_view%5D=1131)
I've no idea whether this stuff is stable but I thought I'd giv it a
go, and when
trying to run ./configure, I keep getting the following error:
. . .
MySQL library and include file(s) were found!
checking for PQconnectdb in -lpq... yes
checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no

*** PostgreSQL include file could not be located... 

You chose to compile NDBXT with PostgreSQL support, but I was unable
to locate  on your system.  If the include file is
installed, use the --with-pgsql-inc argument to specify the location
of the PostgreSQL include file.



I've also tried to configure it, as suggested, with
 ./configure --with-pgsql-inc=/usr/include
and ensured that libpq-fe.h is indeed in /usr/include,
and its permissions are rwxrwxrwx,
but I still keep getting the PostgreSQL include file could not be
located error (???)...which is really weird...
Does anyone have any suggestions for me ?

Thank you,

--yana

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] submit_check_result always critical

2007-11-13 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Robert Gil
> Sent: Tuesday, November 13, 2007 3:34 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] submit_check_result always critical
> 
> I am setting up a distributed nagios environment for the first time
and
> have come into a couple road blocks.
> 
> 
> 
> For some reason the passive checks always come back as critical. From
the
> command line they show correctly. Also the $OUTPUT$ variable does not
> appear to return any information in the submit_check_result script. I
got
> the script out of the documentation. Perhaps the variable is
incorrect?

Looks to me like you might have been referencing the 1.0 documentation
($OUTPUT$ is a 1.x only macro). The 2.0 documentation on Distributed
Monitoring uses the correct macros.

http://nagios.sourceforge.net/docs/2_0/distributed.html

--
Marc


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Authentication question

2007-11-13 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Palle L Jensen
> Sent: Tuesday, November 13, 2007 3:11 PM
> To: Nagios Users
> Subject: [Nagios-users] Authentication question
> 
> Hi All,
> 
> 
> 
> We have it setup to use login name and password in order to see Nagios
Web
> interface, and I want to remove that and then still be able to execute
the
> cgi commands.
> 
> Is it possible to remove the authentication and still be able to use
the
> Cgi commands in Nagios?

See the default_user_name directive in cgi.cfg.

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] submit_check_result always critical

2007-11-13 Thread Robert Gil
I am setting up a distributed nagios environment for the first time and
have come into a couple road blocks.

 

For some reason the passive checks always come back as critical. From
the command line they show correctly. Also the $OUTPUT$ variable does
not appear to return any information in the submit_check_result script.
I got the script out of the documentation. Perhaps the variable is
incorrect?

 

Here is an example of the email output.

 

 

* Nagios 2.10 *

 

Notification Type: PROBLEM

 

Service: Load

Host: Unix Server #rem5

Address: xxx.xxx.xxx.xxx

State: CRITICAL

 

Date/Time: Tue Nov 13 16:32:01 EST 2007

 

Additional Info:

 

OUTPUT

 

 

As you can see above this is version 2.10 using nsca version 2.7.2.

 

Any help would be greatly appreciated. 

 

Thanks,

Rob

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Were can I find the check_snmp plugin

2007-11-13 Thread Tim Palmer
Hugo van der Kooij wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> [EMAIL PROTECTED] wrote:
>> I have tons of snmp plugins in this folder, but my routers, which allow
>> snmp will not run these two snmp service check:
>>
>> They are as follows, and it keeps telling me that it is missing the plug
>> in.
>>
>> http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555
>>
>> Here is were I pulled the plug-in and then extracted it's contents into the
>> libexec folder.  Next I stopped and restarted Nagios.  Then logged into
>> Nagios and the errors were still there.  So next I restarted my entire
>> server and followed the process and again it was still the errors are still
>> there.  Could it be that I am using UBUNTU Linux and maybe I should go with
>> redhat or debian?
> 
> Please do not apply windows procedures in a unix environment. Work the
> problem. Solve it step by step. Pay attention to the exact responses and
> the exact commands.
> 
>  1. Can you run access the router with SNMP at all? Test with snmpwalk.
> (Known obstacles: firewalls, community strings ,)
> 
>  2. Can you run the plugin by hand? Test all the options you want to use
> in nagios manualy first. Make sure you test this sucesfully as the user
> that the nagios process runs as.
> 
>  3. Now try to build the most simple service definition and try within
> Nagios.
> 
> If you have further question please document your attempts and show
> which steps you have taken.
> 
> 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)
> 
> iD8DBQFHOhG+BvzDRVjxmYERAlKbAJ99IcW/8M7GVB9X7scZcoiJN1QjXQCfXXg4
> S/eP300ysm/IBOlOeTHBBzM=
> =jvd/
> -END PGP SIGNATURE-
> 

Chris - Before you do anything, make sure you have the net-snmp package 
installed (look for snmpwalk in /usr/local/bin or suchlike). No snmp 
plugin will work without it (that I'm aware of anyway).

I might also suggest you investigate Groundwork - it takes some of the 
manual work out of configuring/using Nagios. It still requires 
understanding Nagios, and I'm sure its a bit of work to get started, but 
in the long run, you'll see web pages for configuration instead of text 
files, and it tries to make things a little simpler.

: I have only set up the configuration GUI for others, and 
haven't used the whole package, so I'm not speaking from experience. Not 
sure what its "free-ness" status is either...

tim



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Authentication question

2007-11-13 Thread Palle L Jensen
Hi All,

 

We have it setup to use login name and password in order to see Nagios Web
interface, and I want to remove that and then still be able to execute the
cgi commands.

Is it possible to remove the authentication and still be able to use the Cgi
commands in Nagios?

I have read the manual, but it doesn't seem to work.

I am running Nagios 2.9 on Fedora Core 6.

 

Thanks,

Palle

 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Were can I find the check_snmp plugin

2007-11-13 Thread Christy . New
Please do not apply windows procedures in a unix environment. Work the
problem. Solve it step by step. Pay attention to the exact responses and
the exact commands.HOW AM CAN I TELL IF I AM RUNNING WINDOWS PROCEDURES IN
A LINUX ENVIRONMENT.  THESE WERE (.TAR.GZ)PLUGINS.  CAN YOU EXPLAIN WHY YOU
THOUGHT THIS

 1. Can you run access the router with SNMP at all? Test with snmpwalk.
(Known obstacles: firewalls, community strings ,)THIS IS GOOD, BECAUSE
I USE SNMP ON MY DEVICES ALREADY FOR OTHER UTILITIES THAT I USE.

 2. Can you run the plugin by hand? Test all the options you want to use
in nagios manualy first. Make sure you test this sucesfully as the user
that the nagios process runs as.  WHEN YOU SAY BY HAND, I HAVE NO IDEA WHAT
YOU MEAN.  I AM NO GOOD WITH COMMAND AND USE THE GNOME FOR MOST OF MY
EDITING.  I DON'T USE THE VI EDITOR MUCH

 3. Now try to build the most simple service definition and try within
Nagios.  MRTG I JUST DISCOVERED I DO NOT USE ON MY DEVICES SO I JUST
REMOVED IT, BUT STILL THE SNMP PLUGINS ARE STILL NOT WORKING AND NAGIOS
GIVES ME A RESPONSE BACK OF "PLUGIN MISSING"

THANKS HUGO APPRIECIATE YOUR GUIDANCE.

Very Respectfully,
Chris


   
 Hugo van der  
 Kooij 
 <[EMAIL PROTECTED]  To 
 ooij.org> Nagios Users Mailinglist
 Sent by: 
 [EMAIL PROTECTED]  cc 
 orge.net  
   Subject 
   Re: [Nagios-users] Were can I find  
 11/13/2007 04:07  the check_snmp plugin   
 PM
   
   
   
   
   




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
> I have tons of snmp plugins in this folder, but my routers, which allow
> snmp will not run these two snmp service check:
>
> They are as follows, and it keeps telling me that it is missing the plug
> in.
>
>
http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555
>
> Here is were I pulled the plug-in and then extracted it's contents into
the
> libexec folder.  Next I stopped and restarted Nagios.  Then logged into
> Nagios and the errors were still there.  So next I restarted my entire
> server and followed the process and again it was still the errors are
still
> there.  Could it be that I am using UBUNTU Linux and maybe I should go
with
> redhat or debian?

Please do not apply windows procedures in a unix environment. Work the
problem. Solve it step by step. Pay attention to the exact responses and
the exact commands.

 1. Can you run access the router with SNMP at all? Test with snmpwalk.
(Known obstacles: firewalls, community strings ,)

 2. Can you run the plugin by hand? Test all the options you want to use
in nagios manualy first. Make sure you test this sucesfully as the user
that the nagios process runs as.

 3. Now try to build the most simple service definition and try within
Nagios.

If you have further question please document your attempts and show
which steps you have taken.

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)

iD8DBQFHOhG+BvzDRVjxmYERAlKbAJ99IcW/8M7GVB9X7scZcoiJN1QjXQCfXXg4
S/eP300ysm/IBOlOeTHBBzM=
=jvd/
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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
repo

Re: [Nagios-users] Were can I find the check_snmp plugin

2007-11-13 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
> I have tons of snmp plugins in this folder, but my routers, which allow
> snmp will not run these two snmp service check:
> 
> They are as follows, and it keeps telling me that it is missing the plug
> in.
> 
> http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555
> 
> Here is were I pulled the plug-in and then extracted it's contents into the
> libexec folder.  Next I stopped and restarted Nagios.  Then logged into
> Nagios and the errors were still there.  So next I restarted my entire
> server and followed the process and again it was still the errors are still
> there.  Could it be that I am using UBUNTU Linux and maybe I should go with
> redhat or debian?

Please do not apply windows procedures in a unix environment. Work the
problem. Solve it step by step. Pay attention to the exact responses and
the exact commands.

 1. Can you run access the router with SNMP at all? Test with snmpwalk.
(Known obstacles: firewalls, community strings ,)

 2. Can you run the plugin by hand? Test all the options you want to use
in nagios manualy first. Make sure you test this sucesfully as the user
that the nagios process runs as.

 3. Now try to build the most simple service definition and try within
Nagios.

If you have further question please document your attempts and show
which steps you have taken.

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)

iD8DBQFHOhG+BvzDRVjxmYERAlKbAJ99IcW/8M7GVB9X7scZcoiJN1QjXQCfXXg4
S/eP300ysm/IBOlOeTHBBzM=
=jvd/
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring a process

2007-11-13 Thread Jerad Riggin
Just to clarify

normal_check_interval   60
retry_check_interval360
notification_interval   360

This means that it checks every hour.  After it fails the first time,
it will wait 6 hours to retry, if it is still not OK after 6 hours, it
notifies and begins to notify every 6 hours until it's ok.

On Nov 13, 2007 3:00 PM, Rich Sasko <[EMAIL PROTECTED]> wrote:
> It only notifies after it enters a hard state which is usually after the
> third try.
>
> Richard Sasko
> Niagara Lasalle Corp
> Phone: (219) 853-6272
> Mobile: (219) 484-5617
> E-mail: [EMAIL PROTECTED]
>
>
>
> -Original Message-
> From: Jerad Riggin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 13, 2007 2:54 PM
> To: Rich Sasko
> Subject: Re: [Nagios-users] Monitoring a process
>
> Thanks for the response.  This is what I did just a bit ago.  I have
> it successfully monitoring outlook.exe, however no e-mails are being
> sent when it's critical.
>
> Here is what I have as the service definition:
>
> define service{
>use leadlander
>host_name   leadlandervm
>service_description Outlook Process
>contact_groups  bo,mis
>notification_optionsw,u,c,r
>check_command   check_nt2!PROCSTATE!-d SHOWALL -l
> outlook.exe
>}
>
> Here is what I have for the leadlander template
>
> define service{
>use generic-service
>nameleadlander
>is_volatile 0
>check_period24x7
>max_check_attempts  15
>normal_check_interval   20
>retry_check_interval20
>notification_interval   20
>notification_period 24x7
>register0
>}
>
> Does it only notify after the first retry failure, or should it notify
> as soon as the service is critical?  Any ideas?
>
>
> On Nov 13, 2007 2:39 PM, Rich Sasko <[EMAIL PROTECTED]> wrote:
> >
> > Jerad Riggin  gmail.com> writes:
> >
> > >
> > > Would it be possible using Nsclient++ to monitor for a process name?
> > > We need to make sure Outlook.exe is running on the server and if it
> > > isn't, send out notifications.
> > >
> > > Thanks,
> > >
> > > Jerad
> > >
> > >
> 
> -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > ___
> > > 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
> > >
> > >
> >
> >
> > Jerad,
> >
> > We have the NSClient++ running on our Windows servers and the
> following
> > service check is an example of how we are monitoring services from the
> nagios
> > server:
> >
> > define service{
> > use   generic-service
> > host_name email server
> > service_description   explorer
> > check_command check_nt!PROCSTATE!-d SHOWALL -l
> explorer.exe
> > }
> >
> > It is actually in one of the sample config files, you should just have
> to tell
> > it what process you want to watch.
> >
> >
> >
> 
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > 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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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 inf

Re: [Nagios-users] Monitoring a process

2007-11-13 Thread Jerad Riggin
Thanks for the response.  This is what I did just a bit ago.  I have
it successfully monitoring outlook.exe, however no e-mails are being
sent when it's critical.

Here is what I have as the service definition:

define service{
   use leadlander
   host_name   leadlandervm
   service_description Outlook Process
   contact_groups  bo,mis
   notification_optionsw,u,c,r
   check_command   check_nt2!PROCSTATE!-d SHOWALL -l outlook.exe
   }

Here is what I have for the leadlander template


define service{
   use generic-service

   nameleadlander
   is_volatile 0
   check_period24x7
   max_check_attempts  15
   normal_check_interval   20
   retry_check_interval20
   notification_interval   20
   notification_period 24x7
   register0
   }

Does it only notify after the first retry failure, or should it notify
as soon as the service is critical?  Any ideas?

- Show quoted text -

On Nov 13, 2007 2:39 PM, Rich Sasko <[EMAIL PROTECTED]> wrote:
>
> Jerad Riggin  gmail.com> writes:
>
> >
> > Would it be possible using Nsclient++ to monitor for a process name?
> > We need to make sure Outlook.exe is running on the server and if it
> > isn't, send out notifications.
> >
> > Thanks,
> >
> > Jerad
> >
> > -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > 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
> >
> >
>
>
> Jerad,
>
> We have the NSClient++ running on our Windows servers and the following
> service check is an example of how we are monitoring services from the nagios
> server:
>
> define service{
> use   generic-service
> host_name email server
> service_description   explorer
> check_command check_nt!PROCSTATE!-d SHOWALL -l explorer.exe
> }
>
> It is actually in one of the sample config files, you should just have to tell
> it what process you want to watch.
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Were can I find the check_snmp plugin

2007-11-13 Thread Christy . New
I have tons of snmp plugins in this folder, but my routers, which allow
snmp will not run these two snmp service check:

They are as follows, and it keeps telling me that it is missing the plug
in.

http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1[p_view]=555

Here is were I pulled the plug-in and then extracted it's contents into the
libexec folder.  Next I stopped and restarted Nagios.  Then logged into
Nagios and the errors were still there.  So next I restarted my entire
server and followed the process and again it was still the errors are still
there.  Could it be that I am using UBUNTU Linux and maybe I should go with
redhat or debian?


Very Respectfully,
Christy M. New
1(404)327-6490
American Cancer Society
Corporate IT-NHO NOC
Network Infrastructure Engineer


   
 "Valdinger,   
 Stephen (DOV, 
 MSX)"  To 
 <[EMAIL PROTECTED] <[EMAIL PROTECTED]>,   
 em.com>  
 11/13/2007 02:46   cc 
 PM
   Subject 
   RE: [Nagios-users] Were can I find  
   the check_snmp plugin   
   
   
   
   
   
   




Check_snmp is a standard plugin found in the Nagios Plugins package. If
you have downloaded these, then you already have it in your
/usr/local/Nagios/libexec (or wherever you installed Nagios, this is
just the default).

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 13, 2007 2:37 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Were can I find the check_snmp plugin


I need to download the check_snmp plugin for Ubuntu for Nagios.

Very Respectfully,
Chris



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring a process

2007-11-13 Thread Rich Sasko
Jerad Riggin  gmail.com> writes:

> 
> Would it be possible using Nsclient++ to monitor for a process name?
> We need to make sure Outlook.exe is running on the server and if it
> isn't, send out notifications.
> 
> Thanks,
> 
> Jerad
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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
> 
> 


Jerad,

We have the NSClient++ running on our Windows servers and the following 
service check is an example of how we are monitoring services from the nagios 
server:

define service{
 use   generic-service
 host_name email server
 service_description   explorer
 check_command check_nt!PROCSTATE!-d SHOWALL -l explorer.exe
}

It is actually in one of the sample config files, you should just have to tell 
it what process you want to watch.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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.log format

2007-11-13 Thread Kuang-Chun Cheng
Hi Marc,

Thanks, this is good enough for me :-)

Regards
KC

On Nov 14, 2007 12:56 AM, Marc Powell <[EMAIL PROTECTED]> wrote:
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Kuang-Chun Cheng
> > Sent: Tuesday, November 13, 2007 10:33 AM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] nagios.log format
> >
> > Hi,
> >
> > I want to do post-analysis of nagios.log and save the filtered result
> to
> > DB.
> > The format look like this:
>
>
> >
> > Could someone tell me what's the fields means ?
> > What kind of message will be log into nagios.log.   Sometime I found
> > "SERVICE ALERT" message ...
> > any complete list existed for possible message ?  Thanks
>
> The only documentation I am aware of is the source code itself
> (nagios-src/base/logging.c). For anything that starts with MACRO_, you
> can find more information about that in the Macros documentation. --
>
> $ grep snprintf logging.c
> snprintf(temp_buffer,sizeof(temp_buffer),"SERVICE ALERT:
> %s;%s;%s;%s;%s;%s\n",svc->host_name,svc->description,macro_x[MACRO_SERVI
> CESTATE],macro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],s
> vc->plugin_output);
>
> [timestamp] SERVICE ALERT:
> host_name;service_description;servicestate,servicestatetype,serviceattem
> pt;plugin_output
>
> snprintf(temp_buffer,sizeof(temp_buffer),"HOST ALERT:
> %s;%s;%s;%s;%s\n",hst->name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTS
> TATETYPE],macro_x[MACRO_HOSTATTEMPT],hst->plugin_output);
>
> [timestamp] HOST ALERT:
> host_name,hoststate;hoststatetype;hostattempt;plugin_output
>
> snprintf(temp_buffer,sizeof(temp_buffer),"%s HOST STATE:
> %s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_host->
> name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTSTATETYPE],macro_x[MACRO
> _HOSTATTEMPT],temp_host->plugin_output);
>
> [timestamp] (INITIAL|CURRENT) HOST STATE:
> host_name;hoststate;hoststatetype;hostattempt;plugin_output
>
> snprintf(temp_buffer,sizeof(temp_buffer),"%s SERVICE
> STATE:
> %s;%s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_ser
> vice->host_name,temp_service->description,macro_x[MACRO_SERVICESTATE],ma
> cro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],temp_service
> ->plugin_output);
>
> [timestamp] (INITIAL|CURRENT) SERVICE STATE:
> host_name;service_description;servicestate;servicestatetype;serviceattem
> pt;plugin_output
>
> snprintf(temp_buffer,sizeof(temp_buffer),"LOG ROTATION:
> %s\n",method_string);
>
> [timestamp] LOG ROTATION (daily|weekly|monthly, etc)
>
> snprintf(temp_buffer,sizeof(temp_buffer),"LOG VERSION:
> %s\n",LOG_VERSION_2);
>
> [timestamp] LOG VERION: [log version string]
>
> Hth,
>
> --
> Marc
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring a process

2007-11-13 Thread Bill Omer
On Nov 13, 2007 2:30 PM, Jerad Riggin <[EMAIL PROTECTED]> wrote:
> Would it be possible using Nsclient++ to monitor for a process name?
> We need to make sure Outlook.exe is running on the server and if it
> isn't, send out notifications.


Why not just monitor the ports to verify they are being answered?


-- 
Regards,
Bill Omer

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Were can I find the check_snmp plugin

2007-11-13 Thread Christy . New

I need to download the check_snmp plugin for Ubuntu for Nagios.

Very Respectfully,
Chris


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Monitoring a process

2007-11-13 Thread Jerad Riggin
Would it be possible using Nsclient++ to monitor for a process name?
We need to make sure Outlook.exe is running on the server and if it
isn't, send out notifications.

Thanks,

Jerad

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Old state information randomly appearing

2007-11-13 Thread Shawn Kovalchick
The hosts weren't disappearing, just showing inconsistant states.  Anyway,
that fixed the problem.  Thanks, Marc!


On 11/13/07, Marc Powell <[EMAIL PROTECTED]> wrote:
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Shawn Kovalchick
> > Sent: Tuesday, November 13, 2007 11:50 AM
> > To: Nagios Users Mailinglist
> > Subject: [Nagios-users] Old state information randomly appearing
> >
> > I have 2 hosts and 4 services that I added Friday to my nagios
> > configuration.  They were misconfigured (wrong IP addresses), and
> rightly
> > sent out notifications.  I disabled notifications and active checks
> via
> > the web interface while I was diagnosing the problem.  I fixed the
> > problems (the IP addresses) and reenabled the checks and
> notifications.
> > Now, every once in a while (roughly once per minute), the old data
> appears
> > on the tac.cgi, status.cgi, and extinfo.cgi pages.  They will show as
>
> FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21
>
> --
> Marc
>
>
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Old state information randomly appearing

2007-11-13 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Shawn Kovalchick
> Sent: Tuesday, November 13, 2007 11:50 AM
> To: Nagios Users Mailinglist
> Subject: [Nagios-users] Old state information randomly appearing
> 
> I have 2 hosts and 4 services that I added Friday to my nagios
> configuration.  They were misconfigured (wrong IP addresses), and
rightly
> sent out notifications.  I disabled notifications and active checks
via
> the web interface while I was diagnosing the problem.  I fixed the
> problems (the IP addresses) and reenabled the checks and
notifications.
> Now, every once in a while (roughly once per minute), the old data
appears
> on the tac.cgi, status.cgi, and extinfo.cgi pages.  They will show as

FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21

--
Marc


 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] no newlines in notification emails ?

2007-11-13 Thread SCHAER Frederic
Hi,

Maybe a stupid question, but did you solve the problem ?
I upgraded to nagiosb6 beta and I still get no newlines in the service
notifications (host notifications are fine)... wondering if that's me or
something else.

Cheers

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Jaimie Livingston
> Sent: Thursday, November 01, 2007 2:24 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] no newlines in notification emails ?
> 
> I had the same problem when I was testing 3.0b4 on CentOS. I thought
it was just me at the time...
> 
> 
> - Jaimie Livingston (jaimielives)
> 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Old state information randomly appearing

2007-11-13 Thread Shawn Kovalchick
Actually, the timing is a bit different than what I described below.
Refreshing once per second, I was able to determining that the correct state
shows for 5 seconds, then the incorrect state shows for 10 seconds, then the
process repeats.

On 11/13/07, Shawn Kovalchick <[EMAIL PROTECTED]> wrote:
>
> I have 2 hosts and 4 services that I added Friday to my nagios
> configuration.  They were misconfigured (wrong IP addresses), and rightly
> sent out notifications.  I disabled notifications and active checks via the
> web interface while I was diagnosing the problem.  I fixed the problems (the
> IP addresses) and reenabled the checks and notifications.  Now, every once
> in a while (roughly once per minute), the old data appears on the tac.cgi,
> status.cgi, and extinfo.cgi pages.  They will show as down/critical, and
> will have the icons for disabled notifications and disabled active checks.
> Then, moments later, they will show normal (OK state, with no icons for
> disabled notifications/checks).  I have tried purging the bad data from  the
> log files, retention.dat, etc. while the Nagios daemon was stopped, but
> the bad data still shows.  Is this a bug, or is there something I can do to
> flush this old data?
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Old state information randomly appearing

2007-11-13 Thread Shawn Kovalchick
I have 2 hosts and 4 services that I added Friday to my nagios
configuration.  They were misconfigured (wrong IP addresses), and rightly
sent out notifications.  I disabled notifications and active checks via the
web interface while I was diagnosing the problem.  I fixed the problems (the
IP addresses) and reenabled the checks and notifications.  Now, every once
in a while (roughly once per minute), the old data appears on the tac.cgi,
status.cgi, and extinfo.cgi pages.  They will show as down/critical, and
will have the icons for disabled notifications and disabled active checks.
Then, moments later, they will show normal (OK state, with no icons for
disabled notifications/checks).  I have tried purging the bad data from  the
log files, retention.dat, etc. while the Nagios daemon was stopped, but the
bad data still shows.  Is this a bug, or is there something I can do to
flush this old data?
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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.log format

2007-11-13 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Kuang-Chun Cheng
> Sent: Tuesday, November 13, 2007 10:33 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] nagios.log format
> 
> Hi,
> 
> I want to do post-analysis of nagios.log and save the filtered result
to
> DB.
> The format look like this:


> 
> Could someone tell me what's the fields means ?
> What kind of message will be log into nagios.log.   Sometime I found
> "SERVICE ALERT" message ...
> any complete list existed for possible message ?  Thanks

The only documentation I am aware of is the source code itself
(nagios-src/base/logging.c). For anything that starts with MACRO_, you
can find more information about that in the Macros documentation. --

$ grep snprintf logging.c 
snprintf(temp_buffer,sizeof(temp_buffer),"SERVICE ALERT:
%s;%s;%s;%s;%s;%s\n",svc->host_name,svc->description,macro_x[MACRO_SERVI
CESTATE],macro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],s
vc->plugin_output);

[timestamp] SERVICE ALERT:
host_name;service_description;servicestate,servicestatetype,serviceattem
pt;plugin_output

snprintf(temp_buffer,sizeof(temp_buffer),"HOST ALERT:
%s;%s;%s;%s;%s\n",hst->name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTS
TATETYPE],macro_x[MACRO_HOSTATTEMPT],hst->plugin_output);

[timestamp] HOST ALERT:
host_name,hoststate;hoststatetype;hostattempt;plugin_output

snprintf(temp_buffer,sizeof(temp_buffer),"%s HOST STATE:
%s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_host->
name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTSTATETYPE],macro_x[MACRO
_HOSTATTEMPT],temp_host->plugin_output);

[timestamp] (INITIAL|CURRENT) HOST STATE:
host_name;hoststate;hoststatetype;hostattempt;plugin_output

snprintf(temp_buffer,sizeof(temp_buffer),"%s SERVICE
STATE:
%s;%s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_ser
vice->host_name,temp_service->description,macro_x[MACRO_SERVICESTATE],ma
cro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],temp_service
->plugin_output);

[timestamp] (INITIAL|CURRENT) SERVICE STATE:
host_name;service_description;servicestate;servicestatetype;serviceattem
pt;plugin_output

snprintf(temp_buffer,sizeof(temp_buffer),"LOG ROTATION:
%s\n",method_string);

[timestamp] LOG ROTATION (daily|weekly|monthly, etc)

snprintf(temp_buffer,sizeof(temp_buffer),"LOG VERSION:
%s\n",LOG_VERSION_2);

[timestamp] LOG VERION: [log version string]

Hth,

--
Marc 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] nagios.log format

2007-11-13 Thread Kuang-Chun Cheng
Hi,

I want to do post-analysis of nagios.log and save the filtered result to DB.
The format look like this:
[1194969600] CURRENT SERVICE STATE: localhost;Current
Load;OK;HARD;1;OK - load average: 0.17, 0.23, 0.20
[1194969600] CURRENT SERVICE STATE: localhost;Current
Users;OK;HARD;1;USERS OK - 14 users currently logged in
[1194969600] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK
HTTP/1.1 200 OK - 7590 bytes in 0.006 seconds
[1194969600] CURRENT SERVICE STATE: localhost;PING;OK;HARD;1;PING OK -
Packet loss = 0%, RTA = 0.04 ms
[1194969600] CURRENT SERVICE STATE: localhost;Root
Partition;OK;HARD;1;DISK OK - free space: / 37567 MB (53% inode=96%):
[1194969600] CURRENT SERVICE STATE: localhost;SSH;OK;HARD;1;SSH OK -
OpenSSH_4.3 (protocol 2.0)
[1194969600] CURRENT SERVICE STATE: localhost;Swap
Usage;OK;HARD;1;SWAP OK - 78% free (1542 MB out of 1983 MB)
[1194969600] CURRENT SERVICE STATE: localhost;Total
Processes;OK;HARD;1;PROCS OK: 110 processes with STATE = RSZDT

Could someone tell me what's the fields means ?
What kind of message will be log into nagios.log.   Sometime I found
"SERVICE ALERT" message ...
any complete list existed for possible message ?  Thanks

Regards
KC

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Plugin for monitoring FreeBSD for updates (like check_apt)?

2007-11-13 Thread Matthias Kellermann
Brian A. Seklecki schrieb:
> On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote:
>> Hi list,
>>
>> anyone knows of a Nagios plugin to check the FreeBSD ports and base
>> system for updates? I'm searching for something like check_apt for
>> Debian/Ubuntu.
> 
> All that you need to do is exec portaudit and trap the output.  However,
> mapping this into warn/crit status will get tricky.
> 
> Most big shops have software release engineer processes that prevent
> them from, as a NetBSD friend of mine calls it, "implementing massive
> rolling in-place binary upgrades".
> 
> In the hope that security will somehow be derived from that (Linux
> credo, I suppose).  I like the idea ether way.  Let me know if you need
> help testing/coding.
> 
> ~BAS
> 
> $ pkg_version -vL "="
>  apache-2.2.4_2   <   needs updating (port has 2.2.6_2)
>  apr-nothr-db4-1.0.1_1<   needs updating (port has 1.2.8_2)
>  arj-3.10.22  <   needs updating (port has 3.10.22_1)
>  autoconf-2.59_3  <   needs updating (port has 2.61_2)
>  autoconf-wrapper-20070404<   needs updating (port has 20071109)
> 
> $ sudo portaudit
>  Affected package: perl-5.8.8
>  Type of problem: perl -- regular expressions unicode data buffer  
>  overflow. Reference:    
>  Affected package: nagios-plugins-1.4.9,1
>  Type of problem: nagios-plugins -- Long Location Header Buffer
>  Overflow Vulnerability.
> 
> ~BAS

Thanks for your answer Brian.

I've found ports-mgmt/jailaudit in the Ports. Seems quite useful yet.
I'll see how this tool can help on monitoring the installed ports for
security holes.

Monitoring the jails for updates should work with pkg_version -vL "="

I'll let you know if I've made something useful.

Matthias

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Plugin for monitoring FreeBSD for updates (like check_apt)?

2007-11-13 Thread Brian A. Seklecki

On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote:
> Hi list,
> 
> anyone knows of a Nagios plugin to check the FreeBSD ports and base
> system for updates? I'm searching for something like check_apt for
> Debian/Ubuntu.

All that you need to do is exec portaudit and trap the output.  However,
mapping this into warn/crit status will get tricky.

Most big shops have software release engineer processes that prevent
them from, as a NetBSD friend of mine calls it, "implementing massive
rolling in-place binary upgrades".

In the hope that security will somehow be derived from that (Linux
credo, I suppose).  I like the idea ether way.  Let me know if you need
help testing/coding.

~BAS

$ pkg_version -vL "="
 apache-2.2.4_2   <   needs updating (port has 2.2.6_2)
 apr-nothr-db4-1.0.1_1<   needs updating (port has 1.2.8_2)
 arj-3.10.22  <   needs updating (port has 3.10.22_1)
 autoconf-2.59_3  <   needs updating (port has 2.61_2)
 autoconf-wrapper-20070404<   needs updating (port has 20071109)

$ sudo portaudit
 Affected package: perl-5.8.8
 Type of problem: perl -- regular expressions unicode data buffer  
 overflow. Reference:    
> One important thing is that I also want to monitor all the FreeBSD jails
> for updates, too. Any help/hint appreciated :)
> 
> Matthias
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Plugin for monitoring FreeBSD for updates (like check_apt)?

2007-11-13 Thread Michael W. Lucas
On Tue, Nov 13, 2007 at 08:06:08AM +0100, Matthias Kellermann wrote:
> Michael W. Lucas schrieb:
> > On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote:
> >> Hi list,
> >>
> >> anyone knows of a Nagios plugin to check the FreeBSD ports and base
> >> system for updates? I'm searching for something like check_apt for
> >> Debian/Ubuntu.
> >>
> >> One important thing is that I also want to monitor all the FreeBSD jails
> >> for updates, too. Any help/hint appreciated :)
> > 
> > None exists today.
> > 
> > It should be fairly simple to write a NRPE wrapper around portmaster,
> > however.
> > 
> > I believe (but might be wrong) that net-snmp also has the ability to
> > read the FreeBSD package database; you could run a snmpwalk on the
> > target machine and compare that to a master package database.
> > 
> > Good luck, and if you implement something be sure to let us know about it.
> 
> Thanks for your answer Michael. I will see what I can do. If I have
> found/implemented something useful I will let you know.
> 
> BTW: Looking forward for your new book coming out these days. Hope it
> will be released in Europe also on November 14th :)

The book physically exists, and is being shipped to stores now.  You
should be able to find it any day now.

I really need to change my .sig...

==ml
-- 
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
  Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com
On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons."

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] RE : Nagios CGI modification

2007-11-13 Thread Florent HOUBART
Hello,


>Changing the link is no big deal of course.  My big question is, how do I
>get a list of all the hosts in that host group passed?


You may find exemple of such tasks in status.cgi. You need to loop over all the 
hosts and check for each if the belong to the hostgroup or not.

Below is an extract of status.c where I only keep what would be relevant for 
you (extract from function show_hostgroup_overview). 

--

/* find all the hosts that belong to the hostgroup */
for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){

 /* find the host... */
 temp_host=find_host(temp_hoststatus->host_name,NULL);

 /* make sure this host a member of the hostgroup */
 if(!is_host_member_of_hostgroup(hstgrp,temp_host))
  continue;

 /* make sure the user is authorized to see this host */
 if(is_authorized_for_host(temp_host,¤t_authdata)==FALSE)
  continue;

 
 /* Do something with the host temp_host */
}

---

Regards,

Florent Houbart


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Status display colors

2007-11-13 Thread Giles Coochey


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Israel Brewster
> Sent: 12 November 2007 23:27
> To: Nagios Users mailinglist
> Subject: [Nagios-users] Status display colors
> 
> Is there any way to change the colors generated by status.cgi? My
> boss is complaining that it is really hard for him to read the dark
> blue hostname on the dark red background you get when a host is down.
> Thanks!
> 

I use the Nuvola style from the NagiosExchange website, for me it's an
instant improvement in the look and feel of the Nagios frontend.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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