shinken-solutions / shinken Goto Github PK
View Code? Open in Web Editor NEWFlexible and scalable monitoring framework
Home Page: http://www.shinken-monitoring.org
License: GNU Affero General Public License v3.0
Flexible and scalable monitoring framework
Home Page: http://www.shinken-monitoring.org
License: GNU Affero General Public License v3.0
Global command timeout can be override by a specific one.
Things look okay - No serious problems were detected during the pre-flight check
Configuration Loaded
CRITICAL ERROR : I got an non recovarable error. I must exit
You can log a bug ticket at https://sourceforge.net/apps/trac/shinken/newticket for geting help
Back trace of it: Traceback (most recent call last):
File "/usr/local/shinken-0.6/shinken/daemons/arbiterdaemon.py", line 407, in main
self.do_daemon_init_and_start(self.conf)
File "/usr/local/shinken-0.6/shinken/daemon.py", line 384, in do_daemon_init_and_start
self.check_parallel_run()
File "/usr/local/shinken-0.6/shinken/daemon.py", line 262, in check_parallel_run
self.open_pidfile()
File "/usr/local/shinken-0.6/shinken/daemon.py", line 255, in open_pidfile
raise InvalidPidDir?(e)
InvalidPidDir?: [Errno 2] No such file or directory: u'/usr/local/shinken/var/arbiterd.pid'
Traceback (most recent call last):
File "/usr/local/shinken-0.6/bin/../bin/shinken-arbiter", line 97, in <module>
daemon.main()
File "/usr/local/shinken-0.6/shinken/daemons/arbiterdaemon.py", line 407, in main
self.do_daemon_init_and_start(self.conf)
File "/usr/local/shinken-0.6/shinken/daemon.py", line 384, in do_daemon_init_and_start
self.check_parallel_run()
File "/usr/local/shinken-0.6/shinken/daemon.py", line 262, in check_parallel_run
self.open_pidfile()
File "/usr/local/shinken-0.6/shinken/daemon.py", line 255, in open_pidfile
raise InvalidPidDir?(e)
shinken.daemon.InvalidPidDir?: [Errno 2] No such file or directory: u'/usr/local/shinken/var/arbiterd.pid'
This can wait a little.
Hi,
In getpidfile() echo "$VAR/${mod}d.pid" instead of echo "$RUN/${mod}d.pid".
Consequently, with a fresh install we can't start then stop a daemon.
Rémi
Can be great for reporting and co to have "tags" as custom macros for groups. Idea from @rudihill on Twitter, should be quick to add for the 0.7.
Maybe a parameter of nagios.cfg must be changed for one scheduler and not the others. We can allow overide in scheduler configuration.
Hi,
In the menu at the end of the page "Acknoledge" instead of "Acknowledge".
Rémi
Names of private methods should be prefixed with an underscore. This would help understanding the code and enhancing (reengineering) it.
If a daemon can't load need modules, it should be bypass as dead.
When we have many files of configurations ( ie: 1/host and service) it would be a good idea to print the concerned file when a syntax error is detected.
And for those which has few config files but with a big size, print the line number or object concerned by error.
All (spare) -> Europe (void) -> Paris (poller)
Seems to get some problems?
With the python-pymssql module.
It would be useful to give option in shinken-specific.cfg to change the Unix timestamp in log files in a human readable date/time entry ;)
The exact format would be defined following the syntax of date shell command.
Exemple:
[1302788487] OK, all schedulers configurations are dispatched :)
=>
[14/04/2011 15:41:27] OK, all schedulers configurations are dispatched :)
when you call nagios for checking (for exemple) you need to specify nagios -v nagios.cfg
the wrapper call shinken-arbiter and this one need the -c argument so the wrapper should translate nagios -v nagios.cfg to shinken-arbiter -v -c nagios.cfg and not shinken-arbiter -v nagios.cfg.
Hi,
I've installed shinken_0.4-1_all.deb on a debian squeeze 6.0 and it seems that arbiter has a non excepted behaviour:
When I activate the debug mode it asks me for a filename:
root@shinkensrv:/var/lib/shinken# /usr/bin/python /usr/bin/shinken-arbiter -c /etc/nagios3/nagios.cfg -c /etc/shinken/shinken-specific.cfg -r --debug
Using Pyro 3.9.1
option --debug requires argument
Shinken Arbiter Daemon, version 0.3, from :
Gabes Jean, [email protected]
Gerhard Lausser, [email protected]
Usage: /usr/bin/shinken-arbiter [options] -c configfile [-c additionnal_config_file]
Options:
-c, --config
Config file (your nagios.cfg). Multiple -c can be used, it will be like if all files was just one
-d, --daemon
Run in daemon mode
-r, --replace
Replace previous running scheduler
-h, --help
Print detailed help screen
--debug
Debug File. Default : no use (why debug a bug free program? :) )
So I cd to a shinken writtable directory:
root@shinkensrv:/var/lib/shinken# ls -ld /var/lib/shinken
drwxr-xr-x 2 shinken shinken 4096 Feb 18 13:01 /var/lib/shinken
Then I launch the command but the output is not done in file but on stdout.
root@shinkensrv:/var/lib/shinken# /usr/bin/python /usr/bin/shinken-arbiter -c /etc/nagios3/nagios.cfg -c /etc/shinken/shinken-specific.cfg -r --debug file
Using Pyro 3.9.1
Shinken 0.4
Copyright (c) 2009-2010 :
Gabes Jean ([email protected])
Gerhard Lausser, [email protected]
License: AGPL
Shinken 0.4
Copyright (c) 2009-2010 :
Gabes Jean ([email protected])
Gerhard Lausser, [email protected]
License: AGPL
Loading configuration
Opening configuration file /etc/nagios3/nagios.cfg
Processing object config file '/etc/nagios3/hostTemplates.cfg'
Processing object config file '/etc/nagios3/hosts.cfg'
Processing object config file '/etc/nagios3/serviceTemplates.cfg'
Processing object config file '/etc/nagios3/services.cfg'
Processing object config file '/etc/nagios3/misccommands.cfg'
Processing object config file '/etc/nagios3/checkcommands.cfg'
Processing object config file '/etc/nagios3/contactgroups.cfg'
Processing object config file '/etc/nagios3/contacts.cfg'
Processing object config file '/etc/nagios3/hostgroups.cfg'
...
Maybe there is a good reason but from my point of view :
-- debug should write on stdout
-- debug should write in filename.
Thanks in advance.
In the future notifications have to be written in the notificationtable.
Sample database see attachment
CREATE TABLE IF NOT EXISTS notification
(
instance_id
int(11) NOT NULL DEFAULT '0',
id
int(11) NOT NULL AUTO_INCREMENT,
notification_type
int(11) DEFAULT NULL,
start_time
int(11) DEFAULT NULL,
end_time
int(11) DEFAULT NULL,
contact_name
varchar(255) COLLATE latin1_general_cs DEFAULT NULL,
host_name
varchar(255) COLLATE latin1_general_cs DEFAULT NULL,
service_description
varchar(255) COLLATE latin1_general_cs DEFAULT NULL,
command_name
varchar(255) COLLATE latin1_general_cs DEFAULT NULL,
reason_type
int(11) DEFAULT NULL,
state
int(11) DEFAULT NULL,
output
text COLLATE latin1_general_cs,
ack_author
varchar(255) COLLATE latin1_general_cs DEFAULT NULL,
ack_data
text COLLATE latin1_general_cs,
escalated
int(11) DEFAULT NULL,
contacts_notified
int(11) DEFAULT NULL,
PRIMARY KEY (id
)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=45 ;
notification
INSERT INTO notification
(instance_id
, id
, notification_type
, start_time
, end_time
, contact_name
, host_name
, service_description
, command_name
, reason_type
, state
, output
, ack_author
, ack_data
, escalated
, contacts_notified
) VALUES
(0, 1, 0, 1300625340, 1300625340, 'nagiosadmin', 'winserver', NULL, 'notify-host-by-email', 0, 1, '(Host Check Timed Out)', NULL, NULL, 0, NULL),
(0, 2, 0, 1300627170, 1300627170, 'nagiosadmin', 'winserver', NULL, 'notify-host-by-email', 0, 1, '(Host Check Timed Out)', NULL, NULL, 0, NULL),
(0, 3, 0, 1300628970, 1300628970, 'nagiosadmin', 'winserver', NULL, 'notify-host-by-email', 0, 1, '(Host Check Timed Out)', NULL, NULL, 0, NULL),
(0, 4, 0, 1300630770, 1300630770, 'nagiosadmin', 'winserver', NULL, 'notify-host-by-email', 0, 1, '(Host Check Timed Out)', NULL, NULL, 0, NULL),
(0, 5, 0, 1300814488, 1300814488, 'nagiosadmin', 'winserver', NULL, 'notify-host-by-email', 0, 0, 'PING OK - Packet loss = 0%, RTA = 0.20 ms', NULL, NULL, 0, NULL),
(0, 6, 1, 1300814488, 1300814488, 'nagiosadmin', 'winserver', 'CPU Load', 'notify-service-by-email', 0, 2, 'CRITICAL - Socket timeout after 10 seconds', NULL, NULL, 0, NULL),
(0, 7, 1, 1300814538, 1300814538, 'nagiosadmin', 'winserver', 'Explorer', 'notify-service-by-email', 0, 2, 'Connection refused', NULL, NULL, 0, NULL),
(0, 8, 1, 1300814598, 1300814598, 'nagiosadmin', 'winserver', 'Memory Usage', 'notify-service-by-email', 0, 2, 'Connection refused', NULL, NULL, 0, NULL),
(0, 9, 1, 1300814658, 1300814658, 'nagiosadmin', 'winserver', 'NSClient++ Version', 'notify-service-by-email', 0, 2, 'Connection refused', NULL, NULL, 0, NULL),
(0, 10, 1, 1300814718, 1300814718, 'nagiosadmin', 'winserver', 'Uptime', 'notify-service-by-email', 0, 2, 'Connection refused', NULL, NULL, 0, NULL),
(0, 11, 1, 1300814768, 1300814768, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'Connection refused', NULL, NULL, 0, NULL),
(0, 12, 1, 1300815018, 1300815018, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 2, 'Connection refused', NULL, NULL, 0, NULL),
(0, 13, 1, 1300815138, 1300815138, 'nagiosadmin', 'winserver', 'Explorer', 'notify-service-by-email', 0, 0, 'Explorer.EXE: Running', NULL, NULL, 0, NULL),
(0, 14, 1, 1300815138, 1300815138, 'nagiosadmin', 'winserver', 'CPU Load', 'notify-service-by-email', 0, 0, 'CPU Load 0% (5 min average)', NULL, NULL, 0, NULL),
(0, 15, 1, 1300815198, 1300815198, 'nagiosadmin', 'winserver', 'Memory Usage', 'notify-service-by-email', 0, 0, 'Memory usage: total:24556.59 Mb - used: 2653.04 Mb (11%) - free: 21903.54 Mb (89%)', NULL, NULL, 0, NULL),
(0, 16, 1, 1300815258, 1300815258, 'nagiosadmin', 'winserver', 'NSClient++ Version', 'notify-service-by-email', 0, 0, 'NSClient++ 0.3.8.76 2010-05-27', NULL, NULL, 0, NULL),
(0, 17, 1, 1300815318, 1300815318, 'nagiosadmin', 'winserver', 'Uptime', 'notify-service-by-email', 0, 0, 'System Uptime - 0 day(s) 1 hour(s) 14 minute(s)', NULL, NULL, 0, NULL),
(0, 18, 1, 1300815618, 1300815618, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 0, 'c:\ - total: 55.90 Gb - used: 33.03 Gb (59%) - free 22.87 Gb (41%)', NULL, NULL, 0, NULL),
(0, 19, 1, 1300817664, 1300817664, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 33.19 Gb (59%) - free 22.71 Gb (41%)', NULL, NULL, 0, NULL),
(0, 20, 1, 1300818374, 1300818374, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 21, 1, 1300821264, 1300821264, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 33.16 Gb (59%) - free 22.73 Gb (41%)', NULL, NULL, 0, NULL),
(0, 22, 1, 1300821974, 1300821974, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 23, 1, 1300824864, 1300824864, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 32.72 Gb (59%) - free 23.18 Gb (41%)', NULL, NULL, 0, NULL),
(0, 24, 1, 1300825574, 1300825574, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 25, 1, 1300828464, 1300828464, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 32.70 Gb (59%) - free 23.20 Gb (41%)', NULL, NULL, 0, NULL),
(0, 26, 1, 1300829174, 1300829174, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 27, 1, 1300947066, 1300947066, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 33.23 Gb (59%) - free 22.67 Gb (41%)', NULL, NULL, 0, NULL),
(0, 28, 1, 1300947426, 1300947426, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 29, 1, 1303419746, 1303419746, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 35.96 Gb (64%) - free 19.93 Gb (36%)', NULL, NULL, 0, NULL),
(0, 30, 1, 1303488468, 1303488468, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.51 Gb (62%) - free 21.39 Gb (38%)', NULL, NULL, 0, NULL),
(0, 31, 1, 1303488758, 1303488758, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 32, 1, 1303492068, 1303492068, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.85 Gb (62%) - free 21.04 Gb (38%)', NULL, NULL, 0, NULL),
(0, 33, 1, 1303492358, 1303492358, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 34, 1, 1303495668, 1303495668, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.97 Gb (63%) - free 20.93 Gb (37%)', NULL, NULL, 0, NULL),
(0, 35, 1, 1303495958, 1303495958, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 36, 1, 1303499268, 1303499268, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.85 Gb (62%) - free 21.04 Gb (38%)', NULL, NULL, 0, NULL),
(0, 37, 1, 1303499558, 1303499558, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 38, 1, 1303502868, 1303502868, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.87 Gb (62%) - free 21.03 Gb (38%)', NULL, NULL, 0, NULL),
(0, 39, 1, 1303503158, 1303503158, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 40, 1, 1303506468, 1303506468, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.89 Gb (62%) - free 21.01 Gb (38%)', NULL, NULL, 0, NULL),
(0, 41, 1, 1303506758, 1303506758, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 42, 1, 1303510068, 1303510068, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.81 Gb (62%) - free 21.08 Gb (38%)', NULL, NULL, 0, NULL),
(0, 43, 1, 1303510358, 1303510358, 'nagiosadmin', 'winserver', 'W3SVC', 'notify-service-by-email', 0, 2, 'W3SVC: Not found', NULL, NULL, 0, NULL),
(0, 44, 1, 1303513668, 1303513668, 'nagiosadmin', 'winserver', 'C:\ Drive Space', 'notify-service-by-email', 0, 1, 'c:\ - total: 55.90 Gb - used: 34.88 Gb (62%) - free 21.02 Gb (38%)', NULL, NULL, 0, NULL);
There are no host_name defined in hostdependency but a dependent_hostgroup_name. The same config verifies in nagios
Error : the host dependency miss a property Hostdependency' object has no attribute 'host_name
CRITICAL ERROR : I got an non recovarable error. I must exit
You can log a bug ticket at https://sourceforge.net/apps/trac/shinken/newticket for geting help
Back trace of it: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 411, in main
self.load_config_file()
File "/usr/lib/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 354, in load_config_file
self.conf.is_correct()
File "/usr/lib/python2.6/site-packages/shinken/objects/config.py", line 1232, in is_correct
if not cur.is_correct():
File "/usr/lib/python2.6/site-packages/shinken/objects/item.py", line 644, in is_correct
if not i.is_correct():
File "/usr/lib/python2.6/site-packages/shinken/objects/item.py", line 294, in is_correct
print self.get_name(), "missing property :", prop
File "/usr/lib/python2.6/site-packages/shinken/objects/hostdependency.py", line 56, in get_name
return self.dependent_host_name+'/'+self.host_name
AttributeError?: 'Hostdependency' object has no attribute 'host_name'
This config verifies with nagios but not with shinken. Servicedependcy has hostgroup_name defined but no host_name:
'Servicedependency' object has no attribute 'host_name'
CRITICAL ERROR : I got an non recovarable error. I must exit
You can log a bug ticket at https://sourceforge.net/apps/trac/shinken/newticket for geting help
Back trace of it: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 411, in main
self.load_config_file()
File "/usr/lib/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 320, in load_config_file
self.conf.linkify()
File "/usr/lib/python2.6/site-packages/shinken/objects/config.py", line 663, in linkify
self.timeperiods)
File "/usr/lib/python2.6/site-packages/shinken/objects/servicedependency.py", line 134, in linkify
self.linkify_s_by_sd()
File "/usr/lib/python2.6/site-packages/shinken/objects/servicedependency.py", line 180, in linkify_s_by_sd
dsc.add_service_act_dependancy(sdval, sd.notification_failure_criteria, dp, sd.inherits_parent)
File "/usr/lib/python2.6/site-packages/shinken/objects/service.py", line 420, in add_service_act_dependancy
srv.act_depend_of_me.append( (self, status, 'logic_dep',
AttributeError?: 'unicode' object has no attribute 'act_depend_of_me'
We can enhance LS module perfs. It's THE default API. Let make it as powerful as possible.
Macro is a huge perf getter. We should add a cache (and remember to flush it some times when it need it).
Nagios do not wait for such case. We should not too. It do not change a lot because notif is still disabled.
When started, daemons (scheduler poller reactionner broker receiver arbiter) switch real and effective uid and gid to those defined in configuration files: (daemon.py)
os.setregid(gid, gid)
os.setreuid(uid, uid)
BUT, supplementary groups are not initialized (initgroups function).
So, supplementary groups cannot be used to get some extra accesses to execute checks: for example, read some files that need special access rights.
Hi,
I've poller that crash after some hours but no pertinent messages are logged onto module log file.
I see some warning on broker debug file :
{'instance_id': 0}
[MysqlDB] Warning : a query /usr/lib/python2.6/site-packages/shinken/db_mysql.py:61: Warning: Incorrect integer value: 'UP' for column 'last_hard_state' at row 1
self.db_cursor.execute(query)
/usr/lib/python2.6/site-packages/shinken/db_mysql.py:61: Warning: Incorrect integer value: 'OK' for column 'last_hard_state' at row 1
self.db_cursor.execute(query)
Deleting messages from the log database older than Tue Aug 10 16:21:27 2010
WARNING : yit seems your database is corrupted. Please recreate it
[...]
{'instance_id': 0}
[MysqlDB] Warning : a query raise a programming error : DELETE FROM downtime WHERE instance_id = '0' , (1146, "Table 'merlin.downtime' doesn't exist")
On scheduler we've this message that indicate the crash of poller module:
Warning : 3 actions never came back for the satellite 'poller-1'. I'm reenable them for polling
Checks: total 284 scheduled 281 inpoller 3 zombies 0 notifications 2
Please add all to all modules. This would help understanding what the interface of the module is. Alternatively prefix all unexported identifiers with an underscore.
See http://docs.python.org/tutorial/modules.html#importing-from-a-package for more information.
More easy to use :)
Hi,
I wondered why my template definition for the Service-Perfdata Broker Module didn't work as excepted:
template
The
Digging a bit deeper into service_perfdata_broker.py i realised that there are only a few Macros definied. Adding the SERVICELATENCY Macro worked as expeced:
'$SERVICELATENCY$' : datalatency?,
Currently I'm a bit busy - so no patch, just a ticket.
Kind Regards, and thanks for all the work you put into Shinken.
Christoph
The arbiter should be able to listen for nsca commands
A Tactical Overview over all Services and Hosts for all pages.
Following Information should be displayed:
Service.OK, Serice.Warnig, Service.Critical, Service.Unknown, Service.Total
Host.UP, Host.Down, Host.Unreachable, Host.Total
Optional: Bussines Impacts
There is no README/INSTALL file for the webui. It is needed for testers.
shinken-install script does not support proxy.
Did it re-send a already managed conf? If so, it's stupid.
For reporting, it an be cool to have the category of the alert (network, system, etc). So just add a information tag on services for it.
Hi,
An exception is raised when memcache retention module try to load data:
2011-10-28 04:31:32,530 [1319790692] The instance MemcacheRetention? raise an exception Keys must be str()'s, notunicode. Convert your unicode strings using mystring.encode(charset)!. I disable it and set it t
o restart it later
2011-10-28 04:31:32,550 [1319790692] Back trace of this remove : Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/shinken/scheduler.py", line 274, in hook_point
f(self)
File "/usr/lib/python2.5/site-packages/shinken/modules/memcache_retention_scheduler.py", line 104, in hook_load_retention
val = self.mc.get(key)
File "/var/lib/python-support/python2.5/memcache.py", line 619, in get
check_key(key)
File "/var/lib/python-support/python2.5/memcache.py", line 878, in check_key
raise Client.MemcachedStringEncodingError?, ("Keys must be str()'s, not"
MemcachedStringEncodingError?: Keys must be str()'s, notunicode. Convert your unicode strings using mystring.encode(charset)!
It seems to be a key encoding issue.
Rémi
Hi,
When SHINKENCFG is changed in /etc/default/shinken, restart method in init script doesn't work anymore:
root@xxx:/usr/local/centreon# /etc/init.d/shinken-arbiter restart
Restarting arbiter
Doing config check
full result is in /tmp/shinken_checkconfig_result ... (warning).
ConfigCheck failed: ***> One or more problems was encountered while processing the config files... ... failed!
failed!
root@xxx:/usr/local/centreon# /etc/init.d/shinken-arbiter start
Starting arbiter:
.
Reproducible on debian squeeze.
Rémi
Like if connexion die, we put in queue (fixed size in nb element or time) broks to process. When reconnect, send all :)
For configuration. Need hash and not take care of id (but update it).
define host{
register 0
use LinuxNode?,WebNode?,etc (so here you can "call" the service/properties you want
duplicate_foreach nodes[1-400,489,568,600-800/3]
}
Thanks to Hermann Lauer and Aurelien Degremont for this great idea!
Maange it :)
Opera/9.80 (Windows NT 6.1; U; de) Presto/2.9.168 Version/11.52
Header background-color is black
Running in Android is fun, but it can be useful for reactionner in fact : send SMS easily :)
It's just add a Thread way to reactionner (satellite.py) as an option (or even an android option?).
Need reactionner_tag too.
Host- and servicedependency should be maneged in the next version.
Sample table structure see attachment
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS /;
/!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION /;
/!40101 SET NAMES utf8 */;
servicedependency
CREATE TABLE IF NOT EXISTS servicedependency
(
id
int(11) NOT NULL AUTO_INCREMENT,
service
int(11) NOT NULL,
dependent_service
int(11) NOT NULL,
dependency_period
varchar(75) COLLATE latin1_general_cs DEFAULT NULL,
inherits_parent
tinyint(1) DEFAULT NULL,
execution_failure_options
varchar(15) COLLATE latin1_general_cs DEFAULT NULL,
notification_failure_options
varchar(15) COLLATE latin1_general_cs DEFAULT NULL,
PRIMARY KEY (id
)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;
-- PHP-Version: 5.3.3-1ubuntu9.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS /;
/!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION /;
/!40101 SET NAMES utf8 */;
hostdependency
CREATE TABLE IF NOT EXISTS hostdependency
(
instance_id
int(11) NOT NULL DEFAULT '0',
id
int(11) NOT NULL AUTO_INCREMENT,
host_name
int(11) NOT NULL,
dependent_host_name
int(11) NOT NULL,
dependency_period
varchar(75) COLLATE latin1_general_cs DEFAULT NULL,
inherits_parent
tinyint(1) DEFAULT NULL,
execution_failure_options
varchar(15) COLLATE latin1_general_cs DEFAULT NULL,
notification_failure_options
varchar(15) COLLATE latin1_general_cs DEFAULT NULL,
PRIMARY KEY (id
)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs AUTO_INCREMENT=1 ;
The file untick.png should be present in the following folder : shinken/shinken/webui/htdocs/images
So when it start, it got quite fresh status.
So web interface can graph them
One of the most important guideline to follow is to not specify css styles inline. Specify css style in css files. It will be far much easier to update presentation layer this way.
Check if a poller_tag really exist in a poller in the configuration.
Pyro is THE lib that make shinken possible. Let it known :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.