help | 19 Dec 01:31 2014

Re: Re: check_nagios plugin

Hi Everyone -

In an effort to centralize community resources related to Nagios we're 
moving away from the mailing address help@... to the 
online support forums at:

http://support.nagios.com/forum

One huge benefit of moving from the old email address to the online 
support forum is that our support team at Nagios Enterprises will more 
easily be able to help the greater community.  Our team takes great 
pride in providing free help to the Nagios community, in addition to the 
commercial support clients we service.

You can access the Nagios Plugin support forum using this direct link:

http://support.nagios.com/forum/viewforum.php?f=35

If you'd like to duplicate the feel of mailing lists, you can opt to 
receive emails whenever new posts are made to the forum by clicking the 
"Subscribe forum" link in the footer of the page.  You'll have to create 
a forum account in order to do this, as well as to post messages to the 
forum.

In order to prevent messages being split between two venues (forum and 
mailing list), we've enabled a global moderation flag that will prevent 
new messages from being sent to the old nagios-users list.

Scott Wilkerson
Email:  swilkerson@...
(Continue reading)

Ditmar Tavares | 18 Dec 17:06 2014
Picon

check_nagios plugin

I’m new to Linux and also to Nagios monitoring, so it may be something that I’m missing.

 

I setup a second Nagios server so I can monitor my primary Nagios server, basically if the primary Nagios stop monitoring I would like to know via the secondary Nagios.

 

Issue is that I setup the check_nagios plugin and its giving me the status of the Nagios process of the primary server, but when I shutoff the Nagios process on the primary server (for testing), I am NOT getting any notification from the secondary server that something is wrong with the primary, and its also keeps telling me the process on the primary servers is OK.

 

Could you please assist ? thank you in advance.

 

See my host service definition below.

 

 

define service {

        use                             generic-service

        host_name                       ClearMon02

        service_description             Nagios

        check_command                   check_nagios

        notifications_enabled           1

          }

 

My command definition is below

define command{

        command_name    check_nagios

        command_line    $USER1$/check_nagios -F /usr/local/nagios/var/status.dat -e 1 -t  15 -C /usr/local/nagios/bin/nagios

        }

 

 

 


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
m. rothdach | 17 Dec 11:04 2014
Picon

check_procs

Hi there

I am using the check_procs plugin to monitor java processes ... in one case it doesn't work ... it doesn't find the process running if it is called via nrpe. But works on the command line. Could you please have a quick look... here the logs from nrpe and command line:: 

NRPE:
Dec 16 17:03:22 CSS01 nrpe[4233]: Handling the connection...
Dec 16 17:03:22 CSS01 nrpe[4233]: Host is asking for command 'proc_mcs_extended' to be run...
Dec 16 17:03:22 CSS01 nrpe[4233]: Running command: /opt/plugins/check_procs -v -v -w 1:1 -c 1:2 -C java -a /home/xe3ops/1/bin/NISmngr
Dec 16 17:03:22 CSS01 nrpe[4233]: Command completed with return code 2 and output: CMD: /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args' PROCS CRITICAL: 0 processes with command name 'java', args '/home/xe3ops/1/bin/NISmngr'|processes=0;
Dec 16 17:03:22 CSS01 nrpe[4233]: Sending response - bytes left: 161
Dec 16 17:03:22 CSS01 nrpe[4233]: Return Code: 2, Output: CMD: /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args' PROCS CRITICAL: 0 processes with command name 'java', args '/home/xe3ops/1/bin/NISmngr'|processes=0;
Dec 16 17:03:22 CSS01 nrpe[4233]: Connection from 172.20.10.37 closed.


direct on command line:
CSS01 /etc# /opt/plugins/check_procs -v -v -w 1:1 -c 1:2 -C java -a /home/xe3ops/1/bin/NISmngr
CMD: /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args'
Matched: uid=1000 vsz=1288528 rss=88668 pid=33636 ppid=28860 pcpu=0.90 stat=Sl etime= prog=java args=java -DStartupTimeout=30000 -Dcom.sun.CORBA.transport.ORBSocketFactoryClass=xsa.xgos.nis.common.s2k.misc.MISCorbSocketFactory -DSocketConnectionTimeout=5000 -Djava.library.path=/home/xe3ops/1/lib:/home/xe3ops/SMF/run/SMF/lib -classpath /home/xe3ops/1/bin/NISmngr.jar:/home/xe3ops/1/lib/NISsmf_drivers.jar:/opt/platform3pp/eclipse-3.5.0__32/plugins/org.eclipse.swt.gtk.linux.x86_3.5.0.v3550b.jar::/opt/application3pp/products/edtftpj-1.5.2/edtftpj-1.5.2.jar xsa.xgos.nis.mngr.core.NISmngrMain
PROCS OK: 1 process with command name 'java', args '/home/xe3ops/1/bin/NISmngr'|processes=1;
 


Plugin Version
/opt/plugins/check_procs -h
check_procs v1.4.16.git (nagios-plugins 1.4.16)
Copyright (c) 1999 Ethan Galstad <nagios-hvcSvQUnuUQdnm+yROfE0A@public.gmane.org>
Copyright (c) 2000-2008 Nagios Plugin Development Team
<nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

Nagios Server on RHEL 6.3, Client on SLES 11 SP1. 

Thank you in advance. 
Best regards,

Manni
Andrew Nagel | 11 Dec 22:42 2014

check_procs question

I just wanted to confirm that this tool uses SNMP to do its check.

It looks like it does to me, but I would like confirmation.

Thank you, 

Andrew Nagel

DJIBEL CPAN | 5 Dec 21:49 2014
Picon

Installation Monitoring::Plugin failed - Monitoring-Plugin-Getopt-03.t test

Dear, I am using StrawberryPerl 5.20, ActivePerl 5.16.3 and installation of Monitoring::Plugin failed. Can you help me : I am using Window 8.1, windows Seven, windows XP ==================================== cpan> install Monitoring::Plugin Running install for module 'Monitoring::Plugin' Fetching with LWP: http://cpan.strawberryperl.com/authors/id/N/NI/NIERLEIN/Monitoring-Plugin-0.37.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/N/NI/NIERLEIN/CHECKSUMS Checksum for E:\Strawberry\cpan\sources\authors\id\N\NI\NIERLEIN\Monitoring-Plugin-0.37.tar.gz ok Configuring N/NI/NIERLEIN/Monitoring-Plugin-0.37.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Config::Tiny 0 not found. Warning: prerequisite Math::Calc::Units 0 not found. Generating a dmake-style Makefile Writing Makefile for Monitoring::Plugin Writing MYMETA.yml and MYMETA.json NIERLEIN/Monitoring-Plugin-0.37.tar.gz E:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for N/NI/NIERLEIN/Monitoring-Plugin-0.37.tar.gz ---- Unsatisfied dependencies detected during ---- ---- NIERLEIN/Monitoring-Plugin-0.37.tar.gz ---- Config::Tiny [requires] Math::Calc::Units [requires] Running install for module 'Config::Tiny' Fetching with LWP: http://cpan.strawberryperl.com/authors/id/R/RS/RSAVAGE/Config-Tiny-2.20.tgz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/R/RS/RSAVAGE/CHECKSUMS Checksum for E:\Strawberry\cpan\sources\authors\id\R\RS\RSAVAGE\Config-Tiny-2.20.tgz ok Configuring R/RS/RSAVAGE/Config-Tiny-2.20.tgz with Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Config-Tiny' version '2.20' RSAVAGE/Config-Tiny-2.20.tgz E:\Strawberry\perl\bin\perl.exe Build.PL -- OK Running Build for R/RS/RSAVAGE/Config-Tiny-2.20.tgz Building Config-Tiny RSAVAGE/Config-Tiny-2.20.tgz E:\Strawberry\perl\bin\perl.exe ./Build -- OK Running Build test t\01.compile.t ...... ok t\02.main.t ......... ok t\03.read.string.t .. ok t\04.utf8.t ......... ok All tests successful. Files=4, Tests=43, 0 wallclock secs ( 0.02 usr + 0.03 sys = 0.05 CPU) Result: PASS RSAVAGE/Config-Tiny-2.20.tgz E:\Strawberry\perl\bin\perl.exe ./Build test -- OK Running Build install Building Config-Tiny Installing E:\Strawberry\perl\site\lib\Config\Tiny.pm RSAVAGE/Config-Tiny-2.20.tgz E:\Strawberry\perl\bin\perl.exe ./Build install --uninst 1 -- OK Running install for module 'Math::Calc::Units' Fetching with LWP: http://cpan.strawberryperl.com/authors/id/S/SF/SFINK/Math-Calc-Units-1.07.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/S/SF/SFINK/CHECKSUMS Checksum for E:\Strawberry\cpan\sources\authors\id\S\SF\SFINK\Math-Calc-Units-1.07.tar.gz ok Configuring S/SF/SFINK/Math-Calc-Units-1.07.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Math::Calc::Units Writing MYMETA.yml and MYMETA.json SFINK/Math-Calc-Units-1.07.tar.gz E:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for S/SF/SFINK/Math-Calc-Units-1.07.tar.gz cp Units/Convert/Byte.pm blib\lib\Math\Calc\Units\Convert\Byte.pm cp Units/Convert/Combo.pm blib\lib\Math\Calc\Units\Convert\Combo.pm cp Units/Convert/Base2Metric.pm blib\lib\Math\Calc\Units\Convert\Base2Metric.pm cp Units/Rank.pm blib\lib\Math\Calc\Units\Rank.pm cp Units/Convert/Base.pm blib\lib\Math\Calc\Units\Convert\Base.pm cp Units.pm blib\lib\Math\Calc\Units.pm cp Units/Grammar.y blib\lib\Math\Calc\Units\Grammar.y cp Units/Convert/Metric.pm blib\lib\Math\Calc\Units\Convert\Metric.pm cp Units/Convert/Time.pm blib\lib\Math\Calc\Units\Convert\Time.pm cp Units/Convert/Distance.pm blib\lib\Math\Calc\Units\Convert\Distance.pm cp Units/Convert.pm blib\lib\Math\Calc\Units\Convert.pm cp Units/Compute.pm blib\lib\Math\Calc\Units\Compute.pm cp Units/Grammar.pm blib\lib\Math\Calc\Units\Grammar.pm cp Units/Convert/Multi.pm blib\lib\Math\Calc\Units\Convert\Multi.pm cp Units/Convert/Date.pm blib\lib\Math\Calc\Units\Convert\Date.pm E:\Strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- script/ucalc blib\script\ucalc pl2bat.bat blib\script\ucalc SFINK/Math-Calc-Units-1.07.tar.gz E:\Strawberry\c\bin\dmake.exe -- OK Running make test E:\Strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\ar ch')" t/*.t t/main.t .. ok t/pod.t ... ok All tests successful. Files=2, Tests=80, 0 wallclock secs ( 0.05 usr + 0.00 sys = 0.05 CPU) Result: PASS SFINK/Math-Calc-Units-1.07.tar.gz E:\Strawberry\c\bin\dmake.exe test -- OK Running make install Installing E:\Strawberry\perl\site\lib\Math\Calc\Units.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Compute.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Grammar.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Grammar.y Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Rank.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Base.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Base2Metric.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Byte.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Combo.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Date.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Distance.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Metric.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Multi.pm Installing E:\Strawberry\perl\site\lib\Math\Calc\Units\Convert\Time.pm Installing E:\Strawberry\perl\site\bin\ucalc Installing E:\Strawberry\perl\site\bin\ucalc.bat Appending installation info to E:\Strawberry\perl\lib/perllocal.pod SFINK/Math-Calc-Units-1.07.tar.gz E:\Strawberry\c\bin\dmake.exe install UNINST=1 -- OK NIERLEIN/Monitoring-Plugin-0.37.tar.gz Has already been unwrapped into directory E:\Strawberry\cpan\build\Monitoring-Plugin-0.37-QLmQKU NIERLEIN/Monitoring-Plugin-0.37.tar.gz Has already been prepared Running make for N/NI/NIERLEIN/Monitoring-Plugin-0.37.tar.gz cp lib/Monitoring/Plugin/Range.pm blib\lib\Monitoring\Plugin\Range.pm cp lib/Monitoring/Plugin/Functions.pm blib\lib\Monitoring\Plugin\Functions.pm cp lib/Monitoring/Plugin/Threshold.pm blib\lib\Monitoring\Plugin\Threshold.pm cp lib/Monitoring/Plugin/Performance.pm blib\lib\Monitoring\Plugin\Performance.pm cp lib/Monitoring/Plugin/Getopt.pm blib\lib\Monitoring\Plugin\Getopt.pm cp lib/Monitoring/Plugin/Config.pm blib\lib\Monitoring\Plugin\Config.pm cp lib/Monitoring/Plugin.pm blib\lib\Monitoring\Plugin.pm cp lib/Monitoring/Plugin/ExitResult.pm blib\lib\Monitoring\Plugin\ExitResult.pm NIERLEIN/Monitoring-Plugin-0.37.tar.gz E:\Strawberry\c\bin\dmake.exe -- OK Running make test E:\Strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib\lib', ' blib\arch')" t/*.t t/check_stuff.t ....................... ok t/Monitoring-Plugin-01.t .............. ok t/Monitoring-Plugin-02.t .............. ok t/Monitoring-Plugin-03.t .............. ok t/Monitoring-Plugin-04.t .............. ok t/Monitoring-Plugin-05.t .............. ok t/Monitoring-Plugin-Functions-01.t .... ok t/Monitoring-Plugin-Functions-02.t .... ok t/Monitoring-Plugin-Functions-03.t .... ok t/Monitoring-Plugin-Functions-04.t .... ok t/Monitoring-Plugin-Getopt-01.t ....... ok t/Monitoring-Plugin-Getopt-02.t ....... ok t/Monitoring-Plugin-Getopt-03.t ....... 1/? # Failed test '15_badsection_catch' # at t/Monitoring-Plugin-Getopt-03.t line 100. # got: 'Invalid section 'bad_section' in config file 't\npg03\plugins.ini'' # expected: 'Invalid section 'bad_section' in config file 't/npg03/plugins.ini'' # Looks like you failed 1 test of 18. t/Monitoring-Plugin-Getopt-03.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/18 subtests t/Monitoring-Plugin-Getopt-04.t ....... ok t/Monitoring-Plugin-Performance-02.t .. ok t/Monitoring-Plugin-Performance.t ..... ok t/Monitoring-Plugin-Range.t ........... ok t/Monitoring-Plugin-Threshold.t ....... ok Test Summary Report ------------------- t/Monitoring-Plugin-Getopt-03.t (Wstat: 256 Tests: 18 Failed: 1) Failed test: 18 Non-zero exit status: 1 Files=18, Tests=990, 4 wallclock secs ( 0.14 usr + 0.00 sys = 0.14 CPU) Result: FAIL Failed 1/18 test programs. 1/990 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' NIERLEIN/Monitoring-Plugin-0.37.tar.gz E:\Strawberry\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports NIERLEIN/Monitoring-Plugin-0.37.tar.gz Stopping: 'install' failed for 'N/NI/NIERLEIN/Monitoring-Plugin-0.37.tar.gz'. Failed during this command: NIERLEIN/Monitoring-Plugin-0.37.tar.gz : make_test NO cpan> ============================================================ Best Regards, Djibel

Aaron Piller | 2 Dec 11:57 2014
Picon

Help with Groundworks Monitoring/Check_imap_receive

Good morning,

 

I am having an issue that relates to this plugin working with Groundworks to check for certain emails, and delete them. I have setup a new 12.04 Linux server with the latest version of Groundworks.

I have been in contact with Groundworks who have helped me so far, but as they don’t know the plugin at all there is only so much they can help with.

 

Please see the attached email correspondence to see where I am at with this.

 

Thank you

 

Aaron Piller
IT Assistant

HPC plc
Victoria Gardens
Burgess Hill
West Sussex
RH15 9RQ
Tel: +44 (0)1444 241671
Fax: +44 (0)1444 247587
www.hpcplc.co.uk


This e-mail is from HPC plc, Registered in England & Wales No. 622352. Registered Office: Victoria Gardens, Burgess Hill, West Sussex RH15 9RQ

This electronic message contains information from HPC plc, which may be privileged and confidential. The information is intended for use only by the individuals or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this information is prohibited. If you received this message in error please notify me immediately on the above number or by e-mail.

From: Ken Ashworth <kashworth@...>
Subject: Re: setup help
Date: 2014-11-18 18:42:24 GMT

That sounds like it is just timing out - basically taking too long.  If you are not running IMAP over SSL, the port should be the default, 143.  If you think it might be a different port, you can verify the port is open with telnet.

If you have this working on the other server, what is the command being run there?  Can you successfully run the scrip from the command line on that system?

Best regards,
Ken

On Tue, Nov 18, 2014 at 3:47 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk> wrote:

I have tried running the command  with ports 993, 25 and 143. 143 doesn’t work same as before. 993 and 25 eventually show a timeout message – so that tells me they are almost connecting but something is stopping them or they are taking too long?

 

Kind regards

 

Aaron Piller
IT Assistant

 

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com]
Sent: 17 November 2014 20:24

To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

 

If you already have a script working on another server, why don't you just copy that script and use the samer parameters that server is using?

 

Best regards,

Ken

 

On Mon, Nov 17, 2014 at 1:09 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk> wrote:

Ok I will do some searching and see if I can find a newer version.

 

I know this plugin does work as we have an older server running linux which does this function successfully. So I will see what version that is running aswell

 

 

Kind regards

 

Aaron Piller
IT Assistant

 

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com]
Sent: 14 November 2014 23:29


To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

 

Successfully telnetting from the groundwork server to the exchange server eliminates the possibility of a firewall on both ends.

 

You can try the command again with the -p 143, but according to the help information you gave me, 143 is the command default port.  It sounds to me like this script - at least this version - just does not work.  That said - the last change in the help output was in 2005, so this is a very old version of the script.  I would try to find the latest version of the same script at the URL I gave you earlier.

 

For what it is worth, I have seen nagios plugins "in the wild" that just didn't work.  This is also why it is so important to make sure you can get the script working from the CLI 1st.

 

The other option would be to look for a different nagios plugin.

 

Best regards,

Ken

 

On Fri, Nov 14, 2014 at 1:22 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk> wrote:

I am telnetting from the groundwork server and it does connect.

 

The firewall on the groundwork server is disabled so wont be blocking anything

 

Kind regards

 

Aaron Piller
IT Assistant

 

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com]
Sent: 13 November 2014 18:56


To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

 

OK, make sure you telnet from the groundwork server: the exchange server could be configured to only allow IMAP from particular IP addresses.

 

Also make sure your firewall on the groundwork server is not blocking IMAP traffic.

 

Best regards,

Ken

 

On Thu, Nov 13, 2014 at 7:44 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk> wrote:

Hi Ken.

 

I tried the telnet 143 and it connected fine, I can even send a test message to myself.

 

I will check the script update shortly

 

Kind regards

 

Aaron Piller
IT Assistant

 

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com]
Sent: 13 November 2014 15:04


To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

 

Hey Aaron,

 

I'm not familiar with the plugin at all, it wasn't written by us, so I can't say if you need one or not.  The problem could be that the server is refusing the connection.  Can you telnet to port 143 from the groundwork server?

telnet mail.hpcplc.co.uk 143

 

I googled the script - looks like there is a newer version here:

 

Best regards,

Ken

 

On Thu, Nov 13, 2014 at 1:08 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk> wrote:

We are using port 143 which is not SSL, for sending we are using port 25. I have tried switching on SSL but this made no difference.

 

Please find attached the plugin – if we do need a new version can you send me a link please.

 

Kind regards

 

Aaron Piller
IT Assistant

 

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com]
Sent: 12 November 2014 19:44


To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

 

Then the server is refusing the connection, or the script itself is broken.

 

What ports do you use for IMAP?  Are you using SSL for IMAP?

 

Are you using the most recent version of the plugin?  Can you attach the plugin you have?

 

Best regards,

Ken

 

On Wed, Nov 12, 2014 at 11:29 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk> wrote:

Already tried that. I get the same issue with the IP address

Sent from my iPhone

On 12 Nov 2014, at 18:14, Ken Ashworth <kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>> wrote:

OK, can you substitute the correct IP address for the hostname?  This will conclusively eliminate name resolution as an issue.

Best regards,
Ken

On Wed, Nov 12, 2014 at 12:53 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
I only edited the script so it matched the other variables however as I said I didn’t keep these changes as they didn’t fix anything. Other than that changed nothing else in there has been touched by me.

DNS is setup and I have double checked it this morning to make sure it is set correct. I can ping mail.hpcplc.co.uk<http://mail.hpcplc.co.uk> and it does resolve the correct IP address.

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 11 November 2014 19:12
To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

Hey Aaron,

I'm not sure why you edited the script - please be careful doing that; you could break it, so make sure you keep careful track of all of your edits, in case you have to revert changes.

the Bad hostname ‘mail.hpcplc.co.uk<http://mail.hpcplc.co.uk>' suggests the script can't make sense of the hostname.  Is DNS set up on this server?  Can you ping mail.hpcplc.co.uk<http://mail.hpcplc.co.uk> as the nagios user from the CLI?  Does it resolve the the right IP address?

Best regards,
Ken

On Tue, Nov 11, 2014 at 1:32 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Hi Ken,

Unfortunately this produces another error message..

The command I run:

su - nagios
/usr/local/groundwork/nagios/libexec/check_imap_recieve/check_imap_receive -H mail.hpcplc.co.uk<http://mail.hpcplc.co.uk> --username groundwork <at> hpcplc.co.uk<mailto:groundwork <at> hpcplc.co.uk> --password omzig -s ALL --nodelete

The output I get from this is;

IMAP RECEIVE CRITICAL – Could not connect to mail.hpcplc.co.uk<http://mail.hpcplc.co.uk> port : Unable to connect to mail.hpcplc.co.uk<http://mail.hpcplc.co.uk>:: IO::Socket::INET: Bad hostname ‘mail.hpcplc.co.uk<http://mail.hpcplc.co.uk>:’ at /usr/local/groundwork/nagios/libexec/check_imap_receive line 128

So I went to line 128 of check_imap_receive.
(I have pasted the complete section below related to this and highlighted line 128 in yellow)

else {
                                $imap_port = $default_imap_port unless $imap_port;
                                $imap = Mail::IMAPClient ->new(Debug =>0 );
                                $imap->Server(“$imap_server:$imap_port”);
                                $imap->User($username);
                                $imap->Password($password);
                                $imap->connect() or die “$ <at> ”;
}

$imap->Peek(1) if $peek;
$imap->Ignoresizeerrors(1);

alarm 0;

};

I tried adding $connect in brackets in the highlighted section however this didn’t fix the issue, it still came up with the above error message but also stated there was another error in line 317.

If you would prefer to view the whole document so it makes more sense I have attached it to the email for you (zipped so it’s not stripped out when sending).

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 10 November 2014 19:37

To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

Hey Aaron,

We need to get the command working from the command line first, before we try to get it working in the groundwork UI.  There is no reason to post screen captures from the UI at this time - we will come back to the UI, once we have the command working

Not that we have the help command working, we are actually able to see what the options do - this is critical to getting the script to work.  Now lets get a simple query working from the command line.  There is an example of how to use the script in the help output:

check_imap_receive -H mail.server.net<http://mail.server.net> --username mailuser --password mailpass -s ALL --nodelete

Lets break out and look at each of the options:
-H mail.server.net<http://mail.server.net>
       --hostname <server>
           Address or name of the IMAP server. Examples: mail.server.com<http://mail.server.com>,

           localhost, 192.168.1.100 Also known as: -H <server>
--username mailuser --password mailpass
       --username <username>
       --password <password>
           Username and password to use when connecting to IMAP server.  Also
           known as: -U <username> -P <password>
-s ALL
       --search <string>
           Use this option to filter the messages. Default is not to filter.
           You may (must) use this option multiple times in order to create
           any valid IMAP search criteria. See the examples and see also
           http://www.ietf.org/rfc/rfc2060.txt (look for section 6.4.4, the
           SEARCH command)

           This is the way to find messages matching a given subject:
            -s SUBJECT -s "a given subject"

           You can use the following technique for any header, including Sub
           ject. To find "Header-Name: some value":
            -s HEADER -s Header-Name -s "some value"

           Also known as: -s <string>
--nodelete
      --delete
      --nodelete
           Use the delete option to delete messages that matched the search
           criteria. This is useful for preventing the mailbox from filling up
           with automated messages (from the check_smtp_send plugin, for exam
           ple).  THE DELETE OPTION IS TURNED *ON* BY DEFAULT, in order to
           preserve compatibility with an earlier version.

           Use the nodelete option to turn off the delete option.

Note for the -s option (the filter), there is an external reference to http://www.ietf.org/rfc/rfc2060.txt, section 6.4.4.  The ALL specified in the criteria catches all messages.  For your check, we will need to eventually craft out a way to filter the message you want.

But for now, please run the simple command (as the nagios user) to see if it works:
1st as root:

su - nagios

/usr/local/groundwork/nagios/libexec/check_imap_recieve/check_imap_receive -H mail.server.net<http://mail.server.net> --username mailuser --password mailpass -s ALL --nodelete

Substituting the actual values for your environment, of course.  This is both to test the basic values and see if the plugin works as expected.

Please post what you run and what you get back.

Best regards,
Ken



On Mon, Nov 10, 2014 at 4:11 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Hi Ken

So we have the output for –help. The error I am getting is now different (again) I have made as many changes I can find on google in regards to this.
Please see the below for the current error message:

<image001.png><image002.jpg>

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 07 November 2014 18:55

To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

Something changed between the time you were last able to run the command as nagios (assuming you were able to run it as nagios before).

Can you run the command with the --help as root?

Do you have in the script in lines 99 101 and 124?

What is the shebang in the 1st line of the script? did you change it?

Best regards,
Ken

On Fri, Nov 7, 2014 at 1:19 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Slight issue now, came in this morning and run the command as requested but I am now getting this error message;


<image003.jpg>










Not sure what has happened?

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 06 November 2014 21:28

To: Aaron Piller
Subject: Re: setup help

Can you post the output of check_imap_recieve --help so we can see what the various options are?

IN an earlier email you have the expanded command definintion as follows:
/usr/local/groundwork/nagios/libexec/check_imap_recieve -H 127.0.0.1 U groundwork <at> hpcplc.co.uk<mailto:groundwork <at> hpcplc.co.uk> -P orzig -s SUBJECT -s "SMTP LIFE Full Details" --search-critical-min 1

Is that correct?

Best regards,
Ken

On Thu, Nov 6, 2014 at 7:12 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Hi Ken,

Hopefully you got my last two emails. I have now managed to login as root and change to nagios user. I can open the –help command now.

However I have been looking into this today and I can see where the issue is lying. In the check_imap_receive file there is a section ‘connect to imap server’ all the errors I am getting are from this section so it is an IMAP issue that I am having. Hope this helps to whittle this down a bit.

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 05 November 2014 20:43

To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

I mentioned this is earlier emails on Oct 23rd, but there is not a password for the nagios user set; this is intentional.  All Linux distributions have a root user, but some linux distributions, like Ubuntu, ship with the root user disabled, where others, like Centos, have you set a password for the root user.  To become nagios, you would either need to enable root user access, or set up another user with sudo access to su, so they can Chicago users like root can, without a password.

I recommend you enable access to the root account: you are going o need to have the ability to become root for these type of reasons.  I'm guessing you are using Ubuntu, so here is how you would do that for ubuntu:
http://en.kioskea.net/faq/3502-ubuntu-enable-root-account

If you are using a different distribution, you can google how to enable root for that distribution.

I know this is a pain, which is why I use Centos as a test platform rather than Ubuntu

Best regards,
Ken

On Wed, Nov 5, 2014 at 1:44 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
I don’t have a root user listed, and when I try to login as nagios it asks for a password (I have tried a few but none work)

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 04 November 2014 18:03

To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

OK - we need to get that to work 1st.
Are you able to log in or become the root user

If you can become root, then can you become the nagios user?
(as root) su - nagios
(to confirm) whoami

Best regards,
Ken





On Tue, Nov 4, 2014 at 12:46 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
No, it doesn’t run as any user

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 03 November 2014 21:43
To: Aaron Piller; Wayne Dahler
Subject: Re: setup help

Hey Aaron,

There is no way to tell is there is a small change needed or not: I do not know what any of the flags in the command are.

To find out what the flags are, we need to run the command with the --help flag from the command line as the nagios user.  This is one of the reasons getting the command to work from the command line is the first step.

Have you successfully run the command from the command line?

Best regards,
Ken




On Mon, Nov 3, 2014 at 8:41 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Hi Ken,

I have got abit further with this and changed a few configuration errors that I made. However the latest is that I am still getting an error message. I am on as the root user

<image004.jpg>

It is nearly connected but timesout after 60 seconds so im guessing ive missed something somewhere that is a minor change?

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 23 October 2014 16:43

To: Aaron Piller
Subject: Re: setup help

Are you able to access the root user?  You need to to become the nagios user.

I'm asking because by default, on ubuntu systems, the root user is disabled - but that is just an educated guess.

Best regards,
Ken

On Thu, Oct 23, 2014 at 8:37 AM, Ken Ashworth <kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>> wrote:
The help options are not working because you removed the # from the shebang.  That broke the script.  You need to run them again with the # put back.

The permissions are not correct: the script has to be owned and by user nagios and group nagios.

You also need to become the root user, then become the nagios user to run the script.  You are trying to run the script as a user called "groundwork"  that will not work.



On Thu, Oct 23, 2014 at 8:32 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
As I showed you the help options do not work either.

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 23 October 2014 16:30

To: Aaron Piller
Subject: Re: setup help

We *really* need to get the command working from the CLI first.  The first step is looking at the help options.

Best regards,
Ken

On Thu, Oct 23, 2014 at 8:26 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Changed the command to have the # character and now I get this:

<image005.jpg>

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 23 October 2014 16:25

To: Aaron Piller
Subject: Re: setup help

Why did you remove the # from the shebang?  That will break the script.  Did you understand the shebang reference I sent you?

Best regards,
Ken

On Thu, Oct 23, 2014 at 8:19 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
The –help command returns the below:

<image006.jpg>

And the permission command is as below:


<image007.jpg>


Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 23 October 2014 16:15

To: Aaron Piller
Subject: Re: setup help

Hey Aaron,

Here is a reference on the #!, or "shebang" used in unix scripts.  It has to do with what executable is called to actually run the script:
http://en.wikipedia.org/wiki/Shebang_(Unix)

When using new plugin that were not shipped with groundwork, you need to get the command working from the CLI first.  Once you have the command working from the CLI, then you can craft out how to turn it into a service check.

For starters: run the command with the --help flag, so you can see what the options are:
/usr/local/groundwork/nagios/libexec/check_imap_receive --help

what are the full permissions on the plugin?
ls -l /usr/local/groundwork/nagios/libexec/check_imap_receive

Best regards,
Ken

On Thu, Oct 23, 2014 at 7:46 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Ok thanks Ken,

I have changed the first line (do we need the #? I thought this commented lines out?) to match the which perl location (which was as you said it would be)

I am now getting the same message but it says the location I have provided doesn’t exist.

<image008.jpg>

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 23 October 2014 15:41
To: Aaron Piller
Subject: Re: setup help

You can make the changes as root, but to test plugins form the command line, you need to be able to become root so they get executed the same way that groundwork executes them.

Best regards,
Ken

On Thu, Oct 23, 2014 at 7:17 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
The only issue with that is, I don’t know what the nagios user password is.

I am currently logged in as root, can we not make the changes as this user?

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 23 October 2014 15:16
To: Aaron Piller
Cc: Wayne Dahler
Subject: Re: setup help

Hey Aaron, I searched for the plugin and found check_imap_recieve.  I can see one issue: the shebang at the beginning of the script is not correct: groundwork uses an embedded perl version, so it is not is in /usr/bin/perl.  For any plugins you download, you will usually have to make sure they are referencing the nagios users perl vs the system perl

If you are the nagios user (not root) form the CLI, type:
which perl
this should return:
/usr/local/groundwork/perl/bin/perl
so change the first line of the script from:
#!/usr/bin/perl
to:
#!/usr/local/groundwork/perl/bin/perl

Please let me know if this helps.

Best regards,
Ken



On Thu, Oct 23, 2014 at 6:52 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Thanks for the information, I appreciate you don’t know much about the way it is setup or fits together so thank you for taking the time to explain those bits to me.

We already have commands, services and hosts setup, when I run a test of the check_imap_receive I get the following:

/usr/local/groundwork/nagios/libexec/check_imap_receive -H 127.0.0.1 -U groundwork <at> hpcplc.co.uk<mailto:groundwork <at> hpcplc.co.uk> -P omzig -s SUBJECT -s "ARG1" --search-critical-min ARG2

/usr/local/groundwork/nagios/libexec/check_imap_receive: 1: /usr/local/groundwork/nagios/libexec/check_imap_receive: !/usr/bin/perl: not found

/usr/local/groundwork/nagios/libexec/check_imap_receive: 2: /usr/local/groundwork/nagios/libexec/check_imap_receive: use: Permission denied

/usr/local/groundwork/nagios/libexec/check_imap_receive: 3: /usr/local/groundwork/nagios/libexec/check_imap_receive: my: Permission denied

/usr/local/groundwork/nagios/libexec/check_imap_receive: 4: /usr/local/groundwork/nagios/libexec/check_imap_receive: my: Permission denied

/usr/local/groundwork/nagios/libexec/check_imap_receive: 5: /usr/local/groundwork/nagios/libexec/check_imap_receive: my: Permission denied

/usr/local/groundwork/nagios/libexec/check_imap_receive: 6: /usr/local/groundwork/nagios/libexec/check_imap_receive: Syntax error: "(" unexpected



Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 22 October 2014 19:36
To: Aaron Piller; support <at> gwos.com<mailto:support <at> gwos.com>; Wayne Dahler
Subject: Re: setup help

Hey Aaron,

Well, as it is not our plugin, I can't give you a step by step process, but I can give you an overview of what to do:

First, conceptually - keep in mind that you are checking the email server, not the workstation running Thunderbird.  You will only be able to tell if the message is on the server; there is not way to verify that the message actually made it to the end user's workstation.

What you want to start with is finding a way of using the plugin form the command line to find the information you need.  Since I have never used this particular plugin I cannot tell you exactly how to do that, but for starters, place the plugin in /usr/local/groundwork/nagios/libexec/ , make is executable and owned by nagios user and group.  Next run the plugin with the --help flag to see the various options available.

Now you would want to find the syntax you need to find the message - this process involves quite a bit of trial and error, but once you have the correct syntax, you can create the service check.  Make sure when you are doing this you do so as the nagios user, not root - as this is the same way groundwork will perform the check.

At a high level,
1)  You use the syntax to create a command in groundwork:
Configuration -> Commands -> New
I find it helpful to look at the existing commands and use them to get an idea how this is accomplished.
2)  You use the command you created in #1 to create a service check:
Configuration -> Service -> New service
As in 1, I find it helpful to look at the existing services as a rough guide.
3)  Once you have build a service check, assign it to the host in question.  You should also test it once assigned:
Configuration -> Hosts, select the service, then in the service check tab, use the test button to test the service.

I hope you find this helpful.  If you do, you may want to consider a groundwork subscription that includes support.  I have looped in Wayne Dahler to this message in the event you would like to do this.

Best regards,
Ken

On Wed, Oct 22, 2014 at 3:59 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Yes  I am trying to check for the presence of a message and how the plugin does that

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 21 October 2014 20:00
To: Aaron Piller; support <at> gwos.com<mailto:support <at> gwos.com>
Subject: Re: setup help

... or are you asking how this plugin might be used to check for the message?

Best regards,
Ken

On Tue, Oct 21, 2014 at 9:46 AM, Ken Ashworth <kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>> wrote:
check_imap_recieve is not a plugin that we ship with groundwork, so I am not familiar with it - but from the description, it sounds like it can check via IMAP for the presence of a message.  You are not using it for that?

Best regards,
Ken

On Tue, Oct 21, 2014 at 1:03 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Yes we have a service setup to check imap. I believe it is the check_imap_recieve

We have an email report that is sent out automatically at different points of the day, we  want groundworks to look in the inbox to see if the email is there; if it is all is good and it gets deleted, if not then we get an email warning saying it’s not there.

Kind regards

Aaron Piller
IT Assistant

From: Ken Ashworth [mailto:kashworth <at> gwoslabs.com<mailto:kashworth <at> gwoslabs.com>]
Sent: 20 October 2014 20:59
To: Aaron Piller
Cc: support <at> gwos.com<mailto:support <at> gwos.com>
Subject: Re: setup help

I sounds like you are trying to check the healthy function of an email server.  This is normally accomplished by checking the server (vs a desktop email client, like Thunderbird) using either the check_imap or check_pop3.pl<http://check_pop3.pl> plugins (these are located in the /usr/local/groundwork/nagios/libexec directory.  You can see how the plugins work by running the command with the --help flag)

If you can provide me with some detail as to what you are trying to accomplish, I may be able to advise you how to go about it.

Best regards,
Ken

On Mon, Oct 20, 2014 at 7:18 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk<mailto:aaron.piller <at> hpcplc.co.uk>> wrote:
Good afternoon,

I am trying to configure GWOS Core to read emails sent to a Thunderbird inbox, however I cannot get this set and I cannot find any instructions on how to do this

Aaron Piller
IT Assistant

HPC plc
Victoria Gardens
Burgess Hill
West Sussex
RH15 9RQ
Tel: +44 (0)1444 241671<tel:%2B44%20%280%291444%20241671>
Fax: +44 (0)1444 247587<tel:%2B44%20%280%291444%20247587>
www.hpcplc.co.uk<http://www.hpcplc.co.uk>


This e-mail is from HPC plc, Registered in England & Wales No. 622352. Registered Office: Victoria Gardens, Burgess Hill, West Sussex RH15 9RQ

This electronic message contains information from HPC plc, which may be privileged and confidential. The information is intended for use only by the individuals or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this information is prohibited. If you received this message in error please notify me immediately on the above number or by e-mail.



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564<tel:415-992-4564> (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



--

415-992-4564 (direct)
kashworth <at> gwoslabs.com<mailto:dlilly <at> gwos.com>



 

--



 

--



 

--



 

--



 

--




--
From: Ken Ashworth <kashworth@...>
Subject: Re: Groundworks install
Date: 2014-12-02 00:00:02 GMT

what do you get from this (substituting appropriate values)?
(as root)
su - nagios
/usr/local/groundwork/nagios/libexec/check_imap_receive -H mail.server.net --username mailuser --password mailpass -s ALL --nodelete

If using the server hostname does not work, please substitute the IP address.  Please post all of the output, working or not.

Best regards,
Ken


On Mon, Dec 1, 2014 at 2:04 PM, Ken Ashworth <kashworth <at> gwoslabs.com> wrote:
Hey Aaron,

Sorry about the delay in my reply: unfortunately, there are some days where all of my time is consumed by our subscribed customers - I have to prioritize those cases.

This isn't an issue with nagios: before you can craft a nagios service check, you need to have the command working from the CLI to verify the plugin is functional.

ou might try to contact the person who wrote the plugin.  Normally there is contact information on the site it came from, or the script itself.

If you are getting an error that the username (or password) is wrong, can you verify you have the right account?

for the current service you are running - is the service check working?  Is this a groundwork system?  Where are you getting the credentials from?

Best regards,
Ken

On Mon, Dec 1, 2014 at 4:59 AM, Aaron Piller <aaron.piller <at> hpcplc.co.uk> wrote:

Hi Ken,

 

Not sure if you got my last message?

 

I have tried running the command on the current server we are running (that  does the function I am trying to setup) and it doesn’t run on that server either. It gives a different result in that it says the username is wrong, but same as this one then fails.

 

I am still getting timeouts on the machine I am trying to configure.

 

Is there anything else you can think of that I am missing or do you know who I can contact who has experience in this side of nagios? I really need to get this up and running ASAP.

 

Aaron Piller
IT Assistant

HPC plc
Victoria Gardens
Burgess Hill
West Sussex
RH15 9RQ
Tel: +44 (0)1444 241671
Fax: +44 (0)1444 247587
www.hpcplc.co.uk


This e-mail is from HPC plc, Registered in England & Wales No. 622352. Registered Office: Victoria Gardens, Burgess Hill, West Sussex RH15 9RQ

This electronic message contains information from HPC plc, which may be privileged and confidential. The information is intended for use only by the individuals or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this information is prohibited. If you received this message in error please notify me immediately on the above number or by e-mail.




--



--
Holger Weiß | 2 Dec 10:48 2014
Picon
Picon

Monitoring Plugins 2.1.1 released!

The Monitoring Plugins Development Team is proud to announce version
2.1.1 of the Monitoring Plugins!

This is a minor release on top of 2.1.  It fixes a regression that broke
check_ntp's jitter monitoring, and it includes a number of bug fixes
contributed by Sebastian Herbszt.  Kudos go to Sebastian for providing
those!

You can get the tarball from our web site:

	https://www.monitoring-plugins.org/download.html

Happy monitoring!

Michael Berman | 21 Nov 22:47 2014
Picon

Michael Berman OOO vacation Nov 22nd - Nov 30th

I will be out of the office starting  11/21/2014 and will not return until 12/01/2014.

I'm in and out of the office on vacation from Friday, November 22nd, returning Monday, Dec 1st.

If something is urgent, please engage the oncall and/or open up a ticket through the appropriate helpdesk and/or contact the appropriate SDM or project manager.

For any issues that do not fall into the above catagories, I'll reply when I return.

Basel Gozem | 19 Nov 22:45 2014

Ping Threshold change

Hi,

 

I changed the ping Threshold as follows in the hosts.cfg file for one host only:

 

check_command                             check_ping!150.0,20%!500.0,60%

 

but I still get the warning alert e-mail at warning level:  100 ms although I have changed it to 150ms

 

Here is a smaple from the alert:

 

State: WARNING

 

Date/Time: Wed Nov 19 16:00:03 EST 2014

 

Additional Info:

 

PING WARNING - Packet loss = 0%, RTA = 100.77 ms

 

Any idea would be greatly appreciated.

 

Basel.

 

 

CJe GmbH - Stephan Mieth | 11 Nov 16:15 2014
Picon

Check_mysql

Hello,

 

i used in past the Nagios-plugins. After all, I searched a check for our mysql server. So now I found that you have released new plugins under monitoring-plugins. Thanks a lot. I downloaded this to my icinga system.

I configured the package and installed this

Some new plugins now in my folder, but not check_mysql.

Following steps:

tar xzf monitoring-plugins-2.1.tar.gz

cd monitoring-plugins-2.1

./configure --prefix=/usr/local/icinga --with-cgiurl=/icinga/cgi-bin     --with-nagios-user=icinga --with-nagios-group=icinga

Make

Make install

 

Is there any steps I forget ?

Thanks a lot.

 

Best regards

 

Stephan Mieth

 

*******************************

CJe GmbH
Odenwaldstr. 28
63225 Langen
Germany
Mail 
s.mieth-rmMGByUciUI@public.gmane.org

Phone +49 6103 9029-0
Fax   +49 6103 9029-99
Domicile Langen
Local court Offenbach HRB 32100
CEO Juergen Eichhoefer
*******************************

 

This mail can contain confidential and/or privileged information. If you are not the intended recipient or have received this mail in error, please notify the sender immediately and destroy this mail. Any unauthorised copying, disclosure or distribution of the material in this mail is strictly forbidden.

 

Christian.Loeffler | 9 Nov 04:00 2014
Picon

AUTO: Christian Löffler is out of the office (Rückkehr am 11.11.2014)


Ich bin bis 11.11.2014 abwesend.

Sehr geehrte Damen und Herren,

ich bin bis einschließlich 10.11.2014 nicht im Büro.
In dringenden Fällen wenden Sie sich bitte an den Helpdesk, zu erreichen
unter:
it-helpdesk <at> peek-und-cloppenburg.de
oder +49 40 33967 241


Mit freundlichen Grüßen
Christian Löffler




Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht  "Support
for arbitrary instances of performance counters ?" gesendet am 09.11.2014
02:38:37.

Diese ist die einzige Benachrichtigung, die Sie empfangen werden, während
diese Person abwesend ist.

Gmane