########################################################################### # # Sample resource file for NetSaint # # You can define $USERx$ macros in this file, which can in turn be used # in command definitions in your host config file(s). $USERx$ macros are # useful for storing sensitive information such as usernames, passwords, # etc. They are also handy for specifying the path to plugins and # event handlers - if you decide to move the plugins or event handlers to # a different directory in the future, you can just update one or two # $USERx$ macros, instead of modifying a lot of command definitions. # # The CGIs will not attempt to read the contents of resource files, so # you can set restrictive permissions (600 or 660) on them. # # NetSaint supports up to 32 $USERx$ macros ($USER1$ through $USER32$) # # Resource files may also be used to store configuration directives for # external data sources like MySQL, PostgreSQL, etc. # ########################################################################### # Sets $USER1$ to be the path to the plugins $USER1$=/usr/local/libexec/netsaint # Sets $USER2$ to be the path to event handlers #$USER2$=/usr/local/libexec/netsaint/eventhandlers # Store some usernames and passwords (hidden from the CGIs) #$USER3$=someuser #$USER4$=somepassword # DB STATUS DATA # Note: These config directives are only used if you compiled # in database support for status data! # The user you specify here needs SELECT, INSERT, UPDATE, and # DELETE privileges on the 'programstatus', 'hoststatus', # and 'servicestatus' tables in the database. # # Note: If you enable the xsddb_optimize_data variable, data # in the status tables will be optimized every XX seconds, where # XX is the interval specified by the xsddb_optimize_interval # variable. When using PostgreSQL DB support, this performs a # VACUUM on the status data tables. #xsddb_host=somehost #xsddb_port=someport #xsddb_database=somedatabase #xsddb_username=someuser #xsddb_password=somepassword #xsddb_optimize_data=1 #xsddb_optimize_interval=3600 # DB COMMENT DATA # Note: These config directives are only used if you compiled # in database support for comment data! # The user you specify here needs SELECT, INSERT, UPDATE, and # DELETE privileges on the 'hostcomments' and 'servicecomments' # tables in the database. # # Note: If you enable the xcddb_optimize_data variable, data # in the comment tables will be optimized every time NetSaint # starts or restarts. When using PostgreSQL DB support, this # causes a VACUUM to be performed on the comment data tables. #xcddb_host=somehost #xcddb_port=someport #xcddb_database=somedatabase #xcddb_username=someuser #xcddb_password=somepassword #xcddb_optimize_data=1 # DB RETENTION DATA # Note: These config directives are only used if you compiled # in database support for retention data! # The user you specify here needs SELECT, INSERT, UPDATE, and # DELETE privileges on the 'programretention', 'hostretention', # and 'serviceretention' tables in the database. # # Note: If you enable the xrddb_optimize_data variable, data # in the retention tables will be optimized every time NetSaint # starts or restarts. When using PostgreSQL DB support, this # causes a VACUUM to be performed on the retention data tables. #xrddb_host=somehost #xrddb_port=someport #xrddb_database=somedatabase #xrddb_username=someuser #xrddb_password=somepassword #xrddb_optimize_data=1