Hi,
I noticed that when issueing php C:\Inetpub\wwwroot\www.mydomain.com\cacti\poller.php it would not work.
I noticed (through this forum) that i have some issues with MIBS
when i start C:\PHP\extras\mibs>
php C:\Inetpub\wwwroot\www.mydomain.com\cacti\poller.php
i receive this response;
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
12/08/2007 02:55:22 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of syn
c with the Poller Interval! The Poller Interval is '300' seconds, with a maximu
m of a '300' second Scheduled Task, but 36453 seconds have passed since the last
poll!
12/08/2007 02:55:33 PM - SYSTEM STATS: Time:11.2055 Method:cmd.php Processes:1 T
hreads:N/A Hosts:3 HostsPerProcess:3 DataSources:22 RRDsProcessed:12
I saw some suggestions to add the MIBDIR to the system variable. So i added;
Add a new system variable called MIBDIRS. Its value should be C:\PHP\Extras\mibs
Under the System variables groupbox, click on New.
In the Variable name field, type MIBDIRS.
In the Variable value field, type C:\PHP\extras\mibs (have the mibs dir there)
Click OK and close the dialog boxes.
Uncomment/modify the following lines in C:\PHP\php.ini.
register_argc_argv = On
safe_mode = Off
cgi.force_redirect = 0
Then i restarted
net stop iisadmin
net start w3svc
after that i still receive the same response with:
php C:\Inetpub\wwwroot\www.mydomain.com\cacti\poller.php
Question. should i restarts windows 2003 to for the Variable MIBDIRS C:\PHP\extras\mibs to take effect ?
when i test with
C:\PHP\extras\mibs>php -m
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
hash
iconv
json
libxml
mysql
mysqli
odbc
pcre
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
Error in my_thread_global_end(): 1 threads didn't exit
Ps.
For the rest cacti is configured oke.
My devices are online:
Description** Graphs Data Sources Status Hostname Current (ms) Average (ms) Availability
My Windows localhost 2 2 Up localhost 0.16 0.15 100
Switch Hp 11 10 Up server-ip 1.42 1.3 100
I can create graphs an they are shown in cacti (without data ofcourse).
Poller.php MIBS
Moderators: Developers, Moderators
Hi,
A reboot of windows did the trick to use the new variable for MIBS.
Then i tried;
C:\Documents and Settings\Administrator> snmptranslate -IR -Td IF-MIB::linkDown
No log handling enabled - turning on stderr logging
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpM
IBObjects(1) snmpTraps(5) 3 }
Should i have installed net-snmp with windows extensions ?
A reboot of windows did the trick to use the new variable for MIBS.
Then i tried;
C:\Documents and Settings\Administrator> snmptranslate -IR -Td IF-MIB::linkDown
No log handling enabled - turning on stderr logging
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpM
IBObjects(1) snmpTraps(5) 3 }
Should i have installed net-snmp with windows extensions ?
Last edited by colobolo on Sat Dec 08, 2007 11:24 am, edited 2 times in total.
I hoped that the problem would be gone but i still get errors.
C:\Documents and Settings\Administrator>snmpwalk -v 1 -c public 127.0.0.1 .1.3.6.1.2.1.25.2.3
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
Timeout: No Response from 127.0.0.1
Any suggestions ?
I noticed that these files (which could not be loaded) where located in C:\net-snmp\share\snmp\mibs
So i copied them over to the c:\php\extras\mibs dir so they could be found.
And yes they are now loaded correctly.
C:\net-snmp\bin>snmptranslate -IR -Td IF-MIB::linkDown
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpM
IBObjects(1) snmpTraps(5) 3 }
Still when i use:
C:\net-snmp\bin>snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.25.2.3
Timeout: No Response from 127.0.0.1
I get a timeout response.. where do i go from here ?
When is use.
C:\net-snmp\bin>php.exe C:\Inetpub\wwwroot\www.mydomain.com\cacti\poller.php
Then a window opens (cactid) with just a cursor top left and the windows closes without any info.
12/08/2007 05:42:37 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of syn
c with the Poller Interval! The Poller Interval is '300' seconds, with a maximu
m of a '300' second Scheduled Task, but 2472 seconds have passed since the last
poll!
12/08/2007 05:42:48 PM - SYSTEM STATS: Time:11.1377 Method:cmd.php Processes:1 T
hreads:N/A Hosts:3 HostsPerProcess:3 DataSources:22 RRDsProcessed:12
where do i go from here ? Do i need to configure net-snmp ? i reinstalled it with the windows extentions in the same dir.
C:\Documents and Settings\Administrator>snmpwalk -v 1 -c public 127.0.0.1 .1.3.6.1.2.1.25.2.3
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
Timeout: No Response from 127.0.0.1
Any suggestions ?
I noticed that these files (which could not be loaded) where located in C:\net-snmp\share\snmp\mibs
So i copied them over to the c:\php\extras\mibs dir so they could be found.
And yes they are now loaded correctly.
C:\net-snmp\bin>snmptranslate -IR -Td IF-MIB::linkDown
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpM
IBObjects(1) snmpTraps(5) 3 }
Still when i use:
C:\net-snmp\bin>snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.25.2.3
Timeout: No Response from 127.0.0.1
I get a timeout response.. where do i go from here ?
When is use.
C:\net-snmp\bin>php.exe C:\Inetpub\wwwroot\www.mydomain.com\cacti\poller.php
Then a window opens (cactid) with just a cursor top left and the windows closes without any info.
12/08/2007 05:42:37 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of syn
c with the Poller Interval! The Poller Interval is '300' seconds, with a maximu
m of a '300' second Scheduled Task, but 2472 seconds have passed since the last
poll!
12/08/2007 05:42:48 PM - SYSTEM STATS: Time:11.1377 Method:cmd.php Processes:1 T
hreads:N/A Hosts:3 HostsPerProcess:3 DataSources:22 RRDsProcessed:12
where do i go from here ? Do i need to configure net-snmp ? i reinstalled it with the windows extentions in the same dir.
1) the net-snmp snmp agent is not needed and not recommended. their tools are fine though.
2) did you forget to properly configure the windows snmp service? create a public community and allowed hosts? Maybe a firewall blocking snmp traffic?
3) If you haven't already, you should upgrade to cacti 0.8.7a
4) Go into cacti's settings-> poller and set both the cron and poller options to 5 min. click save.
5) With cacti 0.8.7, you should be using spine, not cactid.
6) Cacti doesn't use MIB files anyways, so those errors can actually be ignored; only OIDs are used.
2) did you forget to properly configure the windows snmp service? create a public community and allowed hosts? Maybe a firewall blocking snmp traffic?
3) If you haven't already, you should upgrade to cacti 0.8.7a
4) Go into cacti's settings-> poller and set both the cron and poller options to 5 min. click save.
5) With cacti 0.8.7, you should be using spine, not cactid.
6) Cacti doesn't use MIB files anyways, so those errors can actually be ignored; only OIDs are used.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Poller.php MIBS
Hi,
When you get this Errors:
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
then remind to cacti - installation manual, where you have to set the Environment Variable: MIBDIRS !!!
This one is used for Net-SNMP and so you have to copy the MIB-Files from the Net-SNMP Folder\share\snmp\mibs
to the PHP folder.
best regards
Erwin
When you get this Errors:
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
then remind to cacti - installation manual, where you have to set the Environment Variable: MIBDIRS !!!
This one is used for Net-SNMP and so you have to copy the MIB-Files from the Net-SNMP Folder\share\snmp\mibs
to the PHP folder.
best regards
Erwin
Who is online
Users browsing this forum: No registered users and 3 guests