I've setup a wonderful computer inventory management system called OCSReports . I initially had some errors when the agents tried to send reports to the server getting 5.0.0. responses from the server but that was solved by installing the perl-XML-SAX package through yum.
It solved the problem for me , but I kept getting this annoying error in the error logs in apache afterwards
"could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX"
I managed to fix it luckily by doing some googling and performing the following action
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
Wednesday, September 30, 2009
Saturday, September 26, 2009
Squid error w/VideoCache
On a testbed server we got the following error
The Redirector helpers are crashing to rapidly, need help !
Solution
/usr/sbin/update-vc
This updates your system in accordance with the /etc/videocache.conf file.
The Redirector helpers are crashing to rapidly, need help !
Solution
/usr/sbin/update-vc
This updates your system in accordance with the /etc/videocache.conf file.
Thursday, September 17, 2009
Sending SMS's from the linux console
We have a server running Call Monitoring and System/Link Monitoring , and we use SMS's to notify us when either a link/server goes down or when a call is logged.We use a package called SMS Server Tools 3 to send sms's to us.
Configuration is very easy , provided you have a kernel that can detect the 3G Modem you are attaching to the system.
Configuration is very easy , provided you have a kernel that can detect the 3G Modem you are attaching to the system.
Vi Tips
ctrl-a --> Will increment a number under your cursor
ctrl-x --> Will decrement a number under your cursor
1,$ /^#/d --> Delete any lines starting with hash
%s/poop/crap/ --> Search and replace entire file
%s/poop/crap/g --> Search and replace greedily
%s/poop/crap/gc --> Search and replace greedily with confirmation
%s/poop/crap/gi --> Search and replace greedily with case insensitivity
*When opening multiple files use :n and :rew
ctrl-x --> Will decrement a number under your cursor
1,$ /^#/d --> Delete any lines starting with hash
%s/poop/crap/ --> Search and replace entire file
%s/poop/crap/g --> Search and replace greedily
%s/poop/crap/gc --> Search and replace greedily with confirmation
%s/poop/crap/gi --> Search and replace greedily with case insensitivity
*When opening multiple files use :n and :rew
Wednesday, September 2, 2009
SNMPD not giving enough info on public queries
Tested On
CentOS 4.4
When you get the following message when doing a simple snmpwalk -v 1 -c public 192.168.X.X
SNMPv2-MIB::sysDescr.0 = STRING: Linux squidbox 2.6.29.3 #2 SMP Sat May 16 15:03:06 SAST 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (679) 0:00:06.79
SNMPv2-MIB::sysContact.0 = STRING: Root (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: squidbox
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (1) 0:00:00.01
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (569973) 1:34:59.73
End of MIB
1)Try this ; The default restrictions might be a bit too restrictive
In /etc/snmp/snmpd.conf change
view systemview included .1.3.6.1.2.1.1
to
view systemview included .1.3.6.1.2.1
CentOS 4.4
When you get the following message when doing a simple snmpwalk -v 1 -c public 192.168.X.X
SNMPv2-MIB::sysDescr.0 = STRING: Linux squidbox 2.6.29.3 #2 SMP Sat May 16 15:03:06 SAST 2009 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (679) 0:00:06.79
SNMPv2-MIB::sysContact.0 = STRING: Root
SNMPv2-MIB::sysName.0 = STRING: squidbox
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (1) 0:00:00.01
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (569973) 1:34:59.73
End of MIB
1)Try this ; The default restrictions might be a bit too restrictive
In /etc/snmp/snmpd.conf change
view systemview included .1.3.6.1.2.1.1
to
view systemview included .1.3.6.1.2.1
Subscribe to:
Posts (Atom)