Air-conditioning for CAREL-ahu_pco -lennox unit)
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Thu Oct 11, 2007 1:36 am
- Location: reunion island
Air-conditioning for CAREL-ahu_pco -lennox unit)
Here is a perl script to get CAREL pCOweb Air-conditioning Unit vars :
Tested with perl v5.8.5 built for i386-linux-thread-multi
Cacti Version 0.8.6j
Get intake_temp intake_hum blowing_temp using snmp vars on pCOweb integrated in lexnox Air-conditioning Unit
Used Mib decription : CAREL-ahu_pco_v18.MIB
usage:
./get_temp_hum_lenox.pl <host> <snmp version> < snmp community> <snmp port> <snmp timeout>
Output intake_temp intake_hum blowing_temp
Installation :
untar all
Put the perl scipt in your <path_cacti>/scripts/
Import cacti Xml template
Tested with perl v5.8.5 built for i386-linux-thread-multi
Cacti Version 0.8.6j
Get intake_temp intake_hum blowing_temp using snmp vars on pCOweb integrated in lexnox Air-conditioning Unit
Used Mib decription : CAREL-ahu_pco_v18.MIB
usage:
./get_temp_hum_lenox.pl <host> <snmp version> < snmp community> <snmp port> <snmp timeout>
Output intake_temp intake_hum blowing_temp
Installation :
untar all
Put the perl scipt in your <path_cacti>/scripts/
Import cacti Xml template
- Attachments
-
- sample
- graph_image.png (30.33 KiB) Viewed 16376 times
-
- cacti_graph_template_sonde_thermique_clim_lenoxpcoweb.xml.tar
- cacti graph template for pCoweb Air-conditioning
- (20 KiB) Downloaded 624 times
-
- get_temp_hum_lenox.tar
- perl script for pCoweb Air-conditioning : Get intake_temp intake_hum blowing_temp using snmp vars
- (10 KiB) Downloaded 671 times
An other script to get unit state
Here is a perl script to get CAREL pCOweb Air-conditioning Unit sates :
Tested with perl v5.8.5 built for i386-linux-thread-multi
Cacti Version 0.8.6j
Get vars that returns 0:ON or 1:OFF
fan: fan is ON, actually neens that unit works
comp: compressor is ON
R1: Resistance N° 1 is ON
R2:0 Resistance N° 2 is ON
desum: desumidificator is ON
hum: humidificator is ON
major: major alarm on the unit
minor: minor alarm on the unit
Combined with previous script, you can see why temp goes up ...
usage:
./get_lenox_state.pl <host> <snmp version> < snmp community> <snmp port> <snmp timeout>
Output fan:1/0 comp:1/0 R1:1/0 R2:1/0 desum:1/0 hum:1/0 major:1/0 minor:1/0
nstallation :
untar all
Put the perl scipt in your <path_cacti>/scripts/
Import cacti Xml template
Tested with perl v5.8.5 built for i386-linux-thread-multi
Cacti Version 0.8.6j
Get vars that returns 0:ON or 1:OFF
fan: fan is ON, actually neens that unit works
comp: compressor is ON
R1: Resistance N° 1 is ON
R2:0 Resistance N° 2 is ON
desum: desumidificator is ON
hum: humidificator is ON
major: major alarm on the unit
minor: minor alarm on the unit
Combined with previous script, you can see why temp goes up ...
usage:
./get_lenox_state.pl <host> <snmp version> < snmp community> <snmp port> <snmp timeout>
Output fan:1/0 comp:1/0 R1:1/0 R2:1/0 desum:1/0 hum:1/0 major:1/0 minor:1/0
nstallation :
untar all
Put the perl scipt in your <path_cacti>/scripts/
Import cacti Xml template
- Attachments
-
- cacti_graph_template_etat_sonde_thermique_clim_lenoxpcoweb.xml.tar
- cacti graph template for pCoweb Air-conditioning status
- (30 KiB) Downloaded 525 times
-
- get_lenox_state.pl.tar
- erl script for pCoweb Air-conditioning : status
- (10 KiB) Downloaded 469 times
-
- sample1 : showing that unit is witching from resistance 1 to 2
- graph_image.png (22.91 KiB) Viewed 16234 times
-
- sample : showing a major alarm due to compressor default
- graph_image2.png (24.95 KiB) Viewed 16234 times
Carel Web gate
Hello ,
I have Carel web gate device and in "Devices" tab in Cacti it show snmp error, snmp command works, but i cacti can't receive standard parameters like SysLocation and Description, but All Carel variables work's
I changed your script with my oid's , but it still not work...
In log file i can see "SNMP: Host did not respond to SNMP" but with snmpget all works fine
How can i Disable snmp Check ... ?
I have Carel web gate device and in "Devices" tab in Cacti it show snmp error, snmp command works, but i cacti can't receive standard parameters like SysLocation and Description, but All Carel variables work's
I changed your script with my oid's , but it still not work...
In log file i can see "SNMP: Host did not respond to SNMP" but with snmpget all works fine
How can i Disable snmp Check ... ?
Re: Carel Web gate
No need to disable device snmp Check. pcoWeb can normaly reply.hemul wrote:Hello ,
I have Carel web gate device and in "Devices" tab in Cacti it show snmp error, snmp command works, but i cacti can't receive standard parameters like SysLocation and Description, but All Carel variables work's
I changed your script with my oid's , but it still not work...
In log file i can see "SNMP: Host did not respond to SNMP" but with snmpget all works fine
How can i Disable snmp Check ... ?
cacti does a snmpget to check if the host is alive getting SysLocation,Description, ...
Can you run this command on your cacti host and post the output ?
snmpwalk -c your_community -v 1 your_host
Why have you changed to "your oid's" ? Is there any oid's changes between your pcweb and mine ?
Do you get any graph in cacti ?
Anyway, Thanks for using
In SNMP configuration tab i have :lcavalier wrote:What parameters do you have on your webgate menu :
SNMP configuration tab
(The SNMP tab is used to configure the SNMP protocol features)
Community, Location, Contact, SysName and IP address for traps
But i can't receive this parameters with snmpget/snmpwalk and other mibBrowsers .....
So, I have same problem with my NMS - HP Open View Network Node Manager, NNM can't see this device as SNMP ...
Found those limitations in webgate documentation. Perhaps it may help:
WARNING
The maximum length of each string SNMP is:
Max. length of the system variables in the WebGate
System Variable Max. Length
SysName 39 characters
sysContact, sysLocation 79 characters
Moreover, the string have to be composed only of alphanumeric characters (0...9, A...Z and a...z). No spaces or punctuation marks are allowed.
WARNING
The maximum length of each string SNMP is:
Max. length of the system variables in the WebGate
System Variable Max. Length
SysName 39 characters
sysContact, sysLocation 79 characters
Moreover, the string have to be composed only of alphanumeric characters (0...9, A...Z and a...z). No spaces or punctuation marks are allowed.
Hello lcavalier,
A problem with Carel is in next :
Cacti host.php have check for sysDescr.0 and if SysDesc.0 is null or error result is ERROR...
A problem with Carel is in next :
Cacti host.php have check for sysDescr.0 and if SysDesc.0 is null or error result is ERROR...
And my Carel Web gate can't respond to this query, but all other queries like SysName.0 and SysLocation.0 works fine ....$snmp_system = cacti_snmp_get($host["hostname"], $host["snmp_community"], ".1.3.6.1.2.1.1.1.0", $host["snmp_
version"], $host["snmp_username"], $host["snmp_password"], $host["snmp_port"], $host["snmp_timeout"], SNMP_WEBUI);
if ($snmp_system == "") {
print "<span style='color: #ff0000; font-weight: bold;'>SNMP error</span>\n";
Now, in lib/ping.php file , function ping_snmp check for device status by SysUptime.0bash-2.05# snmpget -v 1 -c public 10.112.x.x .1.3.6.1.2.1.1.5.0
system.sysName.0 : DISPLAY STRING- (ascii): CondEMRKC
bash-2.05# snmpget -v 1 -c public 10.112.x.x .1.3.6.1.2.1.1.6.0
system.sysLocation.0 : DISPLAY STRING- (ascii): EMRKC
bash-2.05# snmpget -v 1 -c public 10.112.X.X .1.3.6.1.2.1.1.4.0
system.sysContact.0 : DISPLAY STRING- (ascii): Undefined
bash-2.05# snmpget -v 1 -c public 10.112.x.x .1.3.6.1.2.1.1.3.0
snmpget: Agent reported error with variable #1.
.iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.0: SNMP: Variable does not exist or access is denied.
bash-2.05# snmpget -v 1 -c public 10.112.x.x .1.3.6.1.2.1.1.1.0
snmpget: Agent reported error with variable #1.
.iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0: SNMP: Variable does not exist or access is denied.
bash-2.05# snmpget -v 1 -c public 10.112.x.x sysDescr.0
snmpget: Agent reported error with variable #1.
.iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0: SNMP: Variable does not exist or access is denied.
Now, I leave snmp_community blank and cacti will no check it for snmp status.../* poll sysUptime for status */
$retry_count = 0;
while (1) {
if ($retry_count >= $this->retries) {
$this->snmp_status = "down";
$this->snmp_response = "Host did not respond to SNMP";
return false;
}
[size=92][color=red][b]Unix is user friendly , it's just picky about who it's friends are.[/b][/color][/size]
[url=http://www.sib-t.com/]Sib-T[/url]
[url=http://www.sib-t.com/]Sib-T[/url]
Downed Device Detection
sorry . Can't find any solution for your problem. May be a clue for host check :
When you create a new host, you have the ability to choose how the "Downed Device Detection"
The method Cacti will use to determine if a host is available for polling.
NOTE: It is recommended that, at a minimum, SNMP always be selected.
none
ping
snmp+ping
snmp
In your case you can choose "ping"
sincerely
When you create a new host, you have the ability to choose how the "Downed Device Detection"
The method Cacti will use to determine if a host is available for polling.
NOTE: It is recommended that, at a minimum, SNMP always be selected.
none
ping
snmp+ping
snmp
In your case you can choose "ping"
sincerely
Hello,
A solution is : In CACTI , to delete community name from device and create only scripts non SNMP Pooling for this device ....
Your Script is work, but I changed it .
Thank you for quick response...
A solution is : In CACTI , to delete community name from device and create only scripts non SNMP Pooling for this device ....
Your Script is work, but I changed it .
Thank you for quick response...
[size=92][color=red][b]Unix is user friendly , it's just picky about who it's friends are.[/b][/color][/size]
[url=http://www.sib-t.com/]Sib-T[/url]
[url=http://www.sib-t.com/]Sib-T[/url]
I try to write an Integer in pcoWEB using php and snmpset.
Reading values with snmpget is fine but I have problems to write value in pcoWEB
Here is the code.
$snmp_host = "192.168.1.120";
$snmp_community = "public";
$snmp_object = ".1.3.6.1.4.1.9839.2.1.1.1.0";
$snmp_object_integer = ".1.3.6.1.4.1.9839.2.1.3.3.0";
$output .= "<hr />Temperatures<hr />";
$temperature1 = snmpget($snmp_host, $snmp_community, $snmp_object);
$output .= "Temp 1 = ".$temperature1."<hr />";
$temperature2 = snmpget($snmp_host, $snmp_community, $snmp_object_integer);
$output .= "Temp 2 = ".$temperature2."<hr />";
$set_integer = snmpset($snmp_host, $snmp_community, $snmp_object_integer,"i","40");
Here is the error that I received from server
Warning: snmpset() [function.snmpset]: Error in packet: (noSuchName) There is no such variable name in this MIB. in C:\xampp\......
Warning: snmpset() [function.snmpset]: This name does not exist: in C:\xampp\....
Any clue how to fix this issue?
Thanks
Mircea
Reading values with snmpget is fine but I have problems to write value in pcoWEB
Here is the code.
$snmp_host = "192.168.1.120";
$snmp_community = "public";
$snmp_object = ".1.3.6.1.4.1.9839.2.1.1.1.0";
$snmp_object_integer = ".1.3.6.1.4.1.9839.2.1.3.3.0";
$output .= "<hr />Temperatures<hr />";
$temperature1 = snmpget($snmp_host, $snmp_community, $snmp_object);
$output .= "Temp 1 = ".$temperature1."<hr />";
$temperature2 = snmpget($snmp_host, $snmp_community, $snmp_object_integer);
$output .= "Temp 2 = ".$temperature2."<hr />";
$set_integer = snmpset($snmp_host, $snmp_community, $snmp_object_integer,"i","40");
Here is the error that I received from server
Warning: snmpset() [function.snmpset]: Error in packet: (noSuchName) There is no such variable name in this MIB. in C:\xampp\......
Warning: snmpset() [function.snmpset]: This name does not exist: in C:\xampp\....
Any clue how to fix this issue?
Thanks
Mircea
-
- Posts: 41
- Joined: Thu Jun 04, 2015 11:36 am
- Location: France
Re: Air-conditioning for CAREL-ahu_pco -lennox unit)
Hi there,
I ungrave this topic to get the OID of the ON / OFF value for the fan.
Does anyone have this ?
I can't find the CAREL-ahu_pco_v18 pCOWeb.mib to get it.
thanks
I ungrave this topic to get the OID of the ON / OFF value for the fan.
Does anyone have this ?
I can't find the CAREL-ahu_pco_v18 pCOWeb.mib to get it.
thanks
Who is online
Users browsing this forum: No registered users and 3 guests