jhoffart
2013-11-08 17:57:14 UTC
jhoffart [http://community.zenoss.org/people/jhoffart] created the discussion
"IPMI Commands in Zenoss"
To view the discussion, visit: http://community.zenoss.org/message/75212#75212
--------------------------------------------------------------
I am trying to use an IPMI command to pulling data from one of my servers in order to monitor cpu temp, fan speeds and so on, so far i have found that zenoss does not like the | symbol in my command and when i eliminate that symbol and the portion of the code after it only returns the first line of output form the command.
when i run the command from the bash shell on the server it returns the following:
# ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr
System Temp     | 31 degrees C     | ok
CPU Temp        | 0 unspecified    | ok
FAN 1Â Â Â Â Â Â Â Â Â Â Â | 5130 RPMÂ Â Â Â Â Â Â Â Â | ok
FAN 2Â Â Â Â Â Â Â Â Â Â Â | 4860 RPMÂ Â Â Â Â Â Â Â Â | ok
FAN 3Â Â Â Â Â Â Â Â Â Â Â | 4995 RPMÂ Â Â Â Â Â Â Â Â | ok
FAN 4           | disabled         | ns
FAN AÂ Â Â Â Â Â Â Â Â Â Â | 4725 RPMÂ Â Â Â Â Â Â Â Â | ok
Vcore           | 0.81 Volts       | ok
3.3VCC          | 3.36 Volts       | ok
12V             | 11.98 Volts      | ok
VDIMM           | 1.51 Volts       | ok
5VCC            | 5.06 Volts       | ok
-12V            | -11.87 Volts     | ok
VBAT            | 3.12 Volts       | ok
VSB             | 3.34 Volts       | ok
AVCC            | 3.36 Volts       | ok
Chassis Intru   | 0 unspecified    | nc
PS Status       | 0 unspecified    | nc
when i use | grep "FAN 1"
# ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr | grep "FAN 1"
FAN 1Â Â Â Â Â Â Â Â Â Â Â | 4995 RPMÂ Â Â Â Â Â Â Â Â | ok
Now when I run these commands in zenoss this is what it returns:
ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr
System Temp | 31 degrees C | ok
(notice this only returns the first line of output compaired to when the command is run in the bash shell)
ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr | grep "FAN 1"
Invalid SDR command: |
(when this is ran in the bash shell it returns the output for FAN 1 as shown above).
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75212#75212]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"IPMI Commands in Zenoss"
To view the discussion, visit: http://community.zenoss.org/message/75212#75212
--------------------------------------------------------------
I am trying to use an IPMI command to pulling data from one of my servers in order to monitor cpu temp, fan speeds and so on, so far i have found that zenoss does not like the | symbol in my command and when i eliminate that symbol and the portion of the code after it only returns the first line of output form the command.
when i run the command from the bash shell on the server it returns the following:
# ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr
System Temp     | 31 degrees C     | ok
CPU Temp        | 0 unspecified    | ok
FAN 1Â Â Â Â Â Â Â Â Â Â Â | 5130 RPMÂ Â Â Â Â Â Â Â Â | ok
FAN 2Â Â Â Â Â Â Â Â Â Â Â | 4860 RPMÂ Â Â Â Â Â Â Â Â | ok
FAN 3Â Â Â Â Â Â Â Â Â Â Â | 4995 RPMÂ Â Â Â Â Â Â Â Â | ok
FAN 4           | disabled         | ns
FAN AÂ Â Â Â Â Â Â Â Â Â Â | 4725 RPMÂ Â Â Â Â Â Â Â Â | ok
Vcore           | 0.81 Volts       | ok
3.3VCC          | 3.36 Volts       | ok
12V             | 11.98 Volts      | ok
VDIMM           | 1.51 Volts       | ok
5VCC            | 5.06 Volts       | ok
-12V            | -11.87 Volts     | ok
VBAT            | 3.12 Volts       | ok
VSB             | 3.34 Volts       | ok
AVCC            | 3.36 Volts       | ok
Chassis Intru   | 0 unspecified    | nc
PS Status       | 0 unspecified    | nc
when i use | grep "FAN 1"
# ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr | grep "FAN 1"
FAN 1Â Â Â Â Â Â Â Â Â Â Â | 4995 RPMÂ Â Â Â Â Â Â Â Â | ok
Now when I run these commands in zenoss this is what it returns:
ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr
System Temp | 31 degrees C | ok
(notice this only returns the first line of output compaired to when the command is run in the bash shell)
ipmitool -H 192.168.180.100 -U zenny -P macintosh sdr | grep "FAN 1"
Invalid SDR command: |
(when this is ran in the bash shell it returns the output for FAN 1 as shown above).
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75212#75212]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]