Hi,
I've setup a Nagios-server with Nagios 4.4.9 (on Rocky 8.8 PHP 7.4.33).
We have many switch-interfaces where we are using check_snmp_int (binary).
This did not work at the beginning, because this check_snmp_int uses older libs like libnetsmp.so.31.
But in /usr/lib64 of Nagios 4.4.9 there a newer files like libnetsmp.so.35 -> libnetsmp.so.35.0.0 etc.
So I copied the older versions to /usr/lib64 and created the links, like it was on our older server Nagios 4.4.3.
For example: libnetsmp.so.31 -> libnetsmp.so.31.0.2
This works for a while (hours), but then I get "no usable data on file".
It's creating files like tmp_Nagios_int.192.168.0.100.HundredGigE1_0_50 etc. in /usr/local/nagios_tmp, but after some hours,
it's showing "no usable data on file" and in /usr/local/nagios_tmp I see a lot of strange files:
'tmp_Nagio'$'\214\302\227''d'
tmp_Nagioqїd
'tmp_Nagio'$'\235''җd'
'tmp_Nagio ŗd'
tmp_Nagios_int.192.168.0.100.HundredGigE1_0_50
tmp_Nagios_int.192.168.0.100.HundredGigE2_0_50
After removing all the files, it works for a while again.
I'm not sure if it started after upgrade from PHP 7.2. to PHP 7.4, but I can not believe, that PHP is used for this check.
I've also tried to link libnetsmp.so.31 -> libnetsmp.so.35.0.0, but this is not working.
Any suggestions?
Thanks.
Nagios 4.4.9 check_snmp_int creates strange files
-
- Posts: 4
- Joined: Fri Jun 23, 2023 10:54 pm
-
- Posts: 4
- Joined: Fri Jun 23, 2023 10:54 pm
Re: Nagios 4.4.9 check_snmp_int creates strange files
I've found out, that it happens when the files have 205 lines.
Then I see "no usable data on file 205 rows" in the GUI and in /usr/local/nagios_tmp/ this strange filenames are created.
I now started a crontab job which checks the number of lines in the files, and if they have 180 lines or more, I delete 25 lines on the top of the files with sed. I've choosen 180 because the crontab job is running every 2 hours, the check_snmp_int is started every 5 minutes, so 12 checks/hour = 24 checks in 2 hours. 180+24=204 (less than 205).
Regards.
Then I see "no usable data on file 205 rows" in the GUI and in /usr/local/nagios_tmp/ this strange filenames are created.
I now started a crontab job which checks the number of lines in the files, and if they have 180 lines or more, I delete 25 lines on the top of the files with sed. I've choosen 180 because the crontab job is running every 2 hours, the check_snmp_int is started every 5 minutes, so 12 checks/hour = 24 checks in 2 hours. 180+24=204 (less than 205).
Regards.