Users and contacts
-
luniversity
- Posts: 56
- Joined: Mon Dec 10, 2012 9:39 am
Users and contacts
I've taken over management of our Nagios XI system and I've noticed the we have 41 users and only 37 contacts. I'm wondering if there is a simple way to identify users without contacts. I've poured through documentation ( admin guide, users guide, understanding users and contacts) but can't find what I'm looking for. I know I can sort through them manually. Just curious if there is a simpler way.
Mike Westmoreland
Lamar University
Lamar University
Re: Users and contacts
My bash skills are a bit rusty, but I used this to pull the relevant information regarding Users and Contacts that are in the CCM:
You can use that same logic to compare the arrays.
Code: Select all
XI_USERS=`echo "COPY (select username from xi_users) TO STDOUT WITH CSV" | psql nagiosxi nagiosxi | sort`
echo "$XI_USERS"
echo ""
CONTACTS=`echo "use nagiosql; select contact_name from tbl_contact" | mysql -N -u root -pnagiosxi | sort`
echo "$CONTACTS"
Former Nagios employee
-
luniversity
- Posts: 56
- Joined: Mon Dec 10, 2012 9:39 am
Re: Users and contacts
Exactly what I was looking for. Thank you much.
Mike Westmoreland
Lamar University
Lamar University