I need to monitor ntpdate.service in Zabbix.
Application is running in the server-side
service ntpdate status
Redirecting to /bin/systemctl status ntpdate.service
● ntpdate.service - Set time via NTP
Loaded: loaded (/usr/lib/systemd/system/ntpdate.service; disabled; vendor preset: disabled)
Active: active (exited) since Thu 2019-03-14 04:31:04 EDT; 10 months 18 days ago
Main PID: 20326 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntpdate.service
But PS output shows nothing
[xxxxxxxx zabbix]# ps aux | grep ntpdate
root 7933 0.0 0.0 112708 984 pts/0 S+ 00:51 0:00 grep --color=auto ntpdate
[xxxxxxxx zabbix]# ps aux | grep ntp
root 7960 0.0 0.0 112708 980 pts/0 S+ 00:52 0:00 grep --color=auto ntp
[xxxxxxxx zabbix]# ps aux | grep ntpd
root 7975 0.0 0.0 112708 984 pts/0 S+ 00:52 0:00 grep --color=auto ntpd
[xxxxxxxx zabbix]# ps aux | grep ntpdate.service
root 7990 0.0 0.0 112708 996 pts/0 S+ 00:52 0:00 grep --color=auto ntpdate.service
should I use this configuration
{xxxxxx
roc.num[ntpdate].last(0)}=0
or
proc.num[ntpdate]
Application is running in the server-side
service ntpdate status
Redirecting to /bin/systemctl status ntpdate.service
● ntpdate.service - Set time via NTP
Loaded: loaded (/usr/lib/systemd/system/ntpdate.service; disabled; vendor preset: disabled)
Active: active (exited) since Thu 2019-03-14 04:31:04 EDT; 10 months 18 days ago
Main PID: 20326 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ntpdate.service
But PS output shows nothing
[xxxxxxxx zabbix]# ps aux | grep ntpdate
root 7933 0.0 0.0 112708 984 pts/0 S+ 00:51 0:00 grep --color=auto ntpdate
[xxxxxxxx zabbix]# ps aux | grep ntp
root 7960 0.0 0.0 112708 980 pts/0 S+ 00:52 0:00 grep --color=auto ntp
[xxxxxxxx zabbix]# ps aux | grep ntpd
root 7975 0.0 0.0 112708 984 pts/0 S+ 00:52 0:00 grep --color=auto ntpd
[xxxxxxxx zabbix]# ps aux | grep ntpdate.service
root 7990 0.0 0.0 112708 996 pts/0 S+ 00:52 0:00 grep --color=auto ntpdate.service
should I use this configuration
{xxxxxx
roc.num[ntpdate].last(0)}=0or
proc.num[ntpdate]
Comment