Marek Królikowski | 4 Mar 2012 16:26
Picon

jffnms 0.9.2

Hello
I just download and install jffnms 0.9.2 and i find a little bugs:
1. In jffnms/conf/config.php there is :
define('JFFNMS_VERSION', '0.9.1');
Should be:
define('JFFNMS_VERSION', '0.9.2');

2. When i enter to config and try save always get warnings:
Warning: array_key_exists() expects parameter 2 to be array, null given in 
/opt/jffnms/conf/config.php on line 55
Warning: array_key_exists() expects parameter 2 to be array, null given in 
/opt/jffnms/conf/config.php on line 67

3. Problem with discover interface - how to reproduce on Cisco 3560, 2960, 
6503
a) Login to jffnms
b) Click Administration>Hosts and interfaces>Hosts,
c) Click add
d) write Name something, IP Address X.X.X.X, Select R/O Community and snmp 
version 2x, AutoDiscovery Policy standard for switches,
e) Click save

After 2 hours still no interfaces in jffnms....
In old 0.8.X working with np...

In crontab i got:
WIZJA2 ~ # crontab -l -u jffnms
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/opt/jffnms/docs/unix/crontab installed on Sun Mar  4 14:15:08 2012)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp 
(Continue reading)

Marek Królikowski | 4 Mar 2012 23:44
Picon

Re: jffnms 0.9.2

Nice... now i can`t login..
When i go to webpage and give login/password i get:
Strict Standards: Declaration of JffnmsProfiles::add() should be compatible 
with that of basic::add() in /opt/jffnms/lib/profiles.class.php on line 62

and i can`t do anythink...

-----Oryginalna wiadomość----- 
From: Marek Królikowski
Sent: Sunday, March 04, 2012 4:26 PM
To: jffnms-users <at> lists.sourceforge.net
Subject: [jffnms-users] jffnms 0.9.2

Hello
I just download and install jffnms 0.9.2 and i find a little bugs:
1. In jffnms/conf/config.php there is :
define('JFFNMS_VERSION', '0.9.1');
Should be:
define('JFFNMS_VERSION', '0.9.2');

2. When i enter to config and try save always get warnings:
Warning: array_key_exists() expects parameter 2 to be array, null given in
/opt/jffnms/conf/config.php on line 55
Warning: array_key_exists() expects parameter 2 to be array, null given in
/opt/jffnms/conf/config.php on line 67

3. Problem with discover interface - how to reproduce on Cisco 3560, 2960,
6503
a) Login to jffnms
b) Click Administration>Hosts and interfaces>Hosts,
(Continue reading)

Marek Królikowski | 5 Mar 2012 08:22
Picon

Re: jffnms 0.9.2

OK i logged in - that was my fault.
But still autodiscover not working...

-----Oryginalna wiadomość----- 
From: Marek Królikowski
Sent: Sunday, March 04, 2012 11:44 PM
To: jffnms-users <at> lists.sourceforge.net
Subject: Re: [jffnms-users] jffnms 0.9.2

Nice... now i can`t login..
When i go to webpage and give login/password i get:
Strict Standards: Declaration of JffnmsProfiles::add() should be compatible
with that of basic::add() in /opt/jffnms/lib/profiles.class.php on line 62

and i can`t do anythink...

-----Oryginalna wiadomość----- 
From: Marek Królikowski
Sent: Sunday, March 04, 2012 4:26 PM
To: jffnms-users <at> lists.sourceforge.net
Subject: [jffnms-users] jffnms 0.9.2

Hello
I just download and install jffnms 0.9.2 and i find a little bugs:
1. In jffnms/conf/config.php there is :
define('JFFNMS_VERSION', '0.9.1');
Should be:
define('JFFNMS_VERSION', '0.9.2');

2. When i enter to config and try save always get warnings:
(Continue reading)

Marek Królikowski | 5 Mar 2012 14:05
Picon

jffnms 0.9.2

Next Bug:
Cisco transfer file don`t working:

WIZJA2 engine # php tftp_get_host_config.php
14:05:26 db_ping(mysql) Connection to DB Restored...
14:05:27 db_ping(mysql) Connection to DB Restored...
14:05:28 db_ping(mysql) Connection to DB Restored...
14:05:29 db_ping(mysql) Connection to DB Restored...
14:05:30 db_ping(mysql) Connection to DB Restored...
14:05:30 Query Failed - table_insert(events) - insert into events 
(date,type,host,interface,state,username,info) VALUES 
('','25','16','CPU','error','host_config','Host Config Transfer ERROR: 
Config get function '' does not exist in config file 
'/opt/jffnms/engine/configs/cisco_cc.inc.php'.
') - You have an error in your SQL syntax; check the manual that corresponds 
to your MySQL server version for the right syntax to use near ''.
')' at line 1
14:05:30  :  H  16 : 172.30.249.7 : cisco_cc : ERROR: Config get function '' 
does not exist in config file '/opt/jffnms/engine/configs/cisco_cc.inc.php'.
(0.17 msec)
14:05:30 TIMES  : Total Time 5053.63 msec.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Craig Small | 5 Mar 2012 22:46
Picon
Gravatar

Fix for reediting system config

If you try to re-edit your system configuration and get some message
about profile not found or session variables missing, the one line fix
in this patch fixes it.

Essentially, if you are initially editing your config, you have no
session but if you edit later you MUST have a session. The patch fixes
it for the second case.

 - Craig
--

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
jffnms-users mailing list
jffnms-users@...
https://lists.sourceforge.net/lists/listinfo/jffnms-users
Craig Small | 5 Mar 2012 22:39
Picon
Gravatar

Re: jffnms 0.9.2

On Mon, Mar 05, 2012 at 02:05:20PM +0100, Marek Królikowski wrote:
> 14:05:30 Query Failed - table_insert(events) - insert into events 
> (date,type,host,interface,state,username,info) VALUES 
> ('','25','16','CPU','error','host_config','Host Config Transfer ERROR: 
> Config get function '' does not exist in config file 
> '/opt/jffnms/engine/configs/cisco_cc.inc.php'.
Two problems here. The function name changed and then to make matters
worse, the logging failed.

Attached is a patch to get tftp transfers working again including
viewing the configs etc. I've tested this on my ancient 1700 router and
its working ok.

 - Craig
--

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
jffnms-users mailing list
jffnms-users@...
(Continue reading)

Marek Królikowski | 6 Mar 2012 06:52
Picon

Re: jffnms 0.9.2

Strange i don`t see any attached patch - anyone else see ?

-----Oryginalna wiadomość----- 
From: Craig Small
Sent: Monday, March 05, 2012 10:39 PM
To: jffnms-users <at> lists.sourceforge.net
Subject: Re: [jffnms-users] jffnms 0.9.2

On Mon, Mar 05, 2012 at 02:05:20PM +0100, Marek Królikowski wrote:
> 14:05:30 Query Failed - table_insert(events) - insert into events
> (date,type,host,interface,state,username,info) VALUES
> ('','25','16','CPU','error','host_config','Host Config Transfer ERROR:
> Config get function '' does not exist in config file
> '/opt/jffnms/engine/configs/cisco_cc.inc.php'.
Two problems here. The function name changed and then to make matters
worse, the logging failed.

Attached is a patch to get tftp transfers working again including
viewing the configs etc. I've tested this on my ancient 1700 router and
its working ok.

- Craig
--

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
(Continue reading)

la Bigmac | 8 Mar 2012 14:57
Picon
Favicon

Cannot poll services but interfaces work..


Hello all

I have a problem I have not come across before, can someone give me some pointers please? 

I can add new hosts to jffnms, and graphs get created and
populated with data for say disk space or network traffic. But if I try and
poll a service it get marked as down. Seems to do it for all services I want to
monitor (mysql, sshd, apache, etc)

If I su to the jffnms user and run the poller I get the
output below, now if it was down I would not be able to run the command because
I am ssh onto the box.. Besides, if I run nmap (as jffnms user) of the sshd port
is says open. 

 When I do a manual discovery, its says the service is up.

jffnms <at> shjffnms /opt/jffnms/engine $ php -q poller.php -i
14 -o

13:31:20 LPD:  
Updated hosts (2) to LPD 1331213480

13:31:20 ITEMS    
Added 1 items

13:31:21 START    
Child started with PID 23634 and idle.

13:31:21 WORK     
(Continue reading)

Craig Small | 8 Mar 2012 21:12
Picon
Gravatar

Re: Cannot poll services but interfaces work..

On Thu, Mar 08, 2012 at 01:57:03PM +0000, la Bigmac wrote:
> I can add new hosts to jffnms, and graphs get created and
> populated with data for say disk space or network traffic. But if I try and
> poll a service it get marked as down. Seems to do it for all services I want to
First thing, did it work before or is this something new you have tried.

> app_status,current_instances(sshd): not running -> multi_buffer(): 1 (time
> P: 36.06 | B: 0.03) 
Is this the one you are talking about?

It snmpwalks .1.3.6.1.2.1.25.4.2.1.2
I get output like on the command line
HOST-RESOURCES-MIB::hrSWRunName.4758 = STRING: "sshd"
So it compares what it gets with "sshd" and if it finds it its a match.
It then counts them, 0 means not running.

If you want to see what it has got, you can pu
   debug($Apps[$host_id]['raw']); 
on line 21 which is after $instanaces=0 but before the "for"

You should see a sshd in that list, though the debug for child processes
is a little painful; I'm going to fix that soon.

app_status is a bit like ps ax | grep sshd

 - Craig

--

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
(Continue reading)

Wesley | 9 Mar 2012 15:49
Favicon

Cannot save poller backend to poller group through gui

Hello,

I am trying to set up jffnms to poll the cpu utilization/usage of some juniper
switches through snmpv2 on the latest version of ubuntu server.

So far I've created my own interface type, grouping, item, backend, and graph
type.  My problem though is I cannot save a poller/backend to my poller grouping.

When I go to view my poller grouping I go to "add" under the pollers/backend
relation I get the following error:

Class file '/opt/jffnms/lib/pollers_backends.class.php' is not readable.

And well of course the file doesn't even exist.  I've searched my box and cannot
find the file.  I am really at a lost because I don't know if this file was
suppose to be generated during the installation or by something else.

Any help will be appreciated.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

Gmane