[Nagios-users] RE : Sybase check on windows servers

2007-06-27 Thread Florent HOUBART
Hi,

You are right. Any command I try to run through command prompt is giving
me the same error. Although its showing ok in the web interface.

I do not understand why this is happening.

Some examples of commands I tried to run through command prompt-

./check_nt -H machine1 -v UPTIME

./check_nt -H machine1 -v SERVICESTATE -l MSSQLSERVER

Although the same command is defined in services.cfg and it is giving
the right output in web interface.

Can you send me exactly what is defined in your configuration files (host, 
service and command) and the tests you did in command line with the result ? 
Normally the result should be the same in command line than what Nagios do.

Regards,

Florent
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] check_snmp_printer.pl

2007-06-27 Thread riky . none
 = $session-get_request(@hp_oids))) {
$answer=$session-error;
$session-close;
$state = 'CRITICAL';
print ($state: $answer \n);
exit $ERRORS{$state};
}

# cycle thru the responses and set the appropriate state

if($response-{$HPJD_GD_PAPER_JAM} ) {
$state='WARNING';
$answer = Paper Jam;
}
elsif($response-{$HPJD_GD_PAPER_OUT} ) {
$state='WARNING';
$answer = Out of Paper;
}
elsif($response-{$HPJD_LINE_STATUS} ) {
if ($response-{$HPJD_LINE_STATUS} ne POWERSAVE ON ) {
$state='WARNING';
$answer = Printer Offline;
}
}
elsif($response-{$HPJD_GD_PERIPHERAL_ERROR} ) {
$state='WARNING';
$answer = Peripheral Error;
}
elsif($response-{$HPJD_INTERVENTION_REQUIRED} ) {
$state='WARNING';
$answer = Intervention Required;
}
elsif($response-{$HPJD_GD_TONER_LOW} ) {
$state='WARNING';
$answer = Toner Low;
}
elsif($response-{$HPJD_GD_MEMORY_OUT} ) {
$state='WARNING';
$answer = Insufficient Memory;
}
elsif($response-{$HPJD_GD_DOOR_OPEN} ) {
$state='WARNING';
$answer = Insufficient Memory;
}
elsif($response-{$HPJD_GD_PAPER_OUTPUT} ) {
$state='WARNING';
$answer = OutPut Tray is Full;
}
elsif($response-{$HPJD_GD_PAGE_PUNT} ) {
$state='WARNING';
$answer = Data too slow for Engine;
}
elsif($response-{$HPJD_PAPER_STATUS} ) {
$state='WARNING';
$answer = Unknown Paper Error;
}
else# add code to parse STATUS DISPLAY here
{
$state='OK';
$answer = Printer ok - $response-{$HPJD_GD_STATUS_DISPLAY}
;
}

# print and exit

print $state: $answer \n;
exit $ERRORS{$state};


}
else{  # 3rd printer type - not yet supported

print Printer type $opt_P has not been implemented\n;
$state='UNKNOWN';
exit $ERRORS{$state};

}



 subroutines
sub unit_status {
my $stat = shift;


}

sub print_usage () {
print Usage: $PROGNAME -H host [-C community] [-P HP or RFC] [-p 
port]  [-v snmp_version] [-h help]  [-V version]\n;
}

sub print_help () {
print_revision($PROGNAME,'$Revision: 1.1 $');
print Copyright (c) 2002 Subhendu Ghosh/Ethan Galstad.








NON EXIST ANY DOC FOR THIS SCRIPT
step by step
Step 1
run this script
perl not found
i change in the script the path perl #!/usr/bin/perl -w
Step 2
lib net:sntp not found
i install perl lib SNMTP (ok)
Step 3
utils.pl not found
i download this script and copy it in libexec
Step 4
i run the script 
i have this message

./check_snmp_printer.pl

Parameter to use lib must be directory, not file at ./check_snmp_printer.pl
line 85
syntax error at ./check_snmp_printer.pl line 100, near type
my 
Global symbol $state requires explicit package name at
./check_snmp_printer.pl line 100.
Execution of ./check_snmp_printer.pl aborted due to compilation errors.

PLEASE !!!HELP ME!! 
i dont know perl 

how to configure in nagios this service service ?
GRAZIE

 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Vuoi giocare?In REGALO x te GPBikes 3D,Bubble Boom,Rock City Empire
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6731d=20070627



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Can Nagios update configs by SQL from another server?

2007-06-27 Thread magic_rooter
Hello everybody!

We have server with sql base where there is data for Nagios. I will explain.
There is dynamically updated database with servers and routers. The
structure is simple:name and ip.
And I have server with Nagios (v.2.5)
I saw some addons and plugins for Nagios that store nagios configs in
mysql database: NDOutils, loadconfig.pl and so on...
Can these or maybe other programms go to SQL server, pull data with
the names and ip of servers and routers and insert it to nagios
configs (which are in sql or in .cfg files)?

Thank you in advance for assistance!

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] SNMP parent

2007-06-27 Thread chiel
I monitor a switch in our network with a couple of snmp scripts.
Sometimes it happens that there is no snmp connection availible through the 
network and all the checks report this problem.
Can I use service dependencie in this case on all the snmp script that use a 
snmpagent as a parent? Or am I missing something and that there is the 
posibility that I could miss a warning notification.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] Time periods Issue

2007-06-27 Thread adi yesaya

From: adi yesaya [EMAIL PROTECTED]
Date: Jun 26, 2007 8:12 PM
Subject: [Nagios-users] Time-periods Issue
To: Nagios-users@lists.sourceforge.net

It's about time periods again,

It's 20:00 o'clock right now and I defined a time period like this:

define timeperiod{
   timeperiod_name night
   alias   Check at night only
   sunday   22:00-23:00
   monday  22:00-23:00
   tuesday  22:00-23:00
   wednesday 22:00-23:00
   thursday 22:00-23:00
   friday  22:00-23:00
   saturday 22:00-23:00
   }

using this settings, i restarted Nagios and it schedules all plug-ins at
22:00 without interleaving them.

But if i set the timeperiod to:
define timeperiod{
   timeperiod_name night
   alias  Check at night only
   sunday   20:15-21:15
   monday  20:15-21:15
   tuesday  20:15-21:15
   wednesday 20:15-21:15
   thursday 20:15-21:15
   friday  20:15-21:15
   saturday 20:15-21:15
   }

and restart nagios, on the web interface I can see Nagios interleaving all
the checks right away.
Why if i schedule it couple hours ahead Nagios doesn't interleave the chekcs
but if i schedule it couple minutes ahead, it interleaves all the check?

these are my configuration:
service_interleave_factor=s
max_service_check_spread=60
service_inter_check_delay_method=s


Regards,
Adi Yesaya
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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 3.0 EPN problems....

2007-06-27 Thread Peter Krüpl
Hi Group,

I am currently trying to get EPN up and running for Nagios 3.0a5.
So far i works partially... but i have some problems.

1. Plugin output gets garbled eg:
2. No log output from p1.pl is generated...

Has anyone expeirienced similar issues, or am i he only one ?

Kind Regards,
Peter Krüpl






-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 3.0 EPN problems....

2007-06-27 Thread Peter Krüpl
Hi Again,

I forgot to write how the output get's messed up...

The output gets garbled like the following:  #-64;#-66;:67 Peer is Up.
instead of :AS9167 Peer is Up. 

This happens when i have use_embedded_perl_implicitly=1 configured
When i have use_embedded_perl_implicitly=0 configured and
include # nagios: +epn in my plugins the output is ok.

Since i have no clue whetever EPN is used as i do not get any EPN debug 
logs,
i can not tell if it works.


Peter Krüpl skrev:
 Hi Group,

 I am currently trying to get EPN up and running for Nagios 3.0a5.
 So far i works partially... but i have some problems.

 1. Plugin output gets garbled eg:
 2. No log output from p1.pl is generated...

 Has anyone expeirienced similar issues, or am i he only one ?

 Kind Regards,
 Peter Krüpl






 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Time periods Issue

2007-06-27 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


 Why if i schedule it couple hours ahead Nagios doesn't interleave the chekcs
 but if i schedule it couple minutes ahead, it interleaves all the check?



I'm not certain, but it may have something to do with your
max_service_check_spread being set to 60 minutes and it might be
getting confused with your timeperiod definition being a span of only
one hour.

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFGglIsNTm8fWdRgmIRAqruAKDZGjmw+YVAxUP3aohTTALOkZ/jpACgr8+F
CQC+yTBRn893gFnmgyRNLIE=
=cP2C
-END PGP SIGNATURE-

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Notifications

2007-06-27 Thread Jerad Riggin

Does Nagios only send out notifications once it has reached the max retry on
services?  If so, is the only way to make it automatically notify you as
soon as there is a problem to set the max retry to 1?

Thanks

Jerad
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] Time periods Issue

2007-06-27 Thread adi yesaya

First i thought so too, but i tried to change the max_service_check_spread
to 90 or 180 and it still happens. Does anyone have a clue?


On 6/27/07, Andy Harrison [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


 Why if i schedule it couple hours ahead Nagios doesn't interleave the
chekcs
 but if i schedule it couple minutes ahead, it interleaves all the check?



I'm not certain, but it may have something to do with your
max_service_check_spread being set to 60 minutes and it might be
getting confused with your timeperiod definition being a span of only
one hour.

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFGglIsNTm8fWdRgmIRAqruAKDZGjmw+YVAxUP3aohTTALOkZ/jpACgr8+F
CQC+yTBRn893gFnmgyRNLIE=
=cP2C
-END PGP SIGNATURE-

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] Notifications

2007-06-27 Thread Sapon, Dimitry
Hi Jerad,
 
Is your requirement for services with active/passive (or both) checks. 
 

*   
If you aren't using active checks at all, then you can set it to
1 simply. 
*   
If you are using only active, then the whole point of max retry
is so it doesn't notify you right away but gives itself sometime to make
sure that the service isn't simply being restarted (for example).
*   
If you do need max retry to be above 1 for active but want
passive checks (via send_nsca) to send out a notification right away,
there is only one what that I figured out to do this. Have whatever
script that you have call send_nsca to alert nagios, where the amount of
alerts sent is equal to the max retries. That way your passive check
sends your service into a Non-Ok hard state right away and notifications
are sent out. That's only needed for non-ok alerts. If you are sending
an OK alert, you only need to send it once, since that's all that's
required to bring the service back to an OK state and send the OK
notification (if setup).

Does that help?
 
Regards,
Dimitry



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerad
Riggin
Sent: Wednesday, June 27, 2007 9:03 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Notifications


Does Nagios only send out notifications once it has reached the max
retry on services?  If so, is the only way to make it automatically
notify you as soon as there is a problem to set the max retry to 1?
 
Thanks
 
Jerad
___

This email is intended only for the use of the individual(s) to whom it is 
addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive This e-mail in 
error, please advise immediately and delete the original message. 
This message may have been altered without your or our knowledge and the sender 
does not accept any liability for any errors or omissions in the message.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits 
et obligations qui s'y rapportent. 
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il 
contient par une personne autre que le (les) destinataire(s) désigné(s) est 
interdite.
Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par 
retour de courriel ou par un autre moyen.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] Nagios2 and Apache2

2007-06-27 Thread Steve Gregory
I am running etch and am have a little problem configuring nagios2. The 
program is working fine and giving the correct alerts, but the cgi's are 
not working with apache2. The calls are bing made to the cgi programs, 
but they are not displaying. I'm using the packages that are in the 
stable distribution of Debian. Has anyone else encountered this problem?

Steve

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] snmp questions

2007-06-27 Thread Ronan REYNAUD
Hi

 

I'm new to nagios, and I'd like to get some snmp requests.

It's Ok for some requests (Uptime for example)

But I can't get  Disk Space. (No Data received from Host)

I tried to used snmpget in a console, and get the same bad result.

May be the Oids are wrong..

 

Could someone give me a clue ?

 

Thanks

 

R. Reynaud

 

 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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] snmp question

2007-06-27 Thread Ronan REYNAUD
Hi

 

I'm new to nagios, and I'd like to get some snmp requests.

It's Ok for some requests (Uptime for example)

But I can't get  Disk Space. (No Data received from Host)

I tried to used snmpget in a console, and get the same bad result.

May be the Oids are wrong..

 

Could someone give me a clue ?

 

Thanks

 

R. Reynaud



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] snmp questions

2007-06-27 Thread Dmitriy Kirhlarov
Ronan REYNAUD wrote:
 Hi
 
  
 
 I’m new to nagios, and I’d like to get some snmp requests.
 
 It’s Ok for some requests (Uptime for example)
 
 But I can’t get  Disk Space. (No Data received from Host)
 
 I tried to used snmpget in a console, and get the same bad result.
 
 May be the Oids are wrong..
 
  
 
 Could someone give me a clue ?

are you have something like:
disk / 1
disk /tmp 1
disk /usr 1
disk /var 1

in your snmpd.conf?

after that you can get data from OIDs starting from
1.3.6.1.4.1.2021.9.1.1.1

It's UCD-SNMP-MIB

WBR.
Dmitriy


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Time periods Issue

2007-06-27 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 6/27/07, adi yesaya  wrote:
 First i thought so too, but i tried to change the max_service_check_spread
 to 90 or 180 and it still happens. Does anyone have a clue?


I would think that would make the problem worse, not better.  Why
don't you try increasing the time period to a two hour span and see if
that helps.

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFGgqeuNTm8fWdRgmIRAppsAKDc0FjQvQZt1y/LfwdDPDdMELaq8ACg9EQh
GCJB+w8dkEOIBAPG3QJqvdM=
=/QCT
-END PGP SIGNATURE-

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_dhcp question...

2007-06-27 Thread Lacayo, Luis F
Hi Everyone, 

 

I am doing a check of the DHCP server and when I run the check_dhcp
manually, I get a reply that there were no DHCP OFFERS. 

 

./check_dhcp -s 10.129.177.16 -r 10.129.177.240

DHCP problem: No DHCPOFFERs were received.

 

But when I look at my server on the system messages I see the follwing.

 

Jun 27 12:47:03 co-ops01 dhcpd: DHCPDISCOVER from 00:14:38:bb:fc:21 via
eth0

Jun 27 12:47:04 co-ops01 dhcpd: DHCPOFFER on 10.129.177.240 to
00:14:38:bb:fc:21 via eth0

 

I don't see anything on the Nagios server log..

 

Any Ideas on what I am doing wrong. 

 

 

Luis F. Lacayo

Chicago Public Schools

OTS / UNIX Administration

[EMAIL PROTECTED]

Office: 773-553-3835

Cell: 773 203-4493

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of adi
yesaya
Sent: Tuesday, June 26, 2007 1:12 PM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Time-periods Issue

 

It's about time periods again,

 

It's 20:00 o'clock right now and I defined a time period like this:

 

define timeperiod{
timeperiod_name night
alias   Check at night only
sunday   22:00-23:00
monday  22:00-23:00 
tuesday  22:00-23:00
wednesday 22:00-23:00
thursday 22:00-23:00
friday  22:00-23:00
saturday 22:00-23:00 
}

 

using this settings, i restarted Nagios and it schedules all plug-ins at
22:00 without interleaving them.

 

But if i set the timeperiod to:

define timeperiod{
timeperiod_name night
alias  Check at night only
sunday   20:15-21:15
monday  20:15-21:15 
tuesday  20:15-21:15
wednesday 20:15-21:15
thursday 20:15-21:15
friday  20:15-21:15
saturday 20:15-21:15 
}

 

and restart nagios, on the web interface I can see Nagios interleaving
all the checks right away.

Why if i schedule it couple hours ahead Nagios doesn't interleave the
chekcs but if i schedule it couple minutes ahead, it interleaves all the
check?

 

these are my configuration:

service_interleave_factor=s
max_service_check_spread=60
service_inter_check_delay_method=s
 

 

Regards,

Adi Yesaya

image001.png-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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_dhcp question...

2007-06-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F
 Sent: Wednesday, June 27, 2007 1:41 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] check_dhcp question...
 
 Hi Everyone,
 
 
 
 I am doing a check of the DHCP server and when I run the check_dhcp
 manually, I get a reply that there were no DHCP OFFERS.
 
 
 
 ./check_dhcp -s 10.129.177.16 -r 10.129.177.240
 
 DHCP problem: No DHCPOFFERs were received.

Try adding the verbose flag (-v) to the command above. That will provide
more useful output.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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_dhcp question...

2007-06-27 Thread Lacayo, Luis F
Here is the output of the verbose. 

[EMAIL PROTECTED] libexec]#  ./check_dhcp -v -s 10.129.177.16
Requested server address: 10.129.177.16
DHCP socket: 3
Hardware address: 001438bbfc21
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 756149105 (0x2D11EB71)
DHCDISCOVER ciaddr:  0.0.0.0
DHCDISCOVER yiaddr:  0.0.0.0
DHCDISCOVER siaddr:  0.0.0.0
DHCDISCOVER giaddr:  0.0.0.0
send_dhcp_packet result: 548

No (more) data received
Result=ERROR
Total responses seen on the wire: 0
Valid responses for this machine: 0
DHCP problem: No DHCPOFFERs were received.

Luis

Luis F. Lacayo
Chicago Public Schools
OTS / UNIX Administration
[EMAIL PROTECTED]
Office: 773-553-3835
Cell: 773 203-4493




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Wednesday, June 27, 2007 2:32 PM
To: Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] check_dhcp question...



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F
 Sent: Wednesday, June 27, 2007 1:41 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] check_dhcp question...
 
 Hi Everyone,
 
 
 
 I am doing a check of the DHCP server and when I run the check_dhcp
 manually, I get a reply that there were no DHCP OFFERS.
 
 
 
 ./check_dhcp -s 10.129.177.16 -r 10.129.177.240
 
 DHCP problem: No DHCPOFFERs were received.

Try adding the verbose flag (-v) to the command above. That will provide
more useful output.

--
Marc


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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 3.0 EPN problems....

2007-06-27 Thread Peter Ringe
Hi all together,

I have had similar problem with 3.0a3 and 3.0a4. Didn't check with 3.0a5 
yet, but I will do (hopefully) next week.
I tested with Redhat  RHES3 and RHES4. Didn't check to use 
use_embedded_perl_implicitly.

Will try to reproduce that.

Which exact Version of Nagios and OS do You use?


Regards,
Peter



Peter Krüpl schrieb:
 Hi Again,

 I forgot to write how the output get's messed up...

 The output gets garbled like the following:  #-64;#-66;:67 Peer is Up.
 instead of :AS9167 Peer is Up. 

 This happens when i have use_embedded_perl_implicitly=1 configured
 When i have use_embedded_perl_implicitly=0 configured and
 include # nagios: +epn in my plugins the output is ok.

 Since i have no clue whetever EPN is used as i do not get any EPN debug 
 logs,
 i can not tell if it works.


 Peter Krüpl skrev:
   
 Hi Group,

 I am currently trying to get EPN up and running for Nagios 3.0a5.
 So far i works partially... but i have some problems.

 1. Plugin output gets garbled eg:
 2. No log output from p1.pl is generated...

 Has anyone expeirienced similar issues, or am i he only one ?

 Kind Regards,
 Peter Krüpl






 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] PNP

2007-06-27 Thread Jerad Riggin

I'm trying to get the PNP stuff setup so I can create some graphs for the
disk usage of my servers.  I have it installed and configured correctly as
far as I can tell.  However, no performance data is being generated in the
perfdata folder.  What are some things I can look for?

Thanks
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
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_dhcp question...

2007-06-27 Thread Marc Powell


 -Original Message-
 From: Lacayo, Luis F [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 27, 2007 3:07 PM
 To: Marc Powell; Nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] check_dhcp question...
 
 Here is the output of the verbose.
 
 [EMAIL PROTECTED] libexec]#  ./check_dhcp -v -s 10.129.177.16
 Requested server address: 10.129.177.16
 DHCP socket: 3
 Hardware address: 001438bbfc21
 DHCPDISCOVER to 255.255.255.255 port 67
 DHCPDISCOVER XID: 756149105 (0x2D11EB71)
 DHCDISCOVER ciaddr:  0.0.0.0
 DHCDISCOVER yiaddr:  0.0.0.0
 DHCDISCOVER siaddr:  0.0.0.0
 DHCDISCOVER giaddr:  0.0.0.0
 send_dhcp_packet result: 548
 
 No (more) data received
 Result=ERROR
 Total responses seen on the wire: 0
 Valid responses for this machine: 0
 DHCP problem: No DHCPOFFERs were received.

I assume that this machine is on the same broadcast network as your DHCP
server and they are truly different machines. Are you running dhclient
or iptables/ipchains on this machine? Anything that would interfere with
the reception of the dhcp packet? It might be necessary to use tcpdump
to verify that the machine is actually receiving a response. Right now
it would appear that it really isn't.

How were the plugins installed and what version? If you're not running
the latest version of the plugins you should test with that. This thread
might be useful --

http://sourceforge.net/tracker/index.php?func=detailaid=1090549group_i
d=29880atid=397597

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service Notifications not sending email

2007-06-27 Thread Rob Groome
OK.  So I have the following problem.  I receive Host notifications  
without any problem - email is working fine on the nagios monitoring  
server.  I am not, however receiving service notifications and cannot  
figure out what the deal is.  Any help would be appreciated as I  
turned over every stone I can think of.  I get the SERVICE  
NOTIFICATIONS logged to syslog - but no email sent out.  The  
notifications are set to on, the timeperiods are correct and the  
contacts and contactgroups are setup properly.

I have changed every possible parameter - except of course the right  
one - and still no go.

I am running Nagios 2.9 and my configs follow.

Below are all pertinent configs.  I am sure it is completely simple  
and I am missing something completely obvious.


nagios.cfg:
log_file=/usr/local/nagios/var/nagios.log
cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/localhost.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/escalations.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/servicegroups.cfg
cfg_dir=/usr/local/nagios/etc/local-configs
cfg_dir=/usr/local/nagios/etc/security
object_cache_file=/usr/local/nagios/var/objects.cache
resource_file=/usr/local/nagios/etc/resource.cfg
status_file=/usr/local/nagios/var/status.dat
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
external_command_buffer_slots=4096
comment_file=/usr/local/nagios/var/comments.dat
downtime_file=/usr/local/nagios/var/downtime.dat
lock_file=/usr/local/nagios/var/nagios.lock
temp_file=/usr/local/nagios/var/nagios.tmp
event_broker_options=-1
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives
use_syslog=1
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_checks=1
service_inter_check_delay_method=s
max_service_check_spread=30
service_interleave_factor=s
host_inter_check_delay_method=s
max_host_check_spread=30
max_concurrent_checks=0
service_reaper_frequency=10
check_result_buffer_slots=4096
auto_reschedule_checks=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
sleep_time=0.25
service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
retain_state_information=1
state_retention_file=/usr/local/nagios/var/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=0
interval_length=60
use_aggressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
execute_host_checks=1
accept_passive_host_checks=1
enable_notifications=1
enable_event_handlers=1
process_performance_data=0
obsess_over_services=0
check_for_orphaned_services=1
check_service_freshness=1
service_freshness_check_interval=60
check_host_freshness=0
host_freshness_check_interval=60
aggregate_status_updates=1
status_update_interval=15
enable_flap_detection=0
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
date_format=us
p1_file=/usr/local/nagios/bin/p1.pl
illegal_object_name_chars=`~!$%^*|'?,()=
illegal_macro_output_chars=`~$|'
use_regexp_matching=0
use_true_regexp_matching=0
admin_email=nagios
admin_pager=pagenagios
daemon_dumps_core=0


localhost.cfg: (only pertinent info)
Host and Service Templates:
define host{
 namegeneric-host
 notifications_enabled   1
 event_handler_enabled   1
 flap_detection_enabled  1
 failure_prediction_enabled  1
 process_perf_data   1
 retain_status_information   1
 retain_nonstatus_information1
 notification_period 24x7
 register0
 }

define service{
 namegeneric-service
 active_checks_enabled   1
 passive_checks_enabled  1
 parallelize_check   1
 obsess_over_service 1
 check_freshness 0
 notifications_enabled   1
 event_handler_enabled   1
 flap_detection_enabled  1
 failure_prediction_enabled  1
 process_perf_data   1
 retain_status_information   1
 retain_nonstatus_information1
 is_volatile 0
 register0
 }

Time Period Declarations:
define timeperiod{
 timeperiod_name 24x7
 alias   24 Hours A Day, 7 Days A Week
 sunday  

Re: [Nagios-users] Service Notifications not sending email

2007-06-27 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Rob Groome
 Sent: Wednesday, June 27, 2007 5:10 PM
 To: Nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Service Notifications not sending email
 

Lots of good stuff removed...
 
 When set to the above I get the following in /var/log/messages:
 Jun 27 10:44:46 alpha nagios: SERVICE NOTIFICATION: it;system1;Disk -
 D:;CRITICAL;notify-by-email;d:\ - total: 213.20 Gb - used: 12.10 Gb
 (6%) - free 201.11 Gb (94%)

This is good. Nagios tried to send a notification. That means the
problem is with the notification command forward.
 
 notify-by-email command definition:
 # 'notify-by-email' command definition
 define command{
  command_namenotify-by-email
  command_line/usr/bin/printf %b * Nagios  *\n
 \nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$
 \nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n
 \nDate/Time: $DATE$ $TIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n
 $SERVICEPERFDATA$\n$SERVICEACKCOMMENT\n | /bin/mail -s **
 $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE
 $ ** $CONTACTEMAIL$
  }
 
 
 Nothing in the mail.log file about email being sent - or trying to be
 sent out.
 
 Any help is appreciated!  I realize that this is probably a simple
 fix as I said before - but it is alluding me at the moment.

In cases like this, it's often very useful to try to manually run the
command that nagios is running to see if it errors out. Have you tried
running the command above as the nagios user? It'll look something like
the following if I've done my substitutions correctly, guessing at some
--

/usr/bin/printf %b * Nagios  *\n\nNotification Type:
CRITICAL\n\nService: Disk - D:\nHost: system1\nAddress: 1.1.1.1\nState:
DOWN\n\nDate/Time: Tue Jun 26 23:09:27 CDT 2007\n\nAdditional
Info:\n\nd:\ - total: 213.20 Gb - used: 12.10 Gb (6%) - free 201.11 Gb
(94%)\n  /=2132MB;7844;7854;89;7874\n\n | /bin/mail -s ** CRITICAL
alert - system1/Disk - D: is CRITICAL ** [EMAIL PROTECTED]

I also prefer to use /bin/echo -e instead of /usr/bin/printf %b
myself. It seems to have less problems with things like d:\ in plugin
output.

--
Marc

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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] Service Notifications not sending email

2007-06-27 Thread Rob Groome

 When set to the above I get the following in /var/log/messages:
 Jun 27 10:44:46 alpha nagios: SERVICE NOTIFICATION: it;system1;Disk -
 D:;CRITICAL;notify-by-email;d:\ - total: 213.20 Gb - used: 12.10 Gb
 (6%) - free 201.11 Gb (94%)

 notify-by-email command definition:
 # 'notify-by-email' command definition
 define command{
  command_namenotify-by-email
  command_line/usr/bin/printf %b * Nagios  *\n
 \nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$
 \nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n
 \nDate/Time: $DATE$ $TIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n
 $SERVICEPERFDATA$\n$SERVICEACKCOMMENT\n | /bin/mail -s **
 $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE
 $ ** $CONTACTEMAIL$
  }


This is fixed now thanks to help from Marc Powell who led me in the  
right direction.

If you look at the command_line for the above notification command  
you will notice that the $SERVICEACKCOMMENT does not have the  
trailing $ for the variable.  Because of this - the email for the  
service notifications are not sent out - and there is also no error  
associated with that problem.   I added in the $ at the end of the  
variable and now the service notifications are working again.

Crazy easy, but so simple to miss.  Thanks again Marc!

Rob


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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