I'm using pid number to monitor uptime of all critical services. But I'm unable to find pid for iptables. Does iptables have pid?
iptables is a kernel module, not a process. you can use
lsmod to see the various parts if they are compiled as loadable modules for your kernel
lsmod | grep tabl
iptables is managed by the kernel; there is no corresponding process, so no process identifier.