Ethan Shrago | 20 May 20:33 2016
Picon

check_cluster; verify servicestateID

Hello,

I was trying to write a command definition for a large (80+ node) service cluster and no matter what args I pass in the "-d" flag, it seems to return OK. Is there a way for me to verify the correct servicestateID is getting retrieved from the cluster check?

Command is invoked thusly:

 [root <at> mon1 plugins]# ./check_cluster --service -d $SERVICESTATEID:cs01:custom-http$,$SERVICESTATEID:cs02:custom-http$,...$SERVICESTATEID:csNN:custom-http$ -w 30 -c 40
check_cluster - Warning: start=0 end=30; Critical: start=0 end=40
CLUSTER OK: Service cluster: 84 ok, 0 warning, 0 unknown, 0 critical


--
 
Ethan Shrago
Senior Systems Engineer
Phone:: 510.701.1203
Email::ethan.shrago <at> riskiq.net
RiskIQ, Inc.
22 Battery St. 10th Floor
San Francisco, CA 94111
    










Pierre GINDRAUD | 14 May 21:09 2016
Picon

[check_ldap] Disable SSL common name verification

Hello,

I'm trying to use the 'check_ldap' plugin to monitor an instance of an OpenLDAP server configured with StartTLS on port 389.
In my Nagios host definition, I've set the adresse of the server to a relative name such just 'servername' instead of full qualified domain name.
During the STARTTLS handshake the check plugin, return an error with the following message :

    additional info: TLS: hostname does not match CN in peer certificate

Using relative domain name as address for host definition is convenient and I can't use the full qualified domain name instead.

Is there any way t disable SSL common name verification by using extra opts ?


Thanks by advance

--

Pierre GINDRAUD

   
刘磊 | 11 May 15:48 2016
Picon

How to build deb package for Monitoring-Plugin-0.39

Hello,

I got Monitoring-Plugin-0.39.tar.gz from http://search.cpan.org/~nierlein/Monitoring-Plugin-0.39/lib/Monitoring/Plugin.pm, there is just tar pack available, does anyone has the experience to build debian package for this project? Does anyone can help me to look into this case? Thanks in advance.



Theodore Wynnychenko | 10 May 15:43 2016

check_http with basic auth on server without an "authentication challenge"

Hello

Many years ago, I had the check_http plugin working to monitor a very basic
network printserver.  At that point, I was using monitoring the printer server's
existence with ping and check_http.

Some time ago, I didn't need/want it anymore so I put it in a box.

Now, I have taken it out again, and wanted to monitor it.

Currently running icinga2 on openbsd current with monitoring plugins:

# /usr/local/libexec/nagios/check_http -V
check_http v2.1.2 (monitoring-plugins 2.1.2)

# uname -mrsv
OpenBSD 5.9 GENERIC.MP#1982 amd64

# icinga2 -V
icinga2 - The Icinga 2 network monitoring daemon (version: r2.4.4-1)

Anyway, trying to use basic auth with check_http fails for this print server.

I have another (even older, but maybe not quite as cheap) print server that is
monitored fine.

On the "working" one, I can confirm check_http works with:

# /usr/local/libexec/nagios/check_http -I 10.0.128.254 -v -a user:pass
GET / HTTP/1.0
User-Agent: check_http/v2.1.2 (monitoring-plugins 2.1.2)
Connection: close
Authorization: Basic U0M0MTc2OTg6dHlyb25l
...
HTTP OK: HTTP/1.0 200 Document follows - 3905 bytes in 1.032 second response
time |time=1.032029s;;;0.000000 size=3905B;;;0

But, when I try confirming this on the "non-working" print server with:

# /usr/local/libexec/nagios/check_http -I 10.0.128.251 -v -a user:pass
GET / HTTP/1.0
User-Agent: check_http/v2.1.2 (monitoring-plugins 2.1.2)
Connection: close
Authorization: Basic YWRtaW46TWR1S3dadDc=

CRITICAL - Socket timeout after 10 seconds

When I use wget I was also getting the same discrepancy; wget pulled down the
page for the "working" print server, but not the "non-working" one.

Eventually, I was able to discover that the issue with wget was the need for the
"--auth-no-challenge" switch.

It appears this print server does not send an authentication challenge; but
simply expects the basic auth credentials to be sent.  From the wget man page:

       --auth-no-challenge
           If this option is given, Wget will send Basic HTTP authentication
           information (plaintext username and password) for all requests,
           just like Wget 1.10.2 and prior did by default.

           Use of this option is not recommended, and is intended only to
           support some few obscure servers, which never send HTTP
           authentication challenges, but accept unsolicited auth info, say,
           in addition to form-based authentication.

So, it seems that this old "non-working" print server does not send an
authentication challenge.

I am not sure if this is relevant to check_http, but some prior version of
check_http worked with this piece of hardware many years ago, but does not any
longer.

Is there anything I can do to get check_http working in this situation, or
should I just abandon http checks for this hardware?

Thanks
Ted

Artur Symowski | 4 May 13:10 2016
Picon

Fw: Fehlende Checks in Monitoring_Plugin nach Installation

Hallo Zusammen,

ich hoffe bei Ihnen Lösung meines Problems zu finden:

Versuchsweise habe ich auf Centos 7x64 Icinga2, Icingaweb2 (v.2.3.1), Director (v.1.0.0) installiert.

Dazu habe ich Monitoring_plugins (v.2.1.2) installiert:


# ./configure --with-nagios-user=icinga --with-nagios-group=icinga

# make

# make install

Die installation ist problemlos gelaufen (bis jetzt habe ich so gedacht)

Als ich angefangen die Services zu definieren, habe ich festgestellt, dass mind. 2 Checks  (check_mysql und check_ldap)
zwar in Icinga Director zu sehen sind, aber in Plugin Verzeichnis "/usr/local/libexec" sind die nicht zu finden.


# ls /usr/local/libexec/
check_apt         check_icmp                check_nagios      check_smtp                     
check_breeze    check_ide_smart          check_nntp        check_snmp                      check_ssh
check_by_ssh    check_ifoperstatus      check_nt            check_snmp_boostedge.pl    check_swap
check_clamd      check_ifstatus           check_ntp           check_snmp_cpfw.pl           check_tcp
check_cluster     check_imap                check_ntp_peer  check_snmp_css_main.pl      check_time
check_dbi          check_ircd                  check_ntp_time  check_snmp_css.pl             check_udp
check_dhcp       check_ldap_connect    check_nwstat     check_snmp_env.pl             check_ups
check_disk         check_ldap.pl             check_oracle      check_snmp_int.pl               check_users
check_disk_smb  check_load                check_overcr      check_snmp_vrrp.pl             check_wave
check_dummy     check_log                 check_ping         check_snmp_load.pl              libexec
check_file_age    check_mailq               check_pop         check_snmp_mem.pl             negate
check_flexlm       check_mrtg               check_procs       check_snmp_nsbox.pl           urlize
check_ftp           check_mrtgtraf          check_real         check_snmp_process.pl        utils.pm
check_hpjd         check_mssql_health    check_rpc          check_snmp_storage.pl        utils.sh
check_http         check_mysql_health    check_sensors    check_snmp_win.pl

Gibt es für diese Checks irgendwelche Abhängigkeiten, die mir bis jetzt nicht bekannt sind, oder sind mir in der Installation Fehler unterlaufen?


Danke für Antwort voraus.


Mit freundlichen Grüßen
 
 
Artur Symowski

FreeMail powered by mail.de - mehr Sicherheit, Seriosität und Komfort

FreeMail powered by mail.de - mehr Sicherheit, Seriosität und Komfort
Manoj Gupta | 3 May 04:49 2016
Picon

Check_disk out put truncated

Hi,

I am using chec_disk plugin in my script  where I am capturing all mounted file system and running chec_disk on it. script working fine. System have  multiple Solaris zones and have many file system mounted. 

When running script by check_nrpe -H <server> -c script output truncated and due to that service unknown state in Nagios console.

When I check  4 ,5 mounted file system the status OK on console. I believe status no passwd when more file system check and truncated out.

-v option also not  helped.

Appreciated you advise.

--
Best Regards,
Manoj Gupta
Tomas Karlsson | 29 Apr 08:29 2016
Picon

SNMP Trap

Hi,

 

I’m working on a small project to present some data from our Cisco Web Security Appliance, WSA, in op5. The thing is that the result from SNMP Trap is presented in Kb/s and we would like to use a divider to presented as Mb/s. I tried a rate-multiplier with 0.001 but that didn’t work out. I guess it’s all about float an intiger.

 

Is that possible when using check_snmp v2.1.1.git in an another way?

 

Kind Regards

 

/Tomas

_____________________________

Tomas Karlsson

VGR-IT

Västra Götalandsregionen

Mobil: 0708-557880

E-post: tomas.karlsson-9rasOCErtNAwFerOooGFRg@public.gmane.org

______________________________

 

Besöksadress: Bergfotsgatan 2A
Postadress: 431 35  MÖLNDAL

Organisationsnummer: 232100-0131

iKundnummer: I70801
Fakturaadress: VGR IT, BeställarID: 60240017, FE 960, 405 83 GÖTEBORG

 

 

Arroyo Rivera, Luis [USA] | 7 Apr 15:06 2016

Request for help

Good morning,

 

Hello my name is Luis Arroyo I want for a contractor working to implement Nagios monitoring. I have been able to monitor devices using the default check_nt plugin but one of the requirements is to track fan speed and CPU temperature. Which I believe can be accomplished using the check_sensors plugin. The problem documentation is difficult to find. I kindly ask I you can provide any sort of documentation or help in order to get this working.

 

Thanks in advance,

 

Luis E. Arroyo

 

minhaj mohammad | 24 Mar 11:48 2016

cpu monitoring

Hello Sir/Madam,

I have to monitor cpu utilization in icinga2 on ubuntu.

But I don't know, how can I do that.

Please help me.

--
Thanks and Regards,
Minhaj Mohammad
Mob- 09545762732
Esteban Alvino | 23 Mar 22:07 2016
Picon
Gravatar

is anybody in the other side ?

:) trying icinga :)

--
Esteban J. Alvino Quispe
Un héroe a punto de morir sabe que una valquiria vendrá en su busqueda para llevarlo a la morada de Odín, lo que lo hace feliz.
Tony Boston | 6 Mar 14:15 2016
Picon

git version check_mysql doesnt get installed

Hey there,

I am running the git version of the monitoring plugins.
When I run make install, the check_mysql plugin doesnt get installed.
Here's the plugin folder and the log from make install. Screenshot as well

[root <at> chaplin plugins]# ls -l
insgesamt 11064
-rwxr-xr-x 1 root root 203672  6. Mär 14:09 check_apt
-rw-r--r-- 1 root root  15521  6. Mär 13:48 check_apt.c
-rw-r--r-- 1 root root  60392  6. Mär 14:09 check_apt.o
-rwxr-xr-x 1 root root 207881  6. Mär 14:10 check_by_ssh
-rw-r--r-- 1 root root  14312  6. Mär 13:48 check_by_ssh.c
-rw-r--r-- 1 root root  60560  6. Mär 14:10 check_by_ssh.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_clamd -> check_tcp
-rwxr-xr-x 1 root root 152397  6. Mär 14:09 check_cluster
-rw-r--r-- 1 root root   6881  6. Mär 13:48 check_cluster.c
-rw-r--r-- 1 root root  32784  6. Mär 14:09 check_cluster.o
-rw-r--r-- 1 root root  22406  6. Mär 13:48 check_dbi.c
-rwxr-xr-x 1 root root 195769  6. Mär 14:10 check_dig
-rw-r--r-- 1 root root  10705  6. Mär 13:48 check_dig.c
-rw-r--r-- 1 root root  45504  6. Mär 14:10 check_dig.o
-rwxr-xr-x 1 root root 216471  6. Mär 14:09 check_disk
-rw-r--r-- 1 root root  39137  6. Mär 13:48 check_disk.c
-rw-r--r-- 1 root root 120096  6. Mär 14:09 check_disk.o
-rwxr-xr-x 1 root root 206613  6. Mär 14:09 check_dns
-rw-r--r-- 1 root root  17343  6. Mär 13:48 check_dns.c
-rw-r--r-- 1 root root  67400  6. Mär 14:09 check_dns.o
-rwxr-xr-x 1 root root 117655  6. Mär 14:09 check_dummy
-rw-r--r-- 1 root root   2977  6. Mär 13:48 check_dummy.c
-rw-r--r-- 1 root root  19200  6. Mär 14:09 check_dummy.o
-rwxr-xr-x 1 root root 206933  6. Mär 14:10 check_fping
-rw-r--r-- 1 root root  14445  6. Mär 13:48 check_fping.c
-rw-r--r-- 1 root root  68192  6. Mär 14:10 check_fping.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_ftp -> check_tcp
-rwxr-xr-x 1 root root 175971  6. Mär 14:10 check_game
-rw-r--r-- 1 root root  10150  6. Mär 13:48 check_game.c
-rw-r--r-- 1 root root  39240  6. Mär 14:10 check_game.o
-rwxr-xr-x 1 root root 197989  6. Mär 14:09 check_hpjd
-rw-r--r-- 1 root root  11364  6. Mär 13:48 check_hpjd.c
-rw-r--r-- 1 root root  49104  6. Mär 14:09 check_hpjd.o
-rwxr-xr-x 1 root root 347443  6. Mär 14:09 check_http
-rw-r--r-- 1 root root  56891  6. Mär 13:48 check_http.c
-rw-r--r-- 1 root root 264496  6. Mär 14:09 check_http.o
-rwxr-xr-x 1 root root 162407  6. Mär 14:09 check_ide_smart
-rw-r--r-- 1 root root  14827  6. Mär 13:48 check_ide_smart.c
-rw-r--r-- 1 root root  50944  6. Mär 14:09 check_ide_smart.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_imap -> check_tcp
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_jabber -> check_tcp
-rw-r--r-- 1 root root  13345  6. Mär 13:48 check_ldap.c
-rwxr-xr-x 1 root root 177024  6. Mär 14:09 check_load
-rw-r--r-- 1 root root   8540  6. Mär 13:48 check_load.c
-rw-r--r-- 1 root root  46360  6. Mär 14:09 check_load.o
-rwxr-xr-x 1 root root 162537  6. Mär 14:09 check_mrtg
-rw-r--r-- 1 root root  11353  6. Mär 13:48 check_mrtg.c
-rw-r--r-- 1 root root  54600  6. Mär 14:09 check_mrtg.o
-rwxr-xr-x 1 root root 162382  6. Mär 14:09 check_mrtgtraf
-rw-r--r-- 1 root root  11409  6. Mär 13:48 check_mrtgtraf.c
-rw-r--r-- 1 root root  51768  6. Mär 14:09 check_mrtgtraf.o
-rw-r--r-- 1 root root  16517  6. Mär 13:48 check_mysql.c
-rw-r--r-- 1 root root   9621  6. Mär 13:48 check_mysql_query.c
-rwxr-xr-x 1 root root 175796  6. Mär 14:09 check_nagios
-rw-r--r-- 1 root root   9153  6. Mär 13:48 check_nagios.c
-rw-r--r-- 1 root root  39008  6. Mär 14:09 check_nagios.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_nntp -> check_tcp
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_nntps -> check_tcp
-rwxr-xr-x 1 root root 208894  6. Mär 14:10 check_nt
-rw-r--r-- 1 root root  27704  6. Mär 13:48 check_nt.c
-rw-r--r-- 1 root root 125872  6. Mär 14:10 check_nt.o
-rwxr-xr-x 1 root root 212185  6. Mär 14:09 check_ntp
-rw-r--r-- 1 root root  30912  6. Mär 13:48 check_ntp.c
-rw-r--r-- 1 root root 126576  6. Mär 14:09 check_ntp.o
-rwxr-xr-x 1 root root 197466  6. Mär 14:09 check_ntp_peer
-rw-r--r-- 1 root root  25513  6. Mär 13:48 check_ntp_peer.c
-rw-r--r-- 1 root root  97144  6. Mär 14:09 check_ntp_peer.o
-rwxr-xr-x 1 root root 196695  6. Mär 14:09 check_ntp_time
-rw-r--r-- 1 root root  21576  6. Mär 13:48 check_ntp_time.c
-rw-r--r-- 1 root root  90480  6. Mär 14:09 check_ntp_time.o
-rwxr-xr-x 1 root root 239427  6. Mär 14:09 check_nwstat
-rw-r--r-- 1 root root  53413  6. Mär 13:48 check_nwstat.c
-rw-r--r-- 1 root root 202224  6. Mär 14:09 check_nwstat.o
-rwxr-xr-x 1 root root 182157  6. Mär 14:09 check_overcr
-rw-r--r-- 1 root root  13083  6. Mär 13:48 check_overcr.c
-rw-r--r-- 1 root root  57944  6. Mär 14:09 check_overcr.o
-rw-r--r-- 1 root root  18789  6. Mär 13:48 check_pgsql.c
-rwxr-xr-x 1 root root 212478  6. Mär 14:09 check_ping
-rw-r--r-- 1 root root  17650  6. Mär 13:48 check_ping.c
-rw-r--r-- 1 root root  76872  6. Mär 14:09 check_ping.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_pop -> check_tcp
-rwxr-xr-x 1 root root 212599  6. Mär 14:09 check_procs
-rw-r--r-- 1 root root  22842  6. Mär 13:48 check_procs.c
-rw-r--r-- 1 root root 104056  6. Mär 14:09 check_procs.o
-rw-r--r-- 1 root root  11746  6. Mär 13:48 check_radius.c
-rwxr-xr-x 1 root root 179067  6. Mär 14:09 check_real
-rw-r--r-- 1 root root  11659  6. Mär 13:48 check_real.c
-rw-r--r-- 1 root root  47104  6. Mär 14:09 check_real.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_simap -> check_tcp
-rwxr-xr-x 1 root root 271553  6. Mär 14:09 check_smtp
-rw-r--r-- 1 root root  23538  6. Mär 13:48 check_smtp.c
-rw-r--r-- 1 root root  99632  6. Mär 14:09 check_smtp.o
-rwxr-xr-x 1 root root 255727  6. Mär 14:10 check_snmp
-rw-r--r-- 1 root root  38010  6. Mär 13:48 check_snmp.c
-rw-r--r-- 1 root root 178648  6. Mär 14:10 check_snmp.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_spop -> check_tcp
-rwxr-xr-x 1 root root 174502  6. Mär 14:09 check_ssh
-rw-r--r-- 1 root root   7806  6. Mär 13:48 check_ssh.c
-rw-r--r-- 1 root root  44072  6. Mär 14:09 check_ssh.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_ssmtp -> check_tcp
-rwxr-xr-x 1 root root 161509  6. Mär 14:10 check_swap
-rw-r--r-- 1 root root  16754  6. Mär 13:48 check_swap.c
-rw-r--r-- 1 root root  49024  6. Mär 14:10 check_swap.o
-rwxr-xr-x 1 root root 257115  6. Mär 14:09 check_tcp
-rw-r--r-- 1 root root  19925  6. Mär 13:48 check_tcp.c
-rw-r--r-- 1 root root  88592  6. Mär 14:09 check_tcp.o
-rwxr-xr-x 1 root root 180297  6. Mär 14:09 check_time
-rw-r--r-- 1 root root  10386  6. Mär 13:48 check_time.c
-rw-r--r-- 1 root root  51240  6. Mär 14:09 check_time.o
lrwxrwxrwx 1 root root      9  6. Mär 14:10 check_udp -> check_tcp
-rwxr-xr-x 1 root root 192797  6. Mär 14:09 check_ups
-rw-r--r-- 1 root root  19813  6. Mär 13:48 check_ups.c
-rw-r--r-- 1 root root  82480  6. Mär 14:09 check_ups.o
-rwxr-xr-x 1 root root 151529  6. Mär 14:09 check_users
-rw-r--r-- 1 root root   6845  6. Mär 13:48 check_users.c
-rw-r--r-- 1 root root  25904  6. Mär 14:09 check_users.o
-rw-r--r-- 1 root root   4451  6. Mär 13:48 common.h
-rw-r--r-- 1 root root 288050  6. Mär 14:09 libnpcommon.a
-rw-r--r-- 1 root root  86372  6. Mär 14:05 Makefile
-rw-r--r-- 1 root root   4500  6. Mär 13:48 Makefile.am
-rw-r--r-- 1 root root 101471  6. Mär 13:49 Makefile.in
-rwxr-xr-x 1 root root 148540  6. Mär 14:09 negate
-rw-r--r-- 1 root root   8657  6. Mär 13:48 negate.c
-rw-r--r-- 1 root root  37640  6. Mär 14:09 negate.o
-rw-r--r-- 1 root root   9707  6. Mär 13:48 netutils.c
-rw-r--r-- 1 root root   4238  6. Mär 13:48 netutils.h
-rw-r--r-- 1 root root  33320  6. Mär 14:09 netutils.o
-rw-r--r-- 1 root root     29  6. Mär 14:09 NP-VERSION-FILE
-rw-r--r-- 1 root root   9113  6. Mär 13:48 popen.c
-rw-r--r-- 1 root root    403  6. Mär 13:48 popen.h
-rw-r--r-- 1 root root  47672  6. Mär 14:09 popen.o
-rw-r--r-- 1 root root   9659  6. Mär 13:48 runcmd.c
-rw-r--r-- 1 root root   1542  6. Mär 13:48 runcmd.h
-rw-r--r-- 1 root root  37880  6. Mär 14:09 runcmd.o
-rw-r--r-- 1 root root   9153  6. Mär 13:48 sslutils.c
-rw-r--r-- 1 root root  80128  6. Mär 14:09 sslutils.o
drwxr-xr-x 3 root root   4096  6. Mär 13:48 t
drwxr-xr-x 5 root root    140  6. Mär 13:48 tests
-rwxr-xr-x 1 root root 141916  6. Mär 14:09 urlize
-rw-r--r-- 1 root root   5149  6. Mär 13:48 urlize.c
-rw-r--r-- 1 root root  27040  6. Mär 14:09 urlize.o
-rw-r--r-- 1 root root  13550  6. Mär 13:48 utils.c
-rw-r--r-- 1 root root   5774  6. Mär 13:48 utils.h
-rw-r--r-- 1 root root  49440  6. Mär 14:09 utils.o

make[1]: Leaving directory `/opt/monitoring-plugins/po'
make[1]: Entering directory `/opt/monitoring-plugins'
make[2]: Entering directory `/opt/monitoring-plugins'
make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
make[2]: Leaving directory `/opt/monitoring-plugins'
make[1]: Leaving directory `/opt/monitoring-plugins'

--
Tony


Gmane