Hi all,
I'm just looking into a couple of nagging problems on my Observium install and i found this:
1. includes/discovery/discovery-protocols.inc.php uses ifNameDescr(), which is defined in includes/rewrites.php (called from includes/functions.php). 2. ifNameDescr() is a wrapper around ifLabel(), which itself is a wrapper around humanize_port() 3. humanize_port() calls humanspeed(), which is defined in html/includes/functions.inc.php
This seems to indicate that ifNameDescr/ifLabel/humanize port, when called from discovery functions, will never work.
Is this intentional? Or should humanspeed() (and possibly others of its peers within html/includes/functions.inc.php) be moved to includes/rewrites.php?
Regards, Paul
That seems to be correct... Adam, you broke it. (again)
Committed on 20/12, seems it was preparing for end-of-world anyway... ;-)
On 9/01/2013 7:21, Paul Gear wrote:
Hi all,
I'm just looking into a couple of nagging problems on my Observium install and i found this:
- includes/discovery/discovery-protocols.inc.php uses ifNameDescr(), which is defined in includes/rewrites.php (called from includes/functions.php).
- ifNameDescr() is a wrapper around ifLabel(), which itself is a wrapper around humanize_port()
- humanize_port() calls humanspeed(), which is defined in html/includes/functions.inc.php
This seems to indicate that ifNameDescr/ifLabel/humanize port, when called from discovery functions, will never work.
Is this intentional? Or should humanspeed() (and possibly others of its peers within html/includes/functions.inc.php) be moved to includes/rewrites.php?
Regards, Paul
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Hi team,
I am facing a peculiar issue with our Observium instance where I cannot add new devices either through the GUI or the CLI. This has been the case across a few updates now, so I am fairly certain it is not a broken script per se, rather something in our installation.
The symptom is that there is no response from the specified host
[root@observium:/opt/observium]# ./addhost.php myhostname mycommunity v2c Trying community mycommunity ...
[root@observium]
… it just quite without any output, although an snmpwalk with the same parameters succeeds.
My questions are: Are these attempts being logged somewhere? Observium is not very verbose…
So far I have confirmed that "isSNMPable" returns true, but I am unsure how to check "createHost". I have also confirmed that the observium user has the correct SQL grants.
Anyone ever come across this before?
Thanks
Frank
_______________________________
Frank Dudek Skype: frank_dudek
Hi Frank,
Please don't hijack threads, it screws up everything for those of us with real mail clients.
Possibly the first thing that could go wrong once inside createHost() is getHostOS, I assume snmp_get works otherwise your entire installation would be broken.
addhost.php needs an overhaul, but you can try adding $debug=1; to the top of addhost.php temporarily, then at least the database and snmp functions will return some debug output.
Tom
On Fri, 2013-01-11 at 13:34 +0000, Dudek, Frank wrote:
Hi team,
I am facing a peculiar issue with our Observium instance where I cannot add new devices either through the GUI or the CLI. This has been the case across a few updates now, so I am fairly certain it is not a broken script per se, rather something in our installation.
The symptom is that there is no response from the specified host
[root@observium:/opt/observium]# ./addhost.php myhostname mycommunity v2c Trying community mycommunity ...
[root@observium]
… it just quite without any output, although an snmpwalk with the same parameters succeeds.
My questions are: Are these attempts being logged somewhere? Observium is not very verbose…
So far I have confirmed that "isSNMPable" returns true, but I am unsure how to check "createHost". I have also confirmed that the observium user has the correct SQL grants.
Anyone ever come across this before?
Thanks
Frank
Frank Dudek Skype: frank_dudek
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Dudek, Frank
-
Paul Gear
-
Tom Laermans