Creating user accounts for different support units

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Creating user accounts for different support units

Post by mguthrie »

Sure thing, I'll send some possible times for a remote session for early next week in a PM.

Here's my contact I created.

Code: Select all

define contact {
        contact_name                            tscadmin
        alias                                   tsc
        host_notification_period                tscadmin_notification_times
        service_notification_period             tscadmin_notification_times
        host_notification_options               d,u,r,f,s
        service_notification_options            w,u,c,r,f,s
        email                                   a@a.com
        host_notifications_enabled              1
        service_notifications_enabled           1
        use                                     xi_contact_generic
        }
Here's the template that it's calling.

Code: Select all

define contact {
        name                                    xi_contact_generic
        contactgroups                           xi_contactgroup_all
        host_notification_options               d,u,r,f,s
        service_notification_options            w,u,c,r,f,s
        host_notification_commands              xi_host_notification_handler
        service_notification_commands           xi_service_notification_handler
        register                                0
        }
You may want to double check the /usr/local/nagios/etc/cgi.cfg file and make sure that user doesn't have a global permission set for being able to submit commands.


From reading the other forum thread, I'm wondering if there are some postgresql connections that are stalled out, and you've hit your maximum connection limit. I might suggest restarting the server, and then lets do some maintenance runs and see if this helps.

Code: Select all

psql nagiosxi nagiosxi
vacuum;
vacuum analyze;
vacuum full;
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: Creating user accounts for different support units

Post by TSCAdmin »

Thank you for sending the contacts.cfg and contacttemplates.cfg, I have matched it against mine and our definitions look quite similar.

I checked cgi.cfg and tscwindows appear in following three directives when I have checked "Can see all hosts and services" in Manage Users

Code: Select all

authorized_for_all_hosts
authorized_for_all_services
authorized_for_configuration_information
but when I uncheck this option tscwindows also disappears from cgi.cfg.

Kindly pardon my postgresql ignorance but I tried running the psql commands from user root, nagios and postgres but I get the following warnings:

Code: Select all

$ psql nagiosxi nagiosxi
Welcome to psql 8.1.21, the PostgreSQL interactive terminal.
......
nagiosxi=> vacuum;
WARNING:  skipping "pg_authid" --- only table or database owner can vacuum it
WARNING:  skipping "pg_tablespace" --- only table or database owner can vacuum it
WARNING:  skipping "pg_pltemplate" --- only table or database owner can vacuum it
WARNING:  skipping "pg_shdepend" --- only table or database owner can vacuum it
WARNING:  skipping "pg_auth_members" --- only table or database owner can vacuum it
WARNING:  skipping "pg_database" --- only table or database owner can vacuum it
VACUUM
Does this help?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Creating user accounts for different support units

Post by mguthrie »

Those errors above are normal, I should have mentioned those. Those are psql's global tables for settings and users.

I think the remote session next week will be our best bet to see if we can get this resolved. I haven't been able to recreate the user issue with my test cases.
Locked