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. upgrade from 1.0.1 to 1.0.4 (Karl Putland)
2. Re: [Netdot-users] upgrade from 1.0.1 to 1.0.4 (Karl Putland)
3. Re: [Netdot-users] upgrade from 1.0.1 to 1.0.4 (Todd Lyons)
4. Nagios exporter (Karl Putland)
5. [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.4-27-ga0fcb57 ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Tue, 29 Jan 2013 17:55:19 -0700
From: Karl Putland <[email protected]>
Subject: [Netdot-devel] upgrade from 1.0.1 to 1.0.4
To: netdot-devel <[email protected]>, netdot-users
<[email protected]>
Message-ID:
<CA+EXWswWXtsRxixqKNwQ48VJWyHzRTMBXo5V6bVv-7ERp=4...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
no errors until trying to restart apache
Attempt to reload Netdot/Model/Ipblock.pm aborted.
Compilation failed in require at (eval 371) line 2.
...propagated at /usr/share/perl/5.14/base.pm line 93.
BEGIN failed--compilation aborted at (eval 370) line 1.
BEGIN failed--compilation aborted at /usr/local/netdot/lib/Netdot/Model.pm
line 418.
Compilation failed in require at /usr/local/netdot/lib/Netdot/UI.pm line 5.
BEGIN failed--compilation aborted at /usr/local/netdot/lib/Netdot/UI.pm
line 5.
Compilation failed in require at /usr/local/netdot/lib/Netdot/Mason.pm line
21.
BEGIN failed--compilation aborted at /usr/local/netdot/lib/Netdot/Mason.pm
line 21.
Compilation failed in require at /etc/apache2/sites-enabled/netdot line 32.
BEGIN failed--compilation aborted
Now I'm stumped.
--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/20130129/45e5da5b/attachment-0001.html
------------------------------
Message: 2
Date: Wed, 30 Jan 2013 09:18:13 -0700
From: Karl Putland <[email protected]>
Subject: Re: [Netdot-devel] [Netdot-users] upgrade from 1.0.1 to 1.0.4
To: Todd Lyons <[email protected]>
Cc: netdot-users <[email protected]>, netdot-devel
<[email protected]>
Message-ID:
<CA+EXWswwLORhDaUxjNu=F6u7=g3FGge0ran=hbzt8yir_0d...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Thanks Todd,
It turned out to be missing Net::Patricia
I'd missed the 'make testdeps' step during the upgrade.
Though the error wasn't useful at all in discovering that.
--Karl
--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>
On Wed, Jan 30, 2013 at 7:42 AM, Todd Lyons <[email protected]> wrote:
> On Tue, Jan 29, 2013 at 4:55 PM, Karl Putland <[email protected]>
> wrote:
> >
> > no errors until trying to restart apache
> > Attempt to reload Netdot/Model/Ipblock.pm aborted.
>
> I had the same problem, posted to this list about a month ago.
> Someone sent me an offlist reply some time later:
>
> >> Hi Todd,
> >> Not sure if you're still subscribed to the list, but I just hit the
> same thing on CentOS 6.3, resolved by installing Apache2::Reload from cpan
> (and installed MM to get that working).
>
> Hope this helps you.
>
> ...Todd
> --
> The total budget at all receivers for solving senders' problems is $0.
> If you want them to accept your mail and manage it the way you want,
> send it the way the spec says to. --John Levine
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osl.uoregon.edu/pipermail/netdot-devel/attachments/20130130/f0946aaf/attachment-0001.html
------------------------------
Message: 3
Date: Wed, 30 Jan 2013 06:42:34 -0800
From: Todd Lyons <[email protected]>
Subject: Re: [Netdot-devel] [Netdot-users] upgrade from 1.0.1 to 1.0.4
To: Karl Putland <[email protected]>
Cc: netdot-users <[email protected]>, netdot-devel
<[email protected]>
Message-ID:
<CAFG21oixT_muw2Yh9KwT=OYWtDk_NOF6=6sc3ov4f02kw0a...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Tue, Jan 29, 2013 at 4:55 PM, Karl Putland <[email protected]> wrote:
>
> no errors until trying to restart apache
> Attempt to reload Netdot/Model/Ipblock.pm aborted.
I had the same problem, posted to this list about a month ago.
Someone sent me an offlist reply some time later:
>> Hi Todd,
>> Not sure if you're still subscribed to the list, but I just hit the same
>> thing on CentOS 6.3, resolved by installing Apache2::Reload from cpan (and
>> installed MM to get that working).
Hope this helps you.
...Todd
--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine
------------------------------
Message: 4
Date: Wed, 30 Jan 2013 09:47:36 -0700
From: Karl Putland <[email protected]>
Subject: [Netdot-devel] Nagios exporter
To: netdot-devel <[email protected]>
Message-ID:
<CA+EXWszi8mSUktR33pwJdYNQxNpY=4hdevrdvcdawhnlhdb...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Is there a way to get the interface name and description into the service
check information so that notifications can be meaningful instead of
OwnerEntity_IFSTATUS_9
I tried to put
$args{ifname} = $iface->{name};
,at line 309 in Nagios.pm, to get the name down to the print_service
section, but that came up empty for the interface with name
GigabitEthernet2/1 in the database.
--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/20130130/e3c1dc88/attachment-0001.html
------------------------------
Message: 5
Date: Wed, 30 Jan 2013 09:32:05 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.4-27-ga0fcb57
To: [email protected]
Message-ID: <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".
The branch, netdot-1.0 has been updated
via a0fcb57a0f361a3ff501b1cb219d695122369c46 (commit)
via efd14d2bd89745d9ec64b8ad73e659ac497ec796 (commit)
via a31d685fe5ab2c8286ae035fa855c84513fd077c (commit)
via 857acb53c1352fa9f7f9c7748e1d0ec3265529ec (commit)
via a006b683452aff42fc4829f5a1bd86dbf2b786c7 (commit)
via cdf07af5e980a95568017823404a0f22f42bb8ba (commit)
via 8b53159aa7072cc5902eaea8c5ebe3e266b578df (commit)
via ee1580e75e1dfe70d39449c721ac9e3c3ad99bfe (commit)
via 3028142a05f9ee891e57e5db0398724abe79a96b (commit)
via 0e6ffd9c38bc30e73880e5c2c5ba3bfafc111d17 (commit)
via afe544e68e05e9b9cf74e9bd812266ee6199d801 (commit)
via 8068dcb6f69649069dac2cf46093032547034ecb (commit)
via 6c6da8ade10c8653c18e246721d6ebe66104e28f (commit)
via 4d7ce6435a681164429ceb753660249e9c35ff0f (commit)
via 58f7abdb5b91b4b3757f8c96ebbb00e751e89066 (commit)
via e14bda5102754ecacd978b99a9b8c3e8ea9c73cb (commit)
via 863dc91b8cdb254783b916309d89a4d29cd5541b (commit)
via 6b9e885722aea2f3f6368d2ba36e24089dca05ce (commit)
from 945dd680101d337bb18eaef5327da71b8d7adbc5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a0fcb57a0f361a3ff501b1cb219d695122369c46
Author: Carlos Vicente <[email protected]>
Date: Wed Jan 30 12:31:08 2013 -0500
Include interface name in Nagios IFSTATUS service check
diff --git a/lib/Netdot/Exporter.pm b/lib/Netdot/Exporter.pm
index 0f05f61..66ff7c4 100644
--- a/lib/Netdot/Exporter.pm
+++ b/lib/Netdot/Exporter.pm
@@ -86,7 +86,7 @@ sub get_device_info {
SELECT d.id, d.snmp_managed, d.community,
d.down_from, d.down_until, entity.name,
contactlist.id,
target.id, target.address, target.version,
target.parent, rr.name, zone.name,
- i.id, i.number, i.admin_status, i.monitored,
i.contactlist,
+ i.id, i.number, i.name, i.admin_status, i.monitored,
i.contactlist,
bgppeering.bgppeeraddr, bgppeering.monitored
FROM rr, zone, interface i, device d
LEFT JOIN ipblock target ON d.snmp_target=target.id
@@ -105,7 +105,7 @@ sub get_device_info {
my ($devid, $devsnmp, $community,
$down_from, $down_until, $entity, $clid,
$target_id, $target_addr, $target_version, $subnet, $name, $zone,
- $intid, $intnumber, $intadmin, $intmon, $intcl,
+ $intid, $intnumber, $intname, $intadmin, $intmon, $intcl,
$peeraddr, $peermon) = @$row;
my $hostname = ($name eq '@')? $zone : $name.'.'.$zone;
$device_info{$devid}{ipid} = $target_id;
@@ -121,6 +121,7 @@ sub get_device_info {
$device_info{$devid}{contactlist}{$clid} = 1 if defined $clid;
$device_info{$devid}{peering}{$peeraddr}{monitored} = $peermon if
defined $peeraddr;
$device_info{$devid}{interface}{$intid}{number} = $intnumber;
+ $device_info{$devid}{interface}{$intid}{name} = $intname;
$device_info{$devid}{interface}{$intid}{admin} = $intadmin;
$device_info{$devid}{interface}{$intid}{monitored} = $intmon;
$device_info{$devid}{interface}{$intid}{contactlist} = $intcl;
diff --git a/lib/Netdot/Exporter/Nagios.pm b/lib/Netdot/Exporter/Nagios.pm
index 4709c5d..e944e4a 100644
--- a/lib/Netdot/Exporter/Nagios.pm
+++ b/lib/Netdot/Exporter/Nagios.pm
@@ -304,9 +304,14 @@ sub generate_configs {
my $iface = $device_info->{$devid}->{interface}->{$ifid};
if ( $iface->{monitored} && defined $iface->{admin} &&
$iface->{admin} eq 'up' ){
my %args;
+ $args{srvname} = 'IFSTATUS';
$args{hostname} = $hostargs{name};
+ unless ( $iface->{number} ){
+ $logger->warn("$hostname: interface $ifid: IFSTATUS
check requires ifindex");
+ return;
+ }
$args{ifindex} = $iface->{number};
- $args{srvname} = "IFSTATUS";
+ $args{name} = $iface->{name} if $iface->{name};
$args{community} = $device_info->{$devid}->{community};
# If interface has a contactlist, use that, otherwise use
Device contactlists
@@ -511,13 +516,9 @@ sub print_service {
}
}
if ( $srvname eq "IFSTATUS" ){
- my $ifindex;
- unless ( $ifindex = $argv{ifindex} ){
- $logger->warn("Service check for $srvname requires ifindex." .
- " Skipping $srvname check for host $hostname.");
- return;
- }
+ my $ifindex = $argv{ifindex};
$srvname .= "_$ifindex"; # Make the service name unique
+ $srvname .= '_('.$argv{name}.')' if defined $argv{name};
$checkcmd .= "!$ifindex"; # Pass the argument to the check command
}
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Exporter.pm | 5 +++--
lib/Netdot/Exporter/Nagios.pm | 15 ++++++++-------
2 files changed, 11 insertions(+), 9 deletions(-)
hooks/post-receive
--
Netdot
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 70, Issue 12
********************************************