I don't see graph after Cactid installation.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
smartech1
Posts: 38
Joined: Mon Feb 05, 2007 8:03 am
Contact:

I don't see graph after Cactid installation.

Post by smartech1 »

Hi,

My Graph have been stopped since i installed Cactid on my server.

I have set my cactid poller file path as :

/usr/local/cactid/cactid

Where first cactid is the directory where all unzipped files of cactid are stored and next cactid is the file i thought of as poller file and set the path.

is that right??

I also found three files name poller.h, poller.c and poller.? , which one should i choose.

Note: I have chosen Cactid as poller in Poller settings and One minute graph as default seen.

Please clarify.........

Thanks in advance.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

When running "make" to compile cactid, you will create a new executable file named "cactid". Put this one e.g. into /usr/bin or wherever you like.
Remember to setup cactid.conf and save it at e.g. /etc/cactid.conf
Or put both into current cacti working directory (I don't like this, personally)
Reinhard
smartech1
Posts: 38
Joined: Mon Feb 05, 2007 8:03 am
Contact:

Cactid not solved.

Post by smartech1 »

Dear Gandalf,

I followed as per documentaion for installing Cactid and moved "Cactid" generated during Make to /usr/bin and configured " Cactid.conf" as per my database information and stored the folder " cacti-cactid-0.8.6i " in /usr/local/cacti-0.8.06i/.

Now set the path for poller in Settings as : /usr/bin/cactid and poller is set as to run "Cactid" and saved .

But i find no change in action and still graphs are not generated and it shows nan on all graphs.

I did change Data input methods scrips path as
/usr/bin/perl <path_cacti>/scripts/diskfree.sh <partition> where it was earlier

perl <path_cacti?/scripts/diskfree.sh <partition>

Fine. I have changed only for those which where already perl path was set for some of the Script command configurations only . Rest not touched like SNMP query etc.

Please guide me what else to do.
:cry:
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please move cactid.conf to /etc/cactid.conf.
Reinhard
smartech1
Posts: 38
Joined: Mon Feb 05, 2007 8:03 am
Contact:

Upgraded poller.php, but gives error

Post by smartech1 »

Hi,

I tried as per your suggestion. Moved " cactid.conf " to /etc/bin and " cactid " is stored at /usr/bin and rest all concerned files are stored at /usr/local/cacti-0.8.6i/cacti-cactid0.8.6/.

Fine my poller path in settings is set as " /usr/bin/cactid ". Fine??

Now still it was not coming. I reffered some thread here and downloaded cacti/poller.php and cacti/lib/poller.php and overwritten in respective directories in my system.

Now after that when I run poller.php manually, it gives following error. I want to run cactid successfully. Please give me a clear picture about perfect installation and configuration procedure. Is my poller path in settings correct???


[root@cacti cacti-0.8.6i]# php poller.php
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
Content-type: text/html
X-Powered-By: PHP/4.3.9

03/22/2007 11:43:04 AM - POLLER: Poller[0] Maximum runtime of 52 seconds exceeded. Exiting.
03/22/2007 11:43:04 AM - SYSTEM STATS: Time:53.3180 Method:cactid Processes:8 Threads:25 Hosts:8 HostsPerProcess:1 DataSources:119 RRDsProcessed:0
PHP Warning: pclose(): 52 is not a valid stream resource in /usr/local/cacti-0.8.6i/lib/rrd.php on line 47


Thanks dear.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Re: Upgraded poller.php, but gives error

Post by fmangeant »

smartech1 wrote:# php poller.php
/usr/bin/cactid: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
Hi

can you run this :

Code: Select all

$ ldd /usr/bin/cactid
Also, what OS is running on your Cacti server ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
smartech1
Posts: 38
Joined: Mon Feb 05, 2007 8:03 am
Contact:

Hi output results

Post by smartech1 »

Hi,

Ya , i ran below command and i got the results as below. it says
libnetsnmp.so.15 => not found


could you suggest further.

[root@cacti ~]# ldd /usr/bin/cactid
libnetsnmp.so.15 => not found
libmysqlclient.so.14 => /usr/lib/mysql/libmysqlclient.so.14 (0x00af3000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x0058d000)
libz.so.1 => /usr/lib/libz.so.1 (0x00ae1000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00111000)
libm.so.6 => /lib/tls/libm.so.6 (0x009dd000)
libnsl.so.1 => /lib/libnsl.so.1 (0x004d3000)
libc.so.6 => /lib/tls/libc.so.6 (0x008b1000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x0562d000)
libssl.so.4 => /lib/libssl.so.4 (0x006bb000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x006a5000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00526000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00df7000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00678000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00ce7000)
libdl.so.2 => /lib/libdl.so.2 (0x00a02000)
/lib/ld-linux.so.2 (0x00898000)
smartech1
Posts: 38
Joined: Mon Feb 05, 2007 8:03 am
Contact:

I use RHELinux 4.0 and running Cacti0.8.6i

Post by smartech1 »

Sorry did not clear info
I use RHELinux 4.0 and running Cacti0.8.6i

Please suggest
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you run this :

Code: Select all

$ rpm -q net-snmp-libs
net-snmp-libs-5.1.2-11.EL4.7
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Also, did you compile cactid on this host ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Upgraded poller.php, but gives error

Post by gandalf »

smartech1 wrote:Hi,

I tried as per your suggestion. Moved " cactid.conf " to /etc/bin
Wrong. Please move cactid.conf to /etc not to /etc/bin. But the error above must be fixed first
Reinhard
smartech1
Posts: 38
Joined: Mon Feb 05, 2007 8:03 am
Contact:

Yes.!!!!!!!!!!!!!!!!!!!! Its working yaaaaaar.

Post by smartech1 »

Hi The witness,

After running above mentioned command i found that file exists as belw. Then I located the file in /usr/local/lib.

[root@cacti lib]# rpm -q net-snmp-libs
net-snmp-libs-5.1.2-11.EL4.6

[root@cacti lib]# locate libnetsnmp.so.15
/usr/local/lib/libnetsnmp.so.15
/usr/local/lib/libnetsnmp.so.15.0.0
/usr/local/bin/net-snmp-5.4/snmplib/.libs/libnetsnmp.so.15
/usr/local/bin/net-snmp-5.4/snmplib/.libs/libnetsnmp.so.15.0.0
[root@cacti lib]#


What i did is copied the file from /usr/local/lib to /usr/lib/ and /lib directly as belw.

[root@cacti lib]# cp /usr/local/lib/libnetsnmp.so.15 /usr/lib/
cp: overwrite `/usr/lib/libnetsnmp.so.15'? y
[root@cacti lib]# cp /usr/local/lib/libnetsnmp.so.15 /lib

Now I ran ldd command as belw and found its not giving error,but found where i copied.

[root@cacti lib]# ldd /usr/bin/cactid
libnetsnmp.so.15 => /lib/libnetsnmp.so.15 (0x00b47000)
libmysqlclient.so.14 => /usr/lib/mysql/libmysqlclient.so.14 (0x00111000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x0058d000)
libz.so.1 => /usr/lib/libz.so.1 (0x00ae1000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00af3000)
libm.so.6 => /lib/tls/libm.so.6 (0x009dd000)
libnsl.so.1 => /lib/libnsl.so.1 (0x004d3000)
libc.so.6 => /lib/tls/libc.so.6 (0x008b1000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x0562d000)
libssl.so.4 => /lib/libssl.so.4 (0x006bb000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x006a5000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00526000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00df7000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00678000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00ce7000)
libdl.so.2 => /lib/libdl.so.2 (0x00a02000)
/lib/ld-linux.so.2 (0x00898000)


is that right what i did??? I am sorry, my file " cactid.conf" exists in /etc itself, not /etc/bin.

Again i tried to set my path and poller selection as cactid.

Yes!!!!!!!!!!!!!!!! Its working yaaar. Thanks.

But i got this when i ran " poller.php" as below. it says snmp not valid, what does it says?

[root@cacti cacti-0.8.6i]# php poller.php
CACTID: Host[3] DS[66] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[42] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[41] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[43] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[117] WARNING: Result from SNMP not valid. Partial Result: ...CACTID: Host[3] DS[44] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[118] WARNING: Result from SNMP not valid. Partial Result: ...CACTID: Host[3] DS[45] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[119] WARNING: Result from SNMP not valid. Partial Result: ...CACTID: Host[3] DS[46] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[120] WARNING: Result from SNMP not valid. Partial Result: ...CACTID: Host[3] DS[40] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[48] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[37] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[3] DS[47] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[5] DS[57] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[5] DS[105] WARNING: Result from SNMP not valid. Partial Result: ...CACTID: Host[5] DS[104] WARNING: Result from SNMP not valid. Partial Result: ...CACTID: Host[5] DS[106] WARNING: Result from SNMP not valid. Partial Result: ...CACTID: Host[5] DS[60] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[5] DS[61] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[5] DS[62] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[5] DS[63] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[5] DS[55] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[9] DS[133] WARNING: SNMP timeout detected [500 ms], ignoring host '164.164.128.17'
CACTID: Host[9] DS[134] WARNING: SNMP timeout detected [500 ms], ignoring host '164.164.128.17'
CACTID: Host[9] DS[135] WARNING: SNMP timeout detected [500 ms], ignoring host '164.164.128.17'
CACTID: Host[9] DS[136] WARNING: SNMP timeout detected [500 ms], ignoring host '164.164.128.17'
CACTID: Host[9] DS[139] WARNING: SNMP timeout detected [500 ms], ignoring host '164.164.128.17'
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.12
OK u:0.00 s:0.00 r:0.13
OK u:0.00 s:0.00 r:0.13
OK u:0.00 s:0.00 r:0.13
OK u:0.00 s:0.00 r:0.15
OK u:0.00 s:0.00 r:0.15
OK u:0.00 s:0.00 r:0.16
OK u:0.00 s:0.00 r:0.17
OK u:0.00 s:0.00 r:0.18
OK u:0.00 s:0.00 r:0.19
OK u:0.00 s:0.01 r:0.20
OK u:0.00 s:0.01 r:0.20
OK u:0.00 s:0.01 r:0.20
OK u:0.00 s:0.01 r:0.20
OK u:0.00 s:0.01 r:0.20
OK u:0.00 s:0.01 r:0.20
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.22
OK u:0.00 s:0.01 r:0.23
OK u:0.00 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.24
OK u:0.01 s:0.01 r:0.25
OK u:0.01 s:0.01 r:0.29
OK u:0.01 s:0.01 r:0.29
OK u:0.01 s:0.01 r:0.29
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.32
OK u:0.01 s:0.01 r:0.34
OK u:0.01 s:0.01 r:0.35
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.36
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.37
OK u:0.01 s:0.01 r:0.41
OK u:0.01 s:0.01 r:0.43
OK u:0.01 s:0.01 r:0.45
OK u:0.01 s:0.01 r:0.45
OK u:0.01 s:0.01 r:0.45
OK u:0.01 s:0.01 r:0.45
OK u:0.01 s:0.01 r:0.45
OK u:0.01 s:0.01 r:0.48
OK u:0.01 s:0.01 r:0.48
OK u:0.01 s:0.01 r:0.50
OK u:0.01 s:0.01 r:0.50
OK u:0.01 s:0.01 r:0.50
Content-type: text/html
X-Powered-By: PHP/4.3.9

03/26/2007 06:01:20 PM - SYSTEM STATS: Time:6.2339 Method:cactid Processes:2 Threads:8 Hosts:8 HostsPerProcess:4 DataSources:135 RRDsProcessed:80


Please suggest. Thanks to all who guided patiently to solve this.

:P
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests