12-21-2014
If you Google with keywords memcache nagios you will find many reference to memcache modules for nagios
8 More Discussions You Might Find Interesting
1. Red Hat
HI all,
This is my first topic in this forum.
I have a test environment which has a fedora in it and i installed nagios 3.0.6
I added windows clients into it.
But i am not getting informative outputs from it.
Can anyone tell me where i can edit inorder to get a more informative garph output.... (4 Replies)
Discussion started by: Renjesh
4 Replies
2. Infrastructure Monitoring
Hi All,
I am new in Linux.
I want to install Nagios on Linux.
Kindly provide me guidelines for the same. Its urgent.......... (1 Reply)
Discussion started by: sunray
1 Replies
3. Infrastructure Monitoring
Hi,
Installed it and all seems okay except when I try to actually use it. :-(
Visiting my nagios url, it says
Logs and conf's follow:
nagios.log is:
# cat /usr/local/nagios/var/nagios.log | tail -5
Successfully shutdown... (PID=3613)
Nagios 3.2.2 starting... (PID=4645)... (7 Replies)
Discussion started by: smcracraft
7 Replies
4. Infrastructure Monitoring
What are the chances of getting a Nagios forum? The community is really lacking for a good place to work issues in Nagios. There just aren't any good places to go that I've found.
Thanks,
Docster (27 Replies)
Discussion started by: Docster
27 Replies
5. Red Hat
Hello,
I installed Nagios on the Centreon Platform <----"Centralized monitoring platform" anyways now every time i click on any of the tabs inside centreon interface, it gives me a Blank page, i have no idea what to do. i thought of resetting nagios to an earlier time when it was running... (2 Replies)
Discussion started by: waelkd
2 Replies
6. Infrastructure Monitoring
Hello Experts,
I have my windows servers located at different data-centers across US and I am monitoring all of them using Nagios server configured on a CentOS. All communications are done via public IP address and I doubt it can invite some security threats too. Can anyone let me know if it is... (3 Replies)
Discussion started by: naw_deepak
3 Replies
7. Infrastructure Monitoring
We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side.
I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies
8. Red Hat
Hi,
I want to configure nagios core with my own scripts.Default configuration has been done like ping,http,Root partition,..so on...
But according to my requirement i have a script called cpumon.sh which will monitor the current cpu usage.
I gone through below link but could not find out... (1 Reply)
Discussion started by: mastansaheb
1 Replies
LEARN ABOUT PHP
memcache.setserverparams
MEMCACHE.SETSERVERPARAMS(3) 1 MEMCACHE.SETSERVERPARAMS(3)
Memcache::setServerParams - Changes server parameters and status at runtime
SYNOPSIS
bool Memcache::setServerParams (string $host, [int $port = 11211], [int $timeout], [int $retry_interval = false], [bool $status],
[callable $failure_callback])
DESCRIPTION
Memcache.setServerParams(3) changes server parameters at runtime. You can also use the memcache_set_server_params(3) function.
Note
This function has been added to Memcache version 2.1.0.
PARAMETERS
o $host
- Point to the host where memcached is listening for connections.
o $port
- Point to the port where memcached is listening for connections.
o $timeout
- Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second -
you can lose all the advantages of caching if your connection is too slow.
o $retry_interval
- Controls how often a failed server will be retried, the default value is 15 seconds. Setting this parameter to -1 disables auto-
matic retry. Neither this nor the $persistent parameter has any effect when the extension is loaded dynamically via dl(3).
o $status
- Controls if the server should be flagged as online. Setting this parameter to FALSE and $retry_interval to -1 allows a failed
server to be kept in the pool so as not to affect the key distribution algorithm. Requests for this server will then failover or
fail immediately depending on the $memcache.allow_failover setting. Default to TRUE, meaning the server should be considered
online.
o $failure_callback
- Allows the user to specify a callback function to run upon encountering an error. The callback is run before failover is
attempted. The function takes two parameters, the hostname and port of the failed server.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Memcache.setServerParams(3) example
<?php
function _callback_memcache_failure($host, $port) {
print "memcache '$host:$port' failed";
}
/* OO API */
$memcache = new Memcache;
// Add the server in offline mode
$memcache->addServer('memcache_host', 11211, false, 1, 1, -1, false);
// Bring the server back online
$memcache->setServerParams('memcache_host', 11211, 1, 15, true, '_callback_memcache_failure');
/* procedural API */
$memcache_obj = memcache_connect('memcache_host', 11211);
memcache_set_server_params($memcache_obj, 'memcache_host', 11211, 1, 15, true, '_callback_memcache_failure');
?>
SEE ALSO
Memcache.addServer(3), Memcache.getServerStatus(3).
PHP Documentation Group MEMCACHE.SETSERVERPARAMS(3)