Displaying 20 results from an estimated 20 matches for "check_command".
2004 Dec 09
1
Exim4 authentication patch
...int n;
+
+ for (n = 0; n < nptrs; n++)
+ ptrs[n] = NULL;
+ n = 1;
+
+ while (*str) {
+ if (*str == '\t') {
+ if (n <= nptrs) {
+ *ptrs++ = tmp;
+ tmp = str + 1;
+ *str = 0;
+ }
+ n++;
+ }
+ str++;
+ }
+
+ if (n < nptrs)
+ *ptrs = tmp;
+
+ return n;
+}
+
+#define CHECK_COMMAND(str, arg_min, arg_max) do { \
+ if (strcasecmp((str), args[0]) != 0) \
+ goto out; \
+ if (nargs - 1 < (arg_min)) \
+ goto out; \
+ if (nargs - 1 > (arg_max)) \
+ goto out; \
+} while (0)
+
+#define OUT(msg) do { \
+ auth_defer_msg = (msg); \
+ goto out; \
+} while(0)
+
+/*****************...
2011 Aug 11
6
need urgent help with including Ruby DSL class from puppet manifests
Hi,
I have a Ruby class in "nagios" module - it''s located in nagios/
manifests/ssa_nagios_checks.rb
and looks like this
hostclass :ssa_nagios_checks do
...
end
In nagios/manifests/init.pp I have
class nagios::server {
...
include ssa_nagios_checks
...
}
And I get the following error
....
debug: importing ''/etc/puppet/modules/nagios/manifests/
2015 May 24
2
specify port on check_memcached.pl
...right
now).
define service{
use local-service ; Name of
service template to use
host_name web1
service_description Check Memcached 11211
contact_groups linux-admins
check_command check_memcached!web1.example.com
!11211
notifications_enabled 1
}
# Define a service to check memcached on web1 (just the basics for right
now).
define service{
use local-service ; Name of
service templat...
2005 Feb 24
1
Rsync over ssh and forced commands
Hello list!
I want to use rsync over ssh to copy files from a server to all my
clients. Basically the following commando should be used:
rsync -re "ssh -i .ssh/tomte" /var/local/tomte-bin/ merkur:/
On the client to commando should be checked so i added a
command="/usr/local/bin/check_command.sh" to my authorized_keys for the
tomte public key.
But i get the following error:
protocol version mismatch - is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(58)
The manual told me to try to use "ssh merkur /b...
2007 Apr 11
10
Nagios asterisk monitoring
...ine command{
command_name check_sip
command_line $USER1$/check_sip -u $ARG1$ -H $HOSTADDRESS$ -w 5
}
define service{
use generic-service
host_name -PBX
service_description SIP test
check_command check_sip!sip:108@192.168.30.10
contact_groups admins
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
notification_interval 240
check_period...
2015 May 14
3
nagios check_local_disk failing
...e] [-n]
I have a local check setup like this in the server's config:
define service{
use local-service ; Name of
service template to use
host_name monitor1
service_description Root Partition
check_command check_local_disk!20%!10%!/
}
It's attempting to do a local disk check on the nagios server itself. Not
an NRPE check.
This is the command definition:
# 'check_local_disk' command definition
define command{
command_name check_local_disk
com...
2008 Nov 20
1
running tests on gem
...en/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:in
`each''
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:in
`unit_test''
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/commands/check_command.rb:36:in
`execute''
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command.rb:136:in
`invoke''
from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:105:in
`process_args''
from
/Users/stephen/dev/ru...
2007 Apr 04
5
sshkey
Hello all,
How are you using the sshkey type? Are you using it to list hosts and keys in a class that nodes include in order to manage /etc/ssh/ssh_known_hosts or something else? How does any of this relate to the sshrsakey and sshdsakey facts on the host? I read some stuff about this on the Virtual Resources page but it''s too vague for my simple mind and I''d be reluctant to use
2008 Oct 05
4
Why is -e sent to the remote rsync side?
> $ rsync -e 'ssh -v' lingnu.com:
> OpenSSH_5.1p1 Debian-2, OpenSSL 0.9.8g 19 Oct 2007
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for *
> debug1: Connecting to lingnu.com [199.203.56.105] port 22.
> debug1: Connection established.
...
> debug1: Sending command: rsync --server --sender -de.L .
As we can see, rsync runs ssh, and
2009 Feb 13
10
Nagios: Error: Service check command ... not defined anywhere!
...host_name ablpdm01
alias ablpdm01
address 10.121.42.100
}
define service{
use local-service
host_name ablpdm01
service_description HTTP
check_command check_http3!8090
notifications_enabled 0
}
..........
define host{
use linux-server
host_name ablprx01
alias ablprx01
address 10.121.42.32
}
define servic...
2015 May 14
0
nagios check_local_disk failing
...ike this in the server's config:
>
> define service{
> use local-service ; Name of
> service template to use
> host_name monitor1
> service_description Root Partition
> check_command check_local_disk!20%!10%!/
> }
>
> It's attempting to do a local disk check on the nagios server itself. Not
> an NRPE check.
>
> This is the command definition:
>
> # 'check_local_disk' command definition
> define command{
>...
2010 Dec 03
1
[PATCH] upsd tcp_wrappers parsing and logging
...rm its own logging. This patch adds logging for
tcp_wrapper denials.
---
server/upsd.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/server/upsd.c b/server/upsd.c
index 0e46595..eef5638 100644
--- a/server/upsd.c
+++ b/server/upsd.c
@@ -410,11 +410,13 @@ static void check_command(int cmdnum, ctype_t *client, int numarg,
}
#ifdef HAVE_WRAP
- request_init(&req, RQ_DAEMON, progname, RQ_CLIENT_ADDR, client->addr, RQ_USER, client->username, 0);
+ request_init(&req, RQ_DAEMON, progname, RQ_FILE, client->sock_fd, 0);
+ fromhost(&req);
if (!hosts_...
2010 Oct 20
2
nagios_service types and "name"
It seems that the nagios_service type will not write out the "name"
property of nagios service objects. I had thought this was an oversight
or a bug, till I saw this thread:
http://www.mail-archive.com/puppet-bugs@googlegroups.com/msg10387.html
which seems to imply that this is a deliberate "feature". Is this
prohibition on "name" really the desired behaviour?
2009 Apr 22
3
Exported Resources with keyword undef
...gios::service::distributed ($ensure=present,
$service_description, $host_name=false, $contact_groups=false) {
nagios_service {$name:
ensure => $ensure,
use => "generic-service-active",
host_name => $host_name ? {false => $hostname, default => $host_name},
check_command => $name,
tag => "nagios",
service_description => $service_description,
target => "$nagios_cfg_dir/services.cfg",
require => File["$nagios_cfg_dir/services.cfg"],
notify => Exec["nagios-reload"],
}
@@nagios_service {...
2008 Nov 24
14
Problem with RubyGems installation
...mands/stale_command.rb
install -c -m 0644 rubygems/commands/pristine_command.rb
/usr/local/lib/site_ruby/1.8/rubygems/commands/pristine_command.rb
install -c -m 0644 rubygems/commands/help_command.rb
/usr/local/lib/site_ruby/1.8/rubygems/commands/help_command.rb
install -c -m 0644 rubygems/commands/check_command.rb
/usr/local/lib/site_ruby/1.8/rubygems/commands/check_command.rb
install -c -m 0644 rubygems/commands/search_command.rb
/usr/local/lib/site_ruby/1.8/rubygems/commands/search_command.rb
install -c -m 0644 rubygems/commands/uninstall_command.rb
/usr/local/lib/site_ruby/1.8/rubygems/commands/uninsta...
2013 May 14
2
puppet and custom nagios object variables
Nagios support "custom object variables" (http://nagios.sourceforge.net/docs/nagioscore/3/en/customobjectvars.html) buy prefixing them with an underscore:
define host{
host_name linuxserver
_mac_address 00:06:5B:A6:AD:AA
_rack_number R32
}
However, I can''t determine how to use these with puppet nagios resources. I''m assuming they aren''t supported, but
2011 Apr 04
4
Puppet nagios integration problem
...et to write out my Nagios configs. A few
weeks back I inserted a few dummy Nagios checks into my Puppet config,
and the Nagios configs were written out properly.
I''ve now added loads of Nagios host and service checks like this:
@@nagios_service { "check_smtp_${hostname}":
check_command => "check_nrpe!check_smtp",
host_name => "$fqdn",
service_description => "SMTP",
}
and then I collect them like this:
Nagios_host <<||>>
Nagios_service <<||>>
Nagios_hostextinfo <<||>>
Nagios_servicedependency <...
2012 May 30
12
resource override
hi All,
I''m a bit new to puppet. Is there a mailing list for puppet beginners?:)
I have a service module called postfix, which defines file in a class:
file {
''/etc/postfix/main.cf'':
owner => "root",
group => "root",
mode => 644,
content =>
2007 Nov 21
9
purging exported resources
...s_template = ''service-template'',
$host_name = $fqdn,
$service_groups = '''',
$contact_groups = $default_contact_group,
$max_check_attempts = 3,
$dependency = false,
$dependent_host = $fqdn,
$dependent_service = '''',
$check_command = ''''
) {
@@file { $name:
name =>
"/etc/nagios/conf.d/services/${fqdn}_${name}.cfg",
mode => 0644,
owner => nagios,
group => nagios,
content => template("nagi...
2007 Apr 12
14
how to make puppet a killer app
I''ve been thinking about how to make Puppet a killer app, and I think there
is one specific thing that could be done to help make that happen:
People using Puppet now to consistently state what they *really* wish Puppet
could do for them -- the recent thread around Puppet on Windows is in that
vein, but it''s not specific enough. For example, I''d like to know what