- Jun 30, 2015
-
-
Adam Wujek authored
New table with information about mounted partitions Add new wrsDiskTable with objects: --wrsDiskMountPath --wrsDiskSize --wrsDiskUsed --wrsDiskFree --wrsDiskUseRate --wrsDiskFilesystem Additionally: -- update of MIB -- update Makefile -- update init.c Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Fix of description for: --wrsPstatsTable --wrsPstatsEntry Fix location of groups/tables in comments for: --wrsTimingStatusGroup --wrsNetworkingStatusGroup --wrsPstatsTable --wrsPtpDataTable --wrsPortStatusTable Add location in comments for: --wrsDetailedStatusesGroup --wrsOperationStatus --wrsSpllState Move of comment for wrsStartCntGroup Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
New group with load averages similar to these returned by uptime, but multiplied with 100 to avoid floats. Add new wrsCpuLoadGroup with objects: -- wrsCPULoadAvg1min -- wrsCPULoadAvg5min -- wrsCPULoadAvg15min Additionally: -- update of MIB -- update Makefile -- update init.c Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add new wrsMemoryGroup with objects: -- wrsMemoryTotal -- wrsMemoryUsed -- wrsMemoryUsedPerc (% of used memory) -- wrsMemoryFree Additionally: -- update of MIB -- update Makefile -- update init.c NOTE: I tried to implement these objects with sysinfo function. However, sysinfo doesn't provide information about amount cached memory, which is included in used memory. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Trigger data fill in init function to avoid getting "first read" values later. Note: This "trick" may not work when cache update time is increased significantly. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
To make SNMP return objects more consistent, "first read" defines were changed for following objects in wrsNetworkingStatusGroup: --wrsEndpointStatus --wrsSwcoreStatus --wrsRTUStatus Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--update MIB Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Additionally: --update MIB --make struct wrsPtpDataTable_s extern in wrsPtpDataTable.h Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add following objects to wrsPtpDataTable: --wrsPtpServoStateErrCnt --wrsPtpClockOffsetErrCnt --wrsPtpRTTErrCnt --wrsPtpDeltaRxTxErrCnt Additionally: --uplift PPSI to shmem version 6 --update wrs_dump_shmem --update MIB Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add object to inform if TX and RX PTP packets are flowing. Additionally: --update MIB Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add wrsPortStatusPtpTxFrames and wrsPortStatusPtpRxFrames to wrsPortStatusTable Additionally: --follow pointer to pp_instances in snmp_shmem.c --update MIB --uplift ppsi --shmem dump with new variables (ptp_tx_count and ptp_rx_count) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
There was a problem with counting multiple instaces of a program especially for dropbear where new instance is spawned for each ssh session. It is impossible to predict number of instances at compile time or even in run time. What we know is that at least one dropbear process should be running. New method is capable of reporting when there are too many or too few processes running (exp value is positive)or reporting when too few processes are running (exp value is negative). Use full path for snmpd binary. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add following spll version info: --wrsSpllVersion --wrsSpllBuildDate Additionally: --update Makefile --update MIB --update init.c --increase version number of spll_stat structure due to new fields --support version 2 of spll_stat structure in wrsSpllStatusGroup Please note that this commit requires changes done in wrpc-sw commit: revision: report build information via spll_stats structure Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Additionally update MIB Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Also fix of description of wrsPortStatusMode in MIB Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update: --Makefile --init --MIB create wrsTimingStatusGroup.c and wrsTimingStatusGroup.h Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
snmp tried to read file with hostname and filename of dotconfig source. Such files exists only when dotconfig is retrived from network. This patch prevents returning "error" in wrsConfigSourceHost and wrsConfigSourceFilename when config is local. Also change define name from DOTCONFIG_DOWNLOAD to DOTCONFIG_STATUS. (no technical change) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update MIB and wrsSpllStatusGroup.h with descriptions of number used in wrsSpllMode, wrsSpllSeqState and wrsSpllAlignState Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move reading of temperature sensors' tresholds from hal to snmp. Thresholds were and still are read from dot-config. update: --hal --hal_shmem header --snmpd --wr_mon --wrs_dump_shmem --uplift ppsi (update hal_shmem header) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jun 29, 2015
-
-
Adam Wujek authored
--Improve some init scripts --Split start-daemons.sh.in --Add monit conf files for HAL, RTUd and PPSi
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When hal crash, monit will trigger rtud and ppsi to restart. When rtud or ppsi crash, only crashed process will be restarted. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Now print: "Configuring external clock clk2: OK|Failed" Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Split start-daemons.sh.in into init scripts for: --HAL --RTUd --PPSI Since HAL, RTUd, PPSI have already waiting for dependent processess implemented, we're allowed to spawn them (semi) simultaneously. Additionally: --Remove start-daemons.sh.in --Remove updating start-daemons.sh.in log values in apply_dot-config --Create links in /etc/rcS/ to init scripts NOTE: Be sure that no init script has the same name as running program. It may cause problems for "pidof". Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add simple wrapper for monit to print which process caused monit to trigger restart. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Distinguish between start-stop-daemon return value 0, 1 and the rest for start. Check start-stop-daemon return value for stop. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Use start-stop-daemon to start/stop syslogd daemon. Distinguish between start-stop-daemon return value 0, 1 and the rest. Fix syslog's pid filename (was /var/log/rsyslog.pid now is /var/run/rsyslogd.pid). Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Use start-stop-daemon to start/stop snmpd daemon. Change name of init script from snmp to snmpd. Also rename link from S80snmp to S80snmpd. Rename and update snmpd config for monit. Distinguish between start-stop-daemon return value 0, 1 and the rest. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Fix copy-paste error. Distinguish between start-stop-daemon return value 0, 1 and the rest. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Improve getting scb version in boot scripts
-
Adam Wujek authored
Use wrs_version -s in /wr/sbin/startup-mb.sh to get scb version. Previous method to distinguish scb versions did not work in all cases: mtdinfo -a | grep -A 1 dataflash | grep 264 Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
This parameter will be used by /wr/sbin/startup-mb.sh script to pass scb version to lm32 loader. "-t" parameter cannot be used here because lm32 loader expect version number to be without dots. It is shorter, better, faster, more elegant to put extra parameter "-s" instead of using e.g. sed to parse "-t" output. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Print version at startup of HAL and RTUd. Replace "+" with "--dirty" for version printouts
-
Adam Wujek authored
Print "-dirty" for: --at91boot --startup guide --switch's tools Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It is good to have in logs when and what version of rtud started. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It is good to have in logs when and what version of hal started. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Sometimes we want to print message with high priority without indication that it is error. This is workaround for this problem. For example report program's version. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 26, 2015
-
-
Adam Wujek authored
Unfortunately this is non compatible change, but hopefully noone use SNMP so far. Due to changes in ppsi. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-