# Account validation for icinga check

**URL:** <https://community.icinga.com/t/account-validation-for-icinga-check/6251>\
**Category:** Icinga Web\
**Created:** [December 8, 2020, 11:22am UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251 "2020-12-08T11:22:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PiMA](https://community.icinga.com/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@PiMA](https://community.icinga.com/u/PiMA)\
**Post date:** [December 8, 2020, 11:22am UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251/1 "2020-12-08T11:22:43Z")

</div>

Hello Community  
I have a huge problem since weeks and it seems like i can’t find any solution. I have a few ncpa checks running on my icinga. For example ncpa-uptime, ncpa-ram, ncpa-cpuload and more but somehow now icinga has problems with running a few of them. The weird part is that some still work but others not even they running on the same host. I am checking uptime and cpu load on one host but just the uptime check fails. Which doesnt make sense because the ncpa software is for both values. The only error message i get are the following:

 ![image](https://community.icinga.com/uploads/default/original/2X/a/a544cacc89d682c88070c98b7ade37e8817db4be.png)

![image](https://community.icinga.com/uploads/default/original/2X/d/dd466ee7d9e19afb425e25bcd44c2996eabf4e31.png)

what could the account validation come from? Does anyone ever had the same problem?  
I was looking for the pam\_lastlog but couldnt find anything? I am so lost I dont even know where i could look for solving this issue. When i run the check manually on the icinga VM it works completely fine and is giving me the right value back.

 ![image](https://community.icinga.com/uploads/default/original/2X/f/f2574e94eba79c809b34d227844019f9a1e7e052.png)

I hope anyone can help me thank you in advance

---

<div class="post-metadata">

**Author:** ![lorenz](https://community.icinga.com/user_avatar/community.icinga.com/lorenz/32/7666_2.png) [@lorenz](https://community.icinga.com/u/lorenz)\
**Post date:** [December 8, 2020, 1:25pm UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251/2 "2020-12-08T13:25:38Z")

</div>

Does it work, if you use the `icinga` user to execute the check? (might be called `nagios` if you’re on Debian or related.)

---

<div class="post-metadata">

**Author:** ![PiMA](https://community.icinga.com/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@PiMA](https://community.icinga.com/u/PiMA)\
**Post date:** [December 9, 2020, 7:13am UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251/3 "2020-12-09T07:13:42Z")

</div>

okay I can’t even log in into icinga user  
 ![image](https://community.icinga.com/uploads/default/original/2X/3/353e958e41e9c4f1c4b25fbc00e86d716e855d50.png)

maybe thats the problem

---

<div class="post-metadata">

**Author:** ![PiMA](https://community.icinga.com/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@PiMA](https://community.icinga.com/u/PiMA)\
**Post date:** [December 9, 2020, 7:48am UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251/4 "2020-12-09T07:48:40Z")

</div>

since I tried to log in to my icinga user it suddenly works. Even I still can’t log in that user ?!

But I have some other lines now when i run the command

> > systemctl status icinga2.service -l

check the following lines:

 ![image](https://community.icinga.com/uploads/default/original/2X/9/9ca8df1a8e5e1f578c6fbb976c4c15a07e5279a8.png)

---

<div class="post-metadata">

**Author:** ![lorenz](https://community.icinga.com/user_avatar/community.icinga.com/lorenz/32/7666_2.png) [@lorenz](https://community.icinga.com/u/lorenz)\
**Post date:** [December 9, 2020, 1:25pm UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251/5 "2020-12-09T13:25:57Z")

</div>

Not being able to login as the `icinga` user is ok, it means the system ist configured to not let the user login, which is not necessary for a system user anyway.  
You can use the `sudo -u icinga` as a prefix for the command to run it as the `icinga` user.

On a side note: Why are you using ncpa?

---

<div class="post-metadata">

**Author:** ![PiMA](https://community.icinga.com/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@PiMA](https://community.icinga.com/u/PiMA)\
**Post date:** [December 11, 2020, 10:00am UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251/6 "2020-12-11T10:00:47Z")

</div>

I need information like:

- cpu load
- ram
- network sent and received
- services if they running or not
- uptime
- rootdisk usage

and the only checks I can request all of them is ncpa. Or do you know a different one? That would be amazing because again it worked completely fine and now I get an error since yesterdey which says

> An error occurred:\<urlopen error [Errno 111] Connection refused\>

Thank you for your help already

---

<div class="post-metadata">

**Author:** ![lorenz](https://community.icinga.com/user_avatar/community.icinga.com/lorenz/32/7666_2.png) [@lorenz](https://community.icinga.com/u/lorenz)\
**Post date:** [December 11, 2020, 3:35pm UTC](https://community.icinga.com/t/account-validation-for-icinga-check/6251/7 "2020-12-11T15:35:45Z")

</div>

Generally:  
Since you are on a Linux system, transport could be achieved by installing an Icinga2 Agent (normal Icinga2 which reports to another instance) oder via SSH (the is a plugin for that called check\_by\_ssh).  
In any case you there are plugins on the target machine necessary, which for most cases can be solved by installing a package called `monitoring-plugins` or something like that.  
It contains many check-plugins, which should achieve most of your goals.

Specific: When and where does this new error occur?
