banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Messages posted by: CrashOverride1102  XML
Profile for CrashOverride1102 Messages posted by CrashOverride1102 [ number of posts not being displayed on this page: 0 ]
 
Chào các bác !
Em triển khai zenoss core trên centos 5.9
Version:
Zenoss Zenoss 3.1.0
OS Linux (x86_64) 2.6.18 (Linux gnc.com 2.6.18-371.1.2.el5 #1 SMP Tue Oct 22 12:51:53 EDT 2013 x86_64)
Zope Zope 2.12.1
Python Python 2.6.2
Database MySQL 5.0.95 (Ver 5.0.95)
RRD RRDtool 1.3.9
Twisted Twisted 8.1.0
PyNetSnmp PyNetSnmp 0.28.14
WMI Wmi 1.3.13 

Khi em add winsever vào để giám sát :
Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zendisc.py", line 29, in
from Products.DataCollector.zenmodeler import ZenModeler
File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 38, in
from SnmpClient import SnmpClient
File "/opt/zenoss/Products/DataCollector/SnmpClient.py", line 22, in
from pynetsnmp.twistedsnmp import snmpprotocol
File "/opt/zenoss/lib/python/pynetsnmp/twistedsnmp.py", line 1, in
import netsnmp
File "/opt/zenoss/lib/python/pynetsnmp/netsnmp.py", line 43, in
lib = CDLL(find_library('netsnmp'), RTLD_GLOBAL)
File "/opt/zenoss/lib/python/ctypes/__init__.py", line 312, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libnetsnmp.so.10: cannot open shared object file: No such file or directory
Job completed at 2013-12-03 20:08:22. Result: failure. 

Vào kiểm tra daemons thì thấy zentrap, zenmodeler, zenperfsnmp stop.
Em start lên không được.
View log:
Error reading zenmodeler log file '/opt/zenoss/log/zenmodeler.log':
[Errno 2] No such file or directory: '/opt/zenoss/log/zenmodeler.log' 

Các bác cho em hỏi tại sao lại xảy ra lỗi này và cách khắc phục.
Em xin cảm ơn ạ !
Chào mọi người!
Hix, lại làm phiền mọi người 1 chút xíu.
Mình đã giám sát được CPU load và Curent Users của máy serverlinux. Nhưng vào xem host thì status của serverlinux vẫn ở tình trạng lỗi như trên đó là Tình trạng Status luôn ở trạng thái down và status information: (Return code of 127 is out of bounds - plugin may be missing).
Mong mọi người khắc phục giúp mình.
Mình đã tìm ra được lỗi:
Do mình không tắt tường lửa, nên từ máy nagioscore không thể check được nrpe trên máy severLinux.
Mình tắt tường lửa đi thì check được và đã khắc phục được lỗi trên.
Cám ơn anh quanta nhiều nhé.
#/usr/local/nagios/libexec/check_nrpe -H localhost -c check_users
USERS OK - 2 users currently logged in |users=2;5;10;0 

#/usr/local/nagios/libexec/check_nrpe -H localhost -c check_load
OK - load average: 0.01, 0.04, 0.04|load1=0.010;15.000;30.000;0; load5=0.040;10.000;25.000;0; load15=0.040;5.000;20.000;0;  

Đây là file /etc/xinetd.d/nrpe:
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 <192.168.146.138>

Không hiểu sao mà status lúc nào cũng trong trạng thái Down và Status information thông báo là Return code of 127 is out of bounds - plugin may be missing anh quanta ạ.

Chào mọi người, mình cài đặt nagios core Version 3.5.0rc1 và nagios plugin-1.4.16 trên hệ điều hành Centos(hostname:nagioscore, địa chỉ ip: 192.168.146.138).
Mình giám sát 1 máy centos thứ 2 (hostname: severLinux, có địa chỉ ip:192.168.146.139) bằng addon NRPE
Đây là file /usr/local/nagios/etc/object/nagioscore.cfg:
define host{
name linux-box ; Name of this template
use generic-host ; Inherit default values
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins
register 0 ; DONT REGISTER THIS - ITS A TEMPLATE
}
 

Đây là file /usr/local/nagios/etc/objects/linux-box-remote.cfg:



define host{
use linux-box ; Inherit default values from a template
host_name serverLinux ; The name we're giving to this server
alias serverLinux ; A longer name for the server
address 192.168.146.139 ; IP address of the server
}

define service{
use generic-service
host_name serverLinux
service_description CPU Load
check_command check_nrpe!check_load
}
define service{
use generic-service
host_name serverLinux
service_description Current Users
check_command check_nrpe!check_users
}
define service{
use generic-service
host_name serverLinux 


Mình đã thêm 2 object trên vào tập tin cấu hình chính của nagios
Nhưng khi truy cập vào web interface thì gặp lỗi: Tình trạng Status luôn ở trạng thái down và status information: (Return code of 127 is out of bounds - plugin may be missing)
Nhờ mọi người khắc phục giúp.
Anh quanta ơi, hay là phải sử dụng modem có tích hợp sim card nhỉ?
Để sáng mai em đi mua về test thử xem sao
Em dùng gói vnpt của gia đình. Bắn theo cổng điện thoại, máy em nối thông qua switch đến modem.
Chạy # dmesg | grep -i modem
không thấy hiện tượng gì anh ạ.
#dmesg | grep tty
console [tty0] enabled 

Em chỉnh sửa lại trong file /etc/qpage.conf lại từ ttyS0 thành tty0
Chạy # qpage -dip danghb88 test
giving up root privileges
becoming user 'root'
warning: daemon is running as root!
pager=danghb88, pagerid=+84979582541, service=att
new service: att
trying modem device /dev/tty0
locking /dev/tty0
tcsetattr(): Invalid argument
unlocking /dev/tty0 

Nếu có thể mong anh giải thích cho em rõ hơn 1 chút. Cám ớn anh nhiều
phone là số điện thoại của dịch vụ nhắn tin. Em điền bất kì vào có được không anh?
#qpage -dip danghb88 test
giving up root privileges
becoming user 'root'
warning: daemon is running as root!
pager=danghb88, pagerid=+84979582541, service=att
new service: att
trying modem device /dev/ttyS0
locking /dev/ttyS0
tcgetattr(): Input/output error
unlocking /dev/ttyS0 

Cái này xử lí sao anh? Hix, lúc đầu em định triển khai theo ozeki NG nhưng trên centos hình như không hỗ trợ cài thằng mono framework nên không triển khai nổi.
#qpage -dip +840979582541 test
giving up root privileges
becoming user 'root'
warning: daemon is running as root!
no such pager +840979582541 

Gặp vấn đề về pager anh ạ. Đoạn này em vẫn chưa hiểu lắm về chỗ pager và pagerid trong file /etc/qpager.conf trên. Nhờ các anh giúp đỡ.
Chào mọi người,
Mình gặp rắc rối trong vấn đề gửi sms via modem với zenoss
Đây là verision mình triển khai:
Zenoss Zenoss 4.2.3
OS Linux (x86_64) 2.6.32 (Linux srv 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64)
Zope Zope 2.13.13
Python Python 2.7.2
Database MySQL 5.5.28 (5.5.28)
RRD RRDtool 1.4.7
Twisted Twisted 11.0.0
RabbitMQ RabbitMQ 2.8.7
Erlang Erlang 5.8.5
NetSnmp NetSnmp 5.5.0
PyNetSnmp PyNetSnmp 0.30.6
WMI Wmi 1.3.15 

Đây là file /etc/qpage.conf:
#Administrators email:
ZenUser:dnghb88@gmail.com
#make sure qpage can write to this dir .
queuedir=/var/spool/qpage
modem=ttya
device=/dev/ttyS0
#initcmd=AT&M4
service=att
device=ttya
baudrate=9600
parity=even
maxtries=3
phone=+84979582541

#service=nextel
# device=ttya
# baudrate=9600
# parity=even
# maxtries=3
# phone=+84979582541

pager=+84979582541
pagerid=+84979582541
service=att

#pager=User2
# pagerid=+84979582541
# service=nextel

 

Trong User setting mình edit:
email: danghb88@gmail.com
pager: +84979582541 

Khi mình test trong Zenoss thì đều báo là test failed
Chạy
#qpage -dip +840979582541 test
giving up root privileges
becoming user 'root'
warning: daemon is running as root!
/etc/qpage.conf(2): unexpected: <ZenUser=danghb88@gmail.com>
/etc/qpage.conf(5): cannot access /var/spool/qpage: No such file or directory
Error reading configuration file 

Mình có đọc tài liệu trên trang chủ và trên các diễn đàn nhưng vẫn không hiểu. Mong mọi người giúp đỡ
p/s: Tài liệu mình tham khảo: http://community.zenoss.org/docs/DOC-5819
Cám ơn mọi người.
Mọi người ơi, cho mình hỏi câu lệnh để thay đổi tên tài khoản và câu lệnh thay đổi mật khẩu trong việc quản lý người dùng ở windowsever 2003 là gì vậy? Ví dụ NVA có mật khẩu là abc giờ mình muốn đổi thành xyz.và việc đổi tên tài khoản này có khác gì với việc tạo tài khoản mới ko ạ?
Chào mọi người, mình đang học môn thiết kế mạng doanh nghiệp. Mình xin hỏi ngoài phần mềm visio ra còn có phần mềm nào thiết kế mạng có chức năng tương tự như visio nhưng ta có thể xem được các hoạt động trong mô hình mà mình thiết kế được hay không?Vd:ping trực tiếp trên mô hình,..
Cám ơn.
Em tải QTSS v3.0 giải nén ra nó ra QTSS3.0,QTSS-2 và một file đuôi .dll. Khi em del đi thì QTSS-2 không del được.NHư thế có phải là em đã bị trojan rồi không?giúp em làm cách nào del QTSS-2 với.
 

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|