Nagios-users Digest, Vol 8, Issue 23

tyrus at icsit.jkuat.ac.ke tyrus at icsit.jkuat.ac.ke
Tue Jan 16 10:13:07 CET 2007


> Send Nagios-users mailing list submissions to
> 	nagios-users at lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.sourceforge.net/lists/listinfo/nagios-users
> or, via email, send a message with subject or body 'help' to
> 	nagios-users-request at lists.sourceforge.net
>
> You can reach the person managing the list at
> 	nagios-users-owner at lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nagios-users digest..."
>
>
> Today's Topics:
>
>    1. Re: Plugin issue (Andy Shellam (Mailing Lists))
>    2. Re: Plugin issue (tyrus at icsit.jkuat.ac.ke)
>    3. Re: Using external commands with web interface (Stijn Gruwier)
>    4. Re: Question about hosts when setting up (Marc Powell)
>    5. Nagios receiving acknowledgements from behind	firewall?
>       (David Rudder)
>    6. Re: NsClient 2.0.1 (Steve Shipway)
>    7. NRPE: Unable to read output (Dan Langille)
>    8. Re: NRPE: Unable to read output (Aaron Segura)
>    9. Re: NRPE: Unable to read output (Dan Langille)
>   10. Re: Question about hosts when setting up (Formoso, Travis)
>   11. Re: NRPE: Unable to read output (Arno Lehmann)
>   12. Re: NRPE: Unable to read output (Dan Langille)
>   13. Re: NRPE: Unable to read output (Arno Lehmann)
>   14. Re: NRPE: Unable to read output (Dan Langille)
>   15. sending email out (Formoso, Travis)
>   16. Re: sending email out (Jay Chandler)
>   17. Re: sending email out (Jay Chandler)
>   18. Re: sending email out (Formoso, Travis)
>   19. Re: sending email out (Jay Chandler)
>   20. Re: Plugin issue (Dmitriy Kirhlarov)
>   21. Re: Plugin issue (Jay Chandler)
>   22. Re: addicted from other hosts (Dmitriy Kirhlarov)
>   23. Re: check for terminal servers/rdp? (Christopher Odenbach)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 14 Jan 2007 10:28:06 +0000
> From: "Andy Shellam (Mailing Lists)"
> 	<andy.shellam-lists at mailnetwork.co.uk>
> Subject: Re: [Nagios-users] Plugin issue
> To: tyrus at icsit.jkuat.ac.ke
> Cc: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <45AA05B6.7000005 at mailnetwork.co.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> tyrus at icsit.jkuat.ac.ke wrote:
>>> Don't forget to copy the mailing list in so others can chip in and
>>> help.
>>>
> Read the above line again!!
>> HI Andy am kinda confused here: when you say i insert the values
>> "2000,25%" to the $ARG1$ and $ARG2$ respectively do you mean that i
>> should
>> insert them in the check_ping command defination or what??
>> Kindly explain!
>> Thanks
>>
> OK there are a few ways of doing it - in your current definition, you
> need something like this "2000,25%" in anything that uses your
> check_ping command - i.e. host, service, whatever.
> I'll show you an example using a host definition.
>
> Firstly, the way you're doing it:
>
> define command {
>          command_name    check_ping
>          command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c
> $ARG2$ -p 5
> }
>
> You need to be passing, for example, 2000,25% as $ARG1$ and, for
> example, 4000,50% as $ARG2$.
> So, your object definition (in this example, host) will need to be as
> follows:
>
> define host {
>     ...
>     check_command            cmd-Ping!2000,25%!4000,50%
>     ...
> }
>
> Your check_ping command will then turn out to be something like:
> "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c
> 4000,50% -p 5"
>
> The second way is the way I'm doing it at the moment.
> The check_ping command:
>
> define command {
>     command_name            cmd-Ping
>     command_line            $USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$
> -w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$%
> }
>
> The object definition:
>
> define host {
>     ...
>     check_command            cmd-Ping!$HOSTADDRESS$!1000!20!2000!50
>     ...
> }
>
> As you can see, a few more arguments need to be passed from the object,
> but you can override any of the thresholds for one particular object.
>
> Another way is simply to "hard-code" the values in your command, and
> have no arguments passed in from the object.
>
> The command:
>
> define command {
>     command_name            cmd-Ping
>     command_line            $USER1$/check_ping -p 3 -t 10 -4 -H
> $HOSTADDRESS$ -w 2000,25% -c 4000,50%
> }
>
> The object:
>
> define host {
>     ...
>     check_command            cmd-Ping
>     ...
> }
>
> Hopefully this clears things up - but *don't forget to copy the mailing
> list in* to your replies - hit "Reply to all" in your mailer and it'll
> sort it out for you.
>
> --
> Andy Shellam
> NetServe Support Team
>
> the Mail Network
> "an alternative in a standardised world"
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Jan 2007 07:56:47 +0300 (EAT)
> From: tyrus at icsit.jkuat.ac.ke
> Subject: Re: [Nagios-users] Plugin issue
> To: "Andy Shellam (Mailing Lists)"
> 	<andy.shellam-lists at mailnetwork.co.uk>
> Cc: tyrus at icsit.jkuat.ac.ke,	Nagios Users mailinglist
> 	<nagios-users at lists.sourceforge.net>
> Message-ID: <41936.212.49.82.52.1168837007.squirrel at 212.49.82.54>
> Content-Type: text/plain;charset=iso-8859-1
>
>> tyrus at icsit.jkuat.ac.ke wrote:
>>>> Don't forget to copy the mailing list in so others can chip in and
>>>> help.
>>>>
>> Read the above line again!!
>>> HI Andy am kinda confused here: when you say i insert the values
>>> "2000,25%" to the $ARG1$ and $ARG2$ respectively do you mean that i
>>> should
>>> insert them in the check_ping command defination or what??
>>> Kindly explain!
>>> Thanks
>>>
>> OK there are a few ways of doing it - in your current definition, you
>> need something like this "2000,25%" in anything that uses your
>> check_ping command - i.e. host, service, whatever.
>> I'll show you an example using a host definition.
>>
>> Firstly, the way you're doing it:
>>
>> define command {
>>          command_name    check_ping
>>          command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$
>> -c
>> $ARG2$ -p 5
>> }
>>
>> You need to be passing, for example, 2000,25% as $ARG1$ and, for
>> example, 4000,50% as $ARG2$.
>> So, your object definition (in this example, host) will need to be as
>> follows:
>>
>> define host {
>>     ...
>>     check_command            cmd-Ping!2000,25%!4000,50%
>>     ...
>> }
>>
>> Your check_ping command will then turn out to be something like:
>> "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c
>> 4000,50% -p 5"
>>
>> The second way is the way I'm doing it at the moment.
>> The check_ping command:
>>
>> define command {
>>     command_name            cmd-Ping
>>     command_line            $USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$
>> -w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$%
>> }
>>
>> The object definition:
>>
>> define host {
>>     ...
>>     check_command            cmd-Ping!$HOSTADDRESS$!1000!20!2000!50
>>     ...
>> }
>>
>> As you can see, a few more arguments need to be passed from the object,
>> but you can override any of the thresholds for one particular object.
>>
>> Another way is simply to "hard-code" the values in your command, and
>> have no arguments passed in from the object.
>>
>> The command:
>>
>> define command {
>>     command_name            cmd-Ping
>>     command_line            $USER1$/check_ping -p 3 -t 10 -4 -H
>> $HOSTADDRESS$ -w 2000,25% -c 4000,50%
>> }
>>
>> The object:
>>
>> define host {
>>     ...
>>     check_command            cmd-Ping
>>     ...
>> }
>>
>> Hopefully this clears things up - but *don't forget to copy the mailing
>> list in* to your replies - hit "Reply to all" in your mailer and it'll
>> sort it out for you.
>>
>> --
>> Andy Shellam
>> NetServe Support Team
>>
>> the Mail Network
>> "an alternative in a standardised world"
>>
>>
>>
>
> Hallo thanks so much for your time.However the command is still timing out
> and giving me the same error.Here is my command definition in the hosts
> object:
> define host
> {
> ..........
> check_command           check_ping!2000,25%!4000,50%
> ..........
> }
> Now my question is if the above command will check the values of the
> check_ping command in the command definition, then are those the values i
> should insert in the command defination file? And also you said:
>>Your check_ping command will then turn out to be something like:
>> "/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c
>> 4000,50% -p 5"
> However when i go to my command defination it still reads as before.
> Kindly assist.I really hope am not missing out on something.
> cheers.
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 15 Jan 2007 09:14:16 +0100
> From: Stijn Gruwier <sg at schaubroeck.be>
> Subject: Re: [Nagios-users] Using external commands with web interface
> To: Artyom Khmelnitsky <nagios at ayksolutions.com>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <45AB37D8.3070907 at schaubroeck.be>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Check if you are enabled to do that in cgi.cfg:
>
> authorized_for_system_information=nagiosadmin
> authorized_for_configuration_information=nagiosadmin
> authorized_for_system_commands=nagiosadmin
> authorized_for_all_services=nagiosadmin
> authorized_for_all_hosts=nagiosadmin
> authorized_for_all_service_commands=nagiosadmin
> authorized_for_all_host_commands=nagiosadmin
>
> Then make sure the cgi's know you as nagiosadmin by logging in as
> nagiosadmin or using
>
> use_authentication=1
> default_user_name=nagiosadmin
>
> Artyom Khmelnitsky schreef:
>> Hello,
>>
>> I am trying to enable the full usage of the web interface. I looked at
>> the faq and setup the correct permissions on /var/nagios/rw/nagios.cmd.
>> The nagios config file also looks correct, but for some reason it still
>> says that there is an issue with permissions when I try to add a Comment
>> to a host via the web interface.
>>
>> Could someone please point me in the right direction?
>>
>> Thank you
>
>
>  **** DISCLAIMER ****
>  http://www.schaubroeck.be/maildisclaimer.htm
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 15 Jan 2007 16:06:29 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] Question about hosts when setting up
> To: "nagios-users" <nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA0663DBED at misex01.ena.com>
> Content-Type: text/plain;	charset="US-ASCII"
>
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Formoso, Travis
>> Sent: Monday, January 15, 2007 2:04 PM
>> To: nagios-users
>> Subject: [Nagios-users] Question about hosts when setting up
>>
>> Hello,
>>
>>
>>
>> I have setup monitoring on our companies website and when I check to
> see
>> if it will run correctly I get this message.
>>
>>
>>
>> Error: Could not find any host matching '(username)'
>>
>> Error: Could not expand member hosts specified in hostgroup (config
> file
>> '/etc/nagios/hostgroups.cfg', starting on line2)
>
> What does the definition starting on line 2 of
> /etc/nagios/hostgroups.cfg look like? That's what nagios is complaining
> about and it's a unique configuration that you've created. I would guess
> that you've included '(username)' on the members line as if it were a
> host. You shouldn't. Only host names should go there, not contacts.
>
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup
>
> --
> Marc
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 15 Jan 2007 15:11:27 -0700
> From: David Rudder <david.rudder at reliableresponse.net>
> Subject: [Nagios-users] Nagios receiving acknowledgements from behind
> 	firewall?
> To: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <45ABFC0F.9050901 at reliableresponse.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
> I'm building a website which will be hosted on a paid-hosting provider.
> I'd like to be able to click on a link that will send acknowledgments
> and comments in to a Nagios server running on a corporate LAN.  So,
> there's a firewall between the hosted website and the Nagios site, with
> Nagios able to connect directly to the hosted site, but the hosted site
> can't talk to Nagios.
>
> Is there any way to get Nagios to poll for acknowledgments and
> comments?  I looked into using NRPE for this, but it seems to only
> handle service and host checks, not acks and comments.  Has anyone done
> this before?
>
> Disclaimer:  it's for a commercial service.  I won't advertise it here,
> but I just wanted y'all to know, just in case.
>
> -Dave
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 16 Jan 2007 11:56:04 +1300
> From: "Steve Shipway" <s.shipway at auckland.ac.nz>
> Subject: Re: [Nagios-users] NsClient 2.0.1
> To: "Marco Borsani" <m.borsani at it.net>,
> 	<nagios-users at lists.sourceforge.net>
> Message-ID:
> 	<12A6FDDD13C460408A6E47E5DB1235A27978D5 at UXCHANGE3.UoA.auckland.ac.nz>
> Content-Type: text/plain; charset="us-ascii"
>
> The client is sending None&2&5 which is correct for a 5-min CPU average
> request with the default password.
>
> If you have modified the password on the pnsclient agent then this may
> be the cause (this is done in the registry).  Alternatively check your
> check_nt program as it may be more recent and not compatible?  We use
> nagios-plugins 1.4 and this works with pnsclient2.0.1 correctly.
>
> Steve
>
>
> --
> Steve Shipway
> ITSS, University of Auckland
> (09) 3737 599 x 86487
> s.shipway at auckland.ac.nz
>
>
>
>
>
>
> ________________________________
>
> 	From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marco
> Borsani
> 	Sent: Tuesday, 16 January 2007 3:39 a.m.
> 	To: nagios-users at lists.sourceforge.net
> 	Subject: [Nagios-users] NsClient 2.0.1
>
>
>
> 	Hi all .
>
>
>
> 	I installed NsClient (2.0.1) on a Windows 2000 server. It is
> working fine, but if I want to check CPULOAD I will read following error
> message:
>
>
>
> 	NSClient - ERROR:Malformed request or internal error. Check
> EventLog:None&2&5
>
>
>
> 	Nagios server is a 1.4 version
>
>
>
> 	Have you got any idea?
>
>
>
> 	Thanks !
>
> 	Marco
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070116/c3213985/attachment.html
>
> ------------------------------
>
> Message: 7
> Date: Mon, 15 Jan 2007 18:08:44 -0500
> From: "Dan Langille" <dan at langille.org>
> Subject: [Nagios-users] NRPE: Unable to read output
> To: nagios-users at lists.sourceforge.net
> Message-ID: <45ABC32C.26173.9BA5C323 at dan.langille.org>
> Content-Type: text/plain; charset=US-ASCII
>
> Hi folks,
>
> I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote
> script to work.  It seems that no perl script works, but I can get
> compiled plug-ins to work.
>
> The result is, which invoked on the nagios server is:
>
> $ ./check_nrpe -H app09 -c check_raid_dell
> NRPE: Unable to read output
>
> On the remote machine, app09, I get:
>
> $ perl check_raid_dell
> RAID_DELL CRITICAL: RAID is critical.
> $
>
> I know that a value is being returned:
>
> $ echo $?
> 2
> $
>
> It's as if the remote script is inappropriate for use with nrpe.  I
> can get other scripts to work:
>
>
> $ ./check_nrpe -H app09 -c check_users
> USERS OK - 1 users currently logged in |users=1;5;10;0
>
> $ ./check_nrpe -H app09 -c check_load
> OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0;
> load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0;
>
>
> FWIW, both of the above scripts are binaries:
>
> $ file check_load check_users check_raid_dell
> check_load:      ELF 64-bit LSB executable, AMD x86-64, version 1
> (FreeBSD), dynamically linked (uses shared libs), stripped
> check_users:     ELF 64-bit LSB executable, AMD x86-64, version 1
> (FreeBSD), dynamically linked (uses shared libs), stripped
> check_raid_dell: perl script text
>
> I have confirmed that the user that nrpe is running as can execute
> the command:
>
> # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl
> check_raid_dell"
> RAID_DELL CRITICAL: RAID is critical.
>
> Ideas?  Suggestions?  Plans?
>
> --
> Dan Langille : Software Developer looking for work
> my resume: http://www.freebsddiary.org/dan_langille.php
> PGCon - The PostgreSQL Conference - http://www.pgcon.org/
>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 15 Jan 2007 16:24:12 -0700
> From: "Aaron Segura" <Aaron.Segura at cabelas.com>
> Subject: Re: [Nagios-users] NRPE: Unable to read output
> To: "Dan Langille" <dan at langille.org>,
> 	<nagios-users at lists.sourceforge.net>
> Message-ID:
> 	<2D0245E43DEC724F81592D697F05689904C4340D at SIDHQEXCHMB1.Cabelas.Corp>
> Content-Type: text/plain;	charset="us-ascii"
>
> What does the nrpe.cfg definition for your 'check_raid_dell' command
> look like?
>
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Dan
> Langille
> Sent: Monday, January 15, 2007 4:09 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] NRPE: Unable to read output
>
> Hi folks,
>
> I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote
> script to work.  It seems that no perl script works, but I can get
> compiled plug-ins to work.
>
> The result is, which invoked on the nagios server is:
>
> $ ./check_nrpe -H app09 -c check_raid_dell
> NRPE: Unable to read output
>
> On the remote machine, app09, I get:
>
> $ perl check_raid_dell
> RAID_DELL CRITICAL: RAID is critical.
> $
>
> I know that a value is being returned:
>
> $ echo $?
> 2
> $
>
> It's as if the remote script is inappropriate for use with nrpe.  I
> can get other scripts to work:
>
>
> $ ./check_nrpe -H app09 -c check_users
> USERS OK - 1 users currently logged in |users=1;5;10;0
>
> $ ./check_nrpe -H app09 -c check_load
> OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0;
> load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0;
>
>
> FWIW, both of the above scripts are binaries:
>
> $ file check_load check_users check_raid_dell
> check_load:      ELF 64-bit LSB executable, AMD x86-64, version 1
> (FreeBSD), dynamically linked (uses shared libs), stripped
> check_users:     ELF 64-bit LSB executable, AMD x86-64, version 1
> (FreeBSD), dynamically linked (uses shared libs), stripped
> check_raid_dell: perl script text
>
> I have confirmed that the user that nrpe is running as can execute
> the command:
>
> # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl
> check_raid_dell"
> RAID_DELL CRITICAL: RAID is critical.
>
> Ideas?  Suggestions?  Plans?
>
> --
> Dan Langille : Software Developer looking for work
> my resume: http://www.freebsddiary.org/dan_langille.php
> PGCon - The PostgreSQL Conference - http://www.pgcon.org/
>
> ------------------------------------------------------------------------
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> V
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 15 Jan 2007 18:40:04 -0500
> From: "Dan Langille" <dan at langille.org>
> Subject: Re: [Nagios-users] NRPE: Unable to read output
> To: nagios-users at lists.sourceforge.net
> Message-ID: <45ABCA84.4827.9BC2740B at dan.langille.org>
> Content-Type: text/plain; charset=US-ASCII
>
> On 15 Jan 2007 at 18:08, Dan Langille wrote:
>
>> Hi folks,
>>
>> I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote
>> script to work.  It seems that no perl script works, but I can get
>> compiled plug-ins to work.
>>
>> The result is, which invoked on the nagios server is:
>>
>> $ ./check_nrpe -H app09 -c check_raid_dell
>> NRPE: Unable to read output
>>
>> On the remote machine, app09, I get:
>>
>> $ perl check_raid_dell
>> RAID_DELL CRITICAL: RAID is critical.
>> $
>>
>> I know that a value is being returned:
>>
>> $ echo $?
>> 2
>> $
>>
>> It's as if the remote script is inappropriate for use with nrpe.  I
>> can get other scripts to work:
>>
>>
>> $ ./check_nrpe -H app09 -c check_users
>> USERS OK - 1 users currently logged in |users=1;5;10;0
>>
>> $ ./check_nrpe -H app09 -c check_load
>> OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0;
>> load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0;
>>
>>
>> FWIW, both of the above scripts are binaries:
>>
>> $ file check_load check_users check_raid_dell
>> check_load:      ELF 64-bit LSB executable, AMD x86-64, version 1
>> (FreeBSD), dynamically linked (uses shared libs), stripped
>> check_users:     ELF 64-bit LSB executable, AMD x86-64, version 1
>> (FreeBSD), dynamically linked (uses shared libs), stripped
>> check_raid_dell: perl script text
>>
>> I have confirmed that the user that nrpe is running as can execute
>> the command:
>>
>> # su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl
>> check_raid_dell"
>> RAID_DELL CRITICAL: RAID is critical.
>>
>> Ideas?  Suggestions?  Plans?
>
> My thanks to bernardl for the repeated questions about what I was
> doing.  The solution: write a wrapper which does a cd.
>
> # cat check_raid_dell_wrapper
> #!/bin/sh
> cd /usr/local/libexec/nagios
> perl check_raid_dell
>
> Then refer to the wrapper in the nrpe.cfg on the remote server:
>
> # grep dell /usr/local/etc/nrpe.cfg
> command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra
> pper
>
> NOTE the use of the wrapper path
>
> Restart nrpe on the remote box and then test it on the server:
>
>
> $ ./check_nrpe -H app09 -c check_raid_dell
> RAID_DELL CRITICAL: RAID is critical.
>
> \o/
>
> cheers
>
>
> --
> Dan Langille : Software Developer looking for work
> my resume: http://www.freebsddiary.org/dan_langille.php
> PGCon - The PostgreSQL Conference - http://www.pgcon.org/
>
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 15 Jan 2007 18:46:08 -0500
> From: "Formoso, Travis" <Travis.Formoso at blueslate.net>
> Subject: Re: [Nagios-users] Question about hosts when setting up
> To: marc <marc at ena.com>
> Cc: nagios-users <nagios-users at lists.sourceforge.net>
> Message-ID: <H00000c1004734a1.1168904766.localhost.localdomain at MHS>
> Content-Type: text/plain;	charset="US-ASCII"
>
>> What does the definition starting on line 2 of
>> /etc/nagios/hostgroups.cfg look like? That's what nagios is complaining
>> about and it's a unique configuration that you've created. I would guess
>> that you've included '(username)' on the members line as if it were a
>> host. You shouldn't. Only host names should go there, not contacts.
>
>> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup
>
> --
> Marc
>
> Thanks Marc- I was putting in the usernames and not my host - works fine
> now. Now on to setting up more services :P
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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 e-mail and any files transmitted with it are for the sole use of
> Blue Slate Solutions and the intended recipient(s) and may contain
> confidential and privileged information. If you are not the intended
> recipient, please contact the sender by reply e-mail and destroy all
> copies of the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> or any action taken in reliance on this e-mail is strictly prohibited
> and may be unlawful.
>
>
>
> ------------------------------
>
> Message: 11
> Date: Tue, 16 Jan 2007 01:12:53 +0100 (MET)
> From: Arno Lehmann <al at its-lehmann.de>
> Subject: Re: [Nagios-users] NRPE: Unable to read output
> To: nagios-users at lists.sourceforge.net
> Message-ID: <45AC1884.80705 at its-lehmann.de>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> On 1/16/2007 12:40 AM, Dan Langille wrote:
>> On 15 Jan 2007 at 18:08, Dan Langille wrote:
>>
>>
>>>Hi folks,
>>>
>>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote
>>>script to work.  It seems that no perl script works, but I can get
>>>compiled plug-ins to work.
> ...
>> My thanks to bernardl for the repeated questions about what I was
>> doing.  The solution: write a wrapper which does a cd.
>>
>> # cat check_raid_dell_wrapper
>> #!/bin/sh
>> cd /usr/local/libexec/nagios
>> perl check_raid_dell
>>
>> Then refer to the wrapper in the nrpe.cfg on the remote server:
>>
>> # grep dell /usr/local/etc/nrpe.cfg
>> command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra
>> pper
>
> Interesting. Should be possible to invoke the check script directly,
> though. You can call it with its path, it should have a hash bang line,
> and the necessary inclusion of utils.pm could be handled from inside the
> script. Which, incidentially, is how the standard plugins I know work :-)
>
> But a wrapper is often the solution to plugin problems...
>
> Arno
>
>> NOTE the use of the wrapper path
>>
>> Restart nrpe on the remote box and then test it on the server:
>>
>>
>> $ ./check_nrpe -H app09 -c check_raid_dell
>> RAID_DELL CRITICAL: RAID is critical.
>>
>> \o/
>>
>> cheers
>>
>>
>
> --
> IT-Service Lehmann                    al at its-lehmann.de
> Arno Lehmann                  http://www.its-lehmann.de
>
>
>
> ------------------------------
>
> Message: 12
> Date: Mon, 15 Jan 2007 19:26:49 -0500
> From: "Dan Langille" <dan at langille.org>
> Subject: Re: [Nagios-users] NRPE: Unable to read output
> To: Arno Lehmann <al at its-lehmann.de>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <45ABD579.18355.9BED426B at dan.langille.org>
> Content-Type: text/plain; charset=US-ASCII
>
> On 16 Jan 2007 at 1:12, Arno Lehmann wrote:
>
>> Hi,
>>
>> On 1/16/2007 12:40 AM, Dan Langille wrote:
>> > On 15 Jan 2007 at 18:08, Dan Langille wrote:
>> >
>> >
>> >>Hi folks,
>> >>
>> >>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote
>> >>script to work.  It seems that no perl script works, but I can get
>> >>compiled plug-ins to work.
>> ...
>> > My thanks to bernardl for the repeated questions about what I was
>> > doing.  The solution: write a wrapper which does a cd.
>> >
>> > # cat check_raid_dell_wrapper
>> > #!/bin/sh
>> > cd /usr/local/libexec/nagios
>> > perl check_raid_dell
>> >
>> > Then refer to the wrapper in the nrpe.cfg on the remote server:
>> >
>> > # grep dell /usr/local/etc/nrpe.cfg
>> > command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra
>> > pper
>>
>> Interesting. Should be possible to invoke the check script directly,
>> though. You can call it with its path, it should have a hash bang line,
>> and the necessary inclusion of utils.pm could be handled from inside the
>> script. Which, incidentially, is how the standard plugins I know work
>> :-)
>>
>> But a wrapper is often the solution to plugin problems...
>
>
> We write that, with the full path.  That is what led us to the
> wrapper solution:
>
> # su -m -c nagios nagios c
> "/usr/local/libexec/nagios/check_raid_dell"
> Can't locate utils.pm in @INC (@INC contains: nagios
> /usr/local/lib/perl5/5.8.8/BSDPAN
> /usr/local/lib/perl5/site_perl/5.8.8/mach
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
> /usr/local/libexec/nagios/check_raid_dell line 17.
> BEGIN failed--compilation aborted at
> /usr/local/libexec/nagios/check_raid_dell line 17.
> #
>
>
> --
> Dan Langille : Software Developer looking for work
> my resume: http://www.freebsddiary.org/dan_langille.php
> PGCon - The PostgreSQL Conference - http://www.pgcon.org/
>
>
>
>
>
> ------------------------------
>
> Message: 13
> Date: Tue, 16 Jan 2007 02:06:04 +0100 (MET)
> From: Arno Lehmann <al at its-lehmann.de>
> Subject: Re: [Nagios-users] NRPE: Unable to read output
> To: nagios-users at lists.sourceforge.net
> Message-ID: <45AC24FA.70300 at its-lehmann.de>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> On 1/16/2007 1:26 AM, Dan Langille wrote:
>> On 16 Jan 2007 at 1:12, Arno Lehmann wrote:
>>
>>
>>>Hi,
>>>
>>>On 1/16/2007 12:40 AM, Dan Langille wrote:
>>>
>>>>On 15 Jan 2007 at 18:08, Dan Langille wrote:
>>>>
>>>>
>>>>
>>>>>Hi folks,
>>>>>
>>>>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote
>>>>>script to work.  It seems that no perl script works, but I can get
>>>>>compiled plug-ins to work.
>>>
>>>...
>>>
>>>>My thanks to bernardl for the repeated questions about what I was
>>>>doing.  The solution: write a wrapper which does a cd.
>>>>
>>>># cat check_raid_dell_wrapper
>>>>#!/bin/sh
>>>>cd /usr/local/libexec/nagios
>>>>perl check_raid_dell
>>>>
>>>>Then refer to the wrapper in the nrpe.cfg on the remote server:
>>>>
>>>># grep dell /usr/local/etc/nrpe.cfg
>>>>command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra
>>>>pper
>>>
>>>Interesting. Should be possible to invoke the check script directly,
>>>though. You can call it with its path, it should have a hash bang line,
>>>and the necessary inclusion of utils.pm could be handled from inside the
>>>script. Which, incidentially, is how the standard plugins I know work
>>> :-)
>>>
>>>But a wrapper is often the solution to plugin problems...
>>
>>
>>
>> We write that, with the full path.  That is what led us to the
>> wrapper solution:
>>
>> # su -m -c nagios nagios c
>> "/usr/local/libexec/nagios/check_raid_dell"
>> Can't locate utils.pm in @INC (@INC contains: nagios
>> /usr/local/lib/perl5/5.8.8/BSDPAN
>> /usr/local/lib/perl5/site_perl/5.8.8/mach
>> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
>> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
>> /usr/local/libexec/nagios/check_raid_dell line 17.
>> BEGIN failed--compilation aborted at
>> /usr/local/libexec/nagios/check_raid_dell line 17.
>> #
>>
>
> Well, I'm not a perl guru, but in the standard plugins I looked at I
> have a line "use lib "/usr/local/nagios2/libexec"  ;" which looks like
> it is important for cases like yours...
>
> Arno
>
>
> --
> IT-Service Lehmann                    al at its-lehmann.de
> Arno Lehmann                  http://www.its-lehmann.de
>
>
>
> ------------------------------
>
> Message: 14
> Date: Mon, 15 Jan 2007 20:25:02 -0500
> From: "Dan Langille" <dan at langille.org>
> Subject: Re: [Nagios-users] NRPE: Unable to read output
> To: Arno Lehmann <al at its-lehmann.de>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <45ABE31E.14131.9C228E28 at dan.langille.org>
> Content-Type: text/plain; charset=US-ASCII
>
> On 16 Jan 2007 at 2:06, Arno Lehmann wrote:
>
>> Hi,
>>
>> On 1/16/2007 1:26 AM, Dan Langille wrote:
>> > On 16 Jan 2007 at 1:12, Arno Lehmann wrote:
>> >
>> >
>> >>Hi,
>> >>
>> >>On 1/16/2007 12:40 AM, Dan Langille wrote:
>> >>
>> >>>On 15 Jan 2007 at 18:08, Dan Langille wrote:
>> >>>
>> >>>
>> >>>
>> >>>>Hi folks,
>> >>>>
>> >>>>I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote
>> >>>>script to work.  It seems that no perl script works, but I can get
>> >>>>compiled plug-ins to work.
>> >>
>> >>...
>> >>
>> >>>My thanks to bernardl for the repeated questions about what I was
>> >>>doing.  The solution: write a wrapper which does a cd.
>> >>>
>> >>># cat check_raid_dell_wrapper
>> >>>#!/bin/sh
>> >>>cd /usr/local/libexec/nagios
>> >>>perl check_raid_dell
>> >>>
>> >>>Then refer to the wrapper in the nrpe.cfg on the remote server:
>> >>>
>> >>># grep dell /usr/local/etc/nrpe.cfg
>> >>>command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra
>> >>>pper
>> >>
>> >>Interesting. Should be possible to invoke the check script directly,
>> >>though. You can call it with its path, it should have a hash bang
>> line,
>> >>and the necessary inclusion of utils.pm could be handled from inside
>> the
>> >>script. Which, incidentially, is how the standard plugins I know work
>> :-)
>> >>
>> >>But a wrapper is often the solution to plugin problems...
>> >
>> >
>> >
>> > We write that, with the full path.  That is what led us to the
>> > wrapper solution:
>> >
>> > # su -m -c nagios nagios c
>> > "/usr/local/libexec/nagios/check_raid_dell"
>> > Can't locate utils.pm in @INC (@INC contains: nagios
>> > /usr/local/lib/perl5/5.8.8/BSDPAN
>> > /usr/local/lib/perl5/site_perl/5.8.8/mach
>> > /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
>> > /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
>> > /usr/local/libexec/nagios/check_raid_dell line 17.
>> > BEGIN failed--compilation aborted at
>> > /usr/local/libexec/nagios/check_raid_dell line 17.
>> > #
>> >
>>
>> Well, I'm not a perl guru, but in the standard plugins I looked at I
>> have a line "use lib "/usr/local/nagios2/libexec"  ;" which looks like
>> it is important for cases like yours...
>
> $ grep "use lib" check_*
> check_breeze:use lib "nagios" ;
> check_disk_smb:use lib "nagios" ;
> check_file_age:use lib "nagios";
> check_flexlm:use lib "nagios";
> check_ifoperstatus:use lib "nagios" ;
> check_ifstatus:use lib "nagios" ;
> check_ircd:use lib "nagios";
> check_mailq:use lib  "nagios";
> check_rpc:use lib "nagios";
> check_wave:use lib "nagios";
>
> Yep...  How unfortunate that the one I chose to base my plugin on is
> check_file_age, which does not have this.
>
>
> --
> Dan Langille : Software Developer looking for work
> my resume: http://www.freebsddiary.org/dan_langille.php
> PGCon - The PostgreSQL Conference - http://www.pgcon.org/
>
>
>
>
>
> ------------------------------
>
> Message: 15
> Date: Tue, 16 Jan 2007 01:23:27 -0500
> From: "Formoso, Travis" <Travis.Formoso at blueslate.net>
> Subject: [Nagios-users] sending email out
> To: nagios-users <nagios-users at lists.sourceforge.net>
> Message-ID: <H00000c1004740c4.1168928604.localhost.localdomain at MHS>
> Content-Type: text/plain; charset="us-ascii"
>
> Hey guys
>
>
>
> I had a service go into warning tonight and I did not receive and email.
> I have notification interval at 120, period 24x7, options w,u,c,r
>
>
>
> I went in and changed commands.cfg to mailq because in my /bin it is
> mailq and not mailx..
>
>
>
> I configured the other files with my name and email address and have the
> admin email set as the email in my main conf file.
>
>
>
> Anything else I can do to get emails sent to me?
>
>
>
>
>
> This e-mail and any files transmitted with it are for the sole use of
> Blue Slate Solutions and the intended recipient(s) and may contain
> confidential and privileged information. If you are not the intended
> recipient, please contact the sender by reply e-mail and destroy all
> copies of the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> or any action taken in reliance on this e-mail is strictly prohibited
> and may be unlawful.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070116/834db3ad/attachment.html
>
> ------------------------------
>
> Message: 16
> Date: Mon, 15 Jan 2007 22:57:30 -0800
> From: Jay Chandler <chandler at chapman.edu>
> Subject: Re: [Nagios-users] sending email out
> To: "Formoso, Travis" <Travis.Formoso at blueslate.net>
> Cc: nagios-users <nagios-users at lists.sourceforge.net>
> Message-ID: <45AC775A.20601 at chapman.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Formoso, Travis wrote:
>>
>> Hey guys
>>
>>
>>
>> I had a service go into warning tonight and I did not receive and
>> email. I have notification interval at 120, period 24x7, options w,u,c,r
>>
>>
>>
>> I went in and changed commands.cfg to mailq because in my /bin it is
>> mailq and not mailx..
>>
>>
>>
>> I configured the other files with my name and email address and have
>> the admin email set as the email in my main conf file.
>>
>>
>>
>> Anything else I can do to get emails sent to me?
>>
>
>  From my config:
>
> contacts.cfg:
>
>
> define contact{
>         contact_name                    chandler
>         alias                           chandler
>         service_notification_period     24x7
>         host_notification_period        24x7
>         service_notification_options    w,u,c,r
>         host_notification_options       d,u,r
>         service_notification_commands   notify-by-email
>         host_notification_commands      host-notify-by-email
>         email                           chandler at chapman.edu
>         }
>
> commands.cfg:
>
> # 'notify-by-email' command definition
> define command{
>         command_name    notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios 2.6
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$
> alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>         }
>
> # 'host-notify-by-email' command definition
> define command{
>         command_name    host-notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios 2.6
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
> $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
> $LONGDATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for
> $HOSTNAME$!" $CONTACTEMAIL$
>         }
>
>
> Then I set my host and service definitions, and everything works like a
> charm.  That help any?
>
> --
> Jay Chandler
> Network Administrator, Chapman University
> 714.628.7249 / chandler at chapman.edu
> Today's Excuse: emissions from GSM-phones
>
>
>
>
> ------------------------------
>
> Message: 17
> Date: Mon, 15 Jan 2007 22:58:40 -0800
> From: Jay Chandler <chandler at chapman.edu>
> Subject: Re: [Nagios-users] sending email out
> To: "Formoso, Travis" <Travis.Formoso at blueslate.net>
> Cc: nagios-users <nagios-users at lists.sourceforge.net>
> Message-ID: <45AC77A0.8070504 at chapman.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Formoso, Travis wrote:
>>
>> Hey guys
>>
>>
>>
>> I had a service go into warning tonight and I did not receive and
>> email. I have notification interval at 120, period 24x7, options w,u,c,r
>>
>>
>>
>> I went in and changed commands.cfg to mailq because in my /bin it is
>> mailq and not mailx..
>>
>>
>>
>> I configured the other files with my name and email address and have
>> the admin email set as the email in my main conf file.
>>
>>
>>
>> Anything else I can do to get emails sent to me?
>>
> Oh, one other thought:
>
> Any chance it was caused by a soft fail state, wherein the service
> recovered before it entered a hard state?  If so, you won't receive a
> notification about it.
>
> --
> Jay Chandler
> Network Administrator, Chapman University
> 714.628.7249 / chandler at chapman.edu
> Today's Excuse: emissions from GSM-phones
>
>
>
>
> ------------------------------
>
> Message: 18
> Date: Tue, 16 Jan 2007 02:14:07 -0500
> From: "Formoso, Travis" <Travis.Formoso at blueslate.net>
> Subject: Re: [Nagios-users] sending email out
> To: chandler <chandler at chapman.edu>
> Cc: nagios-users <nagios-users at lists.sourceforge.net>
> Message-ID: <H00000c1004740c8.1168931645.localhost.localdomain at MHS>
> Content-Type: text/plain;	charset="US-ASCII"
>
>
>
> Ok here are my config files:
>
> Config: # 'tformoso' contact definition
> define contact{
>  contact_name                   tformoso
>  alias                          nagios admin
>  service_notification_period    24x7
>  host_notification_period       24x7
>  service_notification_options   w,u,c,r
>  host_notification_options      d,u,r
>  service_notification_commands  notify-by-email
>  host_notification_commands     host-notify-by-email
>  email                          travis.formoso at blueslate.net
> }
>
> # 'bssadmins' contact group definition
> define contactgroup{
>  contactgroup_name      bssadmins
>  alias                  blueslateadmins
>  members                tformoso
> }
>
> # 'host-notify-by-email' command definition
> define command{
>         command_name    host-notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios 2.6
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
> $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
> $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host
> $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
>         }
>
> # 'notify-by-email' command definition
> define command{
>         command_name    notify-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios 2.6
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
> Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$
> alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
> $CONTACTEMAIL$
>
> I see on the web interface it trys to send me a email - however it still
> does not get to me.
>
>
>
>
>
>
> This e-mail and any files transmitted with it are for the sole use of
> Blue Slate Solutions and the intended recipient(s) and may contain
> confidential and privileged information. If you are not the intended
> recipient, please contact the sender by reply e-mail and destroy all
> copies of the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> or any action taken in reliance on this e-mail is strictly prohibited
> and may be unlawful.
>
>
>
> ------------------------------
>
> Message: 19
> Date: Mon, 15 Jan 2007 23:30:34 -0800
> From: Jay Chandler <chandler at chapman.edu>
> Subject: Re: [Nagios-users] sending email out
> To: "Formoso, Travis" <Travis.Formoso at blueslate.net>, 	nagios-users
> 	<nagios-users at lists.sourceforge.net>
> Message-ID: <45AC7F1A.3050403 at chapman.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Formoso, Travis wrote:
>> Ok here are my config files:
>>
>> [...snip]
>>
>
> All right... beat this into the command line, all on one line:
>
> /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: TEST
> \nHost: PRETENDIEXIST \nState: DENIAL \nAddress: 192.168.1.1\nInfo: Wuznme
> boss\n\nDate/Time: now\n" | /bin/mail -s "Host On Prozac alert for
> PRETENDIEXIST!" travis.formoso at blueslate.net
>
> And see what happens.  Here, it shows the path to /mail isn't correct,
> so I have to adjust it to get it to work.  You'll probably have to play
> with the syntax a bit, but when the command line works, so'll the Nagios
> alerts.
>
> --
> Jay Chandler
> Network Administrator, Chapman University
> 714.628.7249 / chandler at chapman.edu
> Today's Excuse: Atilla the Hub
>
>
>
>
> ------------------------------
>
> Message: 20
> Date: Tue, 16 Jan 2007 10:41:45 +0300
> From: Dmitriy Kirhlarov <dimma at higis.ru>
> Subject: Re: [Nagios-users] Plugin issue
> To: nagios-users at lists.sourceforge.net
> Message-ID: <20070116074144.GA1383 at dkirhlarov.mow.oilspace.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, Jan 15, 2007 at 07:56:47AM +0300, tyrus at icsit.jkuat.ac.ke wrote:
>
>> Hallo thanks so much for your time.However the command is still timing
>> out
>> and giving me the same error.Here is my command definition in the hosts
>
> 1. Try to run command manualy.
> 2. Check your host with "ping" command. Host alive?
> 3. What your operation system? AFAIR, FreeBSD port have special patch
> for check_ping.
>
> WBR
> Dmitriy
>
>
>
> ------------------------------
>
> Message: 21
> Date: Mon, 15 Jan 2007 23:44:22 -0800
> From: Jay Chandler <chandler at chapman.edu>
> Subject: Re: [Nagios-users] Plugin issue
> To: nagios-users at lists.sourceforge.net
> Message-ID: <45AC8256.4070205 at chapman.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dmitriy Kirhlarov wrote:
>> On Mon, Jan 15, 2007 at 07:56:47AM +0300, tyrus at icsit.jkuat.ac.ke wrote:
>>
>>
>>> Hallo thanks so much for your time.However the command is still timing
>>> out
>>> and giving me the same error.Here is my command definition in the hosts
>>>
>>
>> 1. Try to run command manualy.
>> 2. Check your host with "ping" command. Host alive?
>> 3. What your operation system? AFAIR, FreeBSD port have special patch
>> for check_ping.
>>
>
> I don't have the original message handy, but on FreeBSD 6.1 a few weeks
> ago I had a problem where the ping would choke unexpectedly.
>
> I solved this by installing a replacement compiled with IPv6 turned off,
> and it hasn't recurred since.
>
> --
> Jay Chandler
> Network Administrator, Chapman University
> 714.628.7249 / chandler at chapman.edu
> Today's Excuse: Atilla the Hub
>
>
>
>
> ------------------------------
>
> Message: 22
> Date: Tue, 16 Jan 2007 10:51:19 +0300
> From: Dmitriy Kirhlarov <dimma at higis.ru>
> Subject: Re: [Nagios-users] addicted from other hosts
> To: nagios-users at lists.sourceforge.net
> Message-ID: <20070116075119.GC1383 at dkirhlarov.mow.oilspace.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, Jan 15, 2007 at 06:09:13PM +0100, Daniel wrote:
>
>>                /---node3--node4
>> Nagios---Router
>>                \---node1--node2
>>
>>
>>
>> So, when nagios see that the touter is offline they dont need to alert
>> that alle nodes are offline becaus i know that all nodes must be
>> offline too ;)
>
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#servicedependency
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostdependency
>
> WBR
> Dmitriy
>
>
>
> ------------------------------
>
> Message: 23
> Date: Tue, 16 Jan 2007 09:28:47 +0100
> From: Christopher Odenbach <odenbach at uni-paderborn.de>
> Subject: Re: [Nagios-users] check for terminal servers/rdp?
> To: nagios-users at lists.sourceforge.net
> Message-ID: <200701160928.48609.odenbach at uni-paderborn.de>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi,
>
>> I'd like to check that it can properly talk to rdp if I can. For
>> example, I also use vnc, so I wrote a bash script around vncsnapshot
>> to form a valid plugin to send creds and then pull the screen from
>> the machine. Only if it pulled successfully would you get an OK
>> status.
>>
>> Since I'm moving away from vnc and towards terminal servers I would
>> like to be able to implement a similar test, although the login part
>> isn't necessary, as long as I can get to the login prompt I know
>> it'll work and I don't want to fill up logs with continuous windows
>> logins.
>
> Perhaps you just ask the people from rdesktop. They have deep knowledge
> of the rdp protocol and might know how to get information about the
> status of a terminal server.
>
> If you find anything useful please let me know - I am interested too.
>
> Christopher
>
> --
> ======================================================
>     Dipl.-Ing. Christopher Odenbach
>     Zentrum fuer Informations- und Medientechnologien
>     Universitaet Paderborn
>     Raum N5.110
>     odenbach at uni-paderborn.de
>     Tel.: +49 5251 60 5315
> ======================================================
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 189 bytes
> Desc: not available
> Url :
> http://sourceforge.net/mailarchive/forum.php?forum=nagios-users/attachments/20070116/e13cef2b/attachment.bin
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
> End of Nagios-users Digest, Vol 8, Issue 23
> *******************************************
>

Thanks alot andy and everyone else who chipped in.Now how do i enable it
so that i can receive sms notifications?


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list