a-schild / zabbix-ipsec

Zabbix template for monitoring Openswan and Strongswan IPSEC connections
24 stars 11 forks source link

No Data points in Graph after installing fping. #11

Open harikrish432 opened 5 years ago

harikrish432 commented 5 years ago

Sorry for disturbing, Even after installing the Fping I am not able to get the graphs. Whereas discovery items are in enabled state and also reflecting the changes made in VPN backend server into the zabbix dashboards. Totally confused about the data points. Kindly help me..... image

Originally posted by @harikrish432 in https://github.com/a-schild/zabbix-ipsec/issues/10#issuecomment-454404354

a-schild commented 5 years ago

When you look at the "Latest data" from the maschine, do you see the 4 entries as in this printscreen?

2019-01-15 19_02_57-window

If yes, then the graphs should show up ok. If not, then you still have something missing in the zabbix agent config. In that case, please increase the logging level of the zabbix agent.

BTW: You did install sudo and the corresponding /etc/sudoers.d/zabbix_ipsec file?

harikrish432 commented 5 years ago

Thank you for the response, when I changed the template type from zabbix agent(active ) to zabbix agent i am stated getting the below error. Kindly help me I am very new to zabbix but i want to learn the new things.

image

a-schild commented 5 years ago

It shows some errors about sudo not working as expected. What OS do you have on the vpn machine?

harikrish432 commented 5 years ago

The VPN machine runs on Centos and I also installed the agent as a root user and added the zabbix ipsec in sudoers.d in the VPN machine.

harikrish432 commented 5 years ago

Please kindly help me with the above issue...

a-schild commented 5 years ago

is the zabbix agent process running as root user? If yes, then you can just remove the sudo in all places

harikrish432 commented 5 years ago

Thank you allot, While I have checked for the Zabbix agent process it is running as Zabbix user. Do I need to change it to root user? how can i do so? image

a-schild commented 5 years ago

No, letting it running as user zabbix should be fine. It just needs a correctly configured sudo environment.

You did install sudo and the corresponding /etc/sudoers.d/zabbix_ipsec file? Perhaps on centos it's on another location?

harikrish432 commented 5 years ago

Thank you for the response, I am using an AWS Centos Instance where the sudo is already installed in it and I have placed the Corresponding zabbix_ipsec file in /etc/sudoers.d/zabbix_ipsec in VM Machine.

image

a-schild commented 5 years ago

You did put the check_ipsec.sh in /usr/local/lib/zabbix/externalscripts/?

It seems it does not pickup your sudo file for this

harikrish432 commented 5 years ago

Thank you for the response, This is the path which I have placed the check_ipsec.sh file image

a-schild commented 5 years ago

In that case you must also modify the path in the file you did put in the sudoers.d folder

harikrish432 commented 5 years ago

Should i also add the Zabbix-IPsec in Zabbix server Sudoers or only by adding it into VPN server is fine? image

a-schild commented 5 years ago

On the client (where the VPN is running) is enough.

But I think you a x too much at the start of the last line of the printscreen

harikrish432 commented 5 years ago

Sorry For the delay response, Even after changing the scripts I am still receiving the same. I am only able to get the graph for StrongSWAN charon process , OpenSWAN PLUTO process image

all the items key are in Zabbix agent (active) but still, I am not able to see any data points. When I changed the items key to Zabbix agent I will be getting the following error. image

harikrish432 commented 5 years ago

Hi Schild, Help me with the above issue which I am facing now.

a-schild commented 5 years ago

Somehow your sudo config is not correct. It does not pickup your sudo config file correctly or you still have some error n the sudo file.

harikrish432 commented 5 years ago

Thank you, Schild, I will check it once and get back to you.