Send Netdot-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-users
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-users digest..."
Today's Topics:
1. ERROR - Can't call method "id" (Roberto Greiner)
2. Re: ERROR - Can't call method "id" (Carlos Vicente)
3. Re: ERROR - Can't call method "id" (Roberto Greiner)
4. Re: ERROR - Can't call method "id" (Carlos Vicente)
5. Re: ERROR - Can't call method "id" (Roberto Greiner)
6. Re: ERROR - Can't call method "id" (Carlos Vicente)
7. Re: ERROR - Can't call method "id" (Roberto Greiner)
----------------------------------------------------------------------
Message: 1
Date: Tue, 20 May 2014 09:20:07 -0300
From: Roberto Greiner <[email protected]>
Subject: [Netdot-users] ERROR - Can't call method "id"
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I've been getting the following error message in my syslog for the last
5 days, precisely every hour, most likely beeing generated by the cron job:
May 20 09:00:14 leonis netdot: ERROR - Can't call method "id" on an
undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
As I understand it, the problem is probably that I have an error on my
DB. Could somebody give me an idea of what is the most likely error in
my DB here, so I can hunt it down and correct it?
Tks,
Roberto
--
-----------------------------------------------------
Marcos Roberto Greiner
Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
James Branch Cabell
-----------------------------------------------------
------------------------------
Message: 2
Date: Tue, 20 May 2014 08:22:25 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] ERROR - Can't call method "id"
To: Roberto Greiner <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Roberto,
It would help to know the line number from that error, and the version you are
running.
cv
On May 20, 2014, at 8:20 AM, Roberto Greiner <[email protected]> wrote:
> Hi,
>
> I've been getting the following error message in my syslog for the last
> 5 days, precisely every hour, most likely beeing generated by the cron job:
> May 20 09:00:14 leonis netdot: ERROR - Can't call method "id" on an
> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>
> As I understand it, the problem is probably that I have an error on my
> DB. Could somebody give me an idea of what is the most likely error in
> my DB here, so I can hunt it down and correct it?
>
> Tks,
>
> Roberto
>
> --
> -----------------------------------------------------
> Marcos Roberto Greiner
>
> Os otimistas acham que estamos no melhor dos mundos
> Os pessimistas tem medo de que isto seja verdade
> James Branch Cabell
> -----------------------------------------------------
>
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
------------------------------
Message: 3
Date: Tue, 20 May 2014 09:38:34 -0300
From: Roberto Greiner <[email protected]>
Subject: Re: [Netdot-users] ERROR - Can't call method "id"
To: Carlos Vicente <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Sorry about that. The complete line is:
May 20 06:00:16 server netdot: ERROR - Can't call method "id" on an
undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
6281.#012
I'm running NetDot version 1.0.6, in a Debian 7 server, stock MySQL
version 5.5.37
Roberto
On 20/05/2014 09:22, Carlos Vicente wrote:
> Roberto,
>
> It would help to know the line number from that error, and the version you
> are running.
>
> cv
>
> On May 20, 2014, at 8:20 AM, Roberto Greiner <[email protected]> wrote:
>
>> Hi,
>>
>> I've been getting the following error message in my syslog for the last
>> 5 days, precisely every hour, most likely beeing generated by the cron job:
>> May 20 09:00:14 leonis netdot: ERROR - Can't call method "id" on an
>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>>
>> As I understand it, the problem is probably that I have an error on my
>> DB. Could somebody give me an idea of what is the most likely error in
>> my DB here, so I can hunt it down and correct it?
>>
>> Tks,
>>
>> Roberto
>>
>> --
>> -----------------------------------------------------
>> Marcos Roberto Greiner
>>
>> Os otimistas acham que estamos no melhor dos mundos
>> Os pessimistas tem medo de que isto seja verdade
>> James Branch Cabell
>> -----------------------------------------------------
>>
>> _______________________________________________
>> Netdot-users mailing list
>> [email protected]
>> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>
--
-----------------------------------------------------
Marcos Roberto Greiner
Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
James Branch Cabell
-----------------------------------------------------
------------------------------
Message: 4
Date: Tue, 20 May 2014 08:44:13 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] ERROR - Can't call method "id"
To: Roberto Greiner <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
I think it?s because one of your devices doesn?t have snmp_target set. You may
fix that, but I made a small change to avoid that Perl warning. See:
https://github.com/cvicente/Netdot/commit/3924b6950aec6b67196d1180ce739f2c2ec28cd6
Cheers,
cv
On May 20, 2014, at 8:38 AM, Roberto Greiner <[email protected]> wrote:
> Sorry about that. The complete line is:
> May 20 06:00:16 server netdot: ERROR - Can't call method "id" on an
> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
> 6281.#012
>
> I'm running NetDot version 1.0.6, in a Debian 7 server, stock MySQL
> version 5.5.37
>
> Roberto
>
> On 20/05/2014 09:22, Carlos Vicente wrote:
>> Roberto,
>>
>> It would help to know the line number from that error, and the version you
>> are running.
>>
>> cv
>>
>> On May 20, 2014, at 8:20 AM, Roberto Greiner <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I've been getting the following error message in my syslog for the last
>>> 5 days, precisely every hour, most likely beeing generated by the cron job:
>>> May 20 09:00:14 leonis netdot: ERROR - Can't call method "id" on an
>>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>>>
>>> As I understand it, the problem is probably that I have an error on my
>>> DB. Could somebody give me an idea of what is the most likely error in
>>> my DB here, so I can hunt it down and correct it?
>>>
>>> Tks,
>>>
>>> Roberto
>>>
>>> --
>>> -----------------------------------------------------
>>> Marcos Roberto Greiner
>>>
>>> Os otimistas acham que estamos no melhor dos mundos
>>> Os pessimistas tem medo de que isto seja verdade
>>> James Branch Cabell
>>> -----------------------------------------------------
>>>
>>> _______________________________________________
>>> Netdot-users mailing list
>>> [email protected]
>>> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>>
>
>
> --
> -----------------------------------------------------
> Marcos Roberto Greiner
>
> Os otimistas acham que estamos no melhor dos mundos
> Os pessimistas tem medo de que isto seja verdade
> James Branch Cabell
> -----------------------------------------------------
>
------------------------------
Message: 5
Date: Tue, 20 May 2014 10:29:43 -0300
From: Roberto Greiner <[email protected]>
Subject: Re: [Netdot-users] ERROR - Can't call method "id"
To: Carlos Vicente <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
There was indeed one server where that value was not set.
It would be interesting if there was someway to find those errors
easier. The syslog message didn't help much finding which entry/server
was the problem. In my install, where I have only about 200 devices
cataloged it's not that hard to find the error, but for someone with a
large installation that would have been quite a pain to find.
Tks a lot for the help.
Roberto
On 20/05/2014 09:44, Carlos Vicente wrote:
> I think it?s because one of your devices doesn?t have snmp_target set. You
> may fix that, but I made a small change to avoid that Perl warning. See:
>
> https://github.com/cvicente/Netdot/commit/3924b6950aec6b67196d1180ce739f2c2ec28cd6
>
> Cheers,
>
> cv
>
>
> On May 20, 2014, at 8:38 AM, Roberto Greiner <[email protected]> wrote:
>
>> Sorry about that. The complete line is:
>> May 20 06:00:16 server netdot: ERROR - Can't call method "id" on an
>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>> 6281.#012
>>
>> I'm running NetDot version 1.0.6, in a Debian 7 server, stock MySQL
>> version 5.5.37
>>
>> Roberto
>>
>> On 20/05/2014 09:22, Carlos Vicente wrote:
>>> Roberto,
>>>
>>> It would help to know the line number from that error, and the version you
>>> are running.
>>>
>>> cv
>>>
>>> On May 20, 2014, at 8:20 AM, Roberto Greiner <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> I've been getting the following error message in my syslog for the last
>>>> 5 days, precisely every hour, most likely beeing generated by the cron job:
>>>> May 20 09:00:14 leonis netdot: ERROR - Can't call method "id" on an
>>>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>>>>
>>>> As I understand it, the problem is probably that I have an error on my
>>>> DB. Could somebody give me an idea of what is the most likely error in
>>>> my DB here, so I can hunt it down and correct it?
>>>>
>>>> Tks,
>>>>
>>>> Roberto
>>>>
>>>> --
>>>> -----------------------------------------------------
>>>> Marcos Roberto Greiner
>>>>
>>>> Os otimistas acham que estamos no melhor dos mundos
>>>> Os pessimistas tem medo de que isto seja verdade
>>>> James Branch Cabell
>>>> -----------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Netdot-users mailing list
>>>> [email protected]
>>>> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>>
>> --
>> -----------------------------------------------------
>> Marcos Roberto Greiner
>>
>> Os otimistas acham que estamos no melhor dos mundos
>> Os pessimistas tem medo de que isto seja verdade
>> James Branch Cabell
>> -----------------------------------------------------
>>
>
--
-----------------------------------------------------
Marcos Roberto Greiner
Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
James Branch Cabell
-----------------------------------------------------
------------------------------
Message: 6
Date: Tue, 20 May 2014 09:38:23 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] ERROR - Can't call method "id"
To: Roberto Greiner <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
Roberto,
Having snmp_target set should not be a problem. Netdot will resolve the FQDN of
the device and query it that way.
If you want to periodically verify which devices do not have that value set you
can run and save this query in the Advanced section of the web UI:
SELECT rr.name FROM rr,device WHERE rr.id=device.name AND device.snmp_target is
NULL;
Cheers,
cv
On May 20, 2014, at 9:29 AM, Roberto Greiner <[email protected]> wrote:
> There was indeed one server where that value was not set.
>
> It would be interesting if there was someway to find those errors
> easier. The syslog message didn't help much finding which entry/server
> was the problem. In my install, where I have only about 200 devices
> cataloged it's not that hard to find the error, but for someone with a
> large installation that would have been quite a pain to find.
>
> Tks a lot for the help.
>
> Roberto
>
> On 20/05/2014 09:44, Carlos Vicente wrote:
>> I think it?s because one of your devices doesn?t have snmp_target set. You
>> may fix that, but I made a small change to avoid that Perl warning. See:
>>
>> https://github.com/cvicente/Netdot/commit/3924b6950aec6b67196d1180ce739f2c2ec28cd6
>>
>> Cheers,
>>
>> cv
>>
>>
>> On May 20, 2014, at 8:38 AM, Roberto Greiner <[email protected]> wrote:
>>
>>> Sorry about that. The complete line is:
>>> May 20 06:00:16 server netdot: ERROR - Can't call method "id" on an
>>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>>> 6281.#012
>>>
>>> I'm running NetDot version 1.0.6, in a Debian 7 server, stock MySQL
>>> version 5.5.37
>>>
>>> Roberto
>>>
>>> On 20/05/2014 09:22, Carlos Vicente wrote:
>>>> Roberto,
>>>>
>>>> It would help to know the line number from that error, and the version you
>>>> are running.
>>>>
>>>> cv
>>>>
>>>> On May 20, 2014, at 8:20 AM, Roberto Greiner <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I've been getting the following error message in my syslog for the last
>>>>> 5 days, precisely every hour, most likely beeing generated by the cron
>>>>> job:
>>>>> May 20 09:00:14 leonis netdot: ERROR - Can't call method "id" on an
>>>>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>>>>>
>>>>> As I understand it, the problem is probably that I have an error on my
>>>>> DB. Could somebody give me an idea of what is the most likely error in
>>>>> my DB here, so I can hunt it down and correct it?
>>>>>
>>>>> Tks,
>>>>>
>>>>> Roberto
>>>>>
>>>>> --
>>>>> -----------------------------------------------------
>>>>> Marcos Roberto Greiner
>>>>>
>>>>> Os otimistas acham que estamos no melhor dos mundos
>>>>> Os pessimistas tem medo de que isto seja verdade
>>>>> James Branch Cabell
>>>>> -----------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Netdot-users mailing list
>>>>> [email protected]
>>>>> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>>>
>>> --
>>> -----------------------------------------------------
>>> Marcos Roberto Greiner
>>>
>>> Os otimistas acham que estamos no melhor dos mundos
>>> Os pessimistas tem medo de que isto seja verdade
>>> James Branch Cabell
>>> -----------------------------------------------------
>>>
>>
>
>
> --
> -----------------------------------------------------
> Marcos Roberto Greiner
>
> Os otimistas acham que estamos no melhor dos mundos
> Os pessimistas tem medo de que isto seja verdade
> James Branch Cabell
> -----------------------------------------------------
>
------------------------------
Message: 7
Date: Tue, 20 May 2014 10:50:46 -0300
From: Roberto Greiner <[email protected]>
Subject: Re: [Netdot-users] ERROR - Can't call method "id"
To: Carlos Vicente <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
I have many devices that are not snmp managed, so they appear in that
query. So a changed it a bit, and I guess this one would be more suited
for this search in particular, right?
SELECT rr.name, device.snmp_managed,device.snmp_target FROM rr,device
WHERE rr.id=device.name AND device.snmp_target is NULL AND
device.snmp_managed!=0;
Tks,
Roberto
On 20/05/2014 10:38, Carlos Vicente wrote:
> Roberto,
>
> Having snmp_target set should not be a problem. Netdot will resolve the FQDN
> of the device and query it that way.
>
> If you want to periodically verify which devices do not have that value set
> you can run and save this query in the Advanced section of the web UI:
>
> SELECT rr.name FROM rr,device WHERE rr.id=device.name AND device.snmp_target
> is NULL;
>
> Cheers,
>
> cv
>
>
> On May 20, 2014, at 9:29 AM, Roberto Greiner <[email protected]> wrote:
>
>> There was indeed one server where that value was not set.
>>
>> It would be interesting if there was someway to find those errors
>> easier. The syslog message didn't help much finding which entry/server
>> was the problem. In my install, where I have only about 200 devices
>> cataloged it's not that hard to find the error, but for someone with a
>> large installation that would have been quite a pain to find.
>>
>> Tks a lot for the help.
>>
>> Roberto
>>
>> On 20/05/2014 09:44, Carlos Vicente wrote:
>>> I think it?s because one of your devices doesn?t have snmp_target set. You
>>> may fix that, but I made a small change to avoid that Perl warning. See:
>>>
>>> https://github.com/cvicente/Netdot/commit/3924b6950aec6b67196d1180ce739f2c2ec28cd6
>>>
>>> Cheers,
>>>
>>> cv
>>>
>>>
>>> On May 20, 2014, at 8:38 AM, Roberto Greiner <[email protected]> wrote:
>>>
>>>> Sorry about that. The complete line is:
>>>> May 20 06:00:16 server netdot: ERROR - Can't call method "id" on an
>>>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>>>> 6281.#012
>>>>
>>>> I'm running NetDot version 1.0.6, in a Debian 7 server, stock MySQL
>>>> version 5.5.37
>>>>
>>>> Roberto
>>>>
>>>> On 20/05/2014 09:22, Carlos Vicente wrote:
>>>>> Roberto,
>>>>>
>>>>> It would help to know the line number from that error, and the version
>>>>> you are running.
>>>>>
>>>>> cv
>>>>>
>>>>> On May 20, 2014, at 8:20 AM, Roberto Greiner <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I've been getting the following error message in my syslog for the last
>>>>>> 5 days, precisely every hour, most likely beeing generated by the cron
>>>>>> job:
>>>>>> May 20 09:00:14 leonis netdot: ERROR - Can't call method "id" on an
>>>>>> undefined value at /usr/local/netdot/lib/Netdot/Model/Device.pm line
>>>>>>
>>>>>> As I understand it, the problem is probably that I have an error on my
>>>>>> DB. Could somebody give me an idea of what is the most likely error in
>>>>>> my DB here, so I can hunt it down and correct it?
>>>>>>
>>>>>> Tks,
>>>>>>
>>>>>> Roberto
>>>>>>
>>>>>> --
>>>>>> -----------------------------------------------------
>>>>>> Marcos Roberto Greiner
>>>>>>
>>>>>> Os otimistas acham que estamos no melhor dos mundos
>>>>>> Os pessimistas tem medo de que isto seja verdade
>>>>>> James Branch Cabell
>>>>>> -----------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Netdot-users mailing list
>>>>>> [email protected]
>>>>>> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>>>> --
>>>> -----------------------------------------------------
>>>> Marcos Roberto Greiner
>>>>
>>>> Os otimistas acham que estamos no melhor dos mundos
>>>> Os pessimistas tem medo de que isto seja verdade
>>>> James Branch Cabell
>>>> -----------------------------------------------------
>>>>
>>
>> --
>> -----------------------------------------------------
>> Marcos Roberto Greiner
>>
>> Os otimistas acham que estamos no melhor dos mundos
>> Os pessimistas tem medo de que isto seja verdade
>> James Branch Cabell
>> -----------------------------------------------------
>>
>
--
-----------------------------------------------------
Marcos Roberto Greiner
Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
James Branch Cabell
-----------------------------------------------------
------------------------------
_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users
End of Netdot-users Digest, Vol 66, Issue 5
*******************************************