Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Sat Oct 25, 2014 4:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: Fri Jul 13, 2007 4:24 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Sorry for reading your post too late :cry:

I'm not using 5.4 everywhere, for example extending the agent does not work any more for me on AIX 64 bits...

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 12:16 pm 
Offline

Joined: Mon Jul 09, 2007 10:56 am
Posts: 5
fmangeant wrote:
Sorry for reading your post too late :cry:

I'm not using 5.4 everywhere, for example extending the agent does not work any more for me on AIX 64 bits...


Don't worry, I managed the issue on my own. Have a nice week end.


Top
 Profile  
 
 Post subject: Help!!
PostPosted: Wed Aug 01, 2007 5:20 pm 
Offline

Joined: Wed Aug 01, 2007 4:51 pm
Posts: 3
Hi, I instaled Cacti in Fedora 6, and i can add a host, but i cant get de diskinfo from the host. I trie with:

snmpwalk -v 1 -c public tcp:localhost:161 .1.3.6.1.4.1.2021.9.1.2

but got this:

End of MIB

I tried wiht this too:

snmptranslate .1.3.6.1.4.1.2021.9.1.2
UCD-SNMP-MIB::dskPath
snmpwalk -v 1 -c public tcp:localhost:161 UCD-SNMP-MIB::dskPath

and i got the same

This is my /etc/snmp/snmp.conf

agentaddress tcp:161
com2sec notConfigUser default public
rocommunity public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view all included .iso 80
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
access notConfigGroup "" any noauth exact systemview none none
syslocation Bat. C2
syscontact root@ares.dcaa.unam.mx
includeAllDisks 10%


Any help?, thanks


Top
 Profile  
 
 Post subject: Re: Help!!
PostPosted: Thu Aug 02, 2007 1:55 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
neji wrote:
This is my /etc/snmp/snmp.conf

includeAllDisks 10%

Hi

most of the time (at least on my servers) the includeAllDisks option does not work. Could you replace it with something like this :
Code:
disk /
disk /usr
disk /var

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject: Help!!
PostPosted: Thu Aug 02, 2007 10:46 am 
Offline

Joined: Wed Aug 01, 2007 4:51 pm
Posts: 3
Hi

I replaced includeAllDisk with this:

Code:
disk /


and restart the snmp service: "service snmpd restart", and i got this:

Code:
$ snmpwalk -v 1 -c public tcp:localhost:161 dskPath
End of MIB
$ snmpget -v 1 -c public tcp:localhost:161 dskPath
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::dskPath


Any idea?, thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 03, 2007 1:48 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Can you try with only that in snmpd.conf ?
Code:
agentaddress tcp:161
rocommunity public
disk /

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 03, 2007 11:08 am 
Offline

Joined: Wed Aug 01, 2007 4:51 pm
Posts: 3
fmangeant wrote:
Can you try with only that in snmpd.conf ?
Code:
agentaddress tcp:161
rocommunity public
disk /


Thanks!
I tried with that snmpd.conf and that's works. Now i can get that info and add that host in my cacti-host, and view the graphics. Thanks!


Top
 Profile  
 
 Post subject: man
PostPosted: Tue Oct 09, 2007 6:43 am 
Offline

Joined: Tue Oct 09, 2007 4:04 am
Posts: 2
i just simply love you. thank you very much


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 12:48 pm 
Offline

Joined: Mon Sep 10, 2007 2:47 pm
Posts: 40
My net-snmp agent dont work when i click in Verbose Query to get informations to my processors. I just click and before 5 minutes my webserver returns error 500: internal error server, in my server, show a loop process to /usr/bin/php -q
/home/xxx/www/cacti/scripts/ss_host_cpu.php ... shows it:
Code:
[root@svr02 ~]# /usr/bin/php -q /home/sigfbr/public_html/cacti/scripts/ss_host_disk.php xxx.xxx.xxx.xxx 6 2:161:500:public:::MD5::DES: index
No log handling enabled - turning on stderr logging
Cannot find module (MTA-MIB): At line 0 in (none)
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)


In my other server with net-snmp 5.3.1 this not happen...

Can anyone compile a version 5.4 to linux centos (fedore core 6) and attach here to me??


Last edited by Smux on Tue Dec 04, 2007 2:11 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 1:45 pm 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Can you :
  • update Net-SNMP to version 5.3.1-15 (available here) on your Fedora Core 6 box ?
  • unset the MIBS variable on your Cacti server ?

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 1:57 pm 
Offline

Joined: Mon Sep 10, 2007 2:47 pm
Posts: 40
hey fmangeant,

Thank you very much!! But when i click in Verbose Query my error persists... My cacti is 0.8.7a with svn revision at 4371.


Last edited by Smux on Tue Dec 04, 2007 2:08 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 2:07 pm 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Try that :
Code:
$ unset MIBS
$ /usr/bin/php -q /home/sigfbr/public_html/cacti/scripts/ss_host_disk.php xx.xx.xx.xx 6 2:161:500:public:::MD5::DES: index

By the way, maybe you should remove your IP address from your previous post.

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 2:13 pm 
Offline

Joined: Mon Sep 10, 2007 2:47 pm
Posts: 40
Ip address removed:

Code:
[root@svr02 snmp]# /usr/bin/php -q /home/sigfbr/public_html/cacti/scripts/ss_host_disk.php xx.xx.xx.xx 6 2:161:500:public:::MD5::DES: index
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


[root@svr02 snmp]# /usr/bin/php -q /home/sigfbr/public_html/cacti/scripts/ss_host_cpu.php xx.xx.xx.xx 6 2:161:500:public:::MD5::DES: index



how to i solve my problem?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 2:15 pm 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Smux wrote:
My cacti is 0.8.7a with svn revision at 4371.

Could you revert to 0.8.7a ?

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 2:43 pm 
Offline

Joined: Mon Sep 10, 2007 2:47 pm
Posts: 40
I have same problem with 0.8.7a.

This is my 0.8.7a with revision 4371:
Code:
[root@svr02 snmp]# /usr/bin/php -q /home/sigfbr/public_html/cacti/scripts/ss_host_cpu.php localhost 2 2:161:500:public:::MD5::DES: index

[root@svr02 snmp]#


and my 0.8.7a:
Code:
[root@svr02 snmp]# /usr/bin/php -q /home/sigfbr/public_html/cacti2/scripts/ss_host_cpu.php localhost 2 2:161:500:public:::MD5::DES: index
[root@svr02 snmp]#


if I check my other server with old cacti (0.8.7):
Code:
root@svr03 [/home/admin]# /usr/bin/php -q /home/sysmon/public_html/cacti/scripts/ss_host_cpu.php localhost 2 2:161:500:public:::MD5::DES: index
0
1
2
3
root@svr03 [/home/admin]#


my snmpd.conf is the same for all my servers

Code:
[root@svr02 snmp]# cat snmpd.conf

rocommunity public
syslocation ForBrazil - SvrXX
syscontact roberto@forbrazil.com.br
# dontPrintUnits true
includeAllDisks 10%


createUser xxxx MD5 xxxxxxx DES
group groupv3             usm      admfbrsnmp
view    all included   .iso      80
access groupv3         ""        any       auth      exact    systemview         all        all


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group