Xoffbatt multimon1/10/2023 ![]() S: Manufacturer=American Power Conversion ![]() This entry was posted in CentOS, linux and tagged 2200, 609, 71, apc, apctest FATAL, apcupsd, at, centos, device.c, ERROR, FATAL, howto, icinga, line, linux-usb.c, monitor, nagios, ups by bentoslack. Subject: UPS1-2200-Linux Power has returned # We send an email message to root to notify Power has returned”Īnd you will receive similar message when the power has returned # UPS goes back on to the mains after a power failure. # will be called by /etc/apcupsd/apccontrol when the Subject: UPS1-2200-Linux Power Failure !!!Ĭonfigure /etc/apcupsd/offbattery, if you want to be notified when the power has ~]# cat /etc/apcupsd/offbattery # We send an email message to root to notify Power Failure !!!”Īnd you will receive similar mail when power failure appears # will be called by /etc/apcupsd/apccontrol when the UPS # This shell script if placed in /etc/apcupsd Yum install ~]# cat /etc/apcupsd/onbattery If you want to configure mail notification, please configure 16:08:04 +0200 apcupsd shutdown succeeded 16:08:02 +0200 Battery charge below low limit. Let’s check the log ~]# cat /var/log/apcupsd.events A INPUT -m state –state NEW -m tcp -p tcp -s 0/0 –dport 5666 -j REJECT Nrpe ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/Ĭommand=/usr/lib/nagios/plugins/check_apcupsd -h 127.0.0.1 -w 95 -c 50 bchargeĬommand= /usr/lib/nagios/plugins/check_apcupsd -w 37 -c 47 itempĬommand=/usr/lib/nagios/plugins/check_apcupsd -w 75 -c 90 loadpctĬommand=/usr/lib/nagios/plugins/check_apcupsd -w 50 -c 20 timeleftĪccept nrpe daemon with ~]# vim /etc/sysconfig/iptables Yum -enablerepo=epel -y install nrpe nagios-plugins-all nagios-plugins-nrpe Yum install -y gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel # CGI directory exists, if you have that configured. # “/var/www/cgi-bin” should be changed to whatever your ScriptAliased ScriptAlias /cgi-bin/ “/var/www/apcupsd/” Yum install httpd ~]# vim +577 /etc/httpd/conf/nf We can monitor our ups status through web, it is simple Please select the function you want to perform. This part of apctest is for testing Smart UPSes. Hello, this is the apcupsd Cable Test program. You are using a SMART cable type, so I’m entering SMART test mode We need to stop apcupsd ~]# service apcupsd stop Please stop it and run this program again. If apcupsd or apctest is already running, ![]() Sharenet.type = Network & ShareUPS DisabledĪpctest FATAL ERROR in device.c at line 71 LASTXFER : Automatic or explicit self test We have to configure right settings in **/etc/apcupsd/nf** 00:26:09 +1000 apcupsd FATAL ERROR in linux-usb.c at line 609įor a link to detailed USB trouble shooting information, Starting UPS monitoring:Terminating due to configuration file errors. Serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550AĠ0:10: ttyS0 at I/O 0x3f8 (irq = 4) is a ~]# chkconfig apcupsd ~]# /etc/init.d/apcupsd start In this case, I made the physical connection with serial cable between CentOS linux box and UPS APC ~]# dmesg | grep tty ![]() Install also lm_sensors and net-snmp net-snmp-libs packages. If you are using serial to usb cable you should have usbutils.i686 package. Download and install apcupsd-3.14. package,
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |