Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."
Today's Topics:
1. Nagios exporter contact lists issue (Karl Putland)
----------------------------------------------------------------------
Message: 1
Date: Fri, 1 Feb 2013 13:59:37 -0700
From: Karl Putland <[email protected]>
Subject: [Netdot-devel] Nagios exporter contact lists issue
To: netdot-devel <[email protected]>
Message-ID:
<CA+EXWsz4EU6WcVOupqDNHD4A_5=gqjrk_0mz2d5fzccfbmm...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I added a contact list for a single user and assigned it to three
interfaces on a device with a different contact list.
The exporter is not producing valid output because the name of the contact
list is not getting to the print_contact section.
I added some Data::Printer output trying to chase it down, but I'm not
really following what's happening....
[several hours later]
The attached patch against 1.0.4 fixes the issue with the contact lists,
and puts the interface name and description into the display_name attribute.
The contactlists that got sent to print_contact wasn't being completed for
all contact lists if the contact list was never used on a device.
I moved the contact list name assignment into the contactlist escalation
list resorting and this resolves this issue. PATCH ATTACHED.
The name attribute is not being attached to contact list with clid = 3.
\ {
1 {
level {
0 {
1 {
email "[email protected]",
email_period "24x7",
esc_level 0,
name "Karl_Putland",
pager undef,
pager_period undef
}
}
},
name "Network_Services_Contacts"
},
3 {
level {
0 {
2 {
email "[email protected]",
email_period "24x7",
esc_level 0,
name "Team_GSD",
pager undef,
pager_period undef
}
}
}
*#?WHERE IS NAME?*
}
}
postgres=# \c netdot
You are now connected to database "netdot" as user "postgres".
netdot=# SELECT contactlist.id, contactlist.name,
netdot-# contact.id, contact.escalation_level,
netdot-# person.firstname, person.lastname,
person.email, person.emailpager,
netdot-# email_period.name, pager_period.name
netdot-# FROM contactlist, person, contact
netdot-# LEFT JOIN availability email_period ON (
email_period.id=contact.notify_email)
netdot-# LEFT JOIN availability pager_period ON (
pager_period.id=contact.notify_pager)
netdot-# WHERE contact.contactlist=contactlist.id
netdot-# AND contact.person=person.id;
id | name | id | escalation_level | firstname |
lastname | email | emailpager | name | name
----+---------------------------+----+------------------+-----------+----------+--------------------------+------------+------+------
1 | Network Services Contacts | 1 | 0 | Karl |
Putland | [email protected] | | 24x7 |
3 | TeamGSD | 2 | 0 | Team | GSD
| [email protected] | | 24x7 |
(2 rows)
--Karl
Karl Putland
Senior VoIP Engineer
*SimpleSignal*
3600 S Yosemite, Suite 150
Denver, CO 80237
One Number Rings All My Phones: 303-242-8608
SimpleSignal.com <http://www.simplesignal.com/> |
Blog<http://www.simplesignal.com/blog>
| Facebook <http://www.facebook.com/SimpleSignal?ref=ts> |
Twitter<http://twitter.com/simplesignal>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osl.uoregon.edu/pipermail/netdot-devel/attachments/20130201/2da9a801/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios_nice_names_and_contactlist_fix.diff
Type: application/octet-stream
Size: 8168 bytes
Desc: not available
Url :
http://osl.uoregon.edu/pipermail/netdot-devel/attachments/20130201/2da9a801/attachment-0001.obj
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 71, Issue 1
*******************************************