Displaying 16 results from an estimated 16 matches for "_host".
Did you mean:
host
2012 May 21
4
Rendering partial views with ajax calls in rails 3.1
...ormat|
format.html #show.html
format.js
format.json { render :json => @host }
end
end
And the respective template (show.js.erb):
$(''#tabs-1'').html("<%= escape_javascript(render @host) %>");
And a partial file named _host.html.erb
All this works fine. The template "_host.html.erb" is rendered in div
tabs-1, but now i need to add some other partial template to a
different id (#tabs-2), but use the same @host
How can i do this? by default, render @host will use the template file
_host.html.erb. How can i ca...
2010 Mar 02
2
Nagios based on David Schmitt's Complete Config : variables are empty
Hello !
I''m trying to implement a Nagios solution based on David Schmitt''s
Complete Config. But I the following error when running puppetd -t -
v :
notice: Starting catalog run
err: //Node[monitoring]/nagios::target/Nagios::Host[]/File[/conf.d/
_host.cfg]/ensure: change from absent to present failed: Could not set
present on ensure: No such file or directory - /conf.d/
_host.cfg.puppettmp at /etc/puppet/modules/nagios/manifests/init.pp:40
notice: Finished catalog run in 3.91 seconds
As far as I understand, the problem comes from :
define ho...
2010 May 13
0
[PATCH matahari] Moving QMF functionality into a transport layer.
...uot;Unknown";
- string hypervisor = "Unknown";
- string architecture = "None";
- unsigned long memory = 0;
- bool beeping = false;
+string
+Host:: get_uuid() const
+{
+ return _uuid;
+}
- ifstream input("/var/lib/dbus/machine-id");
+void
+Host::set_hostname(const string hostname)
+{
+ _hostname = hostname;
+}
- if(input.is_open())
- {
- getline(input, uuid);
- input.close();
- }
+string
+Host::get_hostname() const
+{
+ return _hostname;
+}
- if(!uname(&details))
- {
- hostname = string(details.nodename);
-...
2013 Aug 26
2
opusfile.h error
...This may be <code>NULL</code> to disable
> proxy
> authentication.
> A non-<code>NULL</code> value only has an
> effect
> if #OP_HTTP_PROXY_HOST and
> #OP_HTTP_PROXY_PASS
> are also specified with
> non-<code>NULL</code>
> arguments.
> \hideinitializer*/
> #define OP_HTTP_PROXY_USER(_user) \
> OP_URL_OPT(OP_HTTP_PROXY_USER_REQUEST),OP_CHECK_CO...
2010 May 19
2
Squashed commits...
Refactoring the previous patch ended up creating two deltas. This
patch pushes them both together into a single commit.
2017 Jan 28
2
Sharing between domains?
Hello Community,
I am facing the following question: how is it possible to share malboxes
between domains?
Example:
- 2 domains present on the same dovecot: domA and domB
- userA at domA
- userB at domB
userA at domA wants to share his mailbox to userB at domB (again same server)?
Thank you for your help.
Greetz
2010 May 25
3
Supercedes previous patch...
The previous patch, for whatever reason, fails to apply on top of tip.
This patch is reimplemented and, hopefully, fixed.
2010 May 24
0
[PATCH matahari] Moves the CPU properties into the Host API space.
...er
-{
- public:
- virtual void updated() = 0;
-};
-
-#endif
diff --git a/src/qmf/hostagent.cpp b/src/qmf/hostagent.cpp
index 9807f65..1baac73 100644
--- a/src/qmf/hostagent.cpp
+++ b/src/qmf/hostagent.cpp
@@ -44,6 +44,9 @@ HostAgent::setup(ManagementAgent* agent)
_management_object->set_arch(_host.getArchitecture());
_management_object->set_memory(_host.getMemory());
_management_object->set_beeping(_host.isBeeping());
+
+ _management_object->set_cpu_model(_host.getCPUModel());
+ _management_object->set_cpu_cores(_host.getNumberOfCPUCores());
}
Manageable::status_t
@@...
2002 Jun 05
1
Per-port hostkeys
...nt in ssh.com's
client; namely, the ability to store remote hostkeys on a per-port basis.
I have various machines that, due to iptables port-forwarding, appear to
be running copies of (open)sshd on multiple ports. "Commercial" ssh
stores hostkeys in files named "key_<port>_host.pub"; this is useful,
because it allows for recording the keys of multiple sshd's on the same IP
address.
OpenSSH, on the other hand, doesn't appear to offer this functionality;
connecting to any sshd port on a machine will cache that hostkey, and
subsequent connections to sshd's...
2011 Jun 14
2
notify defined in exported resource won't work?
Hi all,
I noticed a "service notify" defined inside of exported resource won''t work.
For example, I have the following exported resource defined:
define host($ip = $fqdn, $short_alias = $fqdn) {
@@file {
"$nagios_cfgdir/${name}_host.cfg":
ensure => present, content => template( "nagios/host.erb" ),
mode => 644, owner => root, group => root,
notify => Service [nagios],
tag => ''nagios''
}
}
This creates the file fine, but the ser...
2008 Jan 18
7
puppet 0.23.2 can''t collect exported resources
hi,guys
I''m test the resources export and collect , OS is Debian etch and
sarge, puppet server and client version all of the 0.23.2 ; the db is
MySQL-4.1
My test code is like this.
node ''b'' {
@@file {"/tmp/a": ensure => present ,content => "test"; }
}
node ''a'' {
File <<||>>
}
I run puppetd on
2013 Aug 26
0
opusfile.h error
alpha thinktink wrote:
> On Sun, Aug 25, 2013 at 8:53 PM, Timothy B. Terriberry
> <tterribe at xiph.org <mailto:tterribe at xiph.org>> wrote:
>
> alpha thinktink wrote:
> > You've got "_host" instead of "_user" in the definition for the macro
> > for "OP_HTTP_PROXY_USER"
>
> Yeah, already fixed in
> https://git.xiph.org/?p=opusfile.git;a=commitdiff;h=06a191efabc2
>
> Sorry about that.
> ______________________________...
2017 Jan 02
1
[PATCH] Use ASN1_STRING_get0_data for openssl-1.1.0
...){
# if OPENSSL_VERSION_NUMBER<0x10100000L
# define BIO_set_data(_b,_ptr) ((_b)->ptr=(_ptr))
# define BIO_set_init(_b,_init) ((_b)->init=(_init))
+# define ASN1_STRING_get0_data ASN1_STRING_data
# endif
static int op_bio_retry_new(BIO *_b){
@@ -1632,7 +1635,7 @@ static int op_http_hostname_match(const char *_host,size_t _host_len,
size_t pattern_prefix_len;
size_t pattern_suffix_len;
if(OP_UNLIKELY(_host_len>(size_t)INT_MAX))return 0;
- pattern=(const char *)ASN1_STRING_data(_pattern);
+ pattern=(const char *)ASN1_STRING_get0_data(_pattern);
pattern_len...
2005 Aug 31
1
Building bacula RPM from Karanbir's repo
Hi all,
Has anyone tried to rebuild bacula from the source RPM provided on
Karanbir's CentOS yum repo? Every time I give it a go, I'm given this
error during the configure stage:
checking host system type... configure: error: can not guess host type;
you must specify one
make[1]: Entering directory
`/home/rpmbuilder/rpmbuild/BUILD/depkgs/mtx-1.2.17kes'
make[1]: *** No targets
2013 May 08
1
[PATCH] virtio-balloon spec: rework VIRTIO_BALLOON_F_MUST_TELL_HOST feature, support silent deflation
The idea of the VIRTIO_BALLOON_F_MUST_TELL_HOST feature is to let drivers
skip usage of the deflate queue when leaking the balloon ("silent
deflation"). Guests may benefit from silent deflate by aggressively
inflating the balloon; they know that they will be able to use ballooned
pages without issuing a (blocking) request to the devic...
2013 May 08
1
[PATCH] virtio-balloon spec: rework VIRTIO_BALLOON_F_MUST_TELL_HOST feature, support silent deflation
The idea of the VIRTIO_BALLOON_F_MUST_TELL_HOST feature is to let drivers
skip usage of the deflate queue when leaking the balloon ("silent
deflation"). Guests may benefit from silent deflate by aggressively
inflating the balloon; they know that they will be able to use ballooned
pages without issuing a (blocking) request to the devic...