insights-core
latest
  • Red Hat Insights
  • Quickstart Insights Development
  • Insights API
  • Components and Exceptions
  • API Documentation
  • Datasource Catalog
  • Shared Parsers Catalog
    • AbrtCCppConf - file “/etc/abrt/plugins/CCpp.conf”
    • AbrtStatusBare - command /usr/bin/abrt status --bare=True
    • Alternatives - command /usr/bin/alternatives output
    • AMQBroker - file /var/opt/amq-broker/*/etc/broker.xml
    • audit_log - File /var/log/audit/audit.log
    • AuditctlStatus - Report auditd status
    • AuditdConf - file /etc/audit/auditd.conf
    • AutoFSConf - file /etc/autofs.conf
    • AvcCacheThreshold - File /sys/fs/selinux/avc/cache_threshold
    • AvcHashStats - File /sys/fs/selinux/avc/hash_stats
    • AWSInstanceID
    • AWSInstanceType
    • AwxManage - commands awx-manage
    • AzureInstanceType
    • BlockIDInfo - command blkid
    • Bond - file /proc/net/bonding
    • BondDynamicLB - file /sys/class/net/bond[0-9]*/bonding/tlb_dynamic_lb
    • BrctlShow - command brctl show
    • catalina_log - Log files for Tomcat
    • Cciss - Files /proc/driver/cciss/cciss*
    • CeilometerConf - file /etc/ceilometer/ceilometer.conf
    • Ceilometer logs
    • Ceph status commands
    • CephConf - file /etc/ceph/ceph.conf
    • ceph_insights - command ceph insights
    • CephLog - file /var/log/ceph/ceph.log
    • CephOsdLog - file var/log/ceph/ceph-osd.*.log
    • CephOsdTreeText - command ceph osd tree
    • CephVersion - command ceph -v
    • CertificatesEnddate - command /usr/bin/openssl x509 -noout -enddate -in path/to/cert/file
    • Cgroups - File /proc/cgroups
    • checkin.conf - Files /etc/splice/checkin.conf
    • ChkConfig - command chkconfig
    • Pacemaker configuration - file /var/lib/pacemaker/cib/cib.xml
    • Cinder configuration - file /etc/cinder/cinder.conf
    • CinderApiLog - file /var/log/cinder/cinder-api.log
    • CinderVolumeLog - file /var/log/cinder/volume.log
    • CloudCfg - datasource cloud_cfg
    • CloudInitCustomeNetwork - file /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
    • CloudInitLog - file /var/log/cloud-init.log
    • ClusterConf - file /etc/cluster/cluster.conf
    • CmdLine - file /proc/cmdline
    • CNIPodmanBridgeConf - file /etc/cni/net.d/87-podman-bridge.conflist
    • Cobbler modules configuration - file /etc/cobbler/modules.conf
    • Cobbler settings - /etc/cobbler/settings file
    • SystemD service configuration
    • Configuration File Permissions parsers
    • Parsers for the Corosync Cluster Engine configurations
    • CorosyncCmapctl - Command corosync-cmapctl [params]
    • CpuVulns - files /sys/devices/system/cpu/vulnerabilities/*
    • CpuInfo - file /proc/cpuinfo
    • CpupowerFrequencyInfo - Commands cpupower -c all frequency-info
    • CpuSetCpus - File /sys/fs/cgroup/cpuset/cpuset.cpus
    • CronDailyRhsmd - file /etc/cron.daily/rhsmd
    • Crontab listings
    • crypto-policies - files in /etc/crypto-policies/back-ends/
    • CurrentClockSource - file /sys/devices/system/clocksource/clocksource0/current_clocksource
    • Date parsers
    • Dcbtool - Command /sbin/dcbtool gc {interface} dcb
    • DesignateConf - file /etc/designate/designate.conf
    • Disk free space commands
    • Domain information groper (Dig) parsers
    • 389 Directory Server logs
    • dirsrv_sysconfig - file /etc/sysconfig/dirsrv
    • DMesgLineList - command dmesg
    • DmesgLog - file /var/log/dmesg
    • DMIDecode - Command dmidecode
    • dmsetup commands - Command dmsetup
    • DnfConf - file /etc/dnf/dnf.conf
    • dnf module commands
    • DnfModules - files under in the /etc/dnf/modules.d/ directory
    • DnsmasqConf - files /etc/dnsmasq.conf and /etc/dnsmasq.d/*.conf
    • docker_host_machineid_parser - File /etc/redhat-access-insights/machine-id
    • DockerInspect - Command docker inspect --type={TYPE}
    • DockerList - command /usr/bin/docker (images|ps)
    • DockerStorageSetup - file /etc/sysconfig/docker-storage-setup
    • DockerInfo - Comand /usr/bin/docker info
    • DotNet- Comand /usr/bin/dotnet
    • Doveconf - command doveconf
    • Dracut module configuration files to build and extend the initramfs image
    • Disk Usage parsers
    • DumpE2FS - Command dumpe2fs -h
    • engine_config - command engine-config --all
    • EngineDBQuery - command engine-db-query --statement "<DB_QUERY>" --json
    • EngineLog - file var/log/ovirt-engine/engine.log
    • EtcUdevRules - file /etc/udev/rules.d/
    • EtcdConf - file /etc/etcd/etcd.conf
    • Ethtool parsers
    • Facter - command /usr/bin/facter
    • FCMatch - command /bin/fc-match -sv 'sans:regular:roman' family fontformat
    • FcoeadmI - command fcoeadm -i
    • FindmntPropagation - command findmnt -lo+PROPAGATION
    • FirewallD commands
    • FirewallDConf - file /etc/firewalld/firewalld.conf
    • Foreman and Candlepin logs
    • ForemanProxyConf - file /etc/foreman-proxy/settings.yml
    • Sat6DBMigrateStatus - command foreman-rake db:migrate:status
    • ForemanTasksConfig - file /etc/sysconfig/foreman-tasks
    • freeipa_healthcheck_log - File /var/log/ipa/healthcheck/healthcheck.log
    • FSTab - file /etc/fstab
    • GaleraCnf - file /etc/my.cnf.d/galera.cnf
    • CertList - command getcert list
    • GetconfPageSize - command /usr/sbin/getconf PAGE_SIZE
    • getenforce - command /usr/sbin/getenforce
    • getsebool - command /usr/sbin/getsebool -a
    • GFS2FileSystemBlockSize - command stat -fc %s <mount_point_path>
    • GlanceApiLog - file /var/log/glance/api.log
    • GlusterPeerStatus - command gluster peer status
    • Gluster vol info - command to retrive information of gluster volumes
    • OpenStack gnocchi related files or commands
    • GRUB configuration files
    • grubby - command /usr/sbin/grubby
    • HammerPing - command /usr/bin/hammer ping
    • HammerTaskList - command hammer --csv task list
    • HaproxyCfg - file /etc/haproxy/haproxy.cfg
    • HeatConf - file /etc/heat/heat.conf
    • Heat logs
    • VDSMId - file /etc/vdsm/vdsm.id
    • Hostname - command hostname
    • Hosts - file /etc/hosts
    • HponConf - command /sbin/hponcfg -g
    • HttpdM - command httpd -M
    • HttpdV - command httpd -V
    • HttpdConf - files /etc/httpd/conf/httpd.conf and /etc/httpd/conf.d/*
    • Apache httpd logs
    • HttpdOnNFSFilesCount - datasource httpd_on_nfs
    • IfCFG - files /etc/sysconfig/network-scripts/ifcfg-*
    • ImageMagickPolicy - files /etc/ImageMagick/policy.xml and /usr/lib*/ImageMagick-6.5.4/config/policy.xml
    • InitProcessCgroup - File /proc/1/cgroup
    • InitScript - files /etc/rc.d/init.d/*
    • InsightsClientConf - file /etc/insights-client/insights-client.conf
    • Installed product IDs
    • InstalledRpms - Command rpm -qa
    • Interrupts - file /proc/interrupts
    • Parsers for ip command outputs
    • IpNetnsExecNamespaceLsofI - command /sbin/ip netns exec [network-namespace] lsof -i"
    • IpaupgradeLog - file /var/log/ipaupgrade.log
    • IPCS commands
    • IpsecConf parser - file /etc/ipsec.conf
    • IPTables configuration
    • IronicConf - file /etc/ironic/ironic.conf
    • IronicInspectorLog - file /var/log/ironic-inspector/ironic-inspector.log
    • IscsiAdmModeSession - command iscsiadm - m session
    • JbossDomainServerLog - file $JBOSS_SERVER_LOG_DIR/server.log*
    • JBoss standalone mode main configuration - file $JBOSS_BASE_DIR/standalone.xml
    • JBoss version - File $JBOSS_HOME/version.txt
    • JournalSinceBoot file /sos_commands/logs/journalctl_--no-pager_--boot
    • Journald configuration files
    • KatelloServiceStatus - command katello-service status
    • Kernel dump configuration files
    • KernelConf - file /boot/config-*
    • KeystoneConf - file /etc/keystone/keystone.conf
    • KeystoneLog - file /var/log/keystone/keystone.log
    • KpatchList - command /usr/sbin/kpatch list
    • Krb5Configuration - files /etc/krb5.conf and /etc/krb5.conf.d/*
    • Kerberos KDC Logs - file /var/log/krb5kdc.log
    • KSMState - file /sys/kernel/mm/ksm/run
    • KubepodsCpuQuota - CPU quota for each Kubernetes pod
    • LdLibraryPath - LD_LIBRARY_PATH of PIDs
    • Libssh configuration files
    • Libvirtd Logs
    • Limits configuration - file /etc/security/limits.conf and others
    • LogrotateConf - files /etc/logrotate.conf and others
    • LpstatPrinters - command lpstat -p
    • LsBoot - command ls -lanR /boot
    • LsDev - Command ls -lanR /dev
    • LsDisk - Command ls -lanR /dev/disk
    • DockerVolumesDir - command ls -lanR /var/lib/docker/volumes/
    • LsEdacMC - command ls -lan /sys/devices/system/edac/mc
    • LsEtc - command ls -lan /etc </etc/sub-dirs>
    • LsIPAIdoverrideMemberof - command ls -lan /usr/share/ipa/ui/js/plugins/idoverride-memberof
    • Lists ALL the firmware packages
    • LsOcpCniOpenshiftSdn - command ls -l /var/lib/cni/networks/openshift-sdn
    • LsOriginLocalVolumePods - command ls -l /var/lib/origin/openshift.local.volumes/pods
    • LsOsroot - command ls -lan /
    • LsRunSystemdGenerator - command ls -lan /run/systemd/generator
    • LsSysFirmware - command ls /sys/firmware
    • LsTmp - Command ls -la /tmp
    • LsUsrBin - command ls -lan /usr/bin
    • LsUsrLib64 - command ls -lan /usr/lib64
    • LsUsrSbin - command ls -ln /usr/sbin
    • LsVarCachePulp - command ls -lan /var/cache/pulp
    • LsVarLibMongodb - command ls -la /var/lib/mongodb
    • List files and dirs under /var/lib/nova/instances
    • LsVarLog - command ls -laR /var/log
    • LsDVarOptMSSql - command ls -ld /var/opt/mssql
    • LsVarOptMssqlLog - command ls -la /var/opt/mssql/log
    • LsVarRun - command ls -lnL /var/run
    • LsVarSpoolClientmq - command ls -ln /var/spool/clientmqueue
    • LsVarSpoolPostfixMaildrop - command ls -ln /var/spool/postfix/maildrop
    • LsVarTmp - command ls -ln /var/tmp
    • LsVarWwwPerms - command /bin/ls -la /dev/null /var/www
    • Block device listing
    • LsCPU - command lscpu
    • Lsinitrd - command lsinitrd
    • LsMod - command /sbin/lsmod
    • Lsof - command /usr/sbin/lsof
    • LsPci - Command lspci -k
    • Lssap - command /usr/sap/hostctrl/exe/lssap
    • LsSCSI - command /usr/bin/lsscsi
    • LsvmBus - Command lsvmbus -vv
    • LVDisplay - command /sbin/lvdisplay
    • Logical Volume Management configuration and status
    • Manila configuration - file /etc/manila/manila.conf
    • MariaDBLog - File /var/log/mariadb/mariadb.log
    • MaxUID - command /bin/awk -F':' '{ if($3 > max) max = $3 } END { print max }' /etc/passwd
    • NormalMD5 - md5 checksums of specified binary or library files
    • MDAdm - command /usr/sbin/mdadm -E {device}
    • Mdstat - file /proc/mdstat
    • meminfo - file /proc/meminfo
    • Messages file /var/log/messages
    • MistralExecutorLog - file /var/log/mistral/executor.log
    • Mlx4Port - file /sys/bus/pci/devices/*/mlx4_port[0-9]
    • ModInfo - Commands modinfo <module_name>
    • Modprobe configuration - files /etc/modprobe.conf and /etc/modprobe.d/*.conf
    • MokutilSbstate - command mokutil --sb-state
    • MongodbConf - files /etc/mongod.conf, /etc/mongod.conf and /etc/opt/rh/rh-mongodb26/mongod.conf
    • Mount Entries
    • Microsoft SQL Server Database Engine configuration - file /var/opt/mssql/mssql.conf
    • MulticastQuerier - command find /sys/devices/virtual/net/ -name multicast_querier -print -exec cat {} \;
    • multipath.conf file content
    • MultipathDevices - command multipath -v4 -ll
    • MysqlLog - File /var/log/mysqld.log
    • mysqladmin command - Command
    • NamedCheckconf parser - command named-checkconf -p
    • NamedConf parser - file /etc/named.conf
    • Dump the platform nvdimm device topology and attributes in json
    • NdctlListNi - command /usr/bin/ndctl list -Ni
    • NetworkNamespace = /bin/ls /var/run/netns
    • NetConsole - file /etc/sysconfig/netconsole
    • netstat and ss - Commands
    • NetworkManagerConfig - file /etc/NetworkManager/NetworkManager.conf
    • NetworkManagerDhclient - file /etc/NetworkManager/dispatcher.d/*-dhclient
    • NeutronConf - file /etc/neutron/neutron.conf
    • NeutronDhcpAgentIni - file /etc/neutron/dhcp_agent.ini
    • NeutronL3AgentIni - file /etc/neutron/l3_agent.ini
    • NeutronL3AgentLog - file /var/log/neutron/l3-agent.log
    • NeutronMetadataAgentIni - file /etc/neutron/metadata_agent.ini
    • NeutronMetadataAgentLog - file /var/log/neutron/metadata-agent.log
    • NeutronOVSAgentLog - file /var/log/neutron/openvswitch-agent.log
    • NeutronPlugin - file /etc/neutron/plugin.ini
    • NeutronServerLog - file /var/log/neutron/server.log
    • NeutronSriovAgent - file /etc/neutron/plugins/ml2/sriov_agent.ini
    • NfnetLinkQueue - file /proc/net/netfilter/nfnetlink_queue
    • NFS exports configuration
    • NginxConf - file /etc/nginx/nginx.conf and other Nginx configuration files
    • Nmcli parsers
    • nova_log - files /var/log/nova/*.log
    • Get uid of user nova and nova_migration
    • NscdConf - file /etc/nscd.conf
    • NSSwitchConf - file /etc/nsswitch.conf
    • NTP sources - remote clock info from ntpq and chronyc
    • NUMACpus - file /sys/devices/system/node/node[0-9]*/cpulist
    • NumericUserGroupName - command /usr/bin/grep -c '^[[:digit:]]' /etc/passwd /etc/group
    • NVMeCoreIOTimeout - The timeout for I/O operations submitted to NVMe devices
    • Octavia - file octavia.conf
    • obdc configuration file - Files
    • OpenVmTools - Commands open-vm-tools
    • openshift configuration files
    • OpenShift Get commands
    • OpenShift Get commands with configuration file
    • OpenShiftHosts - file /root/.config/openshift/hosts
    • OpenVSwitchLogs - files ovsdb-server.log and ovs_vswitchd.log
    • OpenvSwitchOtherConfig - command ovs-vsctl -t 5 get Open_vSwitch . other_config
    • OsRelease - file /etc/os-release
    • OSADispatcherLog - file /var/log/rhn/osa-dispatcher.log
    • Ovirt Engine logs
    • OVSappctlFdbShowBridge - command /usr/bin/ovs-appctl fdb/show [bridge-name]
    • OVSofctlDumpFlows - command /usr/bin/ovs-ofctl dump-flows <bridge-name>
    • OVSvsctlListBridge - command /usr/bin/ovs-vsctl list bridge
    • PacemakerLog - file /var/log/pacemaker.log
    • PackageProvidesCommand - Command /bin/echo {command_package}
    • PackageProvidesHttpd - command /bin/echo {httpd_command_package}
    • PackageProvidesJava - command /bin/echo {java_command_package}
    • Pluggable Authentication Module configuration
    • PartedL - command parted -l
    • Partitions - file /proc/partitions
    • passenger-status command
    • PciRportTargetDiskPath
    • PCSConfig - command pcs config
    • PcsQuorumStatus - Commands pcs quorum status
    • PCSStatus - command pcs status
    • php_ini - file /etc/php.ini
    • PmLogSummary - Command pmlogsummary
    • PodmanInspect - Command podman inspect --type={TYPE}
    • PodmanList - command /usr/bin/podman (images|ps)
    • Postconf - command postconf
    • PostconfBuiltin - command postconf -C builtin
    • PostgreSQLConf - file /var/lib/pgsql/data/postgresql.conf
    • PostgreSQLLog - file /var/lib/pgsql/data/pg_log/postgresql-*.log
    • ProcEnviron - File /proc/<PID>/environ
    • ProcLimits - File /proc/<PID>/limits
    • ProcStat - File /proc/stat
    • Ps - command ps auxww and others
    • PulpWorkerDefaults - file /etc/default/pulp_workers
    • PuppetCertExpireDate - command openssl x509 -in /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem -enddate -noout
    • PuppetserverConfig - file /etc/sysconfig/puppetserver
    • QemuConf - file /etc/libvirt/qemu.conf
    • QemuXML - file /etc/libvirt/qemu/*.xml and /var/run/libvirt/qemu/*.xml
    • QPID statistics - command qpid-stat
    • QpiddConfig - file /etc/qpid/qpidd.conf
    • Parsers for RabbitMQ
    • RabbitMQ Logs
    • RcLocal - file /etc/rc.d/rc.local
    • RdmaConfig - file /etc/rdma/rdma.conf
    • ReadLinkEMtab - command readlink -e /etc/mtab
    • ReadLink parsers for Openshift certificate symbolic file links
    • redhat-release - File /etc/redhat-release
    • ResolvConf - file /etc/resolv.conf
    • rhev_data_center - datasource rhev_data_center
    • RHNConf - file /etc/rhn/rhn.conf
    • RHN Logs - Files /var/log/rhn/*.log
    • rhn_schema_version - Command /usr/bin/rhn-schema-version
    • RhospRelease - file /etc/rhosp-release
    • rhsm.conf - File /etc/rhsm/rhsm.conf
    • RHSM Release Version - file /var/lib/rhsm/cache/releasever.json
    • RHV Log Collector Analyzer
    • RndcStatus - Command rndc status
    • RpmVPackages - command /bin/rpm -V <packages>
    • RsyslogConf - file /etc/rsyslog.conf
    • SambaConfig - file /etc/samba/smb.conf
    • samba logs - files matching /var/log/samba/*.log
    • SAP Trace Files - Files /usr/sap/SID/SNAME/work/dev_*
    • HDBVersion - Commands
    • SAPHostProfile - File /usr/sap/hostctrl/exe/host_profile
    • sapcontrol - Commands sapcontrol
    • saphostctrl - Commands saphostctrl
    • saphostexec - Commands
    • Sat5InsightsProperties - File redhat-access-insights.properties
    • SatelliteContentHostsCount - command psql -d foreman -c 'select count(*) from hosts'
    • SatelliteEnabledFeatures - command curl -sk https://localhost:9090/features --connect-timeout 5
    • Satellite installer configuration files
    • Satellite MongoDB Commands
    • Satellite6Version - file /usr/share/foreman/lib/satellite/version.rb
    • SCSIEhDead - file /sys/class/scsi_host/host[0-9]*/eh_deadline
    • SCSIFWver - file /sys/class/scsi_host/host[0-9]*/fwrev
    • SCTP Socket State Parser
    • Sealert - command /usr/bin/sealert -l "*"
    • Secure - file /var/log/secure
    • SelinuxConfig - file /etc/selinux/config
    • SendQSocketBuffer - file /proc/sys/net/ipv4/tcp_wmem
    • RecvQSocketBuffer - file /proc/sys/net/ipv4/tcp_rmem
    • SetupNamedChroot - file /usr/libexec/setup-named-chroot.sh
    • Slab allocator’s details.
    • SMARTctl - command /sbin/smartctl -a {device}
    • SmartpdcSettings - file /etc/smart_proxy_dynflow_core/settings.yml
    • Samba status commands
    • Simultaneous Multithreading (SMT) parsers
    • TcpIpStats - file /proc/net/snmp
    • SockStats - file /proc/net/sockstat
    • SoftNetStats - file /proc/net/softnet_stat
    • Software Collections list output - command scl --list RHEL-6/7
    • SpamassassinChannels - command /bin/grep -r '^\s*CHANNELURL=' /etc/mail/spamassassin/channel.d
    • SshDConfig - file /etc/ssh/sshd_config
    • SshConfig - file for ssh client config
    • SSSD_Config - file /etc/sssd/sssd.config
    • SSSDLog - files matching /var/log/sssd/*.log
    • Subscription manager list outputs - command subscription-manager list
    • Subscription manager release commands
    • Swift Conf Files - file /etc/swift/
    • SwiftLog - file /var/log/containers/swift/swift.log and /var/log/swift/swift.log
    • /sys/bus Device Usage Information
    • System kernel files under /proc/sys/kernel or /sys/kernel
    • /sys/module System Module Information
    • Sysconfig - files in /etc/sysconfig/
    • Kernel system control information
    • System time configuration
    • SystemctlShow - command systemctl show
    • SystemdAnalyzeBlame - command systemd-analyze blame
    • Command systool outputs - Commands
    • TeamdctlConfigDump - command teamdctl {team interface} config dump
    • TeamdctlStateDump - command teamdctl {team interface} state dump
    • Tmpfiles.d configuration - files in /etc/tmpfiles.d
    • Parsers for usage of VirtualDirContext option in Tomcat config files
    • tomcat_xml - XML files for Tomcat
    • transparent_hugepage sysfs settings
    • Tuned - command /usr/sbin/tuned-adm list
    • TunedConfIni - file /etc/tuned.conf
    • UdevRules - file /usr/lib/udev/rules.d/
    • Uname - command uname -a
    • Units Manged By Systemctl (services)
    • up2date Logs - Files /var/log/up2date
    • UpstartInitctlList - Command initctl --system list
    • Uptime - command /usr/bin/uptime
    • VDOStatus - command /usr/bin/vdo status
    • VDSMConfIni - file /etc/vdsm/vdsm.conf
    • VDSMLoggerConf - file /etc/vdsm/logger.conf
    • VDSMLog - file /var/log/vdsm/vdsm.log and /var/log/vdsm/import/import-*.log
    • VersionInfo - file version_info
    • VgDisplay - command vgdisplay
    • VirshListAll - command virsh --readonly list --all
    • VirtUuidFacts - files /etc/rhsm/facts/virt_uuid.facts
    • VirtWhat - Command virt-what
    • VirtWhoConf - File /etc/virt-who.conf and /etc/virt-who.d/*.conf
    • VirtlogdConf - file /etc/libvirt/virtlogd.conf
    • VmaRaEnabledS390x - file /sys/kernel/mm/swap/vma_ra_enabled
    • Crash log vmcore-dmesg.txt
    • VMwareToolsConf - file /etc/vmware-tools/tools.conf
    • Parsers for VSFTPD configuration
    • Parsers for file /sys/kernel/debug/x86/*_enabled outputs
    • XFSInfo - command /usr/sbin/xfs_info {mount}
    • XinetdConf - files /etc/xinetd.conf and in /etc/xinetd.d/
    • Yum - Commands
    • YumConf - file /etc/yum.conf
    • Yum List Command
    • YumListInstalled - Command yum list installed
    • UpdateInfo - command yum updateinfo list -C
    • YumLog - file /var/log/yum.log
    • ZdumpV - command /usr/sbin/zdump -v /etc/localtime -c 2019,2039
    • ZiplConf - configuration file for zipl
  • Shared Combiners Catalog
  • Shared Components Catalog
  • Openshift 4 Analysis
  • Insights Shell
  • Documentation Guidelines
  • Components Cross-Reference
  • Embedded Content
  • Tools
  • Component Configuration
  • Examples
  • Jupyter Notebook Examples
  • MAN Pages
  • Insights Core Cheat Sheets
insights-core
  • »
  • Shared Parsers Catalog »
  • NfnetLinkQueue - file /proc/net/netfilter/nfnetlink_queue
  • Edit on GitHub

NfnetLinkQueue - file /proc/net/netfilter/nfnetlink_queue¶

Reads the /proc/net/netfilter/nfnetlink_queue file and creates a list of dictionaries, one dictionary per row in the file.

The keys of the dictionary are (see https://home.regit.org/netfilter-en/using-nfqueue-and-libnetfilter_queue/):

  • queue_number

  • peer_portid: good chance it is process ID of software listening to the queue

  • queue_total: current number of packets waiting in the queue

  • copy_mode: 0 and 1 only message only provide meta data. If 2, the message provides a part of packet of size copy range.

  • copy_range: length of packet data to put in message

  • queue_dropped: number of packets dropped because queue was full

  • user_dropped: number of packets dropped because netlink message could not be sent to userspace. If this counter is not zero, try to increase netlink buffer size. On the application side, you will see gap in packet id if netlink message are lost.

  • id_sequence: packet id of last packet

  • The last field is always ‘1’ and is ignored.

Example Input:

0  -4423     0 2 65535     0     0       22  1
1  -4424     0 2 65535     0     0       27  1

Examples

>>> # Set up of the environment - ignore this bit:
>>> nfnetlink_queue_data = '''
... 0  -4423     0 2 65535     0     0       22  1
... 1  -4424     0 2 65535     0     0       27  1
... '''
>>> from insights.tests import context_wrap
>>> from insights.parsers.nfnetlink_queue import NfnetLinkQueue
>>> nf = NfnetLinkQueue(context_wrap(nfnetlink_queue_data))
>>> # Usual usage in a rule, using the argument name `nf`
>>> 'copy_mode' in nf.data[0]
True
>>> nf.data[0]['copy_mode']  # Note: values as integers
2
class insights.parsers.nfnetlink_queue.NfnetLinkQueue(context)[source]¶

Bases: insights.core.Parser

Reads the /proc/net/netfilter/nfnetlink_queue file and creates a list of dictionaries, one dictionary per row in the file.

parse_content(content)[source]¶

This method must be implemented by classes based on this class.

Next Previous

© Copyright 2016, 2017, 2018, 2019, 2020 Red Hat, Inc. Revision b2e197c6.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
master
latest
dev
Downloads
html
On Read the Docs
Project Home
Builds