/centreon-dsm

Dynamic Service Monitoring

Primary LanguagePerl

Installation :
--------------

Use install.sh

Usage :
-------

Usage after release 2.0

  ./dsmclient.pl [-a action] [-h] -H hostname -i id -t timerequest [-s status] -o output ...
	-h|--help		Help
	-H|--Host		The hostname linked to trap services
	-i|--id			Id (a built string to match a specific alarm)
	-t|--time		The time epoch for the trap request
	-s|--status		The id status nagios 0 Ok; 1 Warning ; 2 Critical ; 3 Unknown 
	-o|--output     The output to display in service comment

Usage before revision 34 : deprecated.

  ./dsmclient.pl hostname timerequest output
    hostname		The hostname with trap services
	timerequest		The time epoch for the trap request
	output			The output to display in service comment

In this version, the status if always CRITICAL.

Configuration :
---------------

The configuration vairables are in conf_dsm.pm

EXCLUDESTR	    The list of string to exclude, separateb by ","
LOG		        The log file
NAGIOSCMD	    The pipe for send commands to Nagios
CECORECMD	    The pipe for send commands to CentCore
LOCKDIR	    	The directory for lock files
CACHEDIR	    The directory for cache
MAXDATAAGE	    The max age of cahce in minutes
MACRO_ID_NAME	The name of macro in the service for storage the unique ID

Optionnal :
pattern_output	A array of pattern for custom output by action
action_list	A array of custom action (In development)